]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ppc/8xxx: Don't use pci_cfg on FSL_CORENET platforms
authorKumar Gala <galak@kernel.crashing.org>
Thu, 17 Sep 2009 05:01:14 +0000 (00:01 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 5 Jan 2010 19:49:03 +0000 (13:49 -0600)
The FSL_CORENET platforms use a completely different means to determine
which PCIe port is enabled as well as if its a host or agent/end-point.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
cpu/mpc8xxx/pci_cfg.c

index 9c7d92c4d9390b258ac35a02b78d6629ddf27100..ea129c52a049f0336413c3a193646454595ade8f 100644 (file)
@@ -210,10 +210,12 @@ static struct pci_info pci_config_info[] =
                .cfg =   (1 << 2) | (1 << 4),
        },
 };
+#elif defined(CONFIG_FSL_CORENET)
 #else
 #error Need to define pci_config_info for processor
 #endif
 
+#ifndef CONFIG_FSL_CORENET
 int is_fsl_pci_agent(enum law_trgt_if trgt, u32 host_agent)
 {
        return ((1 << host_agent) & pci_config_info[trgt].agent);
@@ -223,3 +225,4 @@ int is_fsl_pci_cfg(enum law_trgt_if trgt, u32 io_sel)
 {
        return ((1 << io_sel) & pci_config_info[trgt].cfg);
 }
+#endif