diff options
author | Stepan Moskovchenko <stepanm@codeaurora.org> | 2011-01-27 12:12:07 -0800 |
---|---|---|
committer | David Brown <davidb@codeaurora.org> | 2011-01-28 12:27:21 -0800 |
commit | d056fca32354dd990ffbd90fd1da10eaec72aa87 (patch) | |
tree | e9ce24973cfcfdaa4ad752a277f1d665b35e6b94 /arch/arm/mach-msm/board-msm8960.c | |
parent | 07a3cc4814f790354d4c7be2c9dc6143a714a07a (diff) | |
download | op-kernel-dev-d056fca32354dd990ffbd90fd1da10eaec72aa87.zip op-kernel-dev-d056fca32354dd990ffbd90fd1da10eaec72aa87.tar.gz |
msm: serial: Add MSM8960 serial support
Add the device definitions and platform data to support
the console serial port on MSM8960 Simulator and RUMI3
targets.
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm/board-msm8960.c')
-rw-r--r-- | arch/arm/mach-msm/board-msm8960.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-msm/board-msm8960.c b/arch/arm/mach-msm/board-msm8960.c index 2b09573..ef80f46 100644 --- a/arch/arm/mach-msm/board-msm8960.c +++ b/arch/arm/mach-msm/board-msm8960.c @@ -27,6 +27,8 @@ #include <mach/board.h> #include <mach/msm_iomap.h> +#include "devices.h" + static void __init msm8960_map_io(void) { msm_map_msm8960_io(); @@ -54,15 +56,35 @@ static void __init msm8960_init_irq(void) } } +static struct platform_device *sim_devices[] __initdata = { + &msm8960_device_uart_gsbi2, +}; + +static struct platform_device *rumi3_devices[] __initdata = { + &msm8960_device_uart_gsbi5, +}; + +static void __init msm8960_sim_init(void) +{ + platform_add_devices(sim_devices, ARRAY_SIZE(sim_devices)); +} + +static void __init msm8960_rumi3_init(void) +{ + platform_add_devices(rumi3_devices, ARRAY_SIZE(rumi3_devices)); +} + MACHINE_START(MSM8960_SIM, "QCT MSM8960 SIMULATOR") .map_io = msm8960_map_io, .init_irq = msm8960_init_irq, .timer = &msm_timer, + .init_machine = msm8960_sim_init, MACHINE_END MACHINE_START(MSM8960_RUMI3, "QCT MSM8960 RUMI3") .map_io = msm8960_map_io, .init_irq = msm8960_init_irq, .timer = &msm_timer, + .init_machine = msm8960_rumi3_init, MACHINE_END |