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>
This commit is contained in:
Matt DeVillier 2022-11-14 09:38:21 -06:00 committed by Eric Lai
parent 3c148f7e61
commit 150b809edf
1 changed files with 5 additions and 0 deletions

View File

@ -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[] = { 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) */ /* GPIO_133 - APU_EDP_BKLTEN_L (backlight - Active LOW) */
PAD_GPO(GPIO_133, HIGH), PAD_GPO(GPIO_133, HIGH),
}; };