From patchwork Fri Mar 16 16:13:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 131934 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp939846ljb; Fri, 16 Mar 2018 09:13:44 -0700 (PDT) X-Google-Smtp-Source: AG47ELtcAurbmZs7HAHaJQc92CKTW0nnYiI2CwrhF2bbHTxKbSKDecbyLeNHOsosygT3GQMU7ykQ X-Received: by 10.99.120.196 with SMTP id t187mr1914029pgc.149.1521216823979; Fri, 16 Mar 2018 09:13:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521216823; cv=none; d=google.com; s=arc-20160816; b=iE0pfETGmFYi1kpHaI0UkhRGlBLxH6wE0q3/ZTwbnnLRVEFSiaGOIEozNuibdq3oYf YqTioT/lTWZNJ/Mk9SNh3Z42Zi13Kojit6VxNNADxEQkeVL4zBUmVINb0K9YPj62z2mH 4kjmBE2zJBzO2S8S6Ka+X3rUYufYJOc7bYSRlYh9J5PIrQziY8goGQw8yaBoDrj/Wzfx H3txk+6ecaHUTKZjX3VfNj0LNA1RG6cARmzyo5lm2qdl3WnjzV2n98PTDxmdWNVxPoHu scd8HimLUzOegfkIBRHtRBTjRDJ0rYpGNJ8W1byN6YNzGxGIYaJlCWUV05SK6rnXV+i3 IGMA== 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=7YqGaOloDnoqwI+6fdeqj3teiiTXnbVKjMp48yVfDlc=; b=fGTSRot2GSQ8hKdiYkFXQCeDVizH+ncVUXdbCteNncyG0hAChRppdcDjgPy5G2PQNb VtwyCt351AJ23chSh9/J4hkb2UroXgqkFoFQXbd1a8Xl554K1KSFd/em+jp7mYZp3obF M7I1RgfrVQ3Q4Mbb4XEcRw7Vwh4eDwTwnDEeHzNSrSX4rcC3GHySiwL5AAsOfYGEbsJ8 IUcyGlojBSFPPs4Mh8qq8WCuYCFLlPdPunz3pdb5GqJRvvIDHPvcq9e3P25/P7QDN+Sg FUb8V0SVp/sUxQVxU2quYFeTi8IPcbsdBZWoRbjZyDaKmzplZ94XXBKdIa14tFky6H/I txyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=RASMuOoL; 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 z2-v6si6432321plk.670.2018.03.16.09.13.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Mar 2018 09:13:43 -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=RASMuOoL; 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 C174322489C84; Fri, 16 Mar 2018 09:07: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=2a00:1450:400c:c0c::243; helo=mail-wr0-x243.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) (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 1DD4320954B86 for ; Fri, 16 Mar 2018 09:07:13 -0700 (PDT) Received: by mail-wr0-x243.google.com with SMTP id c24so442802wrc.6 for ; Fri, 16 Mar 2018 09:13:38 -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=XMzZam2ekqxCRVuPnZz69gxY464/TRcEPOQ5D7O5r30=; b=RASMuOoLxexUICZcX3w8KpNelmbh7dxY5Xylm8RRmb5YPa7DMMtS2GYdLK8alXW4d3 GsfgKs1VPx5gPoKCFz6bmnlPL2/YSy9plL7L2Z4+rUaX1aCvnB9epRHoODOeFjMvb9nO /F+dcaQa6fGIGy2gUC1RKQBlY/g4kDUh3KZmg= 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=XMzZam2ekqxCRVuPnZz69gxY464/TRcEPOQ5D7O5r30=; b=jn0+LX0k0o4WEMThioLV+ys0Nuy0+c4jegPkL9T0X+MwSh9XTiE2dGT7Q/VRHkc8Ck lsRmHwiYwwxKZqfdvTxpfBUg54VC5JwTKG47oYQ/F8WC5Q8hPbplVopUNRoIuWy2ydKM edpsPnO90P+4zOad9V1BczsFYmyUnvsYEhmQOOOP4vhiwwtHzsZH5GsBWXVMve2c9huB FN9z0qXcKSz030/5i6571+xjWilsPR9XuabuiYtVlhwJoGFLL4Hn+r58a4Q82L+u837A 1bIQI+0KAcSboliOnrWPvmEV8rKbOVqIftDJJKkJTbu6S32Wyy8hbVpfeUeOqfbsvuaW K23w== X-Gm-Message-State: AElRT7H81Wfwbl7MjmgbG0q+5l3BzXAC8rZphcwGOaMCn7U749Dhpivn zZ4eEYWL/jxXO1dQq5oWdx36VuR2AkY= X-Received: by 10.223.128.209 with SMTP id 75mr2143667wrl.108.1521216816883; Fri, 16 Mar 2018 09:13:36 -0700 (PDT) Received: from localhost.localdomain ([105.142.191.63]) by smtp.gmail.com with ESMTPSA id n8sm7876242wrf.12.2018.03.16.09.13.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Mar 2018 09:13:36 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Fri, 16 Mar 2018 16:13:20 +0000 Message-Id: <20180316161322.6756-5-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180316161322.6756-1-ard.biesheuvel@linaro.org> References: <20180316161322.6756-1-ard.biesheuvel@linaro.org> Subject: [edk2] [RFC PATCH edk2-platforms 4/6] Silicon/SynQuacer: make lowest supported f/w version PCD configurable X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: leif.lindholm@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Allow the lowest supported firmware version to be configured by PCD so that each platform can set it individually. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- Platform/Socionext/DeveloperBox/SystemFirmwareDescriptor/SystemFirmwareDescriptor.inf | 2 ++ Platform/Socionext/DeveloperBox/SystemFirmwareDescriptor/SystemFirmwareDescriptorTable.aslc | 2 +- Silicon/Socionext/SynQuacer/SynQuacer.dec | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) -- 2.15.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Platform/Socionext/DeveloperBox/SystemFirmwareDescriptor/SystemFirmwareDescriptor.inf b/Platform/Socionext/DeveloperBox/SystemFirmwareDescriptor/SystemFirmwareDescriptor.inf index 95a5e482a713..db0c9c43b2e5 100644 --- a/Platform/Socionext/DeveloperBox/SystemFirmwareDescriptor/SystemFirmwareDescriptor.inf +++ b/Platform/Socionext/DeveloperBox/SystemFirmwareDescriptor/SystemFirmwareDescriptor.inf @@ -29,6 +29,7 @@ [Packages] MdeModulePkg/MdeModulePkg.dec MdePkg/MdePkg.dec SignedCapsulePkg/SignedCapsulePkg.dec + Silicon/Socionext/SynQuacer/SynQuacer.dec [LibraryClasses] DebugLib @@ -39,6 +40,7 @@ [LibraryClasses] [FixedPcd] gArmTokenSpaceGuid.PcdFdSize gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareRevision + gSynQuacerTokenSpaceGuid.PcdLowestSupportedFirmwareVersion [Pcd] gEfiSignedCapsulePkgTokenSpaceGuid.PcdEdkiiSystemFirmwareImageDescriptor diff --git a/Platform/Socionext/DeveloperBox/SystemFirmwareDescriptor/SystemFirmwareDescriptorTable.aslc b/Platform/Socionext/DeveloperBox/SystemFirmwareDescriptor/SystemFirmwareDescriptorTable.aslc index fb69de078313..12a56315a5ab 100644 --- a/Platform/Socionext/DeveloperBox/SystemFirmwareDescriptor/SystemFirmwareDescriptorTable.aslc +++ b/Platform/Socionext/DeveloperBox/SystemFirmwareDescriptor/SystemFirmwareDescriptorTable.aslc @@ -25,7 +25,7 @@ #define BUILD_STRING(x) L"build #" __BUILD_STRING(x) #define CURRENT_FIRMWARE_VERSION FixedPcdGet32 (PcdFirmwareRevision) #define CURRENT_FIRMWARE_VERSION_STRING BUILD_STRING (FixedPcdGet32 (PcdFirmwareRevision)) -#define LOWEST_SUPPORTED_FIRMWARE_VERSION 0x00000001 +#define LOWEST_SUPPORTED_FIRMWARE_VERSION FixedPcdGet32 (PcdLowestSupportedFirmwareVersion) #define IMAGE_ID SIGNATURE_64('S', 'N', 'D', 'E', 'V', 'B', 'O', 'X') #define IMAGE_ID_STRING L"Socionext Developer Box" diff --git a/Silicon/Socionext/SynQuacer/SynQuacer.dec b/Silicon/Socionext/SynQuacer/SynQuacer.dec index eb4fc4ace2f7..ccaf80def06b 100644 --- a/Silicon/Socionext/SynQuacer/SynQuacer.dec +++ b/Silicon/Socionext/SynQuacer/SynQuacer.dec @@ -44,6 +44,9 @@ [PcdsFixedAtBuild] gSynQuacerTokenSpaceGuid.PcdI2cReferenceClock|62500000|UINT32|0x00000005 + # for capsule update + gSynQuacerTokenSpaceGuid.PcdLowestSupportedFirmwareVersion|1|UINT32|0x00000009 + [PcdsPatchableInModule, PcdsDynamic] # Enable both RC #0 and RC #1 by default gSynQuacerTokenSpaceGuid.PcdPcieEnableMask|0x3|UINT8|0x00000007