]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/Sd: wait 1ms before check DATA line in voltage switch proc
authorFeng Tian <feng.tian@intel.com>
Tue, 12 Apr 2016 06:08:49 +0000 (14:08 +0800)
committerFeng Tian <feng.tian@intel.com>
Thu, 21 Apr 2016 08:08:11 +0000 (16:08 +0800)
According to SD Host Controller 3.0 spec figure 3-10, we have to wait
1ms before checking DAT[3:0] in voltage switch proc

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

index d05eb9e9e651cdfd5dd6633a1847435a1bf17bb5..b2a08572fec51f13ff5d58eddaccb0d46a826b73 100644 (file)
@@ -1123,7 +1123,7 @@ SdCardIdentification (
 \r
       SdMmcHcInitClockFreq (PciIo, Slot, Private->Capability[Slot]);\r
 \r
-      gBS->Stall (1);\r
+      gBS->Stall (1000);\r
 \r
       SdMmcHcRwMmio (PciIo, Slot, SD_MMC_HC_PRESENT_STATE, TRUE, sizeof (PresentState), &PresentState);\r
       if (((PresentState >> 20) & 0xF) != 0xF) {\r
index 8f7ecf9395f7a5c09643fee0e5dcc8491337e23d..cbee947993a5d3f8d561ac64c698373ab1318099 100644 (file)
@@ -2832,7 +2832,7 @@ SdPeimIdentification (
 \r
       SdPeimHcInitClockFreq (Slot->SdHcBase);\r
 \r
-      MicroSecondDelay (1);\r
+      MicroSecondDelay (1000);\r
 \r
       SdPeimHcRwMmio (Slot->SdHcBase + SD_HC_PRESENT_STATE, TRUE, sizeof (PresentState), &PresentState);\r
       if (((PresentState >> 20) & 0xF) != 0xF) {\r