From patchwork Thu Aug 23 16:07:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 144955 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp314898ljw; Thu, 23 Aug 2018 09:09:45 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZdxsarJa71Ez7Aoj1S8ePbnl8BAPSXp69S69Wgxyb2VoyudBgsioCXgKp2Inh0jz38Wz1u X-Received: by 2002:a17:902:aa8f:: with SMTP id d15-v6mr1812963plr.64.1535040585027; Thu, 23 Aug 2018 09:09:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535040585; cv=none; d=google.com; s=arc-20160816; b=S+HhvOz8vu+UqtuEgjaEhURwdDMDO9UTVY4wsIeebMbfGuB06nqGFcjdmjOrrxSJAL 9UTEQHEMhKrsh74rZSmChGq7AVMlCS/UP5rGZpqY5DbHHKgAoLR/aM2bfztA0QZArBRA TKU1SK1was0k8kbGxQdoZN6NmsrMlhB56PGi6uTGpFVw90iwD1IrjNn3jSjhaigTmgR4 BG1xYQd40M3Ar+4PF+N3QhBAb9PY+eOCYWoEdbiBoTr6tMtb2CbOcyJi/AAy+ARdy1ss NCuBkUeiibHCBkP/FDCrWq+sLcyTLESHSnmYVApocAMuhxHCh5t7qsKO4N+StKjuAY0B SKyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=G+uG1d8cBkDnPnTHc6sGHibqZa5a1rU5jJXRGcVUhws=; b=MoJmDPmX0b5DWFdnSaQdMZuRkZivyAsUi5d+JJjoXe0g4CSqKMX3YKy83OFIthajgo 6vIjSSwLlhirUTGChprDD4IqT8wURV6IzAk+80OjbDVot/smsyfjNradIZ+l1CSLLoeL 5WJo6S4JsrH0KI+bLRYrQpemldXpo35FlpaTW/P2vGdDvYCmrgq0NUBomzoBo0gGLRT9 DbL+ay+KLfDepF/3IHf9ktAsrqljK32vuPvCOePnDhwcaZJNYaQhZwO6H9Hyjm1205ks iM//a5/wUOUjT+JjRcWQBUR74J2ZTSxCKwXNqyCfw3sqpsvTUFh/YKB/IGwhPfHPIZ5j wrLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Wnoz4dO7; 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 o3-v6si4505622plk.321.2018.08.23.09.09.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Aug 2018 09:09:45 -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=Wnoz4dO7; 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 D7130211069EF; Thu, 23 Aug 2018 09:09:38 -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:4864:20::544; helo=mail-pg1-x544.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) (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 B083D210E2A42 for ; Thu, 23 Aug 2018 09:09:37 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id y4-v6so2813680pgp.9 for ; Thu, 23 Aug 2018 09:09:37 -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; bh=dPAPBY7ORqXvDYv61k6i9ISHZHY15gok+nt1YcP8i6A=; b=Wnoz4dO7i03mh/ldEHAUSahy3gD6p320X0SsCnabuAtJdwbwMo9gKwV8KSGUiOSM8z /FKn8lU1uP9XFJYjzkEDhhsc5k0GWIkJRwJN2GVTdNrEx0q3jqP80LswJsGCQ5lXbczf yYYKzVak77H2S96Ro+Y9LY3EzdQvN/BFTP3tc= 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; bh=dPAPBY7ORqXvDYv61k6i9ISHZHY15gok+nt1YcP8i6A=; b=eMbqzu5YUB992lhMWLwiUDNmocCrjhVrKZMuae6+bKuM9TAl9T9Awxf5araJQ3ZIVk Kg3Z+PoEaPJkVsTVAkJ7Y3Uv3HUfcTZdZwq2nVXlc9M3tHJhMUTcNyx02l2svCHFvE3Z F01+24LFjHL3ff+FEhK5GHoUNTgwokhmT0vQRDQU7v/i7iUKRed7zM1tC84clBgnYnTT GeNZRFzHONltxx4waySELUNYez46yyFYlJGiL2DcC77qBwPpjdpfDb+dKQwaTCi3orao N085LgR7Oad1LV9dbkINsbhJy2tQgA85aQTDRtfHWce5+lPpvuFtaOwS3J1p10u40fF4 Qpnw== X-Gm-Message-State: AOUpUlHRCT1cw/l8JFNmWJ3iHRN5/tZFfOHQBowYPVVC341BfkGWl+jU Dj0Oi9lrG6b8SLoqJtAujHkjSQ== X-Received: by 2002:a17:902:26:: with SMTP id 35-v6mr49862806pla.276.1535040577378; Thu, 23 Aug 2018 09:09:37 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id d19-v6sm5788083pgv.61.2018.08.23.09.09.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Aug 2018 09:09:36 -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: Fri, 24 Aug 2018 00:07:28 +0800 Message-Id: <20180823160743.45638-17-ming.huang@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180823160743.45638-1-ming.huang@linaro.org> References: <20180823160743.45638-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v4 16/31] Silicon/Hisilicon/Setup: Add Setup Item "EnableGOP" X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 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, guoheyi@huawei.com, Yang XinYi , huangdaode@hisilicon.com, michael.d.kinney@intel.com, lersek@redhat.com, wanghuiqiang@huawei.com MIME-Version: 1.0 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. The SM750 is a VGA device under BMC and the KVM output to SM750. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang --- Silicon/Hisilicon/Include/Library/OemConfigData.h | 1 + Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfig.c | 1 + Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/MiscConfig.hfr | 7 +++++++ Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/MiscConfig.uni | 4 ++-- 4 files changed, 11 insertions(+), 2 deletions(-) -- 2.18.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm diff --git a/Silicon/Hisilicon/Include/Library/OemConfigData.h b/Silicon/Hisilicon/Include/Library/OemConfigData.h index 8ab402144c..f120e3123c 100644 --- a/Silicon/Hisilicon/Include/Library/OemConfigData.h +++ b/Silicon/Hisilicon/Include/Library/OemConfigData.h @@ -60,6 +60,7 @@ typedef struct { /*Misc Config*/ UINT8 EnableSmmu; UINT8 EnableFdtTable; + UINT8 EnableGOP; /*RAS Config*/ UINT8 EnRasSupport; UINT8 EnPoison; diff --git a/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfig.c b/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfig.c index f49fb3533b..012d45bc02 100644 --- a/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfig.c +++ b/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfig.c @@ -294,6 +294,7 @@ OemConfigUiLibConstructor ( // Configuration.EnableSmmu = 1; Configuration.EnableFdtTable = 0; + Configuration.EnableGOP = 0; // //Set the default value of the Ras option // diff --git a/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/MiscConfig.hfr b/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/MiscConfig.hfr index 819c2b988d..16ce27b95b 100644 --- a/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/MiscConfig.hfr +++ b/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/MiscConfig.hfr @@ -31,4 +31,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 53eb1622c4..2fd92fedff 100644 --- a/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/MiscConfig.uni +++ b/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/MiscConfig.uni @@ -23,5 +23,5 @@ #string STR_FDT_CONFIG_HELP #language en-US "Enable or Disable Fdt Table." #string STR_ENABLE_SPCR_TABLE #language en-US "Support SPCR" #string STR_ENABLE_SPCR_HELP #language en-US "Enable or Disable SPCR Table." -#string STR_ENABLE_GOP_FRAME_BUFFER #language en-US "Support GOP FB" -#string STR_ENABLE_GOP_FRAME_BUFFER_HELP #language en-US "Enable or Disable GOP frame buffer." +#string STR_ENABLE_GOP_FRAME_BUFFER #language en-US "Support GOP FB for SM750" +#string STR_ENABLE_GOP_FRAME_BUFFER_HELP #language en-US "Enable or Disable GOP frame buffer for SM750."