soc/intel/alderlake: Add support for UFS controller

UFS(Universal Flash Storage) is the next generation storage standard and
a SCSI storage technology. It is also a successor of eMMC.

Following changes are needed to add support for UFS -
1) Add UFS controller to chipset.cb and keep it off by default
2) Hook up FSP enable UPD for UFS #1 to the device from chipset.cb

Signed-off-by: Meera Ravindranath <meera.ravindranath@intel.com>
Signed-off-by: Rizwan Qureshi <rizwan.qureshi@intel.com>
Change-Id: I92f024ded64e1eaef41a7807133361d74b5009d4
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62856
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Kangheui Won <khwon@chromium.org>
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
This commit is contained in:
Meera Ravindranath
2022-03-16 15:27:00 +05:30
committed by Felix Held
parent 37c33052e5
commit d8ea360d3e
2 changed files with 6 additions and 0 deletions

View File

@@ -642,6 +642,11 @@ static void fill_fsps_storage_params(FSP_S_CONFIG *s_cfg,
if (s_cfg->ScsEmmcEnabled)
s_cfg->ScsEmmcHs400Enabled = config->emmc_enable_hs400_mode;
#endif
/* UFS Configuration */
s_cfg->UfsEnable[0] = 0; /* UFS Controller 0 is fuse disabled */
s_cfg->UfsEnable[1] = is_devfn_enabled(PCH_DEVFN_UFS);
/* Enable Hybrid storage auto detection */
s_cfg->HybridStorageMode = config->hybrid_storage_mode;
}