diff options
author | Duncan Laurie <dlaurie@google.com> | 2019-02-08 16:43:48 -0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-02-13 13:04:22 +0000 |
commit | f1690f0ec166c214a2c42acf2d410ea7f35a77f0 (patch) | |
tree | 852341834d010997c0319a387676f7a9626f711c /src/include/main_decl.h | |
parent | c8464748cdfc928568ae9b2541c0eae839967db0 (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/include/main_decl.h')
0 files changed, 0 insertions, 0 deletions