Skip to content

Commit 64c584c

Browse files
WhatAmISupposedToPutHerejannau
authored andcommitted
input: apple_z2: Add a driver for Apple Z2 touchscreens
Adds a driver for Apple touchscreens using the Z2 protocol. Signed-off-by: Sasha Finkelstein <[email protected]> Signed-off-by: Janne Grunau <[email protected]>
1 parent 2f2766d commit 64c584c

File tree

3 files changed

+512
-0
lines changed

3 files changed

+512
-0
lines changed

drivers/input/touchscreen/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,19 @@ config TOUCHSCREEN_ADC
103103
To compile this driver as a module, choose M here: the
104104
module will be called resistive-adc-touch.ko.
105105

106+
config TOUCHSCREEN_APPLE_Z2
107+
tristate "Apple Z2 touchscreens"
108+
default ARCH_APPLE
109+
depends on SPI && OF
110+
help
111+
Say Y here if you have an Apple device with
112+
a touchscreen or a touchbar.
113+
114+
If unsure, say N.
115+
116+
To compile this driver as a module, choose M here: the
117+
module will be called apple_z2.
118+
106119
config TOUCHSCREEN_AR1021_I2C
107120
tristate "Microchip AR1020/1021 i2c touchscreen"
108121
depends on I2C && OF

drivers/input/touchscreen/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ obj-$(CONFIG_TOUCHSCREEN_AD7879_I2C) += ad7879-i2c.o
1515
obj-$(CONFIG_TOUCHSCREEN_AD7879_SPI) += ad7879-spi.o
1616
obj-$(CONFIG_TOUCHSCREEN_ADC) += resistive-adc-touch.o
1717
obj-$(CONFIG_TOUCHSCREEN_ADS7846) += ads7846.o
18+
obj-$(CONFIG_TOUCHSCREEN_APPLE_Z2) += apple_z2.o
1819
obj-$(CONFIG_TOUCHSCREEN_AR1021_I2C) += ar1021_i2c.o
1920
obj-$(CONFIG_TOUCHSCREEN_ATMEL_MXT) += atmel_mxt_ts.o
2021
obj-$(CONFIG_TOUCHSCREEN_AUO_PIXCIR) += auo-pixcir-ts.o

0 commit comments

Comments
 (0)