msm: Add SPI QUP support for APQ8064
Add the device definitions and platform data to support
SPI QUP on APQ8064 simulator and RUMI3 targets.
Signed-off-by: Harini Jayaraman <harinij@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-apq8064.c b/arch/arm/mach-msm/board-apq8064.c
index 30006ce..99c1610 100644
--- a/arch/arm/mach-msm/board-apq8064.c
+++ b/arch/arm/mach-msm/board-apq8064.c
@@ -23,9 +23,9 @@
#include <linux/usb/msm_hsusb.h>
#include <linux/usb/android.h>
#include <mach/socinfo.h>
+#include <mach/msm_spi.h>
#include "timer.h"
#include "devices.h"
-#include <mach/msm_spi.h>
#include <mach/gpio.h>
#include <mach/gpiomux.h>
@@ -71,7 +71,12 @@
static struct platform_device *common_devices[] __initdata = {
&msm_device_dmov,
- &apq8064_device_uart_gsbi3
+ &apq8064_device_uart_gsbi3,
+ &apq8064_device_qup_spi_gsbi5,
+};
+
+static struct msm_spi_platform_data apq8064_qup_spi_gsbi5_pdata = {
+ .max_clock_speed = 26000000,
};
static struct msm_otg_platform_data msm_otg_pdata = {
@@ -101,6 +106,8 @@
pr_err("socinfo_init() failed!\n");
msm_clock_init(msm_clocks_8064_dummy, msm_num_clocks_8064_dummy);
gpiomux_init();
+ apq8064_device_qup_spi_gsbi5.dev.platform_data =
+ &apq8064_qup_spi_gsbi5_pdata;
platform_add_devices(common_devices, ARRAY_SIZE(common_devices));
}