MdeModulePkg/SdMmcPciHcDxe: Add controller version defines
Add SDHCI controller defines, this is useful as the version in the register does not explictly map to a specification version. For example vesion 4.10 of the specification is version 0x04. https://bugzilla.tianocore.org/show_bug.cgi?id=1233 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jeff Brasen <jbrasen@nvidia.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com>
This commit is contained in:
@@ -978,9 +978,9 @@ SdCardIdentification (
|
||||
return Status;
|
||||
}
|
||||
|
||||
if ((ControllerVer & 0xFF) == 2) {
|
||||
if ((ControllerVer & 0xFF) == SD_MMC_HC_CTRL_VER_300) {
|
||||
S18r = TRUE;
|
||||
} else if (((ControllerVer & 0xFF) == 0) || ((ControllerVer & 0xFF) == 1)) {
|
||||
} else if (((ControllerVer & 0xFF) == SD_MMC_HC_CTRL_VER_100) || ((ControllerVer & 0xFF) == SD_MMC_HC_CTRL_VER_200)) {
|
||||
S18r = FALSE;
|
||||
} else {
|
||||
ASSERT (FALSE);
|
||||
|
Reference in New Issue
Block a user