From patchwork Mon Nov 21 13:08:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 83225 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp1511227qge; Mon, 21 Nov 2016 05:10:08 -0800 (PST) X-Received: by 10.194.169.227 with SMTP id ah3mr9343865wjc.2.1479733808762; Mon, 21 Nov 2016 05:10:08 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id dg10si20051390wjc.293.2016.11.21.05.10.07; Mon, 21 Nov 2016 05:10:08 -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 F3DE860D03; Mon, 21 Nov 2016 13:10:06 +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 9C6056099A; Mon, 21 Nov 2016 13:10:02 +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 6C1586099B; Mon, 21 Nov 2016 13:09:56 +0000 (UTC) Received: from mail-pg0-f47.google.com (mail-pg0-f47.google.com [74.125.83.47]) by lists.linaro.org (Postfix) with ESMTPS id 4ED0360998 for ; Mon, 21 Nov 2016 13:09:55 +0000 (UTC) Received: by mail-pg0-f47.google.com with SMTP id x23so127808243pgx.1 for ; Mon, 21 Nov 2016 05:09:55 -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=kA3vw7lt8r+2GVCSyhPA6KETFcAJhO1V4It6JviB3tI=; b=DqUkQyVvY33Y2f3jE55nON3FRw6fPBHw5RobIv/jSxahtLMrVKE3damvqsCaymaEHf rvjEE9b07rvuqRe84AbMrJsyD1gJhIQpKyKGacB8xmiWgzcFr0vyEyqR0WXtvePnKfnM 2BiGjZhZ/vTjvmlRhlcPPriZD4ocDu9G/C8wsRlF2ewzZPpQUHSeSeeRJdGtcPbvxIUx l0zQYOYFW/1jT97vj8aPcMfUVrGRJPhmeB0+dzg9a0hTjsOjqJpmORCtt2rtPn7FxWPV Z+i4rAQN/6lBM/jMy9LPV57kmInS5nJuNUGbj6HyF8x6sRO+fJ5YtCp0MJagq71GFr+G 67zA== X-Gm-Message-State: AKaTC007yuAaT53YCOtL2+lzX3BFHwSLcylwf/au+dns9fV9LibzFPRQqaZppLSdYkJIXoJa+T4= X-Received: by 10.99.189.1 with SMTP id a1mr31886901pgf.142.1479733794342; Mon, 21 Nov 2016 05:09:54 -0800 (PST) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id w24sm37727179pfa.9.2016.11.21.05.09.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Nov 2016 05:09:53 -0800 (PST) From: Heyi Guo To: linaro-uefi@lists.linaro.org Date: Mon, 21 Nov 2016 21:08:47 +0800 Message-Id: <1479733729-100907-1-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 Subject: [Linaro-uefi] [PATCH 1/3] Hisilicon/D05: flash related driver 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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Platforms/Hisilicon/D05/D05.dsc b/Platforms/Hisilicon/D05/D05.dsc index 6c4beef..7da2522 100644 --- a/Platforms/Hisilicon/D05/D05.dsc +++ b/Platforms/Hisilicon/D05/D05.dsc @@ -72,6 +72,7 @@ !ifdef $(FDT_ENABLE) #FDTUpdateLib FdtUpdateLib|OpenPlatformPkg/Platforms/Hisilicon/Binary/D05/Library/FdtUpdateLib/FdtUpdateLib.inf + !endif #$(FDT_ENABLE) CpldIoLib|OpenPlatformPkg/Chips/Hisilicon/Library/CpldIoLib/CpldIoLib.inf @@ -494,6 +495,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 +610,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