diff options
author | Marian Balakowicz <m8@semihalf.com> | 2007-11-09 20:11:56 +0300 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2008-01-18 19:30:07 +0300 |
commit | f584bc65ca9b9a4c21cc17bb01883874e2e6df0a (patch) | |
tree | e90c2c73b127d2cf2e187a269a80daa0ca9b710d /arch/powerpc/platforms/52xx/mpc52xx_pci.c | |
parent | a6f024bbbef1f529cd6bee57f3ff576139e6f8d7 (diff) | |
download | linux-f584bc65ca9b9a4c21cc17bb01883874e2e6df0a.tar.xz |
[POWERPC] mpc5200: Add common mpc52xx_setup_pci() routine
This patch moves a generic pci init code from lite5200
platform file to a common mpc52xx_setup_pci() routine
and adds additional compatibility property verification.
Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/powerpc/platforms/52xx/mpc52xx_pci.c')
-rw-r--r-- | arch/powerpc/platforms/52xx/mpc52xx_pci.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_pci.c b/arch/powerpc/platforms/52xx/mpc52xx_pci.c index 262eda8659d0..4b79398b2e40 100644 --- a/arch/powerpc/platforms/52xx/mpc52xx_pci.c +++ b/arch/powerpc/platforms/52xx/mpc52xx_pci.c @@ -406,3 +406,17 @@ mpc52xx_add_bridge(struct device_node *node) return 0; } + +void __init mpc52xx_setup_pci(void) +{ + struct device_node *pci; + + pci = of_find_compatible_node(NULL, NULL, "fsl,mpc5200-pci"); + if (!pci) + pci = of_find_compatible_node(NULL, NULL, "mpc5200-pci"); + if (!pci) + return; + + mpc52xx_add_bridge(pci); + of_node_put(pci); +} |