msm: mpq8064: Add platform specific changes to enable cs8427.
Add platform specific changes for cs8427, secondary RX i2s.
Change-Id: Idf1ca080f1975373ae95fd809b81d4fc72054c72
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-8064.c b/arch/arm/mach-msm/board-8064.c
index bd0aaee..d02b4be 100644
--- a/arch/arm/mach-msm/board-8064.c
+++ b/arch/arm/mach-msm/board-8064.c
@@ -65,6 +65,7 @@
#include <linux/msm_tsens.h>
#include <mach/msm_xo.h>
#include <mach/msm_rtb.h>
+#include <sound/cs8427.h>
#include "msm_watchdog.h"
#include "board-8064.h"
@@ -891,6 +892,18 @@
},
};
+static struct cs8427_platform_data cs8427_i2c_platform_data = {
+ .irq = SX150X_GPIO(1, 4),
+ .reset_gpio = SX150X_GPIO(1, 6),
+};
+
+static struct i2c_board_info cs8427_device_info[] __initdata = {
+ {
+ I2C_BOARD_INFO("cs8427", CS8427_ADDR4),
+ .platform_data = &cs8427_i2c_platform_data,
+ },
+};
+
#define HAP_SHIFT_LVL_OE_GPIO PM8921_MPP_PM_TO_SYS(8)
#define ISA1200_HAP_EN_GPIO PM8921_GPIO_PM_TO_SYS(33)
#define ISA1200_HAP_LEN_GPIO PM8921_GPIO_PM_TO_SYS(20)
@@ -1901,6 +1914,7 @@
&apq_pcm_routing,
&apq_cpudai0,
&apq_cpudai1,
+ &mpq_cpudai_sec_i2s_rx,
&apq_cpudai_hdmi_rx,
&apq_cpudai_bt_rx,
&apq_cpudai_bt_tx,
@@ -2320,6 +2334,12 @@
isa1200_board_info,
ARRAY_SIZE(isa1200_board_info),
},
+ {
+ I2C_MPQ_CDP,
+ APQ_8064_GSBI5_QUP_I2C_BUS_ID,
+ cs8427_device_info,
+ ARRAY_SIZE(cs8427_device_info),
+ },
};
struct sx150x_platform_data mpq8064_sx150x_pdata[] = {