]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Include/Protocol/SdMmcOverride.h
MdeModulePkg/SdMmcPciHcDxe: Add UhsSignaling to SdMmcOverride protocol
authorTomasz Michalec <tm@semihalf.com>
Fri, 9 Nov 2018 23:01:25 +0000 (07:01 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 20 Nov 2018 05:46:57 +0000 (13:46 +0800)
commita4708009ccd7e1c8ea4df36e733ba057bac9735d
tree62b794e17d5058ae7e13d93e2d13754a43f0fecf
parent49c995342543882b85e1278cb0098aa21fa52302
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>
MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/EmmcDevice.c
MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdDevice.c
MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHci.c
MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHci.h
MdeModulePkg/Include/Protocol/SdMmcOverride.h