[edk2-platforms PATCH 2/6] Marvell/Armada80x0Db: 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/Armada7k8k/AcpiTables/Armada80x0Db/Dsdt.asl | 59 +++++++++=
+++++++++++
1 file changed, 59 insertions(+)

diff --git a/Silicon/Marvell/Armada7k8k/AcpiTables/Armada80x0Db/Dsdt.asl b/=
Silicon/Marvell/Armada7k8k/AcpiTables/Armada80x0Db/Dsdt.asl
index faf1846c22..62ba62c7d2 100644
--- a/Silicon/Marvell/Armada7k8k/AcpiTables/Armada80x0Db/Dsdt.asl
+++ b/Silicon/Marvell/Armada7k8k/AcpiTables/Armada80x0Db/Dsdt.asl
@@ -87,6 +87,65 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "MVEBU ", "ARMAD=
A8K", 3)
})=0D
}=0D
=0D
+ Device (MMC0)=0D
+ {=0D
+ Name (_HID, "MRVL0002") // _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 () { "marvell,xenon-phy-slow-mode", 0x1 },=0D
+ Package () { "no-sd", 0x1 },=0D
+ Package () { "no-sdio", 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 () { "no-sd", 0x1 },=0D
+ Package () { "no-sdio", 0x1 },=0D
+ Package () { "non-removable", 0x1 },=0D
+ }=0D
+ })=0D
+ }=0D
+=0D
Device (XHC0)=0D
{=0D
Name (_HID, "PNP0D10") // _HID: Hardware ID=0D
--=20
2.29.0