From c55012bd2ad6646c91c443fe70347b79fa371390 Mon Sep 17 00:00:00 2001 From: Raihow Shi Date: Tue, 15 Mar 2022 15:13:45 +0800 Subject: mb/google/brask/variants/moli: update GPIOs for moli Follow the Moli GPIO Table_20220324.xlsx to update it. 1.Set A15 as the default value. 2.Set A14, A19 NC. 3.Set C3, C4 as the default value. 4.Set D9 as the default value. 5.Set E5, E13 as the default value. 6.Set R4, R5 as the default value. 7.Update E14. 8.Set E12 as the default value. 9.Set D16 as the default value. BUG=b:220821454 TEST=emerge-brask coreboot. Signed-off-by: Raihow Shi Change-Id: Ia54256244111a99cb130b74f78c37815099a021a Reviewed-on: https://review.coreboot.org/c/coreboot/+/62802 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak Reviewed-by: Paul Menzel --- src/mainboard/google/brya/variants/moli/gpio.c | 29 +++++++------------------- 1 file changed, 8 insertions(+), 21 deletions(-) (limited to 'src/mainboard') diff --git a/src/mainboard/google/brya/variants/moli/gpio.c b/src/mainboard/google/brya/variants/moli/gpio.c index 6ba605e016..59bb1dfe05 100644 --- a/src/mainboard/google/brya/variants/moli/gpio.c +++ b/src/mainboard/google/brya/variants/moli/gpio.c @@ -7,8 +7,12 @@ /* Pad configuration in ramstage */ static const struct pad_config override_gpio_table[] = { - /* A15 : USB_OC2# ==> DDIC_DP_HPD4 */ - PAD_CFG_NF(GPP_A15, NONE, DEEP, NF2), + /* A14 : USB_OC1# ==> NC */ + PAD_NC(GPP_A14, NONE), + /* A19 : DDSP_HPD1 ==> NC */ + PAD_NC(GPP_A19, NONE), + /* A20 : DDSP_HPD2 ==> DDIC_DP_HPD4 */ + PAD_CFG_NF(GPP_A20, NONE, DEEP, NF1), /* A21 : DDPC_CTRCLK ==> DDIC_DP_CTRCLK */ PAD_CFG_NF(GPP_A21, NONE, DEEP, NF1), /* A22 : DDPC_CTRLDATA ==> DDIC_DP_CTRLDATA */ @@ -19,30 +23,17 @@ static const struct pad_config override_gpio_table[] = { /* B3 : PROC_GP2 ==> EMMC_PERST_L */ PAD_CFG_GPO(GPP_B3, 1, DEEP), - /* C3 : SML0CLK ==> PCH_SML0_CLK */ - PAD_CFG_NF(GPP_C3, NONE, DEEP, NF1), - /* C4 : SML0DATA ==> PCH_SML0_DATA */ - PAD_CFG_NF(GPP_C4, NONE, DEEP, NF1), - /* D6 : SRCCLKREQ1# ==> EMMC_CLKREQ_ODL */ PAD_CFG_NF(GPP_D6, NONE, DEEP, NF1), - /* D9 : ISH_SPI_CS# ==> NC */ - PAD_NC(GPP_D9, NONE), /* D14 : ISH_UART0_TXD ==> USB_A1_RT_RST_ODL */ PAD_CFG_GPO(GPP_D14, 1, DEEP), - /* D16 : ISH_UART0_CTS# ==> USB_A2_RT_RST_ODL */ - PAD_CFG_GPO(GPP_D16, 1, DEEP), /* E1 : THC0_SPI1_IO2 ==> B2B_HDMICARD_DETN */ PAD_CFG_GPI(GPP_E1, NONE, DEEP), /* E2 : THC0_SPI1_IO3 ==> B2B_DPCARD_DETN */ PAD_CFG_GPI(GPP_E2, NONE, DEEP), - /* E5 : SATA_DEVSLP1 ==> USB_A0_RT_RST_ODL */ - PAD_CFG_GPO(GPP_E5, 1, DEEP), - /* E12 : THC0_SPI1_IO1 ==> B2B_USBCCARD_DETN */ - PAD_NC(GPP_E12, NONE), - /* E13 : THC0_SPI1_IO2 ==> B2B_SERIAL_DETN */ - PAD_CFG_GPI(GPP_E13, NONE, DEEP), + /* E14 : DDSP_HPDA ==> HDMI2_HPD */ + PAD_CFG_GPI(GPP_E14, NONE, DEEP), /* E20 : DDP2_CTRLCLK ==> EN_PP3300_EMMC */ PAD_CFG_GPO(GPP_E20, 1, DEEP), /* E21 : DDP2_CTRLDATA ==> NC */ @@ -51,10 +42,6 @@ static const struct pad_config override_gpio_table[] = { /* H19 : SRCCLKREQ4# ==> LAN_I225V_CLKREQ_ODL */ PAD_CFG_NF(GPP_H19, NONE, DEEP, NF1), - /* R4 : HDA_RST# ==> NC */ - PAD_NC(GPP_R4, NONE), - /* R5 : HDA_SDI1 ==> NC */ - PAD_NC(GPP_R5, NONE), /* R6 : I2S2_TXD ==> NC */ PAD_NC(GPP_R6, NONE), /* R7 : I2S2_RXD ==> NC */ -- cgit v1.2.3