From patchwork Fri Dec 2 04:13:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 86234 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp90935qgi; Thu, 1 Dec 2016 20:41:00 -0800 (PST) X-Received: by 10.55.19.102 with SMTP id d99mr6719325qkh.205.1480653659800; Thu, 01 Dec 2016 20:40:59 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id i24si2033436qkh.205.2016.12.01.20.40.59; Thu, 01 Dec 2016 20:40:59 -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 732A260DC2; Fri, 2 Dec 2016 04:40:59 +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 B6314634D6; Fri, 2 Dec 2016 04:23:01 +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 C62D7634D3; Fri, 2 Dec 2016 04:22:46 +0000 (UTC) Received: from mail-pg0-f54.google.com (mail-pg0-f54.google.com [74.125.83.54]) by lists.linaro.org (Postfix) with ESMTPS id A319960EF9 for ; Fri, 2 Dec 2016 04:16:23 +0000 (UTC) Received: by mail-pg0-f54.google.com with SMTP id f188so102334171pgc.3 for ; Thu, 01 Dec 2016 20:16:23 -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=PVG+x7IBjrV0Nt5BAurHVpy0qNNe/h3AywqbI75JHmc=; b=D7zfrGN+JFk9j/z9cmV7JE0DsDZ0eSCs51qY2Bota0z/aPP4BBB3jkAmICvWmcciAB 3DQOo6YNS3HpPdARUyPBq9soBpsPiVmYEJF53xpcE8u4zNqEgHh2bSMW7B7maIfXjeYj 5ve1RjzldkubRPkYg1oOSvL9tjedxRAIfwVyidYQ47519ewT6IDEoJOm7FkFhKKeLqs8 qdXuqUmm6oBVIxHOBCyRvmGfWTcnYSj1+UBj5CR+kJ6hRKmq9CTN/+pU3kU0C+gOJAb3 yz84xFs9/27924JE3qB4Z95Irfs8jdaajUItIOQMWG9m5sFBTv8D2CE622sa3Pkjp01Z x8ZA== X-Gm-Message-State: AKaTC02Bq156OcKGFJepNqF+t4mCs8JdbrvVR+6o97BC5+gUHGMVWiHTI5hQgFkdh2C21mkYJjQ= X-Received: by 10.99.94.194 with SMTP id s185mr75168694pgb.35.1480652182933; Thu, 01 Dec 2016 20:16:22 -0800 (PST) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id u78sm3402349pfa.53.2016.12.01.20.16.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Dec 2016 20:16:22 -0800 (PST) From: Heyi Guo To: linaro-uefi@lists.linaro.org Date: Fri, 2 Dec 2016 12:13:35 +0800 Message-Id: <1480652017-31676-43-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 42/44] Hisilicon/D03: 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/D03/D03.dsc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Platforms/Hisilicon/D03/D03.dsc b/Platforms/Hisilicon/D03/D03.dsc index 40aec5c..b6ce299 100644 --- a/Platforms/Hisilicon/D03/D03.dsc +++ b/Platforms/Hisilicon/D03/D03.dsc @@ -380,6 +380,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 @@ -478,7 +479,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