From 9ef0742cf0670982c83d33d5fc983f1fa2ae3e34 Mon Sep 17 00:00:00 2001 From: Frank Li Date: Mon, 6 Feb 2012 12:54:28 +0800 Subject: [PATCH] ENGR00173846 MX6DQ_SD: add touch support for LVDS0 and LVDS1 Add touch support. Signed-off-by: Frank Li --- arch/arm/mach-mx6/board-mx6q_sabresd.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-mx6/board-mx6q_sabresd.c b/arch/arm/mach-mx6/board-mx6q_sabresd.c index 724fd1565870..764abced9497 100644 --- a/arch/arm/mach-mx6/board-mx6q_sabresd.c +++ b/arch/arm/mach-mx6/board-mx6q_sabresd.c @@ -80,7 +80,8 @@ #define MX6Q_SABRESD_SD3_WP IMX_GPIO_NR(2, 1) #define MX6Q_SABRESD_ECSPI1_CS1 IMX_GPIO_NR(3, 19) #define MX6Q_SABRESD_USB_OTG_PWR IMX_GPIO_NR(3, 22) -#define MX6Q_SABRESD_CAP_TCH_INT1 IMX_GPIO_NR(1, 9) +#define MX6Q_SABRESD_CAP_TCH_INT1 IMX_GPIO_NR(6, 7) +#define MX6Q_SABRESD_CAP_TCH_INT0 IMX_GPIO_NR(6, 8) #define MX6Q_SABRESD_USB_HUB_RESET IMX_GPIO_NR(7, 12) #define MX6Q_SABRESD_CAN1_STBY IMX_GPIO_NR(1, 2) #define MX6Q_SABRESD_CAN1_EN IMX_GPIO_NR(1, 4) @@ -207,8 +208,8 @@ static iomux_v3_cfg_t mx6q_sabresd_pads[] = { MX6Q_PAD_KEY_ROW3__I2C2_SDA, /* GPIO4[13] */ /* I2C3 */ - MX6Q_PAD_GPIO_5__I2C3_SCL, /* GPIO1[5] - J7 - Display card */ - MX6Q_PAD_GPIO_16__I2C3_SDA, /* GPIO7[11] - J15 - RGB connector */ + MX6Q_PAD_GPIO_3__I2C3_SCL, /* GPIO1[3] */ + MX6Q_PAD_GPIO_16__I2C3_SDA, /* GPIO7[11]*/ /* DISPLAY */ MX6Q_PAD_DI0_DISP_CLK__IPU1_DI0_DISP_CLK, @@ -567,6 +568,10 @@ static struct i2c_board_info mxc_i2c1_board_info[] __initdata = { I2C_BOARD_INFO("ov5640_mipi", 0x3c), .platform_data = (void *)&mipi_csi2_data, }, + { + I2C_BOARD_INFO("egalax_ts", 0x4), + .irq = gpio_to_irq(MX6Q_SABRESD_CAP_TCH_INT0), + }, }; static struct i2c_board_info mxc_i2c2_board_info[] __initdata = { -- 2.39.5