From patchwork Mon Jan 16 12:18:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 91559 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp2572obz; Mon, 16 Jan 2017 04:19:00 -0800 (PST) X-Received: by 10.55.92.6 with SMTP id q6mr5072049qkb.288.1484569140657; Mon, 16 Jan 2017 04:19:00 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 52si14076518qtv.302.2017.01.16.04.19.00; Mon, 16 Jan 2017 04:19:00 -0800 (PST) Received-SPF: pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 4305C60821; Mon, 16 Jan 2017 12:19:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 06F006082A; Mon, 16 Jan 2017 12:18:57 +0000 (UTC) X-Original-To: linaro-uefi@lists.linaro.org Delivered-To: linaro-uefi@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 4699560821; Mon, 16 Jan 2017 12:18:51 +0000 (UTC) Received: from mail-pg0-f52.google.com (mail-pg0-f52.google.com [74.125.83.52]) by lists.linaro.org (Postfix) with ESMTPS id 0CF96607DE for ; Mon, 16 Jan 2017 12:18:39 +0000 (UTC) Received: by mail-pg0-f52.google.com with SMTP id 14so15453471pgg.1 for ; Mon, 16 Jan 2017 04:18:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=sHRf0pvibI+qHf66ta2MHl0RgcblB1MoTZZ0xQIh9HQ=; b=hYFZYQUyWvnwyHT/HzfNnXmMM9YC7jMnBocqthde9lHDwyQAntNAZaEpxsP0E0ukLV 9amIFEAzBkzASn8xoifMmSV5wb6v1Gqa0IbJqP5E8pELfEwgMsbXEGdL6YaX256RzAFp ybP+AnMbvL+6OaChk9TuD0/DK8rLajngWoUWXLcspekRiFXPpK7b3qTICahpk9wiTJNZ k9s1VuCHlaKYbusgIndRWlCHEyovU13SJz8bHIArqs36jHYGQgljUWfWNwCZOgMUuzmp wzV34aGRKsodJI2fyoc/IpOLtWNNhRjbvzgHqfeSZbND5RBHa+s6nf3J5J0wIW72USea ODJg== X-Gm-Message-State: AIkVDXJxXEz5d3wmeVR8fK4y+ttopFcu16I3ItwgDux3vTr9WyuIVxWhnCofhT5zd9cgH7yi7r4= X-Received: by 10.84.142.1 with SMTP id 1mr37992127plw.90.1484569118345; Mon, 16 Jan 2017 04:18:38 -0800 (PST) Received: from localhost.localdomain ([45.56.159.104]) by smtp.gmail.com with ESMTPSA id w65sm47452328pfw.9.2017.01.16.04.18.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Jan 2017 04:18:37 -0800 (PST) From: Haojian Zhuang To: linaro-uefi@lists.linaro.org, ard.biesheuvel@linaro.org, leif.lindholm@linaro.org Date: Mon, 16 Jan 2017 20:18:22 +0800 Message-Id: <1484569102-15944-4-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484569102-15944-1-git-send-email-haojian.zhuang@linaro.org> References: <1484569102-15944-1-git-send-email-haojian.zhuang@linaro.org> Subject: [Linaro-uefi] [PATCH v6 3/3] Platforms/Hisilicon/HiKey: enable emmc X-BeenThere: linaro-uefi@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linaro-uefi-bounces@lists.linaro.org Sender: "Linaro-uefi" Enable designware emmc support on HiKey platform. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Haojian Zhuang Reviewed-by: Leif Lindholm --- Platforms/Hisilicon/HiKey/HiKey.dsc | 8 ++++++++ Platforms/Hisilicon/HiKey/HiKey.fdf | 1 + 2 files changed, 9 insertions(+) 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