MdeModulePkg: SdMmc: Fix parameters order in EmmcSwitch functions call

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Joe Zhou <shjzhou@marvell.com>
Signed-off-by: Jan Dabros <jsd@semihalf.com>
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
This commit is contained in:
Joe Zhou 2016-06-22 23:09:10 +08:00 committed by Feng Tian
parent c7fefb6906
commit 91ff0f0591
2 changed files with 2 additions and 2 deletions

2
MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/EmmcDevice.c Normal file → Executable file
View File

@ -1079,7 +1079,7 @@ EmmcSetBusMode (
// //
// Execute High Speed timing switch procedure // Execute High Speed timing switch procedure
// //
Status = EmmcSwitchToHighSpeed (PciIo, PassThru, Slot, Rca, ClockFreq, BusWidth, IsDdr); Status = EmmcSwitchToHighSpeed (PciIo, PassThru, Slot, Rca, ClockFreq, IsDdr, BusWidth);
} }
DEBUG ((EFI_D_INFO, "EmmcSetBusMode: Switch to %a %r\n", (HsTiming == 3) ? "HS400" : ((HsTiming == 2) ? "HS200" : "HighSpeed"), Status)); DEBUG ((EFI_D_INFO, "EmmcSetBusMode: Switch to %a %r\n", (HsTiming == 3) ? "HS400" : ((HsTiming == 2) ? "HS200" : "HighSpeed"), Status));

View File

@ -2805,7 +2805,7 @@ EmmcPeimSetBusMode (
// //
// Execute High Speed timing switch procedure // Execute High Speed timing switch procedure
// //
Status = EmmcPeimSwitchToHighSpeed (Slot, Rca, ClockFreq, BusWidth, IsDdr); Status = EmmcPeimSwitchToHighSpeed (Slot, Rca, ClockFreq, IsDdr, BusWidth);
} }
return Status; return Status;