diff options
author | John Rigby <jrigby@freescale.com> | 2008-10-07 21:13:18 (GMT) |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-10-13 16:09:58 (GMT) |
commit | 35225802e2e7019392fbff9227662d456eef4e24 (patch) | |
tree | 974c6516098b4dcefab7ceed155b6945ba85bcd4 /arch/powerpc/platforms/512x/mpc5121_ads.c | |
parent | 5b70a097052fff3831d8b94541452e7c29426777 (diff) | |
download | linux-35225802e2e7019392fbff9227662d456eef4e24.tar.xz |
powerpc/5121: Add PCI support.
Uses mpc83xx_add_bridge in fsl_pci.c
Adds second register tuple to pci node register property
as done for 83xx device trees in a previous patch.
Signed-off-by: John Rigby <jrigby@freescale.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/512x/mpc5121_ads.c')
-rw-r--r-- | arch/powerpc/platforms/512x/mpc5121_ads.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/512x/mpc5121_ads.c b/arch/powerpc/platforms/512x/mpc5121_ads.c index 5ebf693..441abc4 100644 --- a/arch/powerpc/platforms/512x/mpc5121_ads.c +++ b/arch/powerpc/platforms/512x/mpc5121_ads.c @@ -22,16 +22,26 @@ #include <asm/prom.h> #include <asm/time.h> +#include <sysdev/fsl_pci.h> + #include "mpc512x.h" #include "mpc5121_ads.h" static void __init mpc5121_ads_setup_arch(void) { +#ifdef CONFIG_PCI + struct device_node *np; +#endif printk(KERN_INFO "MPC5121 ADS board from Freescale Semiconductor\n"); /* * cpld regs are needed early */ mpc5121_ads_cpld_map(); + +#ifdef CONFIG_PCI + for_each_compatible_node(np, "pci", "fsl,mpc5121-pci") + mpc83xx_add_bridge(np); +#endif } static void __init mpc5121_ads_init_IRQ(void) |