diff options
author | Yunlong Jia <yunlong.jia@ecs.corp-partner.google.com> | 2023-06-21 09:56:25 +0000 |
---|---|---|
committer | Subrata Banik <subratabanik@google.com> | 2023-07-18 08:18:34 +0000 |
commit | e40cdd5ae4ea1a1e5fb3f693d5111a02e0b1aa28 (patch) | |
tree | d7270c67679de3058b975fe38c4214a43193b39c /src/mainboard/google/brya/variants/gothrax/gpio.c | |
parent | 92904bcdff3efc485fbc25dbac51dcf3d70b1134 (diff) |
mb/google/nissa/var/gothrax: Initialise overridetree
Add an initial overridetree for gothrax based on the schematic.
BUG=b:274707912
BRANCH=None
TEST=emerge-nissa coreboot
Signed-off-by: Yunlong Jia <yunlong.jia@ecs.corp-partner.google.com>
Change-Id: Idfd9788a75f9c342f85d6e1a3d54327d64797dd8
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76013
Reviewed-by: Dtrain Hsu <dtrain_hsu@compal.corp-partner.google.com>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Derek Huang <derekhuang@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/brya/variants/gothrax/gpio.c')
-rw-r--r-- | src/mainboard/google/brya/variants/gothrax/gpio.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/variants/gothrax/gpio.c b/src/mainboard/google/brya/variants/gothrax/gpio.c index cc2ee736d6..ab3b641f8c 100644 --- a/src/mainboard/google/brya/variants/gothrax/gpio.c +++ b/src/mainboard/google/brya/variants/gothrax/gpio.c @@ -26,6 +26,9 @@ static const struct pad_config override_gpio_table[] = { /* B6 : SOC_I2C_SUB_SCL */ PAD_NC_LOCK(GPP_B6, NONE, LOCK_CONFIG), + /* C1 : SMBDATA ==> TCHSCR_RST_L */ + PAD_CFG_GPO(GPP_C1, 1, DEEP), + /* D3 : WCAM_RST_L */ PAD_NC_LOCK(GPP_D3, NONE, LOCK_CONFIG), /* D15 : EN_PP2800_WCAM_X */ @@ -69,6 +72,11 @@ static const struct pad_config early_gpio_table[] = { }; static const struct pad_config romstage_gpio_table[] = { + /* Enable touchscreen, hold in reset */ + /* C0 : SMBCLK ==> EN_PP3300_TCHSCR_X */ + PAD_CFG_GPO(GPP_C0, 1, DEEP), + /* C1 : SMBDATA ==> TCHSCR_RST_L */ + PAD_CFG_GPO(GPP_C1, 0, DEEP), /* H12 : UART0_RTS# ==> SD_PERST_L */ PAD_CFG_GPO(GPP_H12, 1, DEEP), /* H20 : IMGCLKOUT1 ==> WLAN_PERST_L */ |