]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHci.c
MdeModulePkg/SdMmcPciHcDxe: Using PIO rather than DMA for clock tuning
authorFeng Tian <feng.tian@intel.com>
Fri, 29 Apr 2016 08:02:50 +0000 (16:02 +0800)
committerFeng Tian <feng.tian@intel.com>
Fri, 6 May 2016 08:09:59 +0000 (16:09 +0800)
commite7e89b0861fa561c2c13eee3271655c100b3abb9
treedcc806bdf5daf94b9245be516297d32129b28d12
parentcb9cb9e2aaec95f89f3c0dfc411226aa6c42461a
MdeModulePkg/SdMmcPciHcDxe: Using PIO rather than DMA for clock tuning

The original code is using ADMA mode to do clock tuning procedure. It
may have problem on some SD/MMC host controllers as there is no way to
know when to send next tuning cmd.

Update it to PIO mode to strictly follow SD Host Controller Simplified
Specification 3.0 Figure 2-29. By this way, if the Buffer Read Ready
interrupt is set, we could know it's ok to send the next clock tuning
cmd.

Cc: Wu, Hao A <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHci.c
MdeModulePkg/Bus/Sd/EmmcBlockIoPei/EmmcHci.c
MdeModulePkg/Bus/Sd/SdBlockIoPei/SdHci.c