summaryrefslogtreecommitdiff
path: root/Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/Emmc.asl
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2018-02-26 19:16:59 +0000
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2018-03-15 16:04:30 +0000
commit5ac71442e417a35e86e6ba4d4c28870ebd27ebc8 (patch)
treef8cf3a3cb63877723192ddab1743a9d3306f233c /Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/Emmc.asl
parentb2aad8fc85a5c5bcd2a60208ac28d41ca2194620 (diff)
downloadedk2-platforms-5ac71442e417a35e86e6ba4d4c28870ebd27ebc8.tar.xz
Silicon/SynQuacer/PlatformDxe: add ACPI description of eMMC
Expose a separate ACPI description of the SynQuacer eMMC controller when both ACPI and eMMC support have been enabled in the HII menu. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by: Graeme Gregory <graeme.gregory@linaro.org>
Diffstat (limited to 'Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/Emmc.asl')
-rw-r--r--Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/Emmc.asl41
1 files changed, 41 insertions, 0 deletions
diff --git a/Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/Emmc.asl b/Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/Emmc.asl
new file mode 100644
index 0000000000..4e371befc7
--- /dev/null
+++ b/Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/Emmc.asl
@@ -0,0 +1,41 @@
+/** @file
+ SSDT describing the SynQuacer eMMC controller
+
+ Copyright (c) 2018, Linaro Ltd. All rights reserved.<BR>
+
+ This program and the accompanying materials are licensed and made available
+ under the terms and conditions of the BSD License which accompanies this
+ distribution. The full text of the license may be found at
+ http://opensource.org/licenses/bsd-license.php
+
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#include <Platform/MemoryMap.h>
+
+DefinitionBlock ("SsdtEmmc.aml", "SSDT", 1, "SNI", "SynQeMMC",
+ FixedPcdGet32 (PcdAcpiDefaultOemRevision)) {
+ Scope (_SB) {
+ Device (MMC0) {
+ Name (_HID, "SCX0002")
+ Name (_UID, Zero)
+ Name (_CCA, 1)
+ Name (_CRS, ResourceTemplate () {
+ Memory32Fixed (ReadWrite, SYNQUACER_EMMC_BASE, SYNQUACER_EMMC_BASE_SZ)
+ Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive) { 184 }
+ })
+
+ Name (_DSD, Package () // _DSD: Device-Specific Data
+ {
+ ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
+ Package () {
+ Package (2) { "bus-width", 8 },
+ Package (2) { "cap-mmc-highspeed", 0x1 },
+ Package (2) { "fujitsu,cmd-dat-delay-select", 0x1 },
+ }
+ })
+ }
+ } // Scope (_SB)
+}