diff options
Diffstat (limited to 'arch/arm/mach-ux500/board-mop500.c')
-rw-r--r-- | arch/arm/mach-ux500/board-mop500.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index e2932fcba75e..482b86ef757d 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c | |||
@@ -621,6 +621,7 @@ static void __init mop500_init_machine(void) | |||
621 | 621 | ||
622 | mop500_pins_init(); | 622 | mop500_pins_init(); |
623 | 623 | ||
624 | /* FIXME: parent of ab8500 should be prcmu */ | ||
624 | for (i = 0; i < ARRAY_SIZE(mop500_platform_devs); i++) | 625 | for (i = 0; i < ARRAY_SIZE(mop500_platform_devs); i++) |
625 | mop500_platform_devs[i]->dev.parent = parent; | 626 | mop500_platform_devs[i]->dev.parent = parent; |
626 | 627 | ||
@@ -743,6 +744,17 @@ MACHINE_START(SNOWBALL, "Calao Systems Snowball platform") | |||
743 | MACHINE_END | 744 | MACHINE_END |
744 | 745 | ||
745 | #ifdef CONFIG_MACH_UX500_DT | 746 | #ifdef CONFIG_MACH_UX500_DT |
747 | |||
748 | struct of_dev_auxdata u8500_auxdata_lookup[] __initdata = { | ||
749 | {}, | ||
750 | }; | ||
751 | |||
752 | static const struct of_device_id u8500_soc_node[] = { | ||
753 | /* only create devices below soc node */ | ||
754 | { .compatible = "stericsson,db8500", }, | ||
755 | { }, | ||
756 | }; | ||
757 | |||
746 | static void __init u8500_init_machine(void) | 758 | static void __init u8500_init_machine(void) |
747 | { | 759 | { |
748 | struct device *parent = NULL; | 760 | struct device *parent = NULL; |
@@ -757,6 +769,8 @@ static void __init u8500_init_machine(void) | |||
757 | for (i = 0; i < ARRAY_SIZE(snowball_platform_devs); i++) | 769 | for (i = 0; i < ARRAY_SIZE(snowball_platform_devs); i++) |
758 | snowball_platform_devs[i]->dev.parent = parent; | 770 | snowball_platform_devs[i]->dev.parent = parent; |
759 | 771 | ||
772 | /* automatically probe child nodes of db8500 device */ | ||
773 | of_platform_populate(NULL, u8500_soc_node, u8500_auxdata_lookup, parent); | ||
760 | 774 | ||
761 | if (of_machine_is_compatible("st-ericsson,mop500")) { | 775 | if (of_machine_is_compatible("st-ericsson,mop500")) { |
762 | mop500_gpio_keys[0].gpio = GPIO_PROX_SENSOR; | 776 | mop500_gpio_keys[0].gpio = GPIO_PROX_SENSOR; |