From 7fb4b4344dcbfd8115bcf075c7f07c748d2a7ef1 Mon Sep 17 00:00:00 2001 From: Paer-Olof Haakansson Date: Tue, 1 Jun 2010 11:49:20 +0200 Subject: mLoader_helper: pass modem ELF settings from CMDLINE to user space U-boot parses the modem ELF and places the modem ELF settings in the CMDLINE. mLoader_helper picks up these settings and makes them available in sysfs for the mloader utlity to use when loading the modem ELF. ST-Ericsson ID: WP253874 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/494 Reviewed-by: Jonas ABERG Tested-by: Jonas ABERG Signed-off-by: Mian Yousaf Kaukab Change-Id: I5bae8e3f0d42042d041c1863d1de0b853f3a2b4e Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2379 --- arch/arm/mach-ux500/board-u5500.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'arch/arm/mach-ux500/board-u5500.c') diff --git a/arch/arm/mach-ux500/board-u5500.c b/arch/arm/mach-ux500/board-u5500.c index 85b9f36c9be..3769bd68ddc 100755 --- a/arch/arm/mach-ux500/board-u5500.c +++ b/arch/arm/mach-ux500/board-u5500.c @@ -109,6 +109,12 @@ static struct amba_device *amba_board_devs[] __initdata = { &ux500_uart2_device, }; +static struct platform_device *u5500_platform_devices[] __initdata = { +#ifdef CONFIG_U5500_MLOADER_HELPER + &mloader_helper_device, +#endif +}; + static void __init u5500_init_machine(void) { stm_gpio_set_altfunctable(gpio_altfun_table, @@ -121,6 +127,9 @@ static void __init u5500_init_machine(void) u8500_register_device(&ux500_i2c_controller1, &u8500_i2c_1); u8500_register_device(&ux500_i2c_controller2, &u8500_i2c_2); u8500_register_device(&ux500_i2c_controller3, &u8500_i2c_3); + + platform_add_devices(u5500_platform_devices, + ARRAY_SIZE(u5500_platform_devices)); } MACHINE_START(NOMADIK, "ST-Ericsson U5500 Platform") -- cgit v1.2.3