summaryrefslogtreecommitdiff
path: root/src/mainboard/google/poppy/variants/nami
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2022-12-22 21:44:14 -0600
committerMartin L Roth <gaumless@gmail.com>2022-12-23 20:58:28 +0000
commit74edda99dd4baba548daff167ee327e297079fcc (patch)
treeb361159ee92142c1c7cd3e24d4f6c68b552e1367 /src/mainboard/google/poppy/variants/nami
parent9d40a0be2fc7da66e328e380cfd17ffb76677ff2 (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/nami')
-rw-r--r--src/mainboard/google/poppy/variants/nami/gpio.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/mainboard/google/poppy/variants/nami/gpio.c b/src/mainboard/google/poppy/variants/nami/gpio.c
index b5ec95405e..8df93f208e 100644
--- a/src/mainboard/google/poppy/variants/nami/gpio.c
+++ b/src/mainboard/google/poppy/variants/nami/gpio.c
@@ -57,9 +57,9 @@ static const struct pad_config gpio_table[] = {
/* B2 : VRALERT# ==> NC */
PAD_NC(GPP_B2, NONE),
/* B3 : CPU_GP2 ==> TOUCHSCREEN_RST# */
- PAD_CFG_GPO(GPP_B3, 0, DEEP),
+ PAD_CFG_GPO(GPP_B3, 1, DEEP),
/* B4 : CPU_GP3 ==> EN_PP3300_DX_TOUCHSCREEN */
- PAD_CFG_GPO(GPP_B4, 0, DEEP),
+ PAD_CFG_GPO(GPP_B4, 1, DEEP),
/* B5 : SRCCLKREQ0# ==> NC */
PAD_NC(GPP_B5, NONE),
/* B6 : SRCCLKREQ1# ==> CLKREQ_PCIE#1 */
@@ -478,3 +478,18 @@ const struct pad_config *variant_sku_gpio_table(size_t *num)
}
return board_gpio_tables;
}
+
+
+static const struct pad_config romstage_gpio_table[] = {
+ /* Enable touchscreen, hold in reset */
+ /* B4 : CPU_GP3 ==> EN_PP3300_DX_TOUCHSCREEN */
+ PAD_CFG_GPO(GPP_B4, 1, DEEP),
+ /* B3 : CPU_GP2 ==> TOUCHSCREEN_RST# */
+ PAD_CFG_GPO(GPP_B3, 0, DEEP),
+};
+
+const struct pad_config *variant_romstage_gpio_table(size_t *num)
+{
+ *num = ARRAY_SIZE(romstage_gpio_table);
+ return romstage_gpio_table;
+}