summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Zhou <shjzhou@marvell.com>2016-06-22 23:09:11 +0800
committerFeng Tian <feng.tian@intel.com>2016-06-24 11:28:35 +0800
commit9252d67ab3007601ddf983d1278cbe0e4a647f34 (patch)
tree961ed1ff529c8c06f37df4050ddd654144e86af0
parent91ff0f05914a4ee153c0a6241a2f8e93f9316325 (diff)
downloadedk2-platforms-9252d67ab3007601ddf983d1278cbe0e4a647f34.tar.xz
MdeModulePkg: SdMmc: Add delay before eMMC reset
This delay is necessary for eMMC reset to working properly. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Joe Zhou <shjzhou@marvell.com> Signed-off-by: Marcin Wojtas <mw@semihalf.com> Reviewed-by: Feng Tian <feng.tian@intel.com>
-rwxr-xr-xMdeModulePkg/Bus/Pci/SdMmcPciHcDxe/EmmcDevice.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/EmmcDevice.c b/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/EmmcDevice.c
index ee5314510b..61d351726d 100755
--- a/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/EmmcDevice.c
+++ b/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/EmmcDevice.c
@@ -51,6 +51,8 @@ EmmcReset (
SdMmcCmdBlk.ResponseType = 0;
SdMmcCmdBlk.CommandArgument = 0;
+ gBS->Stall (1000);
+
Status = SdMmcPassThruPassThru (PassThru, Slot, &Packet, NULL);
return Status;