From 349ecabe2c601395cb8efd51f75941adf1b050af Mon Sep 17 00:00:00 2001 From: Xu Jianqun Date: Mon, 28 Dec 2015 15:34:39 +0800 Subject: [PATCH] ARM64: dts: rockchip: support gt9xx for Rockchip platform Add support gt9xx driver for Rockchip platform goodix touchscreen. There is a goodix driver on upstream but it not work well, so use the old driver until someone debug the upstream driver. Change-Id: Id8711a63150da4bdcd8e78f3b2a82157e1b3de4f Signed-off-by: Xu Jianqun --- drivers/input/touchscreen/Kconfig | 9 +++++++++ drivers/input/touchscreen/Makefile | 1 + drivers/input/touchscreen/gt9xx/gt9xx.h | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/Kconfig b/drivers/input/touchscreen/Kconfig index 2a80675cfd94..ec64cd0bfee6 100644 --- a/drivers/input/touchscreen/Kconfig +++ b/drivers/input/touchscreen/Kconfig @@ -390,6 +390,15 @@ config TOUCHSCREEN_GOODIX To compile this driver as a module, choose M here: the module will be called goodix. +config TOUCHSCREEN_GT9XX + tristate "Goodix gt9xx support for rockchip platform" + depends on I2C && ARCH_ROCKCHIP + help + Say Y here if you have a touchscreen interface using the gt9xx + on Rockchip platform, and your board-specific initialization + code includes that in its table of IIC devices. + If unsure, say N. + config TOUCHSCREEN_HIDEEP tristate "HiDeep Touch IC" depends on I2C diff --git a/drivers/input/touchscreen/Makefile b/drivers/input/touchscreen/Makefile index 5911a4190cd2..f412a93b9d32 100644 --- a/drivers/input/touchscreen/Makefile +++ b/drivers/input/touchscreen/Makefile @@ -44,6 +44,7 @@ obj-$(CONFIG_TOUCHSCREEN_EGALAX_SERIAL) += egalax_ts_serial.o obj-$(CONFIG_TOUCHSCREEN_EXC3000) += exc3000.o obj-$(CONFIG_TOUCHSCREEN_FUJITSU) += fujitsu_ts.o obj-$(CONFIG_TOUCHSCREEN_GOODIX) += goodix.o +obj-$(CONFIG_TOUCHSCREEN_GT9XX) += gt9xx/ obj-$(CONFIG_TOUCHSCREEN_HIDEEP) += hideep.o obj-$(CONFIG_TOUCHSCREEN_ILI210X) += ili210x.o obj-$(CONFIG_TOUCHSCREEN_IMX6UL_TSC) += imx6ul_tsc.o diff --git a/drivers/input/touchscreen/gt9xx/gt9xx.h b/drivers/input/touchscreen/gt9xx/gt9xx.h index 3d8a7631b459..bf390a2c7f53 100644 --- a/drivers/input/touchscreen/gt9xx/gt9xx.h +++ b/drivers/input/touchscreen/gt9xx/gt9xx.h @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include #include #include