aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2012-04-19 16:36:42 -0400
committerLinus Walleij <linus.walleij@linaro.org>2012-05-01 18:40:42 -0400
commit08d050263190174914951a158ddf759177a58039 (patch)
treed44090cb2f66cc964c48179077372346f216591f
parent4809f90aadb299743b8f8021ff386f0ef0392c86 (diff)
ARM: ux500: Fork cpu-db8500 platform_devs for sequential DT enablement
To aid in sequential one-by-one Device Tree enablement, we split cpu-db8500's platform_devs structure into normal platform boot, where we leave all devices to be added in tact and a DT version where we will remove the devices as they are DT enabled. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--arch/arm/mach-ux500/cpu-db8500.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch/arm/mach-ux500/cpu-db8500.c
index 9bd8163896cf..f44a12ccddf3 100644
--- a/arch/arm/mach-ux500/cpu-db8500.c
+++ b/arch/arm/mach-ux500/cpu-db8500.c
@@ -121,6 +121,12 @@ static struct platform_device *platform_devs[] __initdata = {
121 &db8500_prcmu_device, 121 &db8500_prcmu_device,
122}; 122};
123 123
124static struct platform_device *of_platform_devs[] __initdata = {
125 &u8500_dma40_device,
126 &db8500_pmu_device,
127 &db8500_prcmu_device,
128};
129
124static resource_size_t __initdata db8500_gpio_base[] = { 130static resource_size_t __initdata db8500_gpio_base[] = {
125 U8500_GPIOBANK0_BASE, 131 U8500_GPIOBANK0_BASE,
126 U8500_GPIOBANK1_BASE, 132 U8500_GPIOBANK1_BASE,
@@ -199,10 +205,16 @@ struct device * __init u8500_init_devices(void)
199 platform_device_register_data(parent, 205 platform_device_register_data(parent,
200 "cpufreq-u8500", -1, NULL, 0); 206 "cpufreq-u8500", -1, NULL, 0);
201 207
202 for (i = 0; i < ARRAY_SIZE(platform_devs); i++) 208 for (i = 0; i < ARRAY_SIZE(of_platform_devs); i++)
203 platform_devs[i]->dev.parent = parent; 209 of_platform_devs[i]->dev.parent = parent;
204 210
205 platform_add_devices(platform_devs, ARRAY_SIZE(platform_devs)); 211 /*
212 * Devices to be DT:ed:
213 * u8500_dma40_device = todo
214 * db8500_pmu_device = todo
215 * db8500_prcmu_device = todo
216 */
217 platform_add_devices(of_platform_devs, ARRAY_SIZE(of_platform_devs));
206 218
207 return parent; 219 return parent;
208} 220}