David Wu has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/34795 )
Change subject: mb/google/hatch/var/kindred: Config GPIOs for eMMC SKUs ......................................................................
mb/google/hatch/var/kindred: Config GPIOs for eMMC SKUs
Config GPIOs for eMMC SKUs
BUG=b:132918661 TEST=Verify SSD is disabled when SKU ID = 2/4/21/22
Change-Id: I9f678a40555dbc841487811cc1f680b211a51a89 Signed-off-by: David Wu david_wu@quanta.corp-partner.google.com --- M src/mainboard/google/hatch/variants/kindred/gpio.c 1 file changed, 22 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/34795/1
diff --git a/src/mainboard/google/hatch/variants/kindred/gpio.c b/src/mainboard/google/hatch/variants/kindred/gpio.c index 86db690..ad0dda1 100644 --- a/src/mainboard/google/hatch/variants/kindred/gpio.c +++ b/src/mainboard/google/hatch/variants/kindred/gpio.c @@ -81,6 +81,16 @@ PAD_NC(GPP_F22, NONE), };
+/* Config GPIOs for eMMC SKUs */ +static const struct pad_config emmc_sku_gpio_table[] = { + /* E1 : M2_SSD_PEDET */ + PAD_NC(GPP_E1, NONE), + /* E4 : M2_SSD_PE_WAKE_ODL */ + PAD_NC(GPP_E4, NONE), + /* E5 : SATA_DEVSLP1 */ + PAD_NC(GPP_E5, NONE), +}; + static const struct pad_config default_sku_gpio_table[] = { /* F11 : EMMC_CMD ==> EMMC_CMD */ PAD_CFG_NF(GPP_F11, NONE, DEEP, NF1), @@ -118,13 +128,25 @@ board_gpio_tables = ssd_sku_gpio_table; break; case 2: + *num = ARRAY_SIZE(emmc_sku_gpio_table); + board_gpio_tables = emmc_sku_gpio_table; + break; case 3: *num = ARRAY_SIZE(ssd_sku_gpio_table); board_gpio_tables = ssd_sku_gpio_table; break; case 4: + *num = ARRAY_SIZE(emmc_sku_gpio_table); + board_gpio_tables = emmc_sku_gpio_table; + break; case 21: + *num = ARRAY_SIZE(emmc_sku_gpio_table); + board_gpio_tables = emmc_sku_gpio_table; + break; case 22: + *num = ARRAY_SIZE(emmc_sku_gpio_table); + board_gpio_tables = emmc_sku_gpio_table; + break; case 23: *num = ARRAY_SIZE(ssd_sku_gpio_table); board_gpio_tables = ssd_sku_gpio_table;