diff mbox series

[Linaro-uefi,v6,3/3] Platforms/Hisilicon/HiKey: enable emmc

Message ID 1484569102-15944-4-git-send-email-haojian.zhuang@linaro.org
State Accepted
Commit 58d9f0bef6e084b028dcaf40419065f1ef61fec6
Headers show
Series add hikey platform | expand

Commit Message

Haojian Zhuang Jan. 16, 2017, 12:18 p.m. UTC
Enable designware emmc support on HiKey platform.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
---
 Platforms/Hisilicon/HiKey/HiKey.dsc | 8 ++++++++
 Platforms/Hisilicon/HiKey/HiKey.fdf | 1 +
 2 files changed, 9 insertions(+)
diff mbox series

Patch

diff --git a/Platforms/Hisilicon/HiKey/HiKey.dsc b/Platforms/Hisilicon/HiKey/HiKey.dsc
index cfe1eda..6ee4aa5 100644
--- a/Platforms/Hisilicon/HiKey/HiKey.dsc
+++ b/Platforms/Hisilicon/HiKey/HiKey.dsc
@@ -325,6 +325,13 @@ 
   gEmbeddedTokenSpaceGuid.PcdMetronomeTickPeriod|1000
 
   #
+  # DW MMC/SD card controller
+  #
+  gDwEmmcDxeTokenSpaceGuid.PcdDwEmmcDxeBaseAddress|0xF723D000
+  gDwEmmcDxeTokenSpaceGuid.PcdDwEmmcDxeClockFrequencyInHz|100000000
+
+  #
+  #
   # Fastboot
   #
   gEmbeddedTokenSpaceGuid.PcdAndroidFastbootUsbVendorId|0x18d1
@@ -386,6 +393,7 @@ 
   # MMC/SD
   #
   EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
+  OpenPlatformPkg/Drivers/Mmc/DwEmmcDxe/DwEmmcDxe.inf
 
   #
   # USB Host Support
diff --git a/Platforms/Hisilicon/HiKey/HiKey.fdf b/Platforms/Hisilicon/HiKey/HiKey.fdf
index b183c46..9c8c54a 100644
--- a/Platforms/Hisilicon/HiKey/HiKey.fdf
+++ b/Platforms/Hisilicon/HiKey/HiKey.fdf
@@ -123,6 +123,7 @@  READ_LOCK_STATUS   = TRUE
   # Multimedia Card Interface
   #
   INF EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
+  INF OpenPlatformPkg/Drivers/Mmc/DwEmmcDxe/DwEmmcDxe.inf
 
   #
   # USB Host Support