From nobody Sat Apr 27 09:09:59 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1509472511500522.8936325114767; Tue, 31 Oct 2017 10:55:11 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 359152034A7D4; Tue, 31 Oct 2017 10:51:18 -0700 (PDT) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0049.outbound.protection.outlook.com [104.47.36.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 9164D20347178 for ; Tue, 31 Oct 2017 10:51:14 -0700 (PDT) Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by BN6PR12MB1236.namprd12.prod.outlook.com (10.168.227.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.6; Tue, 31 Oct 2017 17:55:05 +0000 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=helo; client-ip=104.47.36.49; helo=nam02-sn1-obe.outbound.protection.outlook.com; envelope-from=leo.duran@amd.com; receiver=edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ahDRlxaKmxOikNMmP7F72sKVHL6HQaaaPWbdER8Y9hg=; b=a/SJrF0qK0eyB4F9w+c+Ba903JSWse6IgBqPDwLgX5dyH/8xZOHRB+CBQ7NYpOuVpMRjTLqfrnPHRvIlz5rBCKxZOpotsiCKhMJPsG9tqssGTFxpXFDNWuyyO72MiWhYGUNzX05JdLFYUpp+F2j4p7rznfXfKRTxCdydZSraMsQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leo.duran@amd.com; From: Leo Duran To: edk2-devel@lists.01.org Date: Tue, 31 Oct 2017 12:54:52 -0500 Message-Id: <1509472493-19062-2-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509472493-19062-1-git-send-email-leo.duran@amd.com> References: <1509472493-19062-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR14CA0005.namprd14.prod.outlook.com (10.173.227.15) To BN6PR12MB1236.namprd12.prod.outlook.com (10.168.227.22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1c407dfa-4585-45d7-a1db-08d5208884b1 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(48565401081)(2017052603199); SRVR:BN6PR12MB1236; X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1236; 3:1RdEffDGoLhAAgulTrcAr/lfMQDV4GlmNLBgyB81aj2qYJ0YeTdJTOn+d09FBpcL4NbaBMdSKXN7x22RjSxfjXstNKwq56NkZgdGtJfpLbhZhpjoT8YbJbK3SgwQQOVMrywfKsjMRV+5QYsLzvSi4i20JULTG9Qb1wAmv/KgHk8/FN87Y2B3887rlOoCPifq7YG6xr0DdoLx9+l67ScWesvG3fboV+LoJk/deKFmsbD/aDdreDozu7sTsvwCjYfb; 25:uRC/1yPq4QitZNNQIrHBMv1pWmG0IEX7kjcbphfnldQBhGt0zhf/wNjjfzv3c4UpmoqL10QIIimTnVfJYzKrbXtvBSH78B7+XHAoS7Wutt7VuE6GjlTHBG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N/wY2wUDcHjBX5ljyfUxxyBj5GJZq0H/6QIZLnBXYqWbhBFu5OwX+yBPXHHd78NRGPLmuogEdPOhFWwElu4d0R3HfoY1A01jTLUa3pG5cbSLZSaKqmw4+lqsDbOnJcjPb9y355Gw05izjz5iPK3AoW+QTRCrqzh5m3P2NCa8Uh1KlGe5Isyg/V9XekgCC+YEBFfoMq1PQeuRM9aqkeEmdjQNGQ4kO+51DHkV8jhIJtUi1NcaZnArQ8nt/eD099Y8EFG4Sb52q0EjksRep40hgKwB8Fqjx418X7Sq5HGB26rk6MQNlQe/L5SgndyUVJ0Rknyv05dBSwIFSVvwFQt+vbBen7O8j9 X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(788757137089)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(3231020)(10201501046)(6055026)(6041248)(20161123562025)(20161123564025)(20161123560025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR12MB1236; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR12MB1236; X-Forefront-PRVS: 04772EA191 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6029001)(39860400002)(346002)(376002)(189002)(199003)(105586002)(5003940100001)(97736004)(6486002)(50466002)(4326008)(33646002)(316002)(575784001)(86362001)(6116002)(3846002)(48376002)(478600001)(2950100002)(7736002)(6666003)(6916009)(76176999)(50986999)(189998001)(5660300001)(101416001)(25786009)(68736007)(16526018)(305945005)(50226002)(8936002)(47776003)(81156014)(81166006)(8676002)(36756003)(2906002)(53936002)(2351001)(16586007)(66066001)(53416004)(54906003)(2361001)(106356001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR12MB1236; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR12MB1236; 23:OYKH78AQ+mUh+KIiTJna50ugb6TfdVVFOVn9mBNwT?= =?us-ascii?Q?dJ5ZwfynioJnDuY2GxRLNcLd3FqBHVhshR4V7uQAHJgONH782gSsQM00PnRc?= =?us-ascii?Q?2YtdGBX0ZXw01CjxqZ/8k4Re+RauYfQLasphjkxqR4fzWjYs284S4wQOpw9A?= =?us-ascii?Q?Ly2c1Lp4pX6ieonpEwUHYRYz65q0/IMe3baqo6elfWJ3R681QrndGoRLQ7L2?= =?us-ascii?Q?6y4RG3QGzAd0pOUY4IWeyDjArHwylzhVDe8DSyr/FHQTw2+IquzToJq8YH9f?= =?us-ascii?Q?PeYVqlxN0M/P55haA2/jdjgDjbnCMHd8ex71SrPnjPCI41QmI/FSjiHXgYZW?= =?us-ascii?Q?bRIrNw9HNxKJunT0C2g/xWAYQYd8UdCrLmLU7rhjsAJQMWTyQ+gLL7bxWBNs?= =?us-ascii?Q?6AUuYV3NSc/KvtsSH2nf1fRi6RvqeFNlmgsXlSsUThwq0gQrftOLKhu1Capg?= =?us-ascii?Q?3Gj832sFVyntv409u+RP1T5dYcgUY6BbTrvlH7Zi14mu2xN+AcJp1sFgc4Wv?= =?us-ascii?Q?Xhy2/ZUVX4oPPN2BNKvbINzvCKaHqxbwMc5C78QY0P1MRm+u9FkFadl3Yk2Z?= =?us-ascii?Q?qcd5NyaBAu/X2rGUeAa5bSpfZiGF84CMeKXm5XFPL3b+fjl7sy2+9/MNRqDZ?= =?us-ascii?Q?ouFzmYW7kgQGaoJlD3sBEu+YZAkgqFm3T0Qsiznf+kcb43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grwKLkTwuq430SMViLCjAyvxWwWWwr9qPHE27aVnoE2uDpFaQRGNVIf8zcAOleHRKo+G8zUy6dVmTl4l9jypm/8XFBoHZk0t7zu83vIAgRWIuGBzE9s3+J2OkTw/1UGOOk+R5CtRdecOR676GAs7Q=; 24:WN/3X1slfKuPy6YezHJUTNMxLQ3wHVI0A7hWInv06cNJocg4m0Ehu3THQphm/ucVSJYC4pUffFdEnRzN9sl/hTSjLKWzIrnB65ITBDelkkU=; 7:IC99PkPwlFWWoMiOy2nS0IgkV8PFL+6sBNO724VCiAbBX1dqsdk1PIfFXJWc1YCiuhzwcUQUogl5ZArSnEIHf7qR+5XChyqtMv62yn48vVoSVcx49qWLEgnEkDCGjHXS7sEQQITmnn27S05NMOuFooWu9ZPyDQLBDGaVzCYtAY8bkPCrVYOmONIBr4MtsGzGAaDCm3Ud06WndbKZupBKnh9UBmQGr7eoLh6KEisb38P6NT/tTzfTA3VDw8pcvhI9 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1236; 20:MRZkYhwUQoSD8Op72B/EABIzli1Iva6w8cboZeo8ZXrr1s47BQuGB5DWel8kSfVaZ9P/fUncoAn85C3ZT8qHcg46JX+NwVpzNNuMjgH372mpE2pNFbd3QAKCm6wsYEFBuUI0DFkTmUt9GjfWTVqn8jiLCg5PXcXvDhpOHHguffnxH5zpWGVWjSEdsGKOP4qeoiPbQMVh0dsvdNGprOGRjQKfxjMMccsn7OF/eix6HOIosHrzdYoJj2ByadS4Gp3h X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Oct 2017 17:55:05.0261 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1c407dfa-4585-45d7-a1db-08d5208884b1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1236 Subject: [edk2] [PATCH 1/2] PcAtChipsetPkg: Define FixePCD's for RTC register values X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ruiyu Ni Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Define FixedPCD's to replace macros in RTC driver, to allow for platform-specific configurations. Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leo Duran Reviewed-by: Ruiyu Ni --- PcAtChipsetPkg/PcAtChipsetPkg.dec | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/PcAtChipsetPkg/PcAtChipsetPkg.dec b/PcAtChipsetPkg/PcAtChipset= Pkg.dec index b0b2b62..f11d204 100644 --- a/PcAtChipsetPkg/PcAtChipsetPkg.dec +++ b/PcAtChipsetPkg/PcAtChipsetPkg.dec @@ -5,6 +5,7 @@ # PcAt defacto standard. # # Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.
+# Copyright (c) 2017, AMD Inc. All rights reserved.
# # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BS= D License @@ -181,5 +182,17 @@ # @Prompt Reset Control Register value for cold reset gPcAtChipsetPkgTokenSpaceGuid.PcdResetControlValueColdReset|0xFE|UINT8|0= x0000001A =20 + ## Specifies the initial value for Register_A in RTC. + # @Prompt Initial value for Register_A in RTC. + gPcAtChipsetPkgTokenSpaceGuid.PcdInitialValueRtcRegisterA|0x26|UINT8|0x0= 000001B + + ## Specifies the initial value for Register_B in RTC. + # @Prompt Initial value for Register_B in RTC. + gPcAtChipsetPkgTokenSpaceGuid.PcdInitialValueRtcRegisterB|0x02|UINT8|0x0= 000001C + + ## Specifies the initial value for Register_D in RTC. + # @Prompt Initial value for Register_D in RTC. + gPcAtChipsetPkgTokenSpaceGuid.PcdInitialValueRtcRegisterD|0x00|UINT8|0x0= 000001D + [UserExtensions.TianoCore."ExtraFiles"] PcAtChipsetPkgExtra.uni --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Sat Apr 27 09:09:59 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 15094725193181008.1824712273219; Tue, 31 Oct 2017 10:55:19 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 7E65A2034A874; Tue, 31 Oct 2017 10:51:18 -0700 (PDT) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0066.outbound.protection.outlook.com [104.47.36.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E0AD4202E5CFC for ; Tue, 31 Oct 2017 10:51:15 -0700 (PDT) Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by BN6PR12MB1236.namprd12.prod.outlook.com (10.168.227.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.6; Tue, 31 Oct 2017 17:55:06 +0000 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=helo; client-ip=104.47.36.66; helo=nam02-sn1-obe.outbound.protection.outlook.com; envelope-from=leo.duran@amd.com; receiver=edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=4GzFAUdPUMG2ZB3tQwj8jEwuS8ujz3T36f5x2ii21SU=; b=m4kIxi4iwBOi0hG1bORZme5gN5lGHsm2MASMGIFN7QP8f/8KKmN6NZeHkwzquAWDbVcylQyNbNBfjxQwEMdPMiJ4AZOe+bj3XY4GzfH+RxGgpJTON9B9/MwzqbrdUFGKJAE0TUzNTkq8Ai3MSlE4oMvCaJMZ7sphX5/V2l5moOk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leo.duran@amd.com; From: Leo Duran To: edk2-devel@lists.01.org Date: Tue, 31 Oct 2017 12:54:53 -0500 Message-Id: <1509472493-19062-3-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509472493-19062-1-git-send-email-leo.duran@amd.com> References: <1509472493-19062-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR14CA0005.namprd14.prod.outlook.com (10.173.227.15) To BN6PR12MB1236.namprd12.prod.outlook.com (10.168.227.22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b8e7cb0a-be9f-4266-37e3-08d52088854a X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(48565401081)(2017052603199); SRVR:BN6PR12MB1236; X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1236; 3:nlPy1aXE1LPLgEQnBM6spEldaF0pMWpeu5P+m+rsoRdTVKRVBVnx+11rr9TWAJS2dIoOPqBSKz/8cxlaFyb4uGGiyy9l2l2O+FTxIbkYhQGTnU2KnrpCT7RnTK9OmBms+4msBToxRJ3csEQvV+0Tsxj5OPEej4V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3PgajzUHC6f2se+c5FYHLVR3fDOg8cMz/7BXHP6hq9u33kVIcAXnRU+d40yvQVz+pGDSUoo7Gh6RewrcDJ+2QxBTur7HBUH3MX6vgkV6DhuzZihd20eUYrFmFH1+422wn625BDGvt2PvNMuNHHcjZTU4rs2F9VCoUYXgaQSczfRO/CF+vlYgjb30tyjcDvSevg28o0qai; 4:I+wdm+n6Sry4dt0bzfn7HB3YiemJLSB3h5Z0QD7ljAG8B4LrDCLhc36fxZAy5yOGVO9me+Ny6lhZ/x5QmLMfumX/n/LtAY8Ph/Wm9GCCAjcjx9IiDVAlMnOXaeC7Az23aLInDsGzlYUgYJQVI2IX/hcrRyFbtKGolWKzbialKzlsX9v6B7zHs+CevKRiHnmSnU4YbHYmBDwa8+qe8AOwXqoC35KyqoacM4u9Z92nM9ZufDOtc1Ije5paAAlg7+yuH2dc+QV0WTLAgzdMkv071ADWMf1BShoXIAtCGj0J0pnjqOoD2lgsktgnQ3GXrfcSpSHiB1M7Mx1vbKQI9wWv3cCqSJ7akhgzZaRXCObxqV2xKMgkVrCyVu1GJi6CQiqB X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(788757137089)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(3231020)(10201501046)(6055026)(6041248)(20161123562025)(20161123564025)(20161123560025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR12MB1236; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR12MB1236; X-Forefront-PRVS: 04772EA191 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6029001)(39860400002)(346002)(376002)(189002)(199003)(105586002)(5003940100001)(97736004)(6486002)(50466002)(4326008)(33646002)(316002)(86362001)(6116002)(3846002)(48376002)(478600001)(2950100002)(7736002)(6666003)(6916009)(76176999)(50986999)(189998001)(5660300001)(101416001)(25786009)(68736007)(16526018)(305945005)(50226002)(8936002)(47776003)(81156014)(81166006)(8676002)(36756003)(2906002)(53936002)(2351001)(16586007)(66066001)(53416004)(54906003)(2361001)(106356001)(213903007); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR12MB1236; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR12MB1236; 23:R1Y5zlhngfWNCb+cdprSIP1LwAdFN9Gc1vFBIfpVV?= =?us-ascii?Q?pLRnLVncYY2dAZI7Rq27BahCWarJwHnV1Nuy41Nq2zah6rwBQ14IArBriDIG?= =?us-ascii?Q?U7tQR1UKFwDRtdZR9f3zc/xYtdxUm1sRqa9kCRPdWD4cTcCheioT+10rexIC?= =?us-ascii?Q?S+VonE3CIwUwFtjo4rkBMH9BhVP6O9DAGLTdlav6pD97AR9193VSMklgvg+F?= =?us-ascii?Q?L2FVpCKMIL9h4u99JQy967zwaKpctJ2PbhBxbD/Nd5Re52PJqVeYsEvox273?= =?us-ascii?Q?2UTcZmTpykF6z/jY0Ub3qMm/mR/oVgGpnNRIqLExArBtFAXe1cCNVf4zVAHl?= =?us-ascii?Q?E1NVfUvmBL4J2g2w3ax6HdcBN/VX5ut7D+TCvxRu8zmpiVAjAKgQ4LlUjWJh?= =?us-ascii?Q?T14is5WX2rYz+UBGFahTF+Daa6okVReXkSa7R7BD9QBtKRr+mI8vcQRbK3PK?= =?us-ascii?Q?WZ06hbA3KLnLvSLWXisjS0/UHmUDBN4sJS/qYjl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Brlr79ImPbXhgAuQfMPd172tmAMOKyB81890Q+dp6ZHk2PPMJcrSM9uSq8slXHJpu/D/YUfUVk+z1ef23Sj3QQG8x7qal/H2p9YGdC049YtcMGTEgOK3XL48n4j9R1QJVLx4QWdAuYJJN7kUurX6pA7Qj3RO5KZsero=; 5:22FLqIVvGqVrvR8caOvkp1u3UczmnP+5+/HulWpm3+0B5I6Q3sNrxdt6umAY96eWBWRBN+KTwt1fWJh2kxWU89a19eeO1Hi7eTyjfb4JZLdP+EADqoMX++BBh7XA19MCWP1eILKsB1Ngfe1hDsvXFvbL+ngU0T8yy49m3Yo4TNg=; 24:YM2Y520/bryIsz5mNthUJ8hs4CBJTZW6DTjEtPsR0nbGBUZTEmZFo756YijWd6Pp+73noETmFOIZnNrR9lR584gLXKnHDidCp2ZWkqeMyvY=; 7:OIpOGazlG9zsYFUQuvvA9qvXI7L/WFzlYuSUehwbzm4HxMWWhCESyCBARYp3rWSZtcFOzMHytqDMuN2lGcy7NDsBd7vst4nKO0UOZ40pOGeXio4K0taIh5ILWntvRAmKUN2OtNdkSGMEUNsVqbLlWxfvWaM11lk/CfJn1El/z7bee3Mljn6UWfUMAZ0BhOiKzHGqdwO3J/Eh3068zaYMJlPxXfsS9lZe9Zg3iZKjQNR10n+LJNIK+hVtGwvsJqoB SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1236; 20:4W6WfSdOtQ7pqSw1PWZCNQXgWN5xvSIAhHOWO7hn8plrbEwH+rxHrCItTc6NrhsR4sngFEUrQ9yTlMpbpf9kHl853cEYxD1m4qT/tugapP/FUPDI8q89ufAL5E0AlfyoJevjbDfPkUs0ha74eYvhqBH2dbA13Wd4ngrF8i/5ld72iWNjjMYHjMrVJgKm8ZnmgQ7sKfymVjo5GS81kjm4ze5mBif3Zm3+cMDj6BBhdvlDs1KKDynocR0OWf7T4dd3 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Oct 2017 17:55:06.0418 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b8e7cb0a-be9f-4266-37e3-08d52088854a X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1236 Subject: [edk2] [PATCH 2/2] PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe: Replace RTC macros X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ruiyu Ni Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Use FixedPCD's to set platform-specific values for RTC registers. Specifically, the replaced macros are: 1) RTC_INIT_REGISTER_A 2) RTC_INIT_REGISTER_B 3) RTC_INIT_REGISTER_D Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leo Duran --- PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c | 8 +++++--- PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.h | 9 ++-----= -- .../PcatRealTimeClockRuntimeDxe.inf | 11 +++++++= ++-- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c b/PcAtChips= etPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c index 857918d..c032e16 100644 --- a/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c +++ b/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c @@ -2,6 +2,8 @@ RTC Architectural Protocol GUID as defined in DxeCis 0.96. =20 Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
+Copyright (c) 2017, AMD Inc. All rights reserved.
+ This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD = License which accompanies this distribution. The full text of the license may be = found at @@ -128,7 +130,7 @@ PcRtcInit ( // Make sure Division Chain is properly configured, // or RTC clock won't "tick" -- time won't increment // - RegisterA.Data =3D RTC_INIT_REGISTER_A; + RegisterA.Data =3D FixedPcdGet8 (PcdInitialValueRtcRegisterA); RtcWrite (RTC_ADDRESS_REGISTER_A, RegisterA.Data); =20 // @@ -144,7 +146,7 @@ PcRtcInit ( // // Clear RTC register D // - RegisterD.Data =3D RTC_INIT_REGISTER_D; + RegisterD.Data =3D FixedPcdGet8 (PcdInitialValueRtcRegisterD); RtcWrite (RTC_ADDRESS_REGISTER_D, RegisterD.Data); =20 // @@ -176,7 +178,7 @@ PcRtcInit ( // Set RTC configuration after get original time // The value of bit AIE should be reserved. // - RegisterB.Data =3D RTC_INIT_REGISTER_B | (RegisterB.Data & BIT5); + RegisterB.Data =3D FixedPcdGet8 (PcdInitialValueRtcRegisterB) | (Registe= rB.Data & BIT5); RtcWrite (RTC_ADDRESS_REGISTER_B, RegisterB.Data); =20 // diff --git a/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.h b/PcAtChips= etPkg/PcatRealTimeClockRuntimeDxe/PcRtc.h index ba6092d..8aeb12c 100644 --- a/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.h +++ b/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.h @@ -2,6 +2,8 @@ Header file for real time clock driver. =20 Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
+Copyright (c) 2017, AMD Inc. All rights reserved.
+ This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD = License which accompanies this distribution. The full text of the license may be = found at @@ -75,13 +77,6 @@ extern PC_RTC_MODULE_GLOBALS mModuleGlobal; #define RTC_INIT_DAY 1 #define RTC_INIT_MONTH 1 =20 -// -// Register initial values -// -#define RTC_INIT_REGISTER_A 0x26 -#define RTC_INIT_REGISTER_B 0x02 -#define RTC_INIT_REGISTER_D 0x0 - #pragma pack(1) // // Register A diff --git a/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRu= ntimeDxe.inf b/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClock= RuntimeDxe.inf index dd746a2..1b2b063 100644 --- a/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDx= e.inf +++ b/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDx= e.inf @@ -5,6 +5,8 @@ # It will install a tagging protocol with gEfiRealTimeClockArchProtocolGui= d. # # Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.
+# Copyright (c) 2017, AMD Inc. All rights reserved.
+# # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BS= D License # which accompanies this distribution. The full text of the license may b= e found at @@ -66,13 +68,18 @@ ## SOMETIMES_CONSUMES ## SystemTable gEfiAcpiTableGuid =20 -[Depex] - gEfiVariableArchProtocolGuid AND gEfiVariableWriteArchProtocolGuid +[FixedPcd] + gPcAtChipsetPkgTokenSpaceGuid.PcdInitialValueRtcRegisterA ## CONSUMES + gPcAtChipsetPkgTokenSpaceGuid.PcdInitialValueRtcRegisterB ## CONSUMES + gPcAtChipsetPkgTokenSpaceGuid.PcdInitialValueRtcRegisterD ## CONSUMES =20 [Pcd] gEfiMdeModulePkgTokenSpaceGuid.PcdRealTimeClockUpdateTimeout ## CONSUMES gPcAtChipsetPkgTokenSpaceGuid.PcdMinimalValidYear ## CONSUMES gPcAtChipsetPkgTokenSpaceGuid.PcdMaximalValidYear ## CONSUMES =20 +[Depex] + gEfiVariableArchProtocolGuid AND gEfiVariableWriteArchProtocolGuid + [UserExtensions.TianoCore."ExtraFiles"] PcRtcExtra.uni --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel