[edk2-platforms PATCH 6/6] Marvell/Cn913xDb: Introduce SD/MMC ACPI description


Marcin Wojtas
 

This patch adds a new description of the board's SD/MMC
interfaces in DSDT table that can work with the newly
introduced support in Linux.

Signed-off-by: Marcin Wojtas <mw@semihalf.com>
---
Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Dsdt.asl | 59 ++++++++++=
++++++++++
1 file changed, 59 insertions(+)

diff --git a/Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Dsdt.asl b/S=
ilicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Dsdt.asl
index 470ae047f9..30de868907 100644
--- a/Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Dsdt.asl
+++ b/Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Dsdt.asl
@@ -62,6 +62,65 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "MVEBU ", "CN913=
0", 3)
})=0D
}=0D
=0D
+ Device (MMC0)=0D
+ {=0D
+ Name (_HID, "MRVL0003") // _HID: Hardware ID=0D
+ Name (_UID, 0x00) // _UID: Unique ID=0D
+ Name (_CCA, 0x01) // _CCA: Cache Coherency Attribute=
=0D
+=0D
+ Name (_CRS, ResourceTemplate () // _CRS: Current Resource Set=
tings=0D
+ {=0D
+ Memory32Fixed (ReadWrite,=0D
+ 0xF06E0000, // Address Base (MMIO)=0D
+ 0x00000300, // Address Length=0D
+ )=0D
+ Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive,=
,, )=0D
+ {=0D
+ 48=0D
+ }=0D
+ })=0D
+ Name (_DSD, Package () {=0D
+ ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),=0D
+ Package () {=0D
+ Package () { "clock-frequency", 400000000 },=0D
+ Package () { "bus-width", 8 },=0D
+ Package () { "no-sd", 0x1 },=0D
+ Package () { "no-sdio", 0x1 },=0D
+ Package () { "mmc-ddr-1_8v", 0x1 },=0D
+ Package () { "mmc-hs400-1_8v", 0x1 },=0D
+ Package () { "non-removable", 0x1 },=0D
+ }=0D
+ })=0D
+ }=0D
+=0D
+ Device (MMC1)=0D
+ {=0D
+ Name (_HID, "MRVL0004") // _HID: Hardware ID=0D
+ Name (_UID, 0x01) // _UID: Unique ID=0D
+ Name (_CCA, 0x01) // _CCA: Cache Coherency Attribute=
=0D
+=0D
+ Name (_CRS, ResourceTemplate () // _CRS: Current Resource Set=
tings=0D
+ {=0D
+ Memory32Fixed (ReadWrite,=0D
+ 0xF2780000, // Address Base (MMIO)=0D
+ 0x00000300, // Address Length=0D
+ )=0D
+ Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive,=
,, )=0D
+ {=0D
+ CP_GIC_SPI_CP0_SDMMC=0D
+ }=0D
+ })=0D
+ Name (_DSD, Package () {=0D
+ ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),=0D
+ Package () {=0D
+ Package () { "clock-frequency", 400000000 },=0D
+ Package () { "bus-width", 4 },=0D
+ Package () { "broken-cd", 0x1 },=0D
+ Package () { "no-1-8-v", 0x1 },=0D
+ }=0D
+ })=0D
+ }=0D
+=0D
Device (XHC0)=0D
{=0D
Name (_HID, "PNP0D10") // _HID: Hardware ID=0D
--=20
2.29.0