From patchwork Tue Jul 24 07:09:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 142722 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp6935259ljj; Tue, 24 Jul 2018 00:17:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcTExAK56sVXLsKitdcxmu8GqvuuRmqSnb78ENG8K+4mRWHrCGzJYHlXtx7lflzlgbbC+rb X-Received: by 2002:a17:902:3a3:: with SMTP id d32-v6mr15964304pld.294.1532416649653; Tue, 24 Jul 2018 00:17:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532416649; cv=none; d=google.com; s=arc-20160816; b=npATCLypbctfN46aOFChpQZR1n3gb0awDrBOohY12lv4RUxNXU3Cp9s0yneCCs30M/ igiqnYMm9FnFSichY54Fx4NtMPFe+U3VtuvV/uvttP+SgkqvzXYEWZ+FzUMZoGsGyaho pktWM7o0hFa02P5wtlT7WNAEH26tKxgT/Kjuy6c+foBAdokExBXXs+9YDP+QtfxD7uGS nAWE4sQYYkr94EUeImy8mVpWXy/Rh9gdSw5Ssa64X/SXjHe97mgN1eOkPoqa8PnTWzvs T6ZMt+YnlLt+UqF9nHYNyFZP0h6J/Cq7dN74vEDnEiRLjO4hjstPgZn/YZpI0K3v81KO /XsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to:arc-authentication-results; bh=Vh+IF8xMtZwokXZXTCbNeaYuNRQ/q+jCFfAgdAOML9Y=; b=WwYfOkYTPVZx1BdvCTawBPFRCta11FyPGST3geE5eUhSkHO9j/FJdMNGl3CcjJsQ7n AGyuKEgqFYW8T7odXV96PwnPs7MzKn8DnSYvpbe33lE+QUOp+eTTjH4/e2E+wfIXerCl IWgQcPUan7nm9ZMtbk7TiMXSH3QhwH7x8PixVrNTi7xqwby+kzoGG3z0/mE0MdLF75j2 8Rdq1ZMKxeBHJl8V39lO44RAAuykjiXYuwoUuecyZ7jCMwtQjlIlTR52bvT4P0yyQV4Z 8tAFprr2Zt4Cn4jdDI2if6BsSpZ9vbxYJKmzNl36gn1of5KhsI5N4ix7zRYId9gl0u61 JeyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Wo68LqIq; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id u14-v6si9196128pgv.180.2018.07.24.00.17.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Jul 2018 00:17:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Wo68LqIq; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 199A2210C124C; Tue, 24 Jul 2018 00:17:29 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:400e:c01::241; helo=mail-pl0-x241.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pl0-x241.google.com (mail-pl0-x241.google.com [IPv6:2607:f8b0:400e:c01::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 60B53210C123B for ; Tue, 24 Jul 2018 00:17:27 -0700 (PDT) Received: by mail-pl0-x241.google.com with SMTP id m16-v6so1348699pls.11 for ; Tue, 24 Jul 2018 00:17:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RPyoElVX61VtMOz6rGetagqXJGRW88wGhSjb/E8W0Gw=; b=Wo68LqIqUhI/gtx9ct7L2WBdv38o9zJouhafP2xtjD/oSrD45PSpkERnbp8tFwaUom /DhC05CVucTJVKbM6WIQrBRBUaeK/2peJsbOYa058CY0VUdUDy/NsOQCsVbrJIhgMW8m 1i1YEtFmIVUMwYlNyQETQv8+rH/sZqNe6HAHs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RPyoElVX61VtMOz6rGetagqXJGRW88wGhSjb/E8W0Gw=; b=B0/1VWs1AI1wsqaOm5rb+dVTSwXLC48z3A/rxGD+9DQEegEh30tmY4ccI3iPqmop0A 7eXuvXn2wKyDSFH8JlcZosyB6hSVWBT/4wpQ6beqP722YXkyodvnDO7/OgBmj/CblmL+ d+2VMaGVB0OHVNnB9+d1Z0VSyc6hn/u8c2qNyNNe6sEMpaYV9OrIoDU+gbmes3K5ardK MozSOhL4USDIMbbwwy6yZrdvLPt2NvZtCWn1PHwdcj119P7I9xCfPMBXL+ViIt4f/Tfi c2flSfYLDonBuVAwEF+C/W5lQCqLT/0R3j5YP5xY7rzUlZPClr7gCZPPaIsE09dsVXce HT5A== X-Gm-Message-State: AOUpUlGAGSu7u1VJtWzhoSEBk0LqfI9Inw7ieBHY3dUiz0jL9gUZPtd8 7fiC1B+RS5Ouy7gt6nCpe6lTOw== X-Received: by 2002:a17:902:8a95:: with SMTP id p21-v6mr15870021plo.91.1532416647033; Tue, 24 Jul 2018 00:17:27 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id t14-v6sm11449788pgu.0.2018.07.24.00.17.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Jul 2018 00:17:26 -0700 (PDT) From: Ming Huang To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Date: Tue, 24 Jul 2018 15:09:02 +0800 Message-Id: <20180724070922.63362-19-ming.huang@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180724070922.63362-1-ming.huang@linaro.org> References: <20180724070922.63362-1-ming.huang@linaro.org> MIME-Version: 1.0 Subject: [edk2] [PATCH edk2-platforms v1 18/38] Silicon/Hisilicon/Setup: Add Setup Item "EnableGOP" X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: huangming23@huawei.com, xinliang.liu@linaro.org, john.garry@huawei.com, zhangjinsong2@huawei.com, Yang XinYi , huangdaode@hisilicon.com, guoheyi@huawei.com, wanghuiqiang@huawei.com Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" From: Yang XinYi Add Setup Item "EnableGOP" for D06, This Item only takes effect on SM750 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yang XinYi Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/MiscConfig.hfr | 7 +++++++ Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/MiscConfig.uni | 8 ++++---- Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfig.c | 2 +- Silicon/Hisilicon/Include/Library/OemConfigData.h | 1 + 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/MiscConfig.hfr b/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/MiscConfig.hfr index 9e3ac73116..c0b6e294a6 100644 --- a/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/MiscConfig.hfr +++ b/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/MiscConfig.hfr @@ -38,4 +38,11 @@ form formid = MISC_CONFIG_FORM_ID, option text = STRING_TOKEN(STR_ENABLED), value = 1, flags = 0; endoneof; + oneof varid = OEM_CONFIG_DATA.EnableGOP, + prompt = STRING_TOKEN(STR_ENABLE_GOP_FRAME_BUFFER), + help = STRING_TOKEN(STR_ENABLE_GOP_FRAME_BUFFER_HELP), + option text = STRING_TOKEN(STR_DISABLED), value = 0, flags = DEFAULT; + option text = STRING_TOKEN(STR_ENABLED), value = 1, flags = 0; + endoneof; + endform; diff --git a/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/MiscConfig.uni b/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/MiscConfig.uni index 5ad1d1df30..0170c84ff6 100644 --- a/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/MiscConfig.uni +++ b/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/MiscConfig.uni @@ -30,7 +30,7 @@ #language fr-FR "Support SPCR" #string STR_ENABLE_SPCR_HELP #language en-US "Enable or Disable SPCR Table." #language fr-FR "Activer ou désactiver la table SPCR." -#string STR_ENABLE_GOP_FRAME_BUFFER #language en-US "Support GOP FB" - #language fr-FR "Support GOP FB" -#string STR_ENABLE_GOP_FRAME_BUFFER_HELP #language en-US "Enable or Disable GOP frame buffer." - #language fr-FR "Activer ou désactiver Buffer de frame GOP." +#string STR_ENABLE_GOP_FRAME_BUFFER #language en-US "Support GOP FB for SM750" + #language fr-FR "Soutien GOP FB pour SM750" +#string STR_ENABLE_GOP_FRAME_BUFFER_HELP #language en-US "Enable or Disable GOP frame buffer for SM750." + #language fr-FR "Activer ou désactiver Buffer de frame GOP pour SM750." diff --git a/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfig.c b/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfig.c index 586094dfbf..88051493cf 100644 --- a/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfig.c +++ b/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfig.c @@ -311,7 +311,7 @@ OemConfigUiLibConstructor ( Configuration.EnableSmmu = 1; Configuration.EnableFdtTable = 0; Configuration.EnableSpcr = 0; - //Configuration.EnableGOP=0; + Configuration.EnableGOP = 0; // //Set the default value of the Ras option // diff --git a/Silicon/Hisilicon/Include/Library/OemConfigData.h b/Silicon/Hisilicon/Include/Library/OemConfigData.h index 478821ae2c..e4d5917046 100644 --- a/Silicon/Hisilicon/Include/Library/OemConfigData.h +++ b/Silicon/Hisilicon/Include/Library/OemConfigData.h @@ -61,6 +61,7 @@ typedef struct { UINT8 EnableSmmu; UINT8 EnableFdtTable; UINT8 EnableSpcr; + UINT8 EnableGOP; /*RAS Config*/ UINT8 EnRasSupport; UINT8 EnPoison;