diff options
author | Shelley Chen <shchen@google.com> | 2018-10-26 14:07:16 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-11-05 09:16:41 +0000 |
commit | 715cb40963c47250c6d25624a60b65d8f0f237d3 (patch) | |
tree | 7f714e18f3af2c47b00852a6b34189d03248194e /src/mainboard/google/poppy/variants/nami/gpio.c | |
parent | 0f14df46aa8717097b032c24f8410e0520f5a755 (diff) | |
download | coreboot-715cb40963c47250c6d25624a60b65d8f0f237d3.tar.xz |
mb/google/poppy/variants/nami: Enable FP MCU
Some variants of nami will have a fingerprint MCU.
BUG=b:118503113
BRANCH=Nami
TEST=None (build and boot, but no hw yet)
Change-Id: I446dc09cdf7f84a801723cb403d2de80e0997c65
Signed-off-by: Shelley Chen <shchen@google.com>
Reviewed-on: https://review.coreboot.org/29297
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/google/poppy/variants/nami/gpio.c')
-rw-r--r-- | src/mainboard/google/poppy/variants/nami/gpio.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/mainboard/google/poppy/variants/nami/gpio.c b/src/mainboard/google/poppy/variants/nami/gpio.c index d74986a5c1..6b8b650f33 100644 --- a/src/mainboard/google/poppy/variants/nami/gpio.c +++ b/src/mainboard/google/poppy/variants/nami/gpio.c @@ -408,6 +408,29 @@ static const struct pad_config pantheon_gpio_table[] = { PAD_CFG_NC(GPP_C3), }; +static const struct pad_config fpmcu_gpio_table[] = { + /* B11 : EXT_PWR_GATE# ==> PCH_FP_PWR_EN */ + 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 */ + PAD_CFG_NF(GPP_B20, NONE, DEEP, NF1), + /* B21 : GSPI1_MISO ==> PCH_SPI_FP_MISO */ + PAD_CFG_NF(GPP_B21, NONE, DEEP, NF1), + /* B22 : GSPI1_MOSI ==> PCH_SPI_FP_MOSI */ + PAD_CFG_NF(GPP_B22, NONE, DEEP, NF1), + /* C3 : SML0CLK ==> TOUCHSCREEN_DIS# */ + PAD_CFG_GPO(GPP_C3, 0, DEEP), + /* C9 : UART0_TXD ==> FP_RST_ODL */ + PAD_CFG_GPO(GPP_C9, 1, DEEP), + /* D5 : ISH_I2C0_SDA ==> FPMCU_BOOT0 */ + PAD_CFG_GPO(GPP_D5, 0, DEEP), + /* D6 : ISH_I2C0_SCL ==> FPMCU_INT_L */ + PAD_CFG_GPI_IRQ_WAKE(GPP_D6, 20K_PU, DEEP, LEVEL, NONE), + /* D17 : DMIC_CLK1 ==> NC */ + PAD_CFG_NC(GPP_D17), +}; + const struct pad_config *variant_sku_gpio_table(size_t *num) { uint32_t sku_id = variant_board_sku(); @@ -431,6 +454,17 @@ const struct pad_config *variant_sku_gpio_table(size_t *num) *num = ARRAY_SIZE(pantheon_gpio_table); board_gpio_tables = pantheon_gpio_table; break; + case SKU_0_EKKO: + case SKU_1_EKKO: + case SKU_2_EKKO: + case SKU_3_EKKO: + case SKU_0_BARD: + case SKU_1_BARD: + case SKU_2_BARD: + case SKU_3_BARD: + *num = ARRAY_SIZE(fpmcu_gpio_table); + board_gpio_tables = fpmcu_gpio_table; + break; default: *num = ARRAY_SIZE(nami_default_sku_gpio_table); board_gpio_tables = nami_default_sku_gpio_table; |