diff options
author | Matt DeVillier <matt.devillier@gmail.com> | 2022-12-22 21:44:14 -0600 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2022-12-23 20:58:28 +0000 |
commit | 74edda99dd4baba548daff167ee327e297079fcc (patch) | |
tree | b361159ee92142c1c7cd3e24d4f6c68b552e1367 /src/mainboard/google/poppy/variants/rammus/gpio.c | |
parent | 9d40a0be2fc7da66e328e380cfd17ffb76677ff2 (diff) |
mb/google/poppy: Implement touchscreen,digitizer power sequencing
For touchscreens/digitizers on poppy variants, drive the enable
GPIO high and hold in reset in romstage, then release from reset in
ramstage. This will allow coreboot to detect the presence of i2c
touchscreens/digitizers during ACPI SSDT generation (enabled in a
subsequent commit).
TEST=tested with the rest of patch train
Change-Id: I90ac4f09c343a28328f7d30254f0448cbe0c78b3
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70919
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin L Roth <gaumless@gmail.com>
Diffstat (limited to 'src/mainboard/google/poppy/variants/rammus/gpio.c')
-rw-r--r-- | src/mainboard/google/poppy/variants/rammus/gpio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainboard/google/poppy/variants/rammus/gpio.c b/src/mainboard/google/poppy/variants/rammus/gpio.c index c67c560c70..0c8ea73c57 100644 --- a/src/mainboard/google/poppy/variants/rammus/gpio.c +++ b/src/mainboard/google/poppy/variants/rammus/gpio.c @@ -143,7 +143,7 @@ static const struct pad_config gpio_table[] = { /* C21 : UART2_TXD ==> PCHTX_SERVORX_UART */ PAD_CFG_NF(GPP_C21, NONE, DEEP, NF1), /* C22 : UART2_RTS# ==> EN_PP3300_DX_TOUCHSCREEN */ - PAD_CFG_GPO(GPP_C22, 0, DEEP), + PAD_CFG_GPO(GPP_C22, 1, DEEP), /* C23 : UART2_CTS# ==> PCH_WP */ PAD_CFG_GPI_GPIO_DRIVER(GPP_C23, UP_20K, DEEP), @@ -202,8 +202,8 @@ static const struct pad_config gpio_table[] = { PAD_NC(GPP_E1, NONE), /* E2 : SATAXPCIE2 ==> NC */ PAD_NC(GPP_E2, NONE), - /* E3 : CPU_GP0 ==> TOUCHSCREEN I2C OPERATION ENABLE/DISABLE. */ - PAD_CFG_GPO(GPP_E3, 0, DEEP), + /* E3 : CPU_GP0 ==> TOUCHSCREEN I2C OPERATION ENABLE. */ + PAD_CFG_GPO(GPP_E3, 1, DEEP), /* E4 : SATA_DEVSLP0 ==> NC */ PAD_NC(GPP_E4, NONE), /* E5 : SATA_DEVSLP1 ==> NC */ |