aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/sarien/Kconfig
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2019-02-08 16:43:48 -0800
committerPatrick Georgi <pgeorgi@google.com>2019-02-13 13:04:22 +0000
commitf1690f0ec166c214a2c42acf2d410ea7f35a77f0 (patch)
tree852341834d010997c0319a387676f7a9626f711c /src/mainboard/google/sarien/Kconfig
parentc8464748cdfc928568ae9b2541c0eae839967db0 (diff)
mb/google/sarien: Support multiple touchscreen at same address
The Sarien board may have different touchscreen devices that use the same I2C slave address but have different requirements such as needing a special driver or ACPI configuration. In order to support this the devicetree may be configured with multiple devices at the same address and at boot time the unused devices will be disabled. Because there is no GPIO for selecting the device that is present it can instead be selected with Kconfig, or by setting a VPD key to the HID of the touchscreen device that is present. The default for Sarien devices is to not enable a touchscreen for the OS. The touchscreen selection is currently limited to the Sarien variant but this also adds the touchscreen HID for Arcada to Kconfig so it would not complain about the key not being set. BUG=b:122019253 TEST=This was tested on a Sarien board by adding a second entry to the devicetree at the same address. Without this change the SSDT is not loaded by the kernel because of the address conflict. After this change no touchscreen is enabled by default, but one can be selected with Kconfig or by setting the 'touchscreen_hid' VPD key. Change-Id: I4da12b1de0c551bcd89325fe0d8c66c6ffeb7afc Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://review.coreboot.org/c/31295 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/google/sarien/Kconfig')
-rw-r--r--src/mainboard/google/sarien/Kconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mainboard/google/sarien/Kconfig b/src/mainboard/google/sarien/Kconfig
index dc8f486104..4aea9f7470 100644
--- a/src/mainboard/google/sarien/Kconfig
+++ b/src/mainboard/google/sarien/Kconfig
@@ -97,6 +97,11 @@ config DEVICETREE
string
default "variants/$(CONFIG_VARIANT_DIR)/devicetree.cb"
+config TOUCHSCREEN_HID
+ string "Specify the touchscreen HID enabled for the OS"
+ default "WCOM48E2" if BOARD_GOOGLE_ARCADA
+ default "NONE" if BOARD_GOOGLE_SARIEN
+
config VBOOT
select HAS_RECOVERY_MRC_CACHE
select MRC_CLEAR_NORMAL_CACHE_ON_RECOVERY_RETRAIN