From patchwork Mon Nov 21 13:08:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 83226 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp1511450qge; Mon, 21 Nov 2016 05:10:29 -0800 (PST) X-Received: by 10.107.8.201 with SMTP id h70mr12382061ioi.139.1479733829239; Mon, 21 Nov 2016 05:10:29 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r184si13918768iod.227.2016.11.21.05.10.28; Mon, 21 Nov 2016 05:10:29 -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 9BD6E60E48; Mon, 21 Nov 2016 13:10:28 +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 E7DD26099B; Mon, 21 Nov 2016 13:10:22 +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 F2A6660E3C; Mon, 21 Nov 2016 13:10:20 +0000 (UTC) Received: from mail-pg0-f45.google.com (mail-pg0-f45.google.com [74.125.83.45]) by lists.linaro.org (Postfix) with ESMTPS id 4896260998 for ; Mon, 21 Nov 2016 13:10:08 +0000 (UTC) Received: by mail-pg0-f45.google.com with SMTP id x23so127809962pgx.1 for ; Mon, 21 Nov 2016 05:10:08 -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=2RJg5Wtjfz3ZvNmwT/RiQ1VgbA7kBlpqa7eInQw/iZk=; b=WaX/SDGeUoBfFNnwdDXuTYeB+qTr2LILj7+TxjNwyVKPwUlc8ahTb1AsW3QSo5lpc6 T19LmPOP0hwi2o9+ipao0tLwYOxYoUGTdx4SReHfRcd+y35BS/wxxNdmnTTWE+WBE1Kj evP/HGAMGoMsA/42RTMI/afTf1CE+GoGqAp9kGYU0ac+1K1H3wKTkrpWIC4GR9B5cs2a pjn7KFW1bBSBEitTDWXP18YOSV+flklxXo/I01EZsgSO09KW6tnWx1G/4w38ePl1M/PA B31vxM4ryrYdBW7YHbulARXdf+FhwpknttcMdpK4przqwQDYoo6DBEYUqrdZnPJm3mON eSdw== X-Gm-Message-State: AKaTC00pF1k1qh51178jZKvsxcAD/VWjz4v+kLiOUePyInYOWGZVxd/4I69KK3/BWnY3+UNAjYw= X-Received: by 10.99.106.200 with SMTP id f191mr31817169pgc.143.1479733807347; Mon, 21 Nov 2016 05:10:07 -0800 (PST) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id w24sm37727179pfa.9.2016.11.21.05.10.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Nov 2016 05:10:04 -0800 (PST) From: Heyi Guo To: linaro-uefi@lists.linaro.org Date: Mon, 21 Nov 2016 21:08:48 +0800 Message-Id: <1479733729-100907-2-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 2/3] 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 850b16b..34276b3 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