MdeModulePkg/SdMmcPciHcDxe: Add UhsSignaling to SdMmcOverride protocol
Some SD Host Controllers use different values in Host Control 2 Register to select UHS Mode. This patch adds a new UhsSignaling type routine to the NotifyPhase of the SdMmcOverride protocol. UHS signaling configuration is moved to a common, default routine (SdMmcHcUhsSignaling). After it is executed, the protocol producer can override the values if needed. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas <mw@semihalf.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Hao Wu <hao.a.wu@intel.com>
This commit is contained in:
@ -26,11 +26,28 @@
|
||||
|
||||
typedef struct _EDKII_SD_MMC_OVERRIDE EDKII_SD_MMC_OVERRIDE;
|
||||
|
||||
//
|
||||
// Bus timing modes
|
||||
//
|
||||
typedef enum {
|
||||
SdMmcUhsSdr12,
|
||||
SdMmcUhsSdr25,
|
||||
SdMmcUhsSdr50,
|
||||
SdMmcUhsSdr104,
|
||||
SdMmcUhsDdr50,
|
||||
SdMmcMmcLegacy,
|
||||
SdMmcMmcHsSdr,
|
||||
SdMmcMmcHsDdr,
|
||||
SdMmcMmcHs200,
|
||||
SdMmcMmcHs400,
|
||||
} SD_MMC_BUS_MODE;
|
||||
|
||||
typedef enum {
|
||||
EdkiiSdMmcResetPre,
|
||||
EdkiiSdMmcResetPost,
|
||||
EdkiiSdMmcInitHostPre,
|
||||
EdkiiSdMmcInitHostPost,
|
||||
EdkiiSdMmcUhsSignaling,
|
||||
} EDKII_SD_MMC_PHASE_TYPE;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user