Skip to content

Commit 4d4b256

Browse files
Eric Bénardsaschahauer
authored andcommitted
cpuimx35: fix touchscreen support
Signed-off-by: Eric Bénard <[email protected]> Cc: Sascha Hauer <[email protected]> Signed-off-by: Sascha Hauer <[email protected]>
1 parent a69aa72 commit 4d4b256

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

arch/arm/mach-imx/mach-cpuimx35.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,18 @@ static const struct imxi2c_platform_data
5353
.bitrate = 100000,
5454
};
5555

56+
#define TSC2007_IRQGPIO IMX_GPIO_NR(3, 2)
57+
static int tsc2007_get_pendown_state(void)
58+
{
59+
return !gpio_get_value(TSC2007_IRQGPIO);
60+
}
61+
5662
static struct tsc2007_platform_data tsc2007_info = {
5763
.model = 2007,
5864
.x_plate_ohms = 180,
65+
.get_pendown_state = tsc2007_get_pendown_state,
5966
};
6067

61-
#define TSC2007_IRQGPIO IMX_GPIO_NR(3, 2)
6268
static struct i2c_board_info eukrea_cpuimx35_i2c_devices[] = {
6369
{
6470
I2C_BOARD_INFO("pcf8563", 0x51),

0 commit comments

Comments
 (0)