diff options
author | Eric Lai <ericr_lai@compal.corp-partner.google.com> | 2022-02-08 11:42:13 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-02-09 23:31:01 +0000 |
commit | e8f5c20282dfb19cedaab163ddb259f9f1211a12 (patch) | |
tree | 034a665b3f8b475f7c58721d37e6cfed5283c9e3 /src | |
parent | 4c6f074e0bd9e3ef1e3648157528485a09129cd8 (diff) |
mb/google/var/vell: Add gpios to lock
Variant should honor locked gpios from baseboard, but not the last.
Variant can add more gpios to lock if needed.
BUG=b:216583542
TEST='emerge-brya coreboot chromeos-bootimage', flash and verify that
vell boots successfully to kernel.
Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com>
Change-Id: I0c39d06e3b2f39db88d924205786bfa1b27df3fe
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61704
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nick Vaccaro <nvaccaro@google.com>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/brya/variants/vell/gpio.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mainboard/google/brya/variants/vell/gpio.c b/src/mainboard/google/brya/variants/vell/gpio.c index 6dbfb69a12..861676d472 100644 --- a/src/mainboard/google/brya/variants/vell/gpio.c +++ b/src/mainboard/google/brya/variants/vell/gpio.c @@ -11,19 +11,19 @@ static const struct pad_config override_gpio_table[] = { PAD_NC(GPP_A11, NONE), /* B2 : VRALERT# ==> RGB_RST_ODL */ - PAD_CFG_GPO(GPP_B2, 1, DEEP), + PAD_CFG_GPO_LOCK(GPP_B2, 1, LOCK_CONFIG), /* B15 : TIME_SYNC0 ==> NC */ - PAD_NC(GPP_B15, NONE), + PAD_NC_LOCK(GPP_B15, NONE, LOCK_CONFIG), /* C3 : SML0CLK ==> NC */ PAD_NC(GPP_C3, NONE), /* D3 : ISH_GP3 ==> EN_PP3300_SSD */ - PAD_CFG_GPO(GPP_D3, 1, DEEP), + PAD_CFG_GPO_LOCK(GPP_D3, 1, LOCK_CONFIG), /* D11 : ISH_SPI_MISO ==> USB_C3_LSX_TX */ - PAD_CFG_NF(GPP_D11, NONE, DEEP, NF4), + PAD_CFG_NF_LOCK(GPP_D11, NONE, NF4, LOCK_CONFIG), /* D12 : ISH_SPI_MOSI ==> USB_C3_LSX_RX_STRAP */ - PAD_CFG_NF(GPP_D12, NONE, DEEP, NF4), + PAD_CFG_NF_LOCK(GPP_D12, NONE, NF4, LOCK_CONFIG), /* E3 : PROC_GP0 ==> MEM_STRAP_0 */ PAD_CFG_GPI(GPP_E3, NONE, DEEP), @@ -32,13 +32,13 @@ static const struct pad_config override_gpio_table[] = { /* E7 : PROC_GP1 ==> MEM_STRAP_3 */ PAD_CFG_GPI(GPP_E7, NONE, DEEP), /* E10 : THC0_SPI1_CS# ==> UWB_GSPI0_CS */ - PAD_CFG_NF(GPP_E10, NONE, DEEP, NF2), + PAD_CFG_NF_LOCK(GPP_E10, NONE, NF2, LOCK_CONFIG), /* E11 : THC0_SPI1_CLK ==> UWB_CLK */ - PAD_CFG_NF(GPP_E11, NONE, DEEP, NF2), + PAD_CFG_NF_LOCK(GPP_E11, NONE, NF2, LOCK_CONFIG), /* E12 : THC0_SPI1_IO1 ==> UWB_GSPI0_DI */ - PAD_CFG_NF(GPP_E12, NONE, DEEP, NF3), + PAD_CFG_NF_LOCK(GPP_E12, NONE, NF3, LOCK_CONFIG), /* E13 : THC0_SPI1_IO2 ==> UWB_GSPI0_DO */ - PAD_CFG_NF(GPP_E13, NONE, DEEP, NF3), + PAD_CFG_NF_LOCK(GPP_E13, NONE, NF3, LOCK_CONFIG), /* E22 : DDPA_CTRLCLK ==> WWAN_CONFIG0 */ PAD_CFG_GPI(GPP_E22, NONE, DEEP), /* E23 : DDPA_CTRLDATA ==> USB_C3_OC_ODL */ @@ -52,9 +52,9 @@ static const struct pad_config override_gpio_table[] = { /* H7 : IC1_SCL ==> PCH_I2C_TPM_SCL */ PAD_CFG_NF_LOCK(GPP_H7, NONE, NF1, LOCK_CONFIG), /* H12 : I2C7_SDA ==> UWB_SDA */ - PAD_CFG_NF(GPP_H12, NONE, DEEP, NF1), + PAD_CFG_NF_LOCK(GPP_H12, NONE, NF1, LOCK_CONFIG), /* H13 : I2C7_SCL ==> UWB_SCL */ - PAD_CFG_NF(GPP_H13, NONE, DEEP, NF1), + PAD_CFG_NF_LOCK(GPP_H13, NONE, NF1, LOCK_CONFIG), /* H15 : DDPB_CTRLCLK ==> USB_C3_AUX_DC_P */ PAD_CFG_NF(GPP_H15, NONE, DEEP, NF6), /* H17 : DDPB_CTRLDATA ==> USB_C3_AUX_DC_N */ |