msm: Add SSBI support for APQ8064
Add the device definitions and platform data to support
SSBI on APQ8064 targets.
Signed-off-by: Kenneth Heitke <kheitke@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-apq8064.c b/arch/arm/mach-msm/board-apq8064.c
index 99c1610..751b70d 100644
--- a/arch/arm/mach-msm/board-apq8064.c
+++ b/arch/arm/mach-msm/board-apq8064.c
@@ -14,6 +14,7 @@
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/irq.h>
+#include <linux/msm_ssbi.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/hardware/gic.h>
@@ -73,6 +74,8 @@
&msm_device_dmov,
&apq8064_device_uart_gsbi3,
&apq8064_device_qup_spi_gsbi5,
+ &apq8064_device_ssbi_pmic1,
+ &apq8064_device_ssbi_pmic2,
};
static struct msm_spi_platform_data apq8064_qup_spi_gsbi5_pdata = {
@@ -106,8 +109,13 @@
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;
+ apq8064_device_ssbi_pmic1.dev.platform_data =
+ &apq8064_ssbi_pm8921_pdata;
+ apq8064_device_ssbi_pmic2.dev.platform_data =
+ &apq8064_ssbi_pm8821_pdata;
platform_add_devices(common_devices, ARRAY_SIZE(common_devices));
}