From patchwork Fri Aug 31 13:26:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 145624 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp784172ljw; Fri, 31 Aug 2018 06:28:25 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYY/o0ZDerES0PYPoRpFDLH7bM45U4RaznGX+4ZvSaRcG/a0MTaKinFqu2RKn71ucVxEi4f X-Received: by 2002:a62:398c:: with SMTP id u12-v6mr16114941pfj.9.1535722105608; Fri, 31 Aug 2018 06:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535722105; cv=none; d=google.com; s=arc-20160816; b=kf8aZwgR2vHG8LTRtqWQP0Q2bBXbOnCpYOdTGaQQCKHeYupCjPR/CTHFQ23nnTEOmf cteIqM2gzw9bBH1y5yNMuku2h1xzM8gr66D7vC6a1RQlqZGCe9d4ZpapQOl4JLw7KQRZ wKLTfPBhlcvsTMFirtsbbq+/uJXXRnTDXqKIROzvIvQQS8mHNt5vavYNc864ob3xaZZ6 0uzF+1JjpwZQ8UN+/aEfzdifv0JTwbBaWNaQw2FwT1NpTNUa0lj7JupgDIzET3rgab9s Fi2z3PinGoUhyL/Qlb2u79Nd+jsbx7Wx5AQlZjunMbns6FeQ9c9p8qJOnNB2W5GJTXPk RgCg== 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=kVPHHKbLCBQQJhs/E8vb2RvmvXq5vlYmJecad/hluys=; b=gkBgVyqJ49kNEEuNfyvkAk0b7xNlonULi3jvzWDAC2nZzkUPuNcDQ90dAh0FHNclJU ZB81w62bGVxi9xFKAIlwmodWAYP0ahPx+9LFI9gHOpgGu+wcj+wbJaWIyVNiV6EM5w9D WrrLOOs7RBkZ1Bfo2z5GvoQMCxX/klYHLoMl2ffUxFdGgIjixdDNpFddmoMxw0bZPQKu i70m23XbbVQRhCzO5HOvQiH5V5JBU0rNWsKmNxCD6lFds3klzRi+jm/VnzVLZlbV5ypI qdQBtF/Cs2rXLPL6RRvG0babSVaUemnVZnKaTydP5QntLaaWZG3o00UzN2YJFyVJbHmO zFMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="C/vP5bxC"; 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 32-v6si9758023plg.390.2018.08.31.06.28.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Aug 2018 06:28:25 -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="C/vP5bxC"; 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 0BDAF2110BD59; Fri, 31 Aug 2018 06:28:16 -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::644; helo=mail-pl1-x644.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) (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 4766D2110BD4F for ; Fri, 31 Aug 2018 06:28:14 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id g23-v6so5479598plq.9 for ; Fri, 31 Aug 2018 06:28:14 -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=Fn4WJzTAkMOW1PMqJZh+4+SaJDdu3ScHr3e+4ysrlgw=; b=C/vP5bxCGNfllDYm8BZqYmhaQQ55WjaKs4TczWeBrNPUKXvslB0ZGX6cLQzrKVXksu n9ieDgZG/+sHJyKg5cfMAxUQcD9d91oAHZjiSdhKEHiLiffWZkzsmcn43ocAOYiyGuuV q/UXssFs58I35YuLpw8tQ67pzGH3GUUe9J3UE= 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=Fn4WJzTAkMOW1PMqJZh+4+SaJDdu3ScHr3e+4ysrlgw=; b=UZI+/snMeLi4HW7ZMC9KWBuAdDFYzhMsOTgAIA5i9iZiw+dJ4tQ5EZAS3qBCz9S9Zq 89x7+eX4m6E26HqS4GvYGnCr3at6Fl46MiVLkeJiyF4Fos6hIl2zwurnYsq1iDn37Thb tdRFH2Q+ndJJl1IOi3JLKl82Yy/0l57pH0QB1X9nkBWhzcYCPgwQ/T69xljRirkgnrC1 kpPbPxi3vTaoD1XXWgPjY7BGzSnz7n+zatM6rbVIYtHr1bMLe/IwLkZDw9PJ9ELmw9f8 b7dZLYT4KoQ7gzCnS28SGQ31NOFMFMMhVeiTMfYaPu+5k5Nlkd+LFsVoP67TQmRGOglQ rhzQ== X-Gm-Message-State: APzg51AgK6C2WaGWPQ+3I9wtq4qBUMGuMKXO3pYdw29Ddw51xMOl+n6U Ok+FG/KXUDjf7xpJriaFtH3XEQ== X-Received: by 2002:a17:902:585:: with SMTP id f5-v6mr148074plf.7.1535722094033; Fri, 31 Aug 2018 06:28:14 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id l185-v6sm19081936pga.5.2018.08.31.06.28.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 31 Aug 2018 06:28:13 -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, 31 Aug 2018 21:26:56 +0800 Message-Id: <20180831132710.23055-15-ming.huang@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180831132710.23055-1-ming.huang@linaro.org> References: <20180831132710.23055-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v5 14/28] Silicon/Hisilicon/Hi1620/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, zhangfeng56@huawei.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 Reviewed-by: Leif Lindholm --- 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 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."