MdeModulePkg/SdMmcPciHcDxe: Add function to start SD clock
In SD card voltage switch flow we used to redo the entire internal clock setup after voltage switch. Since internal clock has already been setup this is wasting time on polling the internal clock stable. This commit changes it to only start the SD clock. Cc: Hao A Wu <hao.a.wu@intel.com> Cc: Marcin Wojtas <mw@semihalf.com> Cc: Zhichao Gao <zhichao.gao@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Mateusz Albecki <mateusz.albecki@intel.com> Tested-by: Marcin Wojtas <mw@semihalf.com> Tested-by: Hao A Wu <hao.a.wu@intel.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
49accdedf9
commit
f68cb23c14
@@ -1327,13 +1327,10 @@ SdCardIdentification (
|
||||
goto Error;
|
||||
}
|
||||
|
||||
//
|
||||
// Restart the clock with first time parameters.
|
||||
// NOTE: it is not required to actually restart the clock
|
||||
// and go through internal clock setup again. Some time
|
||||
// could be saved if we simply started the SD clock.
|
||||
//
|
||||
SdMmcHcClockSupply (Private, Slot, 0, TRUE, 400);
|
||||
Status = SdMmcHcStartSdClock (PciIo, Slot);
|
||||
if (EFI_ERROR (Status)) {
|
||||
goto Error;
|
||||
}
|
||||
|
||||
gBS->Stall (1000);
|
||||
|
||||
|
Reference in New Issue
Block a user