From patchwork Mon Nov 21 13:08:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 83227 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp1511592qge; Mon, 21 Nov 2016 05:10:43 -0800 (PST) X-Received: by 10.36.193.197 with SMTP id e188mr8763153itg.99.1479733843630; Mon, 21 Nov 2016 05:10:43 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id x1si13976794iod.63.2016.11.21.05.10.43; Mon, 21 Nov 2016 05:10:43 -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 1F11160E3C; Mon, 21 Nov 2016 13:10:43 +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 384A860E52; Mon, 21 Nov 2016 13:10:23 +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 53AE06099A; Mon, 21 Nov 2016 13:10:21 +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 1509760CBB for ; Mon, 21 Nov 2016 13:10:10 +0000 (UTC) Received: by mail-pg0-f48.google.com with SMTP id f188so130186216pgc.3 for ; Mon, 21 Nov 2016 05:10:10 -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=lsSu75b7KpqusqtYptWjcZEbncHAblxFMnnbi7MQflY=; b=GTwVq9TiaXh10JC7z0/iBxZ1znmuGxR7bCoz76jawuPJqqp2RzQvNevpsUjyBnq0me yrB67/eWWHKu4ENjwFpV/Q/7fVteNsh6oU6nuQ+HFjfiuVefdkW6xt3w72d32v5IOrcu 89LJ39NglqH1DUG+OODzGx9ZLwn9WRaYT65R1aGK4hgsjrHicbYLoKZ2qWlq2iq3x5es jlyZrRouU46lwUeIX1N4CcwlrlZ/JRGmWP5BfTQo8669xdcCEj2+GMz+miDp3Izapa7n VfbGsD1beVOg30eNO7gA6NALczFS3clh5mvsaT3ljJC1bZcmyR4UEW/ZtlNkyGTsEoct oRIA== X-Gm-Message-State: AKaTC001z44I31KESWfZwUqNBppy2S2kPrRK5Qu6OvvAX5lZgr8oAlC14DQGuXCoR+MfCJ927Rw= X-Received: by 10.98.63.148 with SMTP id z20mr17770962pfj.151.1479733809153; Mon, 21 Nov 2016 05:10:09 -0800 (PST) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id w24sm37727179pfa.9.2016.11.21.05.10.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Nov 2016 05:10:08 -0800 (PST) From: Heyi Guo To: linaro-uefi@lists.linaro.org Date: Mon, 21 Nov 2016 21:08:49 +0800 Message-Id: <1479733729-100907-3-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1479733729-100907-1-git-send-email-heyi.guo@linaro.org> References: <1479733729-100907-1-git-send-email-heyi.guo@linaro.org> Subject: [Linaro-uefi] [PATCH 3/3] Hisilicon/D02: 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/D02/Pv660D02.dsc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Platforms/Hisilicon/D02/Pv660D02.dsc b/Platforms/Hisilicon/D02/Pv660D02.dsc index 1d89aa6..2f5fbe5 100644 --- a/Platforms/Hisilicon/D02/Pv660D02.dsc +++ b/Platforms/Hisilicon/D02/Pv660D02.dsc @@ -324,6 +324,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 @@ -422,7 +423,10 @@ OpenPlatformPkg/Chips/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.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) #