From patchwork Fri Dec 2 04:13:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 86233 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp90888qgi; Thu, 1 Dec 2016 20:40:48 -0800 (PST) X-Received: by 10.200.51.214 with SMTP id d22mr36857547qtb.231.1480653648170; Thu, 01 Dec 2016 20:40:48 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id h67si2025788qka.304.2016.12.01.20.40.46; Thu, 01 Dec 2016 20:40:48 -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 85CC86097F; Fri, 2 Dec 2016 04:40:46 +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 80D5762F5F; Fri, 2 Dec 2016 04:23:00 +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 74B0D634CF; Fri, 2 Dec 2016 04:22:42 +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 9E4EB60EF4 for ; Fri, 2 Dec 2016 04:16:21 +0000 (UTC) Received: by mail-pg0-f41.google.com with SMTP id 3so102752269pgd.0 for ; Thu, 01 Dec 2016 20:16:21 -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=PFmHJueM0RSo8IKKDqosoAV6rM8O6zz2XAWRmSDxvMg=; b=bw5tpVcCs3vsEFqsHM6ZM0UlhbeGnP9oova5RMGnYwg8Dgze/vUzVLl/njttRVrcyS Pm7TxqVm4qX65oKun2g7IeVZ5kGDu1UdeJYq7mryoO4JyiAeDvQluV5+bkvvvQmFhLZ0 QxU0QPGOUIKAarktlRGoE/HJ36HD3SqzJEkbxwKnbpBcWPPgq5B1F/jyxIcstL4ewmg6 LefOR5YG7nNVqmVulxnhbE6mkET76EGaAdU3XTL/9Avzitaz2OawFbGIuGYyNI8Q3X7M jqfz6EwHAUIKBiqRezfNvUu9QUztoFlj36CsZ2UoXAOWSUXvQHi0UL0vcr4DihkPu1EO g4DA== X-Gm-Message-State: AKaTC00s4gnRwKVRRKI4Yb7C6p4d9Lay3b0pHU9ATpDh6hJnaSqj/nYH7Pp1k9AqCRxKrntJWM8= X-Received: by 10.84.194.37 with SMTP id g34mr91847878pld.36.1480652180965; Thu, 01 Dec 2016 20:16:20 -0800 (PST) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id u78sm3402349pfa.53.2016.12.01.20.16.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Dec 2016 20:16:20 -0800 (PST) From: Heyi Guo To: linaro-uefi@lists.linaro.org Date: Fri, 2 Dec 2016 12:13:34 +0800 Message-Id: <1480652017-31676-42-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1480652017-31676-1-git-send-email-heyi.guo@linaro.org> References: <1480652017-31676-1-git-send-email-heyi.guo@linaro.org> Cc: sunchenhui@huawei.com, wanghuiqiang@huawei.com Subject: [Linaro-uefi] [linaro-uefi v5 41/44] Hisilicon/D05: flash related drivers switch to use generic BaseMemoryLib 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" The BaseMemoryLib has switch to use BaseMemoryLibOptDxe at OPP, but the flash module is device attributes and have to be alignment accessed. so we change the flash related drivers to use generic BaseMemoryLib which is alignment access. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Heyi Guo --- Platforms/Hisilicon/D05/D05.dsc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Platforms/Hisilicon/D05/D05.dsc b/Platforms/Hisilicon/D05/D05.dsc index edaad18..3242b29 100644 --- a/Platforms/Hisilicon/D05/D05.dsc +++ b/Platforms/Hisilicon/D05/D05.dsc @@ -494,6 +494,7 @@ MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf { NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf + BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf } MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf @@ -608,7 +609,10 @@ OpenPlatformPkg/Chips/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf !ifdef $(FDT_ENABLE) - OpenPlatformPkg/Chips/Hisilicon/Drivers/UpdateFdtDxe/UpdateFdtDxe.inf + OpenPlatformPkg/Chips/Hisilicon/Drivers/UpdateFdtDxe/UpdateFdtDxe.inf { + + BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf + } !endif #$(FDT_ENABLE) #PCIe Support