From patchwork Tue Jan 10 09:50:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 90660 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp532519qgi; Tue, 10 Jan 2017 01:51:38 -0800 (PST) X-Received: by 10.200.38.39 with SMTP id u36mr2007182qtu.31.1484041898714; Tue, 10 Jan 2017 01:51:38 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id a135si986479qkc.39.2017.01.10.01.51.38; Tue, 10 Jan 2017 01:51:38 -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 672A360D6C; Tue, 10 Jan 2017 09:51:38 +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_H2, 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 28284607FB; Tue, 10 Jan 2017 09:51:34 +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 71AD860815; Tue, 10 Jan 2017 09:51:15 +0000 (UTC) Received: from mail-pf0-f182.google.com (mail-pf0-f182.google.com [209.85.192.182]) by lists.linaro.org (Postfix) with ESMTPS id 59BE46081B for ; Tue, 10 Jan 2017 09:50:59 +0000 (UTC) Received: by mail-pf0-f182.google.com with SMTP id f144so35381874pfa.2 for ; Tue, 10 Jan 2017 01:50:59 -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=kKo/LtcOqgvN8rgn+T4ssVq7yc8BTYdR+xQ5uYkH1qotcHR+UZMobyTKV1sYYhnh5y FDg4GUiNcuqeuzYmPgkgJ0dQm+gdbRutcqrfdRwZk8Dl7tqFYG/Nh+gsvmSBxJqrXAM/ RdlkoxuWrUCSmn7bgNbLZPr6Uf/KnUX/4iwmJGiGrapsd/ewCLvnnPDlECXZtHDSC41K FtHA8GsXQUlPkfHaio0wwkbEKqeD/0KTg9MkVFmXU3clC3rKLzEMtrKteLXTm4bs/RYH PpZc2wqKvIxbk41/UvrS9UTJ4hLODcKvxuj3b8o+n+/vJMj7EymB/6WtwemCKex1s/7d aN5A== X-Gm-Message-State: AIkVDXLmsPIWwU8pPOUxZgJ9FwR/HPIQRJkBYnacwJtEaeXr/6eSD9a3pu0cEs0PfbGEna73GvU= X-Received: by 10.99.8.133 with SMTP id 127mr3029973pgi.76.1484041858610; Tue, 10 Jan 2017 01:50:58 -0800 (PST) Received: from localhost.localdomain ([45.56.159.89]) by smtp.gmail.com with ESMTPSA id x2sm4015804pfx.65.2017.01.10.01.50.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Jan 2017 01:50:58 -0800 (PST) From: Haojian Zhuang To: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, linaro-uefi@lists.linaro.org Date: Tue, 10 Jan 2017 17:50:40 +0800 Message-Id: <1484041840-782-4-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484041840-782-1-git-send-email-haojian.zhuang@linaro.org> References: <1484041840-782-1-git-send-email-haojian.zhuang@linaro.org> Subject: [Linaro-uefi] [PATCH v5 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