From patchwork Tue Nov 22 02:54: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: 83324 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp1888858qge; Mon, 21 Nov 2016 18:56:10 -0800 (PST) X-Received: by 10.55.16.10 with SMTP id a10mr19161044qkh.66.1479783369987; Mon, 21 Nov 2016 18:56:09 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id x7si7798968qta.127.2016.11.21.18.56.08; Mon, 21 Nov 2016 18:56:09 -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 AAB6E62C44; Tue, 22 Nov 2016 02:56:08 +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 4350960E5F; Tue, 22 Nov 2016 02:56: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 03B7660F13; Tue, 22 Nov 2016 02:56:01 +0000 (UTC) Received: from mail-pg0-f42.google.com (mail-pg0-f42.google.com [74.125.83.42]) by lists.linaro.org (Postfix) with ESMTPS id EF70760D03 for ; Tue, 22 Nov 2016 02:55:58 +0000 (UTC) Received: by mail-pg0-f42.google.com with SMTP id p66so2205855pga.2 for ; Mon, 21 Nov 2016 18:55:58 -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; bh=6RlFX5CHEH+pzn44gL5/129D49IMPaQ8sE1nfCCpYiA=; b=d56e7tuFyVh8c7SG9YS43rDcOjvs1m64TDJXHbI7CjEal2yaDh7N4mC6JpIimVXbXg LkvPhG/WBdPGNMyCAoIyUuAHErbGQaoyc2TjqHhvch/CwylzAfBr2NtH4vQ1ag97jNqh sAu9HxwpWS7GTyObC9eU7Yd+bX+a9r67H+cGwGokviS5aBX5IEQ7xddQJQmLNkjYuL7R 068tDfP4A2wgXCNrvFA669glEAr47+1XxtxEIQwI8zub40FjqnzS253IbiGgF7lC17JJ 0/zMZs7Tcl/sMhoHg7bQmOolYnd/DSlSFCRjRAL81YcP2Co3jsqxbbohp44sfe9ze2Bp db/g== X-Gm-Message-State: AKaTC01fBiU8+bC3IB1VGgs/M1ZawbszKz5UPNjrFRiS0NHkb8fbO8So7ijuwUvHoGt/agMoxE8= X-Received: by 10.99.61.6 with SMTP id k6mr38936536pga.154.1479783357964; Mon, 21 Nov 2016 18:55:57 -0800 (PST) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id p25sm40477532pfk.20.2016.11.21.18.55.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Nov 2016 18:55:57 -0800 (PST) From: Heyi Guo To: linaro-uefi@lists.linaro.org Date: Tue, 22 Nov 2016 10:54:49 +0800 Message-Id: <1479783289-102044-1-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 Subject: [Linaro-uefi] 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 6c4beef..84aa127 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