soc/intel/braswell: add ACPI for eMMC/SD devices in PCI mode

Allows eMMC in PCI mode to be seen/used by Windows.

Test: boot Windows installer on google/edgar, observe internal
eMMC storage available for installation when eMMC in PCI (vs ACPI) mode.

Change-Id: I4272c198e5e675f451a1f4de5d46e3cd96371446
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/24988
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Matt DeVillier 2018-01-21 18:28:38 -06:00 committed by Patrick Georgi
parent cbedd8fd2a
commit 62bef5a6be
1 changed files with 38 additions and 0 deletions

View File

@ -77,6 +77,44 @@ Device (EMMC)
} }
} }
Device (PEMC)
{
Name (_ADR, 0x00100000) // _ADR: Address
OperationRegion (SDIO, PCI_Config, 0x84, 0x04)
Field (SDIO, WordAcc, NoLock, Preserve)
{
Offset (0x01),
PMEE, 1,
, 6,
PMES, 1
}
Method (_STA, 0, NotSerialized)
{
If (LEqual (\C0EN, 1)) {
Return (0x0)
}
Else
{
Return (0xF)
}
}
Method (_DSW, 3, NotSerialized)
{
}
Device (CARD)
{
Name (_ADR, 0x08)
Method (_RMV, 0, NotSerialized)
{
Return (Zero)
}
}
}
Device (SDIO) Device (SDIO)
{ {
Name (_HID, "INT33BB") Name (_HID, "INT33BB")