msm: 8064: Add support for APQ8064 Rumi3
Add support for the APQ8064 Rumi3 machine type. Move the
dmov device initialization out of the common set of devices
initialized for all board configurations, and make it
specific to the sim device, as it does not yet work on the
Rumi3 hardware.
Signed-off-by: Joel King <joelking@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-apq8064.c b/arch/arm/mach-msm/board-apq8064.c
index 47ba002..f292c4d 100644
--- a/arch/arm/mach-msm/board-apq8064.c
+++ b/arch/arm/mach-msm/board-apq8064.c
@@ -113,7 +113,6 @@
}
static struct platform_device *common_devices[] __initdata = {
- &apq8064_device_dmov,
&apq8064_device_uart_gsbi3,
&apq8064_device_qup_i2c_gsbi4,
&apq8064_device_qup_spi_gsbi5,
@@ -121,6 +120,10 @@
&apq8064_device_ssbi_pmic2,
};
+static struct platform_device *sim_devices[] __initdata = {
+ &apq8064_device_dmov,
+};
+
static struct msm_spi_platform_data apq8064_qup_spi_gsbi5_pdata = {
.max_clock_speed = 26000000,
};
@@ -189,6 +192,12 @@
static void __init apq8064_sim_init(void)
{
apq8064_common_init();
+ platform_add_devices(sim_devices, ARRAY_SIZE(sim_devices));
+}
+
+static void __init apq8064_rumi3_init(void)
+{
+ apq8064_common_init();
}
MACHINE_START(APQ8064_SIM, "QCT APQ8064 SIMULATOR")
@@ -198,3 +207,10 @@
.init_machine = apq8064_sim_init,
MACHINE_END
+MACHINE_START(APQ8064_RUMI3, "QCT APQ8064 RUMI3")
+ .map_io = apq8064_map_io,
+ .init_irq = apq8064_init_irq,
+ .timer = &msm_timer,
+ .init_machine = apq8064_rumi3_init,
+MACHINE_END
+