From patchwork Wed Nov 23 07:12:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 83548 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp2497743qge; Tue, 22 Nov 2016 23:14:53 -0800 (PST) X-Received: by 10.237.60.200 with SMTP id e8mr1250732qtf.248.1479885293012; Tue, 22 Nov 2016 23:14:53 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id y48si11312536qtc.195.2016.11.22.23.14.52; Tue, 22 Nov 2016 23:14:52 -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 dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 9CAFE62D86; Wed, 23 Nov 2016 07:14:52 +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 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 ABE4C62D76; Wed, 23 Nov 2016 07:13:05 +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 80DD962D76; Wed, 23 Nov 2016 07:13:00 +0000 (UTC) Received: from mail-pg0-f41.google.com (mail-pg0-f41.google.com [74.125.83.41]) by lists.linaro.org (Postfix) with ESMTPS id 9208162D76 for ; Wed, 23 Nov 2016 07:12:45 +0000 (UTC) Received: by mail-pg0-f41.google.com with SMTP id f188so2851348pgc.3 for ; Tue, 22 Nov 2016 23:12:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3RZSNqLbWMQOxGZ4o6C2Fu6XCHlAS2bKNTNl0iKRY7Q=; b=HCYe0S6m5jvmCEtndpE2TapGoZcw9nct5hCLYrCmIIYiE9iEj8iKfTsmj+J5LfWXL8 LJZ6wIi3QACGRnaUKuGb6C7+iDV0ogTgwwzvEg5pYA2IBmmT/EJdsjwFUStKY2y4Jdmc XK+y19QzfnbwzX2uKqvNkuQNBhP5g0No9tQoGcLNSPQt245qP71DWuLeSEUDcClyGIGb 4CN5jzPoTy9rSTAMaKSa0qKmna4G3Bfovq4dE9MW5Y+6vKQ6XDIujkAisTN+a/hJ91nx +PHCuvPMsuxBgvOLCTZw1LswTKehS3M1+VKCw4UVy0CNKenNqMxnvVc5tTS6GD1lzqGX MX1Q== X-Gm-Message-State: AKaTC03NKiw9ExmF7+tnEvvaUzYMKP2zT3e92oo3lifEWWxmHYpG4gydvDL2GNwf7v/CRjbVVkw= X-Received: by 10.84.216.17 with SMTP id m17mr3695841pli.82.1479885164922; Tue, 22 Nov 2016 23:12:44 -0800 (PST) Received: from localhost.localdomain ([45.56.159.99]) by smtp.gmail.com with ESMTPSA id o26sm49850233pfk.91.2016.11.22.23.12.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Nov 2016 23:12:44 -0800 (PST) From: Haojian Zhuang To: linaro-uefi@lists.linaro.org, leif.lindholm@linaro.org, ard.biesheuvel@linaro.org Date: Wed, 23 Nov 2016 15:12:29 +0800 Message-Id: <1479885149-25537-4-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1479885149-25537-1-git-send-email-haojian.zhuang@linaro.org> References: <1479885149-25537-1-git-send-email-haojian.zhuang@linaro.org> Subject: [Linaro-uefi] [PATCH 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 | 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