From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: ANB0VdYLFd9umGY5occTimCK/lKP6B2ew52SPJUvU2z39mPJD9VUInW/fOS+h+A1t0D6TtxnzlNWLA== 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 Cc: ard.biesheuvel@linaro.org, michael.d.kinney@intel.com, lersek@redhat.com, guoheyi@huawei.com, wanghuiqiang@huawei.com, huangming23@huawei.com, zhangjinsong2@huawei.com, huangdaode@hisilicon.com, john.garry@huawei.com, xinliang.liu@linaro.org, zhangfeng56@huawei.com, Yang XinYi , Ming Huang 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: [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: , X-List-Received-Date: Fri, 31 Aug 2018 13:28:14 -0000 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(-) 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." -- 2.18.0