mb/amd/crater: Make NVMe reset GPIO configurable
If you reworked the board its possible NVME reset is attached to GPIO 40 instead of 24. Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com> Change-Id: Ib2a10701ed2c3e677419f700a69277c2cde588f5 Reviewed-on: https://review.coreboot.org/c/coreboot/+/90206 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
parent
67bf203e52
commit
e8599956dc
4 changed files with 16 additions and 0 deletions
|
|
@ -98,6 +98,12 @@ config ENABLE_M2_SSD
|
|||
help
|
||||
Use GPP[8:11] connected to M.2 SSD
|
||||
|
||||
config NVME_RST_GPIO40
|
||||
bool "NVMe Reset on GPIO40"
|
||||
help
|
||||
Select if the NVMe reset pin is connected to GPIO40.
|
||||
Otherwise its assumed to be connected to GPIO24.
|
||||
|
||||
choice
|
||||
prompt "XGBE/WWAN/WLAN/DT Selection"
|
||||
default XGBE_WWAN_WLAN
|
||||
|
|
|
|||
|
|
@ -26,7 +26,11 @@ static const struct soc_amd_gpio gpio_set_stage_reset[] = {
|
|||
/* PCIE_RST1_L */
|
||||
PAD_NFO(GPIO_27, PCIE_RST1_L, HIGH),
|
||||
/* M2_SSD0_RST */
|
||||
#if CONFIG(NVME_RST_GPIO40)
|
||||
PAD_GPO(GPIO_40, HIGH),
|
||||
#else
|
||||
PAD_GPO(GPIO_24, HIGH),
|
||||
#endif
|
||||
/* DEVSLP1 */
|
||||
PAD_NFO(GPIO_6, DEVSLP1, LOW),
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,11 @@ static const struct soc_amd_gpio gpio_set_stage_ram[] = {
|
|||
/* PCIE_RST1_L */
|
||||
PAD_NFO(GPIO_27, PCIE_RST1_L, HIGH),
|
||||
/* M2_SSD0_RST */
|
||||
#if CONFIG(NVME_RST_GPIO40)
|
||||
PAD_GPO(GPIO_40, HIGH),
|
||||
#else
|
||||
PAD_GPO(GPIO_24, HIGH),
|
||||
#endif
|
||||
/* DEVSLP1 */
|
||||
PAD_NFO(GPIO_6, DEVSLP1, LOW),
|
||||
|
||||
|
|
|
|||
|
|
@ -341,4 +341,6 @@ static void xgbe_init(FSP_M_CONFIG *mcfg)
|
|||
void mb_pre_fspm(FSP_M_CONFIG *mcfg)
|
||||
{
|
||||
xgbe_init(mcfg);
|
||||
|
||||
mcfg->nvme_rst_gpio = CONFIG(NVME_RST_GPIO40) ? 40 : 24;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue