From patchwork Wed Dec 7 06:54:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 86973 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp173379qgi; Tue, 6 Dec 2016 22:55:45 -0800 (PST) X-Received: by 10.55.74.21 with SMTP id x21mr56278880qka.46.1481093745113; Tue, 06 Dec 2016 22:55:45 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id m184si13767032qkb.181.2016.12.06.22.55.44; Tue, 06 Dec 2016 22:55:45 -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 AD48762DD7; Wed, 7 Dec 2016 06:55:44 +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 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 E9C7D609B8; Wed, 7 Dec 2016 06:55:17 +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 43E9F60905; Wed, 7 Dec 2016 06:55:14 +0000 (UTC) Received: from mail-pg0-f48.google.com (mail-pg0-f48.google.com [74.125.83.48]) by lists.linaro.org (Postfix) with ESMTPS id 5488260E34 for ; Wed, 7 Dec 2016 06:54:54 +0000 (UTC) Received: by mail-pg0-f48.google.com with SMTP id f188so158150233pgc.3 for ; Tue, 06 Dec 2016 22:54:54 -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=5jwvQOBKAm7OR9r23B8lsQkSlu4roK8jfqmlTQV/1g0=; b=ISPyjN0/r26mcDgY5pcuDABya18cGrSLwSfEshU70WbnOe91wHB+q1WVfY/F/IBae1 DfxpKcWnGlEClDruc0lsrUMxkbPu0l4c4lBMc+40vToX5/d4hmPGQgNbVQvttWm4kT6Y KtO85S2g+mRM5fOqGT00DEN/l1YXmiFR0v9GJQCoGMP6NmVsejsulbGCidhFseLPKe/I BwLAHA/PojkcYxIZxez4ONDZ4M5IkBFFTExKAnUOh//CTUMDZoYsyzJmLDSf9PMGVQ61 th0+0Z7fBcodkogeCaZ4SVGruhVezuiotQmd2bQVzflFIu6fKpHvPz6VTg6g9sV8GifL 572g== X-Gm-Message-State: AKaTC01u0Wv6kpNPqB2RkNVi0XoSBfIaC1QtPAA6sLOqyuQRbghRJhGQMUFTnkfrAPSFQk7O6AM= X-Received: by 10.99.234.21 with SMTP id c21mr120586798pgi.166.1481093693643; Tue, 06 Dec 2016 22:54:53 -0800 (PST) Received: from localhost.localdomain ([45.56.159.87]) by smtp.gmail.com with ESMTPSA id p26sm39669142pgn.11.2016.12.06.22.54.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Dec 2016 22:54:53 -0800 (PST) From: Haojian Zhuang To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, ard.biesheuvel@linaro.org Date: Wed, 7 Dec 2016 14:54:39 +0800 Message-Id: <1481093679-5636-4-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1481093679-5636-1-git-send-email-haojian.zhuang@linaro.org> References: <1481093679-5636-1-git-send-email-haojian.zhuang@linaro.org> Subject: [Linaro-uefi] [PATCH v3 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 79f3ba9..669b493 100644 --- a/Platforms/Hisilicon/HiKey/HiKey.dsc +++ b/Platforms/Hisilicon/HiKey/HiKey.dsc @@ -328,6 +328,13 @@ gEmbeddedTokenSpaceGuid.PcdMetronomeTickPeriod|1000 # + # DW MMC/SD card controller + # + gDwEmmcDxeTokenSpaceGuid.PcdDwEmmcDxeBaseAddress|0xF723D000 + gDwEmmcDxeTokenSpaceGuid.PcdDwEmmcDxeClockFrequencyInHz|100000000 + + # + # # Fastboot # gEmbeddedTokenSpaceGuid.PcdAndroidFastbootUsbVendorId|0x18d1 @@ -398,6 +405,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 e01fc85..42200ef 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