From patchwork Tue Aug 14 08:08:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 144134 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4050019ljj; Tue, 14 Aug 2018 01:11:46 -0700 (PDT) X-Google-Smtp-Source: AA+uWPztUwEhbGtsRfc2Fg7YQcVJkrfMwfCmkQQ/4MZsBiIxxQ2CtFTKqJnfzeJ66zaRKGuqMbyh X-Received: by 2002:a62:e0d5:: with SMTP id d82-v6mr22257543pfm.59.1534234306526; Tue, 14 Aug 2018 01:11:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534234306; cv=none; d=google.com; s=arc-20160816; b=UZevJqTZVGit7zz9eZ152TCcUxBkDaEiCebNJ2b2UioDOjAWPLEf+UlNaKcQa5F68f l6aPpgHlnw3JEyGaU3Le0e3YCkMH8y0u8npCc1njTXF8v+oellYbgjg+B+CrBY5lm8Yz orYPe1M/TfuVETowsVdy+x8HMCenq6mfQGfBVzXPe0YHa04LKS9f1Me4UCdmzYv9D2Ar FXtbOTDgwq0L3H1W3yiFw3kJH7UBQlsXZo1Y9JyVi2xfTJVWVMgD7k3xycTSwT7PNgAg iZ3VYxlfqOmibdHvMRuMmX8eNrUYcPnEkFNTjTFw/BqFCO8WLcKS6HfuceDSNsafVfBk nFIQ== 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=G4WZZ0SbLwFvr9c0ALubcj6Tqu1eRHo5PG5YikTabAnRjJxJy6Ueo/LB25OiD1zAu/ g/SwUwYCpKg/XXI+0ME5VJ6Ys57XAVcRO1MOrAeUGW4cmBNUp5Ul0sbVEncueuYY7Z+1 b2UzSS1KDUBRepuiPqWD/D6h5MiO/v+10DppeTCBTcOluEkiknTlAEgA72pLMuztTjc5 kwUTHzhNcPeA7XEzyyuC45wHHkUPA/6RxHYJXZZBMmTftQ7DBWkHn0lCzSzsgfAPu1xg AZpqUSL0bfT2esqK5rER6yW6k4uYhTygdYzMV+oOavS0evqyNI4LodeNk5i+yL6PRrzO 0HIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Id7skRtD; 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 n14-v6si18974405pgg.216.2018.08.14.01.11.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Aug 2018 01:11:46 -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=Id7skRtD; 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 6745B210F16DD; Tue, 14 Aug 2018 01:10:57 -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::442; helo=mail-pf1-x442.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) (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 4F36421959CB2 for ; Tue, 14 Aug 2018 01:10:56 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id j8-v6so8931594pff.6 for ; Tue, 14 Aug 2018 01:10:56 -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=Id7skRtDOmZGzpd+SJLM49IA6fseRXfivZ+csDdQgq6J3c4Qgvd8LuAV7YO2hKa1b/ tE+8Ux7PN8uMRr5rd7Ns6X/q5ghlgrsqVDL4RJR0dY6cJoBQLXSV4odnmazHPJjh5305 J/sH9+dfKukbXvxYjlpIU4cK75LXfqWwcKqXk= 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=ldQTO0WTiovaFaxutHAIV52API3OCCsgNwfGGfj5DjAyQFuWcB6eoz/FpTLYGkjKzT D/RC7K28f04EcKuPKg7xxD0wwrHwTB+7by4Bt75dNNPc9p3hq8ywEshGVkbb+EY8VJqn c264uLszsD1dq7m/NR4WZq8EuaN48YGe7kx+CsYYF0eTwIOADfC+2OUkLwzHE2vVbd8f g0PEGd1L3lFVHB+Q2OcEsvAniOFVqM9jyQBBQMFSI1xrn+uvCpVLE+GhWh/O4dbAwhAx sgANFuohgRPQj/4hcH3OZgo2yidjFAWeXTK2MpDqqqIHdmUofiF+Ha1YIQqH4Idw01pp zheg== X-Gm-Message-State: AOUpUlH6xWrjVYnsAgfW4O7ZaKm5rPRxNAtGdToKCcKHyLkB4+2zwqjr fx+mqUA8JZEiEZZxHB3RevH1nA== X-Received: by 2002:a62:c0a:: with SMTP id u10-v6mr22191039pfi.43.1534234255962; Tue, 14 Aug 2018 01:10:55 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id h130-v6sm72905670pgc.88.2018.08.14.01.10.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Aug 2018 01:10:55 -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, 14 Aug 2018 16:08:46 +0800 Message-Id: <20180814080903.50466-27-ming.huang@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180814080903.50466-1-ming.huang@linaro.org> References: <20180814080903.50466-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v2 26/43] 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."