msm: gpiomux: add the hisense nfc gpio
Add the nfc gpio for the hisense device, and add the
compatibility of mtp device.
Change-Id: I40f5a2aad3ea682ad553b5974c1cc34803cff842
Signed-off-by: Houston Hoffman <hhoffman@codeaurora.org>
Signed-off-by: Pan Fang <fangpan@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-8610-gpiomux.c b/arch/arm/mach-msm/board-8610-gpiomux.c
index b5ea3a5..f70b4a3 100644
--- a/arch/arm/mach-msm/board-8610-gpiomux.c
+++ b/arch/arm/mach-msm/board-8610-gpiomux.c
@@ -252,6 +252,29 @@
},
};
+static struct gpiomux_setting gpio_i2c_nfc_pvt_config = {
+ .func = GPIOMUX_FUNC_5, /*active 1*/ /* 0 */
+ .drv = GPIOMUX_DRV_2MA,
+ .pull = GPIOMUX_PULL_NONE,
+ };
+
+static struct msm_gpiomux_config msm_nfc_configs[] __initdata = {
+ {
+ .gpio = 8, /* BLSP1 QUP2 I2C_SDA */
+ .settings = {
+ [GPIOMUX_ACTIVE] = &gpio_i2c_nfc_pvt_config,
+ [GPIOMUX_SUSPENDED] = &gpio_i2c_nfc_pvt_config,
+ },
+ },
+ {
+ .gpio = 9, /* BLSP1 QUP2 I2C_SCL */
+ .settings = {
+ [GPIOMUX_ACTIVE] = &gpio_i2c_nfc_pvt_config,
+ [GPIOMUX_SUSPENDED] = &gpio_i2c_nfc_pvt_config,
+ },
+ },
+};
+
static struct msm_gpiomux_config msm_atmel_configs[] __initdata = {
{
.gpio = 0, /* TOUCH RESET */
@@ -625,7 +648,10 @@
msm_gpiomux_install(msm_sensor_configs, ARRAY_SIZE(msm_sensor_configs));
msm_gpiomux_install(msm_gpio_int_configs,
ARRAY_SIZE(msm_gpio_int_configs));
- if (of_board_is_qrd())
+ if (of_board_is_qrd()) {
msm_gpiomux_install(msm_interrupt_configs,
ARRAY_SIZE(msm_interrupt_configs));
+ msm_gpiomux_install(msm_nfc_configs,
+ ARRAY_SIZE(msm_nfc_configs));
+ }
}