diff options
| -rw-r--r-- | arch/arm/mach-imx/mach-cpuimx35.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/mach-cpuimx35.c b/arch/arm/mach-imx/mach-cpuimx35.c index 66af2e8f7e57..362aae780601 100644 --- a/arch/arm/mach-imx/mach-cpuimx35.c +++ b/arch/arm/mach-imx/mach-cpuimx35.c | |||
| @@ -53,12 +53,18 @@ static const struct imxi2c_platform_data | |||
| 53 | .bitrate = 100000, | 53 | .bitrate = 100000, |
| 54 | }; | 54 | }; |
| 55 | 55 | ||
| 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 | |||
| 56 | static struct tsc2007_platform_data tsc2007_info = { | 62 | static struct tsc2007_platform_data tsc2007_info = { |
| 57 | .model = 2007, | 63 | .model = 2007, |
| 58 | .x_plate_ohms = 180, | 64 | .x_plate_ohms = 180, |
| 65 | .get_pendown_state = tsc2007_get_pendown_state, | ||
| 59 | }; | 66 | }; |
| 60 | 67 | ||
| 61 | #define TSC2007_IRQGPIO IMX_GPIO_NR(3, 2) | ||
| 62 | static struct i2c_board_info eukrea_cpuimx35_i2c_devices[] = { | 68 | static struct i2c_board_info eukrea_cpuimx35_i2c_devices[] = { |
| 63 | { | 69 | { |
| 64 | I2C_BOARD_INFO("pcf8563", 0x51), | 70 | I2C_BOARD_INFO("pcf8563", 0x51), |
