input: enable touch on 88pm860x
Subsystems (2)
PATCH 1/1 input: enable touch on 88pm860x
Signed-off-by Haojian Zhuang <[email protected]>
--- drivers/input/touchscreen/88pm860x-ts.c | 242 +++++++++++++++++++++++++++++++ drivers/input/touchscreen/Kconfig | 12 ++ drivers/input/touchscreen/Makefile | 1 + include/linux/mfd/88pm860x.h | 1 + 4 files changed, 256 insertions(+), 0 deletions(-) create mode 100644 drivers/input/touchscreen/88pm860x-ts.c
(quoted diff) +0 -0
b/drivers/input/touchscreen/88pm860x-ts.c
new file mode 100644
index 0000000..7944530
drivers/input/touchscreen/88pm860x-ts.c new file +242 -0
242 lines not on this page · raw message
(quoted diff) +0 -0
b/drivers/input/touchscreen/Kconfig
index 8cc453c..f4e6fd2 100644
drivers/input/touchscreen/Kconfig +12 -0
@@ -530,4 +530,16 @@ config TOUCHSCREEN_PCAP To compile this driver as a module, choose M here: the module will be called pcap_ts. + +config TOUCHSCREEN_88PM860X + tristate "Marvell 88PM860x touchscreen" + depends on MFD_88PM860X + help + Say Y here if you have a 88PM860x PMIC and want to enable + support for the built-in touchscreen. + + If unsure, say N. + + To compile this driver as a module, choose M here: the + module will be called 88pm860x-ts. endif
(quoted diff) +0 -0
b/drivers/input/touchscreen/Makefile
index 15fa62c..b278a1f 100644
drivers/input/touchscreen/Makefile +1 -0
@@ -6,6 +6,7 @@ wm97xx-ts-y := wm97xx-core.o +obj-$(CONFIG_TOUCHSCREEN_88PM860X) += 88pm860x-ts.o obj-$(CONFIG_TOUCHSCREEN_AD7877) += ad7877.o obj-$(CONFIG_TOUCHSCREEN_AD7879) += ad7879.o obj-$(CONFIG_TOUCHSCREEN_ADS7846) += ads7846.o
include/linux/mfd/88pm860x.h +1 -0
@@ -341,6 +341,7 @@ struct pm860x_touch_pdata {int tsi_prebias;/* time, slot */ int pen_prebias;/* time, slot */ int pen_prechg;/* time, slot */ +int res_x;/* resistor of Xplate */ unsigned long flags; };
Signature · 1 line
1.5.6.5