From 150b809edf83d938b9dbb1bb94823b32393dd3fd Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Mon, 14 Nov 2022 09:38:21 -0600 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/69547 Reviewed-by: Martin L Roth Tested-by: build bot (Jenkins) --- src/mainboard/google/kahlee/variants/baseboard/gpio.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mainboard/google/kahlee/variants') diff --git a/src/mainboard/google/kahlee/variants/baseboard/gpio.c b/src/mainboard/google/kahlee/variants/baseboard/gpio.c index d421e7d212..8f228353f4 100644 --- a/src/mainboard/google/kahlee/variants/baseboard/gpio.c +++ b/src/mainboard/google/kahlee/variants/baseboard/gpio.c @@ -69,6 +69,11 @@ static const struct soc_amd_gpio gpio_wlan_rst_early_reset[] = { }; static const struct soc_amd_gpio gpio_set_stage_rom[] = { + /* Enable touchscreen, hold in reset */ + /* GPIO_76 - EN_PP3300_TOUCHSCREEN */ + PAD_GPO(GPIO_76, HIGH), + /* GPIO_85 - TOUCHSCREEN_RST (Active High) */ + PAD_GPO(GPIO_85, HIGH), /* GPIO_133 - APU_EDP_BKLTEN_L (backlight - Active LOW) */ PAD_GPO(GPIO_133, HIGH), }; -- cgit v1.2.3