From 183d90e847c9c601000788805d8651312d894e1c Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Mon, 6 Mar 2023 21:41:44 -0600 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/74234 Tested-by: build bot (Jenkins) Reviewed-by: Sean Rhodes --- src/mainboard/google/poppy/variants/nami/gpio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3