We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a69aa72 commit 4d4b256Copy full SHA for 4d4b256
arch/arm/mach-imx/mach-cpuimx35.c
@@ -53,12 +53,18 @@ static const struct imxi2c_platform_data
53
.bitrate = 100000,
54
};
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
+
62
static struct tsc2007_platform_data tsc2007_info = {
63
.model = 2007,
64
.x_plate_ohms = 180,
65
+ .get_pendown_state = tsc2007_get_pendown_state,
66
67
-#define TSC2007_IRQGPIO IMX_GPIO_NR(3, 2)
68
static struct i2c_board_info eukrea_cpuimx35_i2c_devices[] = {
69
{
70
I2C_BOARD_INFO("pcf8563", 0x51),
0 commit comments