From patchwork Thu Aug 16 12:12:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 144369 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2000686ljj; Thu, 16 Aug 2018 05:14:29 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxbUpitkXW+z12n50JQmZXKS9uWFq+FO1AAP2Zki0PVX7QKZIEYUbeBJg9CHswKVixVr1+L X-Received: by 2002:a63:af14:: with SMTP id w20-v6mr29617721pge.47.1534421669543; Thu, 16 Aug 2018 05:14:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534421669; cv=none; d=google.com; s=arc-20160816; b=GXckXNU6emgYqfEgR3dYaX7HZf/XZ1Lbewif2b1r7rBZ6kERDNU2AQVkuAyO3Gjj9t rvDkUEOzwrErMyBUbZibJP/Aj9iztkgdtKWJxmmqjknX72vRlBDqD3tSnbykhFIBt7Mi Ds6x0t0xQZSulNnQIJoxH8p3ZocjkNzI9SHZwukxJlHWsDmsy5K6CSZFUpOWAI1VL0K2 3tCe3+kU8NetsdTbsyqTTRZzb/8n4f5NMhTrF/ya/SyV/xT8aH0X/lOGWcPq9+s630J+ 2IgZqYKFw5Btm/ZIAxyEz7i/UyhBlDfaP/WAd9fs+oIhPNqEEIsCUTM3mpMQquKreQNm cUzw== 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=Y25AMJsBcc3OyAUqowI/oTwCyQoKgwLQHPUQmMYNkQ8=; b=HoyCbgfpHJ/vMB5Lkxj4XKatg3J7KHmr8BqxhDPo6yvkmkKrJ+/+Qe8B9hW/EzOmo/ tMZ+2bF69SBY+BraZVbzuduVgwTu8FeioDaQ0fT2Ztc7lGTQdo6G+vMaDRrR+/11nfuW Wm/50hl1XvIisUmhflZ14BuKb+irTLJ6tl5qRxYw+Ej5cqMReeWQ2ERCwokxbWLjDJ57 rSRHke2eHZr37E2okfypS7E2VbdyOuvwdyzaDtcvnZdREIPdyjaHVRFmJQqwqrIP9z6a 7KdL1W/C3ECR+lznb2J1QJ1iNHQF21lJ+jpJFayPP7jGfNSKhF8Zl4KzITk5DpPXTe/4 bZow== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CcjchTBF; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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. [198.145.21.10]) by mx.google.com with ESMTPS id q20-v6si22788915plr.361.2018.08.16.05.14.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Aug 2018 05:14:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CcjchTBF; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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 767E8210F3D6A; Thu, 16 Aug 2018 05:14:10 -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 A3157210F3D64 for ; Thu, 16 Aug 2018 05:14:09 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id v66-v6so653674pgb.10 for ; Thu, 16 Aug 2018 05:14:09 -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=xWEjpoKKe+Kv/WBERcgUF3ICii1uDUohqa01nmce8aY=; b=CcjchTBFDjVUEh2Fpj9HhNzzdz8ILu9dIHWSKaNWjMk8lbZ3TMXH9lYxc9fnfeDcgq kryDtowvAqdaaFlLKC+TufL4J0vvK72KkLqmz5VLuIZUsRJdFmgCjJ7viHGPV2l54YSp sYAz9r7oNB1iVa96EO4UzOHkeCXPAagt2BlXA= 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=xWEjpoKKe+Kv/WBERcgUF3ICii1uDUohqa01nmce8aY=; b=J/tQsaYxipjRTsMoGjn3Tao1T8CJbnSY8bU0ExUhiV9udTHi60TdVwBdnf8IhJmYr7 uasFXn9q4eXyGO83aojn93FIxqcdtpCw+lZRlOHyow7JCEaK2oVbzJnWtuzbdU9LmDrJ 63h4mUtn7K6GKRrW9F4nofO3/RGYJ4AfD+4+n06Afb620aDUbvR2bg//3VRJJ3JDR32R tfOsdFq4Z4m0WjbR6XZKH+HZLFicNnRFmjH11YYlcAW7dxjAWYLH3dOJnMd+QlHCOL1D 4FEzyCEbSufxtkU+Xxx6UDEQ4gtxMSqLPU09zgyytR8DR5xVUIVRgowmZU8IsQ4E+2U4 8Z/A== X-Gm-Message-State: AOUpUlELAJ3oupZKJ1J9OwQwN4epfBu2M/804O4bXBYbTtl+n2RUCqow fNUTtz5fUJ42UZffR0Dju3SWVQ== X-Received: by 2002:a63:3c0c:: with SMTP id j12-v6mr28385600pga.440.1534421649404; Thu, 16 Aug 2018 05:14:09 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id j27-v6sm46736311pfj.91.2018.08.16.05.14.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Aug 2018 05:14:08 -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: Thu, 16 Aug 2018 20:12:22 +0800 Message-Id: <20180816121239.44129-20-ming.huang@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180816121239.44129-1-ming.huang@linaro.org> References: <20180816121239.44129-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v3 19/36] 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, 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 VGA device SM750. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yang XinYi --- 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.17.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 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; diff --git a/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfig.c b/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfig.c index 1e3635307c..3ecae3759a 100644 --- a/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfig.c +++ b/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfig.c @@ -295,6 +295,7 @@ OemConfigUiLibConstructor ( Configuration.EnableSmmu = 1; Configuration.EnableFdtTable = 0; Configuration.EnableSpcr = 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 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 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."