From 4df35b6ec88be35a946565438a4c5c51fc3ad3b9 Mon Sep 17 00:00:00 2001 From: Selma Bensaid Date: Tue, 21 Sep 2021 15:57:51 -0700 Subject: mb/intel/adlrvp_m: correct SSD power sequence This is to fix SSD detectiong failure in warm boot observed on ADL-M RVP. This patch implements the coreect power sequence: SSD_PREST Low - SSD_PWR_EN High - SSD_PREST High Signed-off-by: Selma Bensaid Change-Id: If6f9fc17a30c28c2948809cdbade9919d4ddd6c5 Reviewed-on: https://review.coreboot.org/c/coreboot/+/58027 Tested-by: build bot (Jenkins) Reviewed-by: EricR Lai --- src/mainboard/intel/adlrvp/early_gpio_m.c | 11 +++++++++++ src/mainboard/intel/adlrvp/gpio_m.c | 4 ---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/mainboard/intel/adlrvp/early_gpio_m.c b/src/mainboard/intel/adlrvp/early_gpio_m.c index 79349b1be61e..915240ce0cc5 100644 --- a/src/mainboard/intel/adlrvp/early_gpio_m.c +++ b/src/mainboard/intel/adlrvp/early_gpio_m.c @@ -12,6 +12,11 @@ static const struct pad_config early_gpio_table[] = { /* WWAN_PWR_EN */ PAD_CFG_GPO(GPP_A8, 1, DEEP), + /* H0 : PCH_SSD_RST# */ + PAD_CFG_GPO(GPP_H0, 0, PLTRST), + /* H13 : CPU_SSD_RST# */ + PAD_CFG_GPO(GPP_H13, 0, PLTRST), + /* CPU PCIe VGPIO for RP0 */ PAD_CFG_NF_VWEN(GPP_vGPIO_PCIE_0, NONE, DEEP, NF1), PAD_CFG_NF_VWEN(GPP_vGPIO_PCIE_1, NONE, DEEP, NF1), @@ -111,6 +116,12 @@ static const struct pad_config early_gpio_table[] = { PAD_CFG_NF(GPP_F13, NONE, DEEP, NF4), /* F12 : GSPI1_MOSI */ PAD_CFG_NF(GPP_F12, NONE, DEEP, NF4), + + /* D10 : PCH_SSD_PWR_EN */ + PAD_CFG_GPO(GPP_D10, 1, PLTRST), + /* D16 : CPU_SSD_PWR_EN */ + PAD_CFG_GPO(GPP_D16, 1, PLTRST), + }; static const struct pad_config early_uart_gpio_table[] = { diff --git a/src/mainboard/intel/adlrvp/gpio_m.c b/src/mainboard/intel/adlrvp/gpio_m.c index 68c561a9dfc0..6f0568dbdab6 100644 --- a/src/mainboard/intel/adlrvp/gpio_m.c +++ b/src/mainboard/intel/adlrvp/gpio_m.c @@ -90,12 +90,8 @@ static const struct pad_config gpio_table[] = { /* D9 : WWAN_FCP_POWER_OFF_N */ PAD_CFG_GPO(GPP_D9, 1, PLTRST), - /* D10 : PCH_SSD_PWR_EN */ - PAD_CFG_GPO(GPP_D10, 1, PLTRST), /* H0 : PCH_SSD_RST# */ PAD_CFG_GPO(GPP_H0, 1, PLTRST), - /* D16 : CPU_SSD_PWR_EN */ - PAD_CFG_GPO(GPP_D16, 1, PLTRST), /* H13 : CPU_SSD_RST# */ PAD_CFG_GPO(GPP_H13, 1, PLTRST), -- cgit v1.2.3