aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSteve Muckle <smuckle@codeaurora.org>2010-01-07 15:51:10 -0500
committerDaniel Walker <dwalker@codeaurora.org>2010-10-08 18:12:48 -0400
commit57bbf1cc8c265f9d4c6831d9e3f07a72cf16ee27 (patch)
tree700b7060230b30b6f8a6925e0a641f7ce3f21d33 /arch
parent49b76f718d634599693e18efe169adfa2d5b75e8 (diff)
msm: MSM8X60 simulator board support
Board configuration for MSM8X60 simulation. Signed-off-by: Steve Muckle <smuckle@codeaurora.org> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-msm/Kconfig8
-rw-r--r--arch/arm/mach-msm/board-msm8x60.c10
2 files changed, 16 insertions, 2 deletions
diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig
index e0db899d118a..6cedfef480f0 100644
--- a/arch/arm/mach-msm/Kconfig
+++ b/arch/arm/mach-msm/Kconfig
@@ -41,7 +41,7 @@ config ARCH_MSM8X60
41 select CPU_V7 41 select CPU_V7
42 select MSM_V2_TLMM 42 select MSM_V2_TLMM
43 select MSM_GPIOMUX 43 select MSM_GPIOMUX
44 select MACH_MSM8X60_SURF if (!MACH_MSM8X60_RUMI3) 44 select MACH_MSM8X60_SURF if (!MACH_MSM8X60_RUMI3 && !MACH_MSM8X60_SIM)
45 45
46endchoice 46endchoice
47 47
@@ -106,6 +106,12 @@ config MACH_MSM8X60_SURF
106 help 106 help
107 Support for the Qualcomm MSM8x60 SURF eval board. 107 Support for the Qualcomm MSM8x60 SURF eval board.
108 108
109config MACH_MSM8X60_SIM
110 depends on ARCH_MSM8X60
111 bool "MSM8x60 Simulator"
112 help
113 Support for the Qualcomm MSM8x60 simulator.
114
109endmenu 115endmenu
110 116
111config MSM_DEBUG_UART 117config MSM_DEBUG_UART
diff --git a/arch/arm/mach-msm/board-msm8x60.c b/arch/arm/mach-msm/board-msm8x60.c
index a8a4d8d0ae31..95b0e369feab 100644
--- a/arch/arm/mach-msm/board-msm8x60.c
+++ b/arch/arm/mach-msm/board-msm8x60.c
@@ -54,7 +54,8 @@ static void __init msm8x60_init_irq(void)
54 /* RUMI does not adhere to GIC spec by enabling STIs by default. 54 /* RUMI does not adhere to GIC spec by enabling STIs by default.
55 * Enable/clear is supposed to be RO for STIs, but is RW on RUMI. 55 * Enable/clear is supposed to be RO for STIs, but is RW on RUMI.
56 */ 56 */
57 writel(0x0000FFFF, MSM_QGIC_DIST_BASE + GIC_DIST_ENABLE_SET); 57 if (!machine_is_msm8x60_sim())
58 writel(0x0000FFFF, MSM_QGIC_DIST_BASE + GIC_DIST_ENABLE_SET);
58 59
59 /* FIXME: Not installing AVS_SVICINT and AVS_SVICINTSWDONE yet 60 /* FIXME: Not installing AVS_SVICINT and AVS_SVICINTSWDONE yet
60 * as they are configured as level, which does not play nice with 61 * as they are configured as level, which does not play nice with
@@ -83,3 +84,10 @@ MACHINE_START(MSM8X60_SURF, "QCT MSM8X60 SURF")
83 .init_machine = msm8x60_init, 84 .init_machine = msm8x60_init,
84 .timer = &msm_timer, 85 .timer = &msm_timer,
85MACHINE_END 86MACHINE_END
87
88MACHINE_START(MSM8X60_SIM, "QCT MSM8X60 SIMULATOR")
89 .map_io = msm8x60_map_io,
90 .init_irq = msm8x60_init_irq,
91 .init_machine = msm8x60_init,
92 .timer = &msm_timer,
93MACHINE_END