aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-msm/board-msm8960.c
diff options
context:
space:
mode:
authorStepan Moskovchenko <stepanm@codeaurora.org>2011-01-27 15:12:07 -0500
committerDavid Brown <davidb@codeaurora.org>2011-01-28 15:27:21 -0500
commitd056fca32354dd990ffbd90fd1da10eaec72aa87 (patch)
treee9ce24973cfcfdaa4ad752a277f1d665b35e6b94 /arch/arm/mach-msm/board-msm8960.c
parent07a3cc4814f790354d4c7be2c9dc6143a714a07a (diff)
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.c22
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 2b095735f142..ef80f46d6cb3 100644
--- a/arch/arm/mach-msm/board-msm8960.c
+++ b/arch/arm/mach-msm/board-msm8960.c
@@ -27,6 +27,8 @@
27#include <mach/board.h> 27#include <mach/board.h>
28#include <mach/msm_iomap.h> 28#include <mach/msm_iomap.h>
29 29
30#include "devices.h"
31
30static void __init msm8960_map_io(void) 32static void __init msm8960_map_io(void)
31{ 33{
32 msm_map_msm8960_io(); 34 msm_map_msm8960_io();
@@ -54,15 +56,35 @@ static void __init msm8960_init_irq(void)
54 } 56 }
55} 57}
56 58
59static struct platform_device *sim_devices[] __initdata = {
60 &msm8960_device_uart_gsbi2,
61};
62
63static struct platform_device *rumi3_devices[] __initdata = {
64 &msm8960_device_uart_gsbi5,
65};
66
67static void __init msm8960_sim_init(void)
68{
69 platform_add_devices(sim_devices, ARRAY_SIZE(sim_devices));
70}
71
72static void __init msm8960_rumi3_init(void)
73{
74 platform_add_devices(rumi3_devices, ARRAY_SIZE(rumi3_devices));
75}
76
57MACHINE_START(MSM8960_SIM, "QCT MSM8960 SIMULATOR") 77MACHINE_START(MSM8960_SIM, "QCT MSM8960 SIMULATOR")
58 .map_io = msm8960_map_io, 78 .map_io = msm8960_map_io,
59 .init_irq = msm8960_init_irq, 79 .init_irq = msm8960_init_irq,
60 .timer = &msm_timer, 80 .timer = &msm_timer,
81 .init_machine = msm8960_sim_init,
61MACHINE_END 82MACHINE_END
62 83
63MACHINE_START(MSM8960_RUMI3, "QCT MSM8960 RUMI3") 84MACHINE_START(MSM8960_RUMI3, "QCT MSM8960 RUMI3")
64 .map_io = msm8960_map_io, 85 .map_io = msm8960_map_io,
65 .init_irq = msm8960_init_irq, 86 .init_irq = msm8960_init_irq,
66 .timer = &msm_timer, 87 .timer = &msm_timer,
88 .init_machine = msm8960_rumi3_init,
67MACHINE_END 89MACHINE_END
68 90