BdsPlatform: generate SMM events to put eMMC/SD in proper mode

For Baytrail devices, coreboot leaves the eMMC/SD in PCI mode to enable
detection by Tianocore, so put into ACPI mode before OS boots.
Fixes booting on Baytrail devices.

Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
Matt DeVillier
2017-01-03 21:29:13 -06:00
parent 64f7b0fdba
commit 4f60b6a439
2 changed files with 6 additions and 0 deletions

View File

@ -1265,6 +1265,11 @@ Returns:
Status = gBS->SetTimer (UserInputDurationTime, TimerRelative, 20000000);
ASSERT (Status == EFI_SUCCESS);
//
// invoke SMM handler to put eMMC/SD devices into ACPI mode for OS
//
IoWrite8(0xb2, 0xcd);
//
// To give the User a chance to enter Setup here, if user set TimeOut is 0.
// BDS should still give user a chance to enter Setup