diff options
author | Todd Fischer <todd.fischer@ridgerun.com> | 2010-04-05 19:53:12 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-05-27 19:37:38 -0400 |
commit | 752599667048898b6969e06e4637f906b04ec752 (patch) | |
tree | 91fd727ff21048eac193a84ff26833ff69647d5d /include | |
parent | 31dd6a2672e337f5de188df3e5169ee732798236 (diff) |
input: Touchscreen driver for TPS6507x
Add touch screen input driver for TPS6507x family of multi-function
chips. Uses the TPS6507x MFD driver. No interrupt support due to
testing limitations of current hardware.
Signed-off-by: Todd Fischer <todd.fischer@ridgerun.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/input/tps6507x-ts.h | 24 | ||||
-rw-r--r-- | include/linux/mfd/tps6507x.h | 2 |
2 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/input/tps6507x-ts.h b/include/linux/input/tps6507x-ts.h new file mode 100644 index 000000000000..ab1440313924 --- /dev/null +++ b/include/linux/input/tps6507x-ts.h | |||
@@ -0,0 +1,24 @@ | |||
1 | /* linux/i2c/tps6507x-ts.h | ||
2 | * | ||
3 | * Functions to access TPS65070 touch screen chip. | ||
4 | * | ||
5 | * Copyright (c) 2009 RidgeRun (todd.fischer@ridgerun.com) | ||
6 | * | ||
7 | * | ||
8 | * For licencing details see kernel-base/COPYING | ||
9 | */ | ||
10 | |||
11 | #ifndef __LINUX_I2C_TPS6507X_TS_H | ||
12 | #define __LINUX_I2C_TPS6507X_TS_H | ||
13 | |||
14 | /* Board specific touch screen initial values */ | ||
15 | struct touchscreen_init_data { | ||
16 | int poll_period; /* ms */ | ||
17 | int vref; /* non-zero to leave vref on */ | ||
18 | __u16 min_pressure; /* min reading to be treated as a touch */ | ||
19 | __u16 vendor; | ||
20 | __u16 product; | ||
21 | __u16 version; | ||
22 | }; | ||
23 | |||
24 | #endif /* __LINUX_I2C_TPS6507X_TS_H */ | ||
diff --git a/include/linux/mfd/tps6507x.h b/include/linux/mfd/tps6507x.h index 9543cb716428..c923e4864f55 100644 --- a/include/linux/mfd/tps6507x.h +++ b/include/linux/mfd/tps6507x.h | |||
@@ -142,6 +142,7 @@ | |||
142 | 142 | ||
143 | struct tps6507x_board { | 143 | struct tps6507x_board { |
144 | struct regulator_init_data *tps6507x_pmic_init_data; | 144 | struct regulator_init_data *tps6507x_pmic_init_data; |
145 | struct touchscreen_init_data *tps6507x_ts_init_data; | ||
145 | }; | 146 | }; |
146 | 147 | ||
147 | /** | 148 | /** |
@@ -162,6 +163,7 @@ struct tps6507x_dev { | |||
162 | 163 | ||
163 | /* Client devices */ | 164 | /* Client devices */ |
164 | struct tps6507x_pmic *pmic; | 165 | struct tps6507x_pmic *pmic; |
166 | struct tps6507x_ts *ts; | ||
165 | }; | 167 | }; |
166 | 168 | ||
167 | #endif /* __LINUX_MFD_TPS6507X_H */ | 169 | #endif /* __LINUX_MFD_TPS6507X_H */ |