mb/google/kahlee: Implement touchscreen power sequencing
commit150b809edf83d938b9dbb1bb94823b32393dd3fd
authorMatt DeVillier <matt.devillier@amd.corp-partner.google.com>
Mon, 14 Nov 2022 15:38:21 +0000 (14 09:38 -0600)
committerEric Lai <eric_lai@quanta.corp-partner.google.com>
Wed, 16 Nov 2022 03:02:48 +0000 (16 03:02 +0000)
treed3c53ae73acea97d566f40b608ab89a545528315
parent3c148f7e61566f40988259cb26567530d1c24770
mb/google/kahlee: Implement touchscreen power sequencing

As all variants have a touchscreen option, in baseboard table set the
enable GPIO high and hold in reset during romstage, then release reset
in ramstage. This will allow the touchscreen to make use of the runtime
I2C detect feature (enabled in a subsequent commit) so that an ACPI
device entry is created only for the touchscreen actually present.

This mirrors similar changes made for skyrim, guybrush, and zork.

TEST=tested with rest of patch train

Change-Id: Id235815904dfc093549a1ed529e19974010977c7
Signed-off-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69547
Reviewed-by: Martin L Roth <gaumless@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/mainboard/google/kahlee/variants/baseboard/gpio.c