diff options
author | Subrata Banik <subratabanik@google.com> | 2023-02-22 10:22:03 +0000 |
---|---|---|
committer | Subrata Banik <subratabanik@google.com> | 2023-02-22 11:02:29 +0000 |
commit | 9ac47c871f75dd17e27892293c7b94e4691631d0 (patch) | |
tree | 9724bfd25eab96e45991c2ae45c319e8c958abb2 /src/mainboard/google/poppy/variants/nami/gpio.c | |
parent | fb660c35b507e6d7775c0647bc267d0294bf172d (diff) |
Revert "mb/google/poppy: Nami - invoke power cycle of FPMCU on startup"
This reverts commit 2e6fa8206e0a3bdd2e53542b6377fe2b37e3f26e.
Reason for revert: causing `redefinition` issue.
src/mainboard/google/poppy/variants/nami/gpio.c:527:26: error: redefinition of 'variant_romstage_gpio_table'
const struct pad_config *variant_romstage_gpio_table(size_t *num)
^
src/mainboard/google/poppy/variants/nami/gpio.c:426:26: note: previous definition is here
const struct pad_config *variant_romstage_gpio_table(size_t *num)
^
Change-Id: I107cce8bf3a5bf38edb39b9d46512ee0d467d354
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/73210
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/mainboard/google/poppy/variants/nami/gpio.c')
-rw-r--r-- | src/mainboard/google/poppy/variants/nami/gpio.c | 44 |
1 files changed, 4 insertions, 40 deletions
diff --git a/src/mainboard/google/poppy/variants/nami/gpio.c b/src/mainboard/google/poppy/variants/nami/gpio.c index 4ee19b68ae..8df93f208e 100644 --- a/src/mainboard/google/poppy/variants/nami/gpio.c +++ b/src/mainboard/google/poppy/variants/nami/gpio.c @@ -404,7 +404,7 @@ static const struct pad_config fpmcu_gpio_table[] = { /* B1 : CORE_VID1 ==> FPMCU_INT_L */ PAD_CFG_GPI_SCI(GPP_B1, UP_20K, DEEP, EDGE_SINGLE, INVERT), /* B11 : EXT_PWR_GATE# ==> PCH_FP_PWR_EN */ - PAD_CFG_GPO(GPP_B11, 0, DEEP), + PAD_CFG_GPO(GPP_B11, 1, DEEP), /* B19 : GSPI1_CS# ==> PCH_SPI_FP_CS# */ PAD_CFG_NF(GPP_B19, NONE, DEEP, NF1), /* B20 : GSPI1_CLK ==> PCH_SPI_FP_CLK */ @@ -416,48 +416,13 @@ static const struct pad_config fpmcu_gpio_table[] = { /* C3 : SML0CLK ==> TOUCHSCREEN_DIS# */ PAD_CFG_GPO(GPP_C3, 0, DEEP), /* C9 : UART0_TXD ==> FP_RST_ODL */ - PAD_CFG_GPO(GPP_C9, 0, DEEP), + PAD_CFG_GPO(GPP_C9, 1, DEEP), /* D5 : ISH_I2C0_SDA ==> FPMCU_BOOT0 */ PAD_CFG_GPO(GPP_D5, 0, DEEP), /* D17 : DMIC_CLK1 ==> NC */ PAD_NC(GPP_D17, NONE), }; -const struct pad_config *variant_romstage_gpio_table(size_t *num) -{ - uint32_t sku_id = variant_board_sku(); - const struct pad_config *board_gpio_tables; - - switch (sku_id) { - case SKU_0_EKKO: - case SKU_1_EKKO: - case SKU_2_EKKO: - case SKU_3_EKKO: - case SKU_4_EKKO: - case SKU_5_EKKO: - case SKU_6_EKKO: - case SKU_7_EKKO: - case SKU_0_BARD: - case SKU_1_BARD: - case SKU_2_BARD: - case SKU_3_BARD: - case SKU_4_BARD: - case SKU_5_BARD: - case SKU_6_BARD: - case SKU_7_BARD: - *num = ARRAY_SIZE(fpmcu_gpio_table); - board_gpio_tables = fpmcu_gpio_table; - break; - default: - /* Initialized in variant_sku_gpio_table */ - *num = 0; - board_gpio_tables = NULL; - break; - } - return board_gpio_tables; -} - - const struct pad_config *variant_sku_gpio_table(size_t *num) { uint32_t sku_id = variant_board_sku(); @@ -503,9 +468,8 @@ const struct pad_config *variant_sku_gpio_table(size_t *num) case SKU_5_BARD: case SKU_6_BARD: case SKU_7_BARD: - /* Initialized in variant_romstage_gpio_table */ - *num = 0; - board_gpio_tables = NULL; + *num = ARRAY_SIZE(fpmcu_gpio_table); + board_gpio_tables = fpmcu_gpio_table; break; default: *num = ARRAY_SIZE(nami_default_sku_gpio_table); |