diff mbox

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

Message ID 1479885149-25537-4-git-send-email-haojian.zhuang@linaro.org
State Superseded
Headers show

Commit Message

Haojian Zhuang Nov. 23, 2016, 7:12 a.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>
---
 Platforms/Hisilicon/HiKey/HiKey.dsc | 7 +++++++
 Platforms/Hisilicon/HiKey/HiKey.fdf | 1 +
 2 files changed, 8 insertions(+)

Comments

Leif Lindholm Nov. 29, 2016, 8:02 p.m. UTC | #1
On Wed, Nov 23, 2016 at 03:12:29PM +0800, Haojian Zhuang wrote:
> 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 | 7 +++++++
>  Platforms/Hisilicon/HiKey/HiKey.fdf | 1 +
>  2 files changed, 8 insertions(+)
> 
> diff --git a/Platforms/Hisilicon/HiKey/HiKey.dsc b/Platforms/Hisilicon/HiKey/HiKey.dsc
> index 40bd728..c41ad45 100644
> --- a/Platforms/Hisilicon/HiKey/HiKey.dsc
> +++ b/Platforms/Hisilicon/HiKey/HiKey.dsc
> @@ -344,6 +344,12 @@
>    gEmbeddedTokenSpaceGuid.PcdMetronomeTickPeriod|1000
>  
>    #
> +  # DW MMC/SD card controller
> +  #
> +  gDwEmmcDxeTokenSpaceGuid.PcdDwEmmcDxeBaseAddress|0xF723D000
> +  gDwEmmcDxeTokenSpaceGuid.PcdDwEmmcDxeClockFrequencyInHz|100000000
> +
> +  #
>    # Fastboot
>    #
>    gEmbeddedTokenSpaceGuid.PcdAndroidFastbootUsbVendorId|0x18d1
> @@ -412,6 +418,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 8f292a0..cf328d8 100644
> --- a/Platforms/Hisilicon/HiKey/HiKey.fdf
> +++ b/Platforms/Hisilicon/HiKey/HiKey.fdf
> @@ -120,6 +120,7 @@ READ_LOCK_STATUS   = TRUE
>    # Multimedia Card Interface
>    #
>    INF EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
> +  INF OpenPlatformPkg/Drivers/Mmc/DwEmmcDxe/DwEmmcDxe.inf
>  
>    #
>    # USB Host Support
> -- 
> 2.7.4
>
diff mbox

Patch

diff --git a/Platforms/Hisilicon/HiKey/HiKey.dsc b/Platforms/Hisilicon/HiKey/HiKey.dsc
index 40bd728..c41ad45 100644
--- a/Platforms/Hisilicon/HiKey/HiKey.dsc
+++ b/Platforms/Hisilicon/HiKey/HiKey.dsc
@@ -344,6 +344,12 @@ 
   gEmbeddedTokenSpaceGuid.PcdMetronomeTickPeriod|1000
 
   #
+  # DW MMC/SD card controller
+  #
+  gDwEmmcDxeTokenSpaceGuid.PcdDwEmmcDxeBaseAddress|0xF723D000
+  gDwEmmcDxeTokenSpaceGuid.PcdDwEmmcDxeClockFrequencyInHz|100000000
+
+  #
   # Fastboot
   #
   gEmbeddedTokenSpaceGuid.PcdAndroidFastbootUsbVendorId|0x18d1
@@ -412,6 +418,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 8f292a0..cf328d8 100644
--- a/Platforms/Hisilicon/HiKey/HiKey.fdf
+++ b/Platforms/Hisilicon/HiKey/HiKey.fdf
@@ -120,6 +120,7 @@  READ_LOCK_STATUS   = TRUE
   # Multimedia Card Interface
   #
   INF EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
+  INF OpenPlatformPkg/Drivers/Mmc/DwEmmcDxe/DwEmmcDxe.inf
 
   #
   # USB Host Support