diff options
author | Matt DeVillier <matt.devillier@gmail.com> | 2023-03-06 21:41:44 -0600 |
---|---|---|
committer | Matt DeVillier <matt.devillier@gmail.com> | 2023-04-10 15:12:52 +0000 |
commit | 183d90e847c9c601000788805d8651312d894e1c (patch) | |
tree | c06850cb09a275fb82f8ed4979131b3b1e241bab /src/mainboard/google | |
parent | e22ab053d36e93776d4db6ec076fee7a8f7406e6 (diff) |
mb/google/poppy/var/nami: Fix stylus runtime detection
Stylus reset GPIO needs to be held low in romstage, released
in ramstage for runtime i2c detection to pick it up.
TEST=build/boot AKALI360 variant, verify stylus detected in cbmem,
functional in OS.
Change-Id: I2e7f2a28f6b3a71b0c8fc367168cffbe3f064663
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74234
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r-- | src/mainboard/google/poppy/variants/nami/gpio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mainboard/google/poppy/variants/nami/gpio.c b/src/mainboard/google/poppy/variants/nami/gpio.c index 8df93f208e..68f0f5b0d7 100644 --- a/src/mainboard/google/poppy/variants/nami/gpio.c +++ b/src/mainboard/google/poppy/variants/nami/gpio.c @@ -153,7 +153,7 @@ static const struct pad_config gpio_table[] = { /* D2 : SPI1_MISO ==> PEN_PDCT# */ PAD_CFG_GPI_APIC_HIGH(GPP_D2, NONE, PLTRST), /* D3 : SPI1_MOSI ==> PEN_RST# */ - PAD_CFG_GPO(GPP_D3, 0, DEEP), + PAD_CFG_GPO(GPP_D3, 1, DEEP), /* D4 : FASHTRIG ==> NC */ PAD_NC(GPP_D4, NONE), /* D5 : ISH_I2C0_SDA ==> NC */ @@ -486,6 +486,9 @@ static const struct pad_config romstage_gpio_table[] = { PAD_CFG_GPO(GPP_B4, 1, DEEP), /* B3 : CPU_GP2 ==> TOUCHSCREEN_RST# */ PAD_CFG_GPO(GPP_B3, 0, DEEP), + /* D3 : SPI1_MOSI ==> PEN_RST# */ + PAD_CFG_GPO(GPP_D3, 0, DEEP), + }; const struct pad_config *variant_romstage_gpio_table(size_t *num) |