From nobody Tue Nov 26 01:33:19 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+61066+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+61066+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=oss.nxp.com Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1591781685908496.53460845715665; Wed, 10 Jun 2020 02:34:45 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id XSjuYY1788612x3OWnb1bkXX; Wed, 10 Jun 2020 02:34:45 -0700 X-Received: from EUR04-HE1-obe.outbound.protection.outlook.com (EUR04-HE1-obe.outbound.protection.outlook.com []) by mx.groups.io with SMTP id smtpd.web11.795.1591737679751275848 for ; Tue, 09 Jun 2020 14:21:21 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RR0tNlbDPJ/hJ4hnu6n/dolFPSE5kCzWGVsEAt2pVbFKwfJsJGTPbn5EklYVSP5HLz/vwh/IrMLsewAlG1HcH7fTmhPqQt0cMOl67m1JL5GNlm0sD3SuJbxIdWb4r+zWef1hdcj6sHAdAwTT1JCAGKwJxYExt6nvJrMXrzStRGqLLzd2pjavnb40Oq+z1mrSPJ6wDnbqIsfMDdMWVAUEJejHs38J4x6yOr8AkmH4+J93NXwc0+8DNYrvZI/PmiOc9ykGh9lGBMSmbAbHIs94OUhYHILxYHXvBVOQVPJzP6vvmV0kDcT5gXLOel4iYEMHiT4bLf/fA9Q50FsawfoNWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9erbuqp8BLJ5kIdq5GcWsSxIbujVZFcc6JHr++B/8qQ=; b=ATfmJLTceGPrN6NbVUfB1fFRNCrESw91e8ss6gBJQU1NeBtb+Xp1zJFRoo9+GZo8FKofnPmkDgK+Z7igrA3rSjaE8IkVYagDYjP68Oi0Q/6YQAvRdhvosYJc8iLy8uMRYadRx4H0WguLtlNSTdyaFykkUHUy7PO20WQMB1A1hgCPiMjNI/5i9C+56nv8Gg9r3fCq2LPoXBem7gbJv0KjHkgxVADcUQk88k/gAnUVtdQMRHrNccfDTntaUlv4//4wqVypxMQcGqDQW+xOSfJJKJqOZzzG6yMVc9lcfGh1PL3Qj9Lt2g46P6/WMY5LG6tvjQebKMpnOCF9uAryooYRdQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none X-Received: from VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:123::13) by VE1PR04MB6350.eurprd04.prod.outlook.com (2603:10a6:803:122::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.19; Tue, 9 Jun 2020 21:21:19 +0000 X-Received: from VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::81c4:97a6:7592:f225]) by VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::81c4:97a6:7592:f225%7]) with mapi id 15.20.3088.018; Tue, 9 Jun 2020 21:21:19 +0000 From: Wasim Khan To: devel@edk2.groups.io, meenakshi.aggarwal@nxp.com, V.Sethi@nxp.com, ard.biesheuvel@arm.com, leif@nuviainc.com CC: Wasim Khan Subject: [edk2-devel] [PATCH edk2-platforms 1/8] Silicon/NXP: Chassis2: Add SVR and DEVDISRn device configuration Date: Wed, 10 Jun 2020 02:50:52 +0530 Message-ID: <1591737659-8051-2-git-send-email-wasim.khan@oss.nxp.com> In-Reply-To: <1591737659-8051-1-git-send-email-wasim.khan@oss.nxp.com> References: <1591737659-8051-1-git-send-email-wasim.khan@oss.nxp.com> X-ClientProxiedBy: BMXPR01CA0039.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::25) To VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:123::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-Received: from wasimk-VirtualBox.nxp.com (157.37.179.16) by BMXPR01CA0039.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3088.18 via Frontend Transport; Tue, 9 Jun 2020 21:21:17 +0000 X-Originating-IP: [157.37.179.16] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 4f29d7e1-3e93-484b-fd49-08d80cbb0d30 X-MS-TrafficTypeDiagnostic: VE1PR04MB6350: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3513; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: y9OMv5rpgu92LvfSuT6kUFnuNez3+pK6cCxS8v5unMGCAVnVLuZ+sdJBeZYxqSgHGCnu6tDcjBhVHgk6lxwmJaCwCSw+6JZEytuBuahcO5KLAfeP5IsAhewREQN6I5aC1lurmVaCn/KeOCfWGd0MOkb8W+gihsd32cbDWBLxTzKuNgpaQ/8vj/VaNgfOG6KU1OGhJD5+1QVMJrvUe//eoA5RkYxFvsaYwbOtJ0bems6KxK4sQCi6CxPs14AAeUuVUkRmivFSMNszS+x8o3wbROaZ9nNc9A8+j2QCxn6KLL9W34YD4WzBqh953ccDyLPXLxHULp+kf7B8VhPNQnn5Vw== X-MS-Exchange-AntiSpam-MessageData: SqIoO6Hjkg+oGZSPvCr/vTz4QArBssL9xLYj+890RPgwlTNJ4dg2MdsORrhTIXoN+x+/QeOVWOdOKus7TcR/2qqRN4IBNNFrqTMgx26Nj/+cz+IQ4vUhywlXz9ErKqSK40Sk/qWsdDmz3+Ji8f2toHVYKNRBrG9BchgCsZi9BVHyoB6QkUcjpVdWwlgE0tSxRmCixlvBI+TlSbeckKosBTwYeTx2mh3h3NaCA5PgsSIRieXwhPxa+hLnD6V5KJhFIwST1HbJ9aeUnW73BrSwTA16MWVo3ICQebMOxdWeyBfWPg5pMdDlGjeH0PwrQTdtZ5jTe4v/0Ke00d2IpTFt5Upps9kqd56nNDNgfVMc5UAeBQ2KkyxP0fyskERSM2D+f6sqti3zXt4cl7T1IL353a1tHcD3y/pIG+Vcvvc5yugSjKCZD2nyUgiLdyYHsGBFbrKw5hndc2EprqBrxGZ+7qnvUYsuKcI2c0FNt130dLo= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4f29d7e1-3e93-484b-fd49-08d80cbb0d30 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2020 21:21:19.4875 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: gNNsaAPh51Ug0ZWj3UpdFu1qpbQhzhi3TyYy2H88j1Rg82CNCMHYilCRhPW2p6xHyqTFo53leqBX5l10anWVkg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6350 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,wasim.khan@oss.nxp.com X-Gm-Message-State: 7zgvV608u4MVi6aSjCBhH5NXx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1591781685; bh=TQ8nb5rmVydeS4Qid6GXNWd6HKQrzZyEJUMpAa6eAC0=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=FX0OzSl4H8qJGNbKjL9jfdZZcdvk4V8I6P6rwU0h3jkAWuAqdP2dxnkLiVR7J1f/djM EfrG+swMwOYQWymEcQDIYKsv0jJz7PbseYsEaSlt4M3fhpTwTrgr2URAni+4pVl6hF0Hb h8QPcfKV8IyCOkJ58x4rXiZwVN0PYxWcsBI= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: Wasim Khan System Version Register(SVR) is used to provide the SoC details like Manufacturer ID, SoC Family, SoC major and minor version etc. DEVDISRn is used to disable unused peripherals. Update Device Configuration structure for SVR and DEVDISRn. Signed-off-by: Wasim Khan --- Silicon/NXP/Chassis2/Include/Chassis.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Silicon/NXP/Chassis2/Include/Chassis.h b/Silicon/NXP/Chassis2/= Include/Chassis.h index 14e21ef9daf4..e5edd80134a4 100644 --- a/Silicon/NXP/Chassis2/Include/Chassis.h +++ b/Silicon/NXP/Chassis2/Include/Chassis.h @@ -28,7 +28,15 @@ **/ #pragma pack(1) typedef struct { - UINT8 Reserved0[0x100 - 0x0]; + UINT8 Reserved0[0x70 - 0x0]; + UINT32 DeviceDisableRegister1; // Device Disable Register 1 + UINT32 DeviceDisableRegister2; // Device Disable Register 2 + UINT32 DeviceDisableRegister3; // Device Disable Register 3 + UINT32 DeviceDisableRegister4; // Device Disable Register 4 + UINT32 DeviceDisableRegister5; // Device Disable Register 5 + UINT8 Reserved1[0xa4 - 0x84]; + UINT32 Svr; // System Version Register + UINT8 Reserved2[0x100 - 0xa8]; UINT32 RcwSr[16]; // Reset Control Word Status Register } NXP_LAYERSCAPE_CHASSIS2_DEVICE_CONFIG; #pragma pack() --=20 2.7.4 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#61066): https://edk2.groups.io/g/devel/message/61066 Mute This Topic: https://groups.io/mt/74793023/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Tue Nov 26 01:33:19 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+61067+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+61067+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=oss.nxp.com Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1591781684674754.041298652942; Wed, 10 Jun 2020 02:34:44 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id X3dLYY1788612xc9KbwmodSG; Wed, 10 Jun 2020 02:34:44 -0700 X-Received: from EUR04-HE1-obe.outbound.protection.outlook.com (EUR04-HE1-obe.outbound.protection.outlook.com [40.107.7.75]) by mx.groups.io with SMTP id smtpd.web11.798.1591737684469264137 for ; Tue, 09 Jun 2020 14:21:24 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QAZfXT2iDHtOdsFgEjT/vw1zYebLw+MYMIxM9ip/bDLOXW4lIpRIHCa9pCdF96ljaUhHcX2TJUVaCTnSWHDn3bOAOF93Yvb20zqnGylst9od3eNp8cAAm8soJRL1thuBvI8MLAEhxMUWwnaVH60frWUMlLIRdT/emmoN+mHT0qxZTka0Fc9nyUsHX508wCUJM+BnHUVIl8c2VDkpPk/XGPGYNhZqjmLbCoi6DvwqBzwp7KF7PEBTV1C/UlkdxS/QkXtRWpq3LW6DGEyKYuimHOoKBGafovkWLzM3t7vutHVhiNKhoiReA3slxghJHlGjjkFsAc5BnFe7D8GWmP0FjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CrvFeNJTuoL1ExOwXMY122PDnqe1FUd6UqFS9MqDLb4=; b=BVCETOptOs3D0u8L/0GpN5190JC4ztM8FR7v9HgdkG6rfS97OeiPa+CMwF+9cB9TKZDq8DN9i3sSGnSvfhxLLeZqziT0IIftDskVjuQH/itZG364CUFkUSPK4RTNbblhM2wE8mzowoayhkiM3iiKaT8drkpD8VVc67MGTdhvKbpus2+FB2arMRdqfmrZEqTq8Q68ksgKJfyazKtLKq/SOx+3nMWkds5JtyQZZtyb4/gMvg3Lq/7WAlkkxioUJuE16ppNEW+4aC+JgZArbnDZAIwFcg5UEOsTjFFm5IH6uFuJXLETqXBeJTRUOTEWmVg/E784jcrJLfpua8WybUEjAw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none X-Received: from VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:123::13) by VE1PR04MB6350.eurprd04.prod.outlook.com (2603:10a6:803:122::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.19; Tue, 9 Jun 2020 21:21:22 +0000 X-Received: from VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::81c4:97a6:7592:f225]) by VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::81c4:97a6:7592:f225%7]) with mapi id 15.20.3088.018; Tue, 9 Jun 2020 21:21:21 +0000 From: Wasim Khan To: devel@edk2.groups.io, meenakshi.aggarwal@nxp.com, V.Sethi@nxp.com, ard.biesheuvel@arm.com, leif@nuviainc.com CC: Wasim Khan Subject: [edk2-devel] [PATCH edk2-platforms 2/8] Silicon/NXP: Chassis2: define SVR macros Date: Wed, 10 Jun 2020 02:50:53 +0530 Message-ID: <1591737659-8051-3-git-send-email-wasim.khan@oss.nxp.com> In-Reply-To: <1591737659-8051-1-git-send-email-wasim.khan@oss.nxp.com> References: <1591737659-8051-1-git-send-email-wasim.khan@oss.nxp.com> X-ClientProxiedBy: BMXPR01CA0039.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::25) To VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:123::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-Received: from wasimk-VirtualBox.nxp.com (157.37.179.16) by BMXPR01CA0039.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3088.18 via Frontend Transport; Tue, 9 Jun 2020 21:21:19 +0000 X-Originating-IP: [157.37.179.16] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 019d43b4-baac-4fe8-379a-08d80cbb0e85 X-MS-TrafficTypeDiagnostic: VE1PR04MB6350: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:361; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: HbYL6u2WslK5pV/MTDVRc4t9dRfa7VpZCR2RZZdIWrIsxPmTD6p893mq2kximft84+ujm9efIRiidqbkaZdLY2O/7o1O/AIsD2i6KQGYhtorJkMP3gaRYrIOCXNZEa+e6xpbbhXe605gC3lpkI6gYbd9Sh56L/qpfJ/vqqb/2kPUHzNTD7vbeihuAhKSV+LOlGs1PeS+t6kcWb71HlJasiQz/tKhAAy0FGaUz0g5/vxlu+lNgqN+2UUn9Wp7xEHMNjzzeGpd4bLhAIiLSZJfFPYgewiNutDU9I9ETXZsF+cr6yG8TUWiHQq9WVObK2mokD8qXGakPFyxTwhQsJNGYw== X-MS-Exchange-AntiSpam-MessageData: bVR95qT5gvIw/rXdK1eTDXZ3Pdc+BfSrHeXI0vuefUUbus+2jGFmwPO9cUrK1NELkXVUPb5xX6b4WyzAhMBAGKGdtR/p0LpHXhGrUmDUfhLSDb/1VH+uwHQe/GhVfMRirdVHBHWvEZ7yxp09AmjuEI7n/pWH5Sjkxhukln6CZdHaVI5CHLJt/TyZMF8tjeRDVsocTI85I3PCwibp/TkNLzHA2V5R5Ap5ZJ98qu91JpICtOJHdofBhXmYKWoErPvPaeXt5MwImpmTjlAKMIYKtoAycTydiMx7KJVOQqTNACYiSGgbwJyLI2PY48IWbCf3BOKb9njnqj4o4xRAow8SpSop4P4N/fQpVsrsPgSveLW2nUolTAx6d8ZKlUeG9xHm0+4HQ4LOdJKy4h3Jw+sx3J7ZiQG/+cJdtYJQyMpygDmlDXpMcqG4kIpx4h+wGhrZUE7e7jmN4Lp2dF3aVqco5p3YvaJ4O62Q5EKyXaI9HcCSDgMfdWIZkx2wdZ8BI1Hg X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 019d43b4-baac-4fe8-379a-08d80cbb0e85 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2020 21:21:21.8312 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: UoUW0ZgzcpA3ID64t+ycM9RbWxxZW3xdW7CzBYXQ0Iy8EioOCV09nLDoFo4vROTWuaWuyWhWaDbUEZlZgaXbXQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6350 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,wasim.khan@oss.nxp.com X-Gm-Message-State: ilBPqyZju8iM9sRjCvrDsj5ux1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1591781684; bh=6VEB16UdWTBJSm6eml/fxddNfW0hCEtWusqt3wKbSms=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=YmQtRYoMvf7EOyBIeaxKS9IQOteliRL/cXCBqmiCz9T6stXIvwbkSPaHpG5tQ8dV0SV xDGJo8bU7+q3P35vRQiiJPzv8lsJvTas5CBsz6RkzzgDVyN4UD3aawz54DoKZXaKlQDxO XUzMnQU0vO4I1onvKmOc5ROrPgGuJXVsMyQ= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: Wasim Khan Define macros to retrieve System Version Register(SVR) related information Signed-off-by: Wasim Khan Reviewed-by: Leif Lindholm --- Silicon/NXP/Chassis2/Include/Chassis.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Silicon/NXP/Chassis2/Include/Chassis.h b/Silicon/NXP/Chassis2/= Include/Chassis.h index e5edd80134a4..7e8bf224884b 100644 --- a/Silicon/NXP/Chassis2/Include/Chassis.h +++ b/Silicon/NXP/Chassis2/Include/Chassis.h @@ -12,6 +12,10 @@ =20 #define NXP_LAYERSCAPE_CHASSIS2_DCFG_ADDRESS 0x1EE0000 =20 +#define SVR_SOC_VER(svr) (((svr) >> 8) & 0xFFFFFE) +#define SVR_MAJOR(svr) (((svr) >> 4) & 0xf) +#define SVR_MINOR(svr) (((svr) >> 0) & 0xf) + /* SMMU Defintions */ #define SMMU_BASE_ADDR 0x09000000 #define SMMU_REG_SCR0 (SMMU_BASE_ADDR + 0x0) --=20 2.7.4 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#61067): https://edk2.groups.io/g/devel/message/61067 Mute This Topic: https://groups.io/mt/74793024/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Tue Nov 26 01:33:19 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+61059+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+61059+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=oss.nxp.com Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1591781682542255.7368128512087; Wed, 10 Jun 2020 02:34:42 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 6lhcYY1788612xSm5YDuJiNp; Wed, 10 Jun 2020 02:34:42 -0700 X-Received: from EUR04-HE1-obe.outbound.protection.outlook.com (EUR04-HE1-obe.outbound.protection.outlook.com []) by mx.groups.io with SMTP id smtpd.web11.798.1591737684469264137 for ; Tue, 09 Jun 2020 14:21:25 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NIwK75vGcN0mqcyfzlFw1sPZmcXDmZ/kTmHTBsxtXVranF2r4YsNXH2DnU/YK7CewJjPDtOmoDvQFXKoUSj2sWlodbvGfQgg+iMwhSuCA+nvPda9Aoy8YPOXtTxg4MxGjAS/cvLc2Rb+MTi03gV5zcJ91hDn6LFMqMj3Nn1tkkxb63TEPhulzgc6QML9xhJoXi0JIEpb9iPmm3Ttwjk4+GrTo77d7n/D2nfrIPWucinE9hdU0oZlGH0TGkLm+N7IATvd89N+ZYfOJT4JHmd84sAfUcfhQ4/EsA9m62yCLYKiHLjbq17Xk/YaPq1u+0bcNMXGUDjFVHfGV5pdzs2AqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pAEkiONLsI/7Hclf8eZzXkVdQVwqfajxTIrS9FzpLFk=; b=ElwWMwh/XSdMkiO6FWewITk08raTVwuZUDb2JRBrj59iiSqaT7a6kA7wKjctCzvZ2DE5MlYkHsSp5f2D3DwgOdNE7wuKEkhJJjeZHa6ie8fBUNr1xUc+XlL/QRByYwKyuyc2twdvsDfiNGTL5pfqhDV62GwopyvBLe16Pz55NuZZy/BxYTJmEEHJ0zEkv/L60q1OOGDe8lfESuRKnAXlgCa5AopFHerWj1OKBR1/73s6YwEEYVJYEeAhVytoNvkgvWGbgiu6VWK+BHElN1wYJqm2UxXlLQd0gyLvjNd585/TrUcbax+qWdQS3NzQNhm3Mt3n/o6so6SwhUzEohMEPA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none X-Received: from VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:123::13) by VE1PR04MB6350.eurprd04.prod.outlook.com (2603:10a6:803:122::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.19; Tue, 9 Jun 2020 21:21:24 +0000 X-Received: from VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::81c4:97a6:7592:f225]) by VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::81c4:97a6:7592:f225%7]) with mapi id 15.20.3088.018; Tue, 9 Jun 2020 21:21:24 +0000 From: Wasim Khan To: devel@edk2.groups.io, meenakshi.aggarwal@nxp.com, V.Sethi@nxp.com, ard.biesheuvel@arm.com, leif@nuviainc.com CC: Wasim Khan Subject: [edk2-devel] [PATCH edk2-platforms 3/8] Silicon/NXP: LS1043A: Define SVR for LS1043A SoC Date: Wed, 10 Jun 2020 02:50:54 +0530 Message-ID: <1591737659-8051-4-git-send-email-wasim.khan@oss.nxp.com> In-Reply-To: <1591737659-8051-1-git-send-email-wasim.khan@oss.nxp.com> References: <1591737659-8051-1-git-send-email-wasim.khan@oss.nxp.com> X-ClientProxiedBy: BMXPR01CA0039.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::25) To VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:123::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-Received: from wasimk-VirtualBox.nxp.com (157.37.179.16) by BMXPR01CA0039.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3088.18 via Frontend Transport; Tue, 9 Jun 2020 21:21:22 +0000 X-Originating-IP: [157.37.179.16] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 2aaa5b5e-87a6-4425-f297-08d80cbb0fee X-MS-TrafficTypeDiagnostic: VE1PR04MB6350: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1079; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: eqUAJg8WKeg7PzH7kZ73pzGVJtpZvObk0NkHauCbJuqCaiR2KEZ6UEr6mtDVutaemBzzQ7BRbSs+9CATbRdoWTTSHFowHX8swUYuaNYHLXGuLsyccoUqtC77QjXeptlWXY+k/2sw64+X8OLWj4xZbSr/RN7wmm+9LDt9TX3QZ9xfBbZ6Q4AGVS0eciMlGe+oZ/4KW1onx+vBi5ZILeWTgO4rMRcBOHiZWNpre5UK9LoHsHo6FqMHOzq2wevLEN4XsX+v/LRdF1/IRfNqK7JKWkEVxY1eHRyNNsWN/coODRuOn50rHIBtPKW+2ulMhVKwhytClafSatGful+II9qY3g== X-MS-Exchange-AntiSpam-MessageData: QbyxEj36mmwucmdoxjvelm7bloSWPSug5ogRCsmMnDaoOgDbWLX4xJIIIwfUUTwzSuvpI/LtwHMyOyJTh2nsLUITeW7SlXjIOwRcCgwfQlkatAh2jFXN7XVwa+9Kwuv4GFmPJ3fDKJnf6NeuC+EAAw4c8bDIZW53j7MDVnx0rMWSwqpF3ngSgEDhVnyXB3Ezjx3zNJdOKpRNsfeb0RLyr1c6Y83Ox8tZPAKPBFf0jK9IcRfW1uwKn3n0C827rBAMnqw9zopGRpbrC4Fw+G0oXqmLCkKdsgfh9az6a5wEH6gC+aDRYKYc8RhItTW2JOtBwaVuy7BLmO+pR2XnE4rbcmHX9/7wKPNnoeVjbiN36VvYzZ1sGRaFlMC2RfkIPR0ZT5IAi884YOXVO6IbxPqURl8R3YSxdqJHd3ydV+Gr1UpS9x7T94HBRaUG5+eGWFZcIdEL43S96Yk8mVKLyQOZ5DqCrNC18aDLHG4ARRdv3VnKhl4hgYxHMTaMC+TOLWi1 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2aaa5b5e-87a6-4425-f297-08d80cbb0fee X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2020 21:21:24.2188 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: F30JK72fikCrRl15kbKyxaaeAUg69n6t4l43esxlQqKud087v2C6IO3e0EDXk9BPXvmWAY8saV31i6V3gGbKFQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6350 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,wasim.khan@oss.nxp.com X-Gm-Message-State: i1GPp3QR91tZg9M5P9t2o3Zxx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1591781682; bh=0yA/9WIIyonmIL918LCPoDSXzu16sxUQ9fl3t7l6qHQ=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=kLiHthoUaqlD6CofTP0gpxIWRLcN+QHfbDSo6ixANlZKkGO1nWuDcu5WSj6ueZKq2ZQ Gt/my0u2mYoeqnGuGR6i+LUa8zXfBmCJRaOelklScIiZtnrjy6XHFJNx7bQMCDieT9Maw wfLcSO8f1e2a54pWBPIJZgnyhVWUDabWX4k= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: Wasim Khan Define System Version Register(SVR) for LS1043A SoC Signed-off-by: Wasim Khan --- Silicon/NXP/LS1043A/Include/Soc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Silicon/NXP/LS1043A/Include/Soc.h b/Silicon/NXP/LS1043A/Includ= e/Soc.h index 97a77d3f5da6..21b0dafffe91 100644 --- a/Silicon/NXP/LS1043A/Include/Soc.h +++ b/Silicon/NXP/LS1043A/Include/Soc.h @@ -45,6 +45,9 @@ =20 #define LS1043A_DCFG_ADDRESS NXP_LAYERSCAPE_CHASSIS2_DCFG_ADDRESS =20 +//SVR +#define SVR_LS1043A 0x879200 + /** Reset Control Word (RCW) Bits **/ --=20 2.7.4 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#61059): https://edk2.groups.io/g/devel/message/61059 Mute This Topic: https://groups.io/mt/74793016/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Tue Nov 26 01:33:19 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+61060+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+61060+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=oss.nxp.com Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1591781682817287.1046262643862; Wed, 10 Jun 2020 02:34:42 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 3vqVYY1788612xHV7tEFlurL; Wed, 10 Jun 2020 02:34:42 -0700 X-Received: from EUR01-VE1-obe.outbound.protection.outlook.com (EUR01-VE1-obe.outbound.protection.outlook.com [40.107.14.71]) by mx.groups.io with SMTP id smtpd.web11.801.1591737689962251368 for ; Tue, 09 Jun 2020 14:21:30 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A5hrLm0CgXSxWijv1R/423OFoJ/Lq+nSszw6knh2ISkXsaB7mmmplnp85IYiEyNCKqENP20e8qFTsMMSA1n0dRxipOqEk3ZaYVrxaiBgrgJTn4qJYMeRpc9E9lmMQ73p+NIC5Hb7ztpllP3L3dLaUgM4TIYUCVvFnKlg6xkbC0i9wvjr2KHESdSjULgXoifsCY66eXTfwrm+9njdJOUBTZKyLX9cSpCVnQSOxU5rnMkvYMKBXHkY1tFtTesETDkYUk/c9kn2nSzye8bvPXaqYS0rcOsQ/ZXZHQAinMKUa/DffrCpklJo0JVnKOwbklMXSXmVjMEtGDwHWIFm8FpQ0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WpIuAjf29MXTbDFEus3fx0i6FeMOqiABJr1nHOuDI40=; b=lQp+CMNkHMl95buhQFLeNgEjABno9pjcaWJNAmP4FmkT5Y+2J9A0d+6F/cuiYkU3in4FfGNQT2NyHoxl/zYaJsVBcZjqP2r1HNWWtF1jsTolknF/0kAuvk/5O/Z4wB9TxtaCOMxKabJFc/5JLmUVk9XGuD+mRdp3SJdzjDlNqbVIuqt8uSH5Xnv9LngrjZKewcYi2x+rfSsOqEmdgjAPH4uCAsiUrBx/uERR15Gth75zuNoCdrYXBfo6sCVKovH64X5hnzbTOXIJ9JzVRzCZ+Py0rwn9FxfKKHSsNY6cOwq6f53/LIkxvdC/+sZi4t3WqBMHqrBIqG8MmW042Dpn5g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none X-Received: from VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:123::13) by VE1PR04MB6350.eurprd04.prod.outlook.com (2603:10a6:803:122::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.19; Tue, 9 Jun 2020 21:21:27 +0000 X-Received: from VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::81c4:97a6:7592:f225]) by VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::81c4:97a6:7592:f225%7]) with mapi id 15.20.3088.018; Tue, 9 Jun 2020 21:21:26 +0000 From: Wasim Khan To: devel@edk2.groups.io, meenakshi.aggarwal@nxp.com, V.Sethi@nxp.com, ard.biesheuvel@arm.com, leif@nuviainc.com CC: Wasim Khan Subject: [edk2-devel] [PATCH edk2-platforms 4/8] Silicon/NXP: LS1043A: Add SocGetSvr API Date: Wed, 10 Jun 2020 02:50:55 +0530 Message-ID: <1591737659-8051-5-git-send-email-wasim.khan@oss.nxp.com> In-Reply-To: <1591737659-8051-1-git-send-email-wasim.khan@oss.nxp.com> References: <1591737659-8051-1-git-send-email-wasim.khan@oss.nxp.com> X-ClientProxiedBy: BMXPR01CA0039.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::25) To VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:123::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-Received: from wasimk-VirtualBox.nxp.com (157.37.179.16) by BMXPR01CA0039.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3088.18 via Frontend Transport; Tue, 9 Jun 2020 21:21:24 +0000 X-Originating-IP: [157.37.179.16] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: b513f099-5c48-4bdc-0ce7-08d80cbb115a X-MS-TrafficTypeDiagnostic: VE1PR04MB6350: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1107; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: sxxOFFv//QsJcKhGQQ1AzGEJsLgG2qi8Y0IrJ//ySABQ3/WQ8jxbYUFQqDt3A7Y13C1rt4bfZrffwnLDzBdMDJy5LRxW4QHGCQRhro/x5IO1PhG9cn06bSmakmov2h+iIEYvpOF/AI0TvAmhtgE/3QyEY7UbOcgoXm9190e7eyX7DCBAtV4o2Vpk9dCzSRNgZiMsfsLZf4Mg6XjtMRtpUbygdSa7gW8OBz7DcgQedEmDuuYGXoOGwmlUSLjymiWHCH6ZFw3FnCd3zd1t+Uk2QUgcOBukEPuTlY/rxx3j/jDtUM2OdQ4HZ0q7B2XQa0Rqu7b6szRxzgOMlBxKvKLnIw== X-MS-Exchange-AntiSpam-MessageData: r43adaUO7Yx9w7UehD7Nj1uJAZ5hRBdDUIazyKN8PZcybZkG2r8o6Xl1fSu7TsBx7ax/Ii413dkvvHwJwMpXcDKbpeMnpGOJ4+tdH3BtPrOYdcH4MaHPc/EpWx3gEiZxZXQnS5xHijI29dyjloRrHcrZJnl4VxGC9XAlM0aW0i3jVmAM6SJ4er1algKH7P7HV5dZgNE6rP7hc7D1Aasv8VhM5dqadkHNyH+OkXTkL6YGaRK89XvHz+Cj8QBt+dz/xxxwwSUEwN5lQQ6Rk6z+GDNx2Hp6cH25nmPu1M+muWQKvYVTcUqCbBAJm1Sfj/KMPLaEzF8TZQV4VT7InchIy3qzPZQW30a09nM7uzBwN2WNK4L5KJAO9jMpnOOt7/d2NkNgILWlFxIQn4iV2c7yvqYkCadsE/MhRGqlbQ4toe5Fmr6d0UvcApFW5bbEVvh14YHXjpJhvAYN50Et4WxVf4Nh4Q8KCHg1jFxBk+lWrKLNkGPItgbI3R/wrm0yaALa X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b513f099-5c48-4bdc-0ce7-08d80cbb115a X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2020 21:21:26.5715 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0dXzadzVjrvxR0gHpwNq0tYnK1tzM7d4Eo0YtcW6asGnEXLdXWLD9Ar6vQAfgJ7aM3OakPGGDHi/OhlkIdl0Ew== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6350 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,wasim.khan@oss.nxp.com X-Gm-Message-State: 4U9SA3293U8aILW1OlZo6Psrx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1591781682; bh=uLBx6Qhlsx2GIRsJHRztTCn8sB3n55VMHOyYeCpEy7g=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=XYdDCfhrSNAfjHMSNO1r+u5TJO7w8CAXBHxwdEeGNr1CZRQnLAcUpNIfxmt1imB0yAl mN2bg3Ojx5PvVCjUdm4PKnnt2IYSIpnbtmEeJdRiWJ7WrKqqn2CvHyPwQ4rkR1Iwpqad2 5zbaXoX34d322AAeTFzHbxl8Dtgoe+3mE8g= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: Wasim Khan Add SocGetSvr API to get the System Version Register(SVR) Signed-off-by: Wasim Khan --- Silicon/NXP/Include/Library/SocLib.h | 7 +++++++ Silicon/NXP/LS1043A/Library/SocLib/SocLib.c | 14 ++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/Silicon/NXP/Include/Library/SocLib.h b/Silicon/NXP/Include/Lib= rary/SocLib.h index 7b25107e4746..b770671c1331 100644 --- a/Silicon/NXP/Include/Library/SocLib.h +++ b/Silicon/NXP/Include/Library/SocLib.h @@ -49,4 +49,11 @@ SocInit ( VOID ); =20 +/** + Function to get System Version Register(SVR) of SoC +**/ +UINT32 +SocGetSvr ( + VOID + ); #endif // SOC_LIB_H__ diff --git a/Silicon/NXP/LS1043A/Library/SocLib/SocLib.c b/Silicon/NXP/LS10= 43A/Library/SocLib/SocLib.c index 39fb4c14e0b9..3ebbf7df4476 100644 --- a/Silicon/NXP/LS1043A/Library/SocLib/SocLib.c +++ b/Silicon/NXP/LS1043A/Library/SocLib/SocLib.c @@ -64,6 +64,20 @@ SocGetClock ( } =20 /** + Function to get SoC's System Version Register(SVR) + **/ +UINT32 +SocGetSvr ( + VOID + ) +{ + LS1043A_DEVICE_CONFIG *DeviceConfig; + + DeviceConfig =3D (LS1043A_DEVICE_CONFIG *)LS1043A_DCFG_ADDRESS; + return DcfgRead32 ((UINTN)&DeviceConfig->Svr); +} + +/** Function to initialize SoC specific constructs **/ VOID --=20 2.7.4 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#61060): https://edk2.groups.io/g/devel/message/61060 Mute This Topic: https://groups.io/mt/74793017/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Tue Nov 26 01:33:19 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+61061+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+61061+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=oss.nxp.com Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 159178168324389.34572286012167; Wed, 10 Jun 2020 02:34:43 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id druzYY1788612xLw8CtUJcSh; Wed, 10 Jun 2020 02:34:42 -0700 X-Received: from EUR01-VE1-obe.outbound.protection.outlook.com (EUR01-VE1-obe.outbound.protection.outlook.com []) by mx.groups.io with SMTP id smtpd.web11.801.1591737689962251368 for ; Tue, 09 Jun 2020 14:21:31 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lpJyPnVn1m+s3FxNjJlRA2MyGNukump1FXEYpThk7Liu+Sq4QGpx2rXzXbmFpReIHXw83XFD9LTJsk8fGPRuZ2Azalm0zFaunbFtcTrZtpUrk80jT2i+KCccjcWYhAfDRva963fG51f75bq0BwTTtt1wNwW7cRYtKb7qRgxCMrE1VBPUclZqRbGYbPJ2M638DYohz7caisPxpGPWZS71yEpm5ONQtRMum37V3b6tDjdhOVyKEdI3ETZSih4jglYE3nVdWI8l6tM8fycvR70fQt4xtU0EBzBxRMYVQDfYy75Lcwvc01OdUYhCfsaL63OdFxSn78ofjQ9TW01XXI7vJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KMMPk1iGusnUsYdIEPMCZEmHveVnrbH6eQOeoEwq6oY=; b=hhbl7a5Xi/RRv09jTHnBGSNiwhhjRAQmmXxfELyw7vqXsULNoIocsjuxX0sZziZQTuOddl7zANSjT6Hna1CWtuV/4XLEM8BZJP/BtEc01DRgmRULMjhGsaxowew4kW0JDjlTxA3IH/MTKu34F7YKFwU+o04S/x9vHZcP0hQz/WXOt7k0Sk67O9FX7Uqn2y27D0zxLgU6KF40II5kpIcqpHinNv84+BSBbyZKAdRvR2WGwGRryWfbTYZev1sjadWAx5lHSxMAFUCgzuAW9X3EUPxC9044kGSQ5GgX76sA0/JdEg2ZPMReHZFMIWJqfqrcPEygo+i75XBFQeMnzj/yeQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none X-Received: from VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:123::13) by VE1PR04MB6350.eurprd04.prod.outlook.com (2603:10a6:803:122::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.19; Tue, 9 Jun 2020 21:21:28 +0000 X-Received: from VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::81c4:97a6:7592:f225]) by VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::81c4:97a6:7592:f225%7]) with mapi id 15.20.3088.018; Tue, 9 Jun 2020 21:21:28 +0000 From: Wasim Khan To: devel@edk2.groups.io, meenakshi.aggarwal@nxp.com, V.Sethi@nxp.com, ard.biesheuvel@arm.com, leif@nuviainc.com CC: Wasim Khan Subject: [edk2-devel] [PATCH edk2-platforms 5/8] Silicon/NXP: Chassis3V2: Add SVR and DEVDISRn in device configuration Date: Wed, 10 Jun 2020 02:50:56 +0530 Message-ID: <1591737659-8051-6-git-send-email-wasim.khan@oss.nxp.com> In-Reply-To: <1591737659-8051-1-git-send-email-wasim.khan@oss.nxp.com> References: <1591737659-8051-1-git-send-email-wasim.khan@oss.nxp.com> X-ClientProxiedBy: BMXPR01CA0039.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::25) To VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:123::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-Received: from wasimk-VirtualBox.nxp.com (157.37.179.16) by BMXPR01CA0039.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3088.18 via Frontend Transport; Tue, 9 Jun 2020 21:21:26 +0000 X-Originating-IP: [157.37.179.16] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 17e957d6-81e4-468d-0e4a-08d80cbb12b6 X-MS-TrafficTypeDiagnostic: VE1PR04MB6350: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3513; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: g3YZg+JVuxlLUebICSlPVE+AcyJ9X55ubiyflLl3pF/V6hoekIOn9CYjwqqz3NtQ9xwn3NLd+1XIOH61ExQ+YYTLqByjEo59WhIiGD037JrOYZvEdsSLIWYsKQMIFrQ3D8Eaxe6elb+ShFXf3oNYnCM7DZ+JI4YuZJtWomPXwVeUN/bvmts11XTolP93P8m1sfolnfAR1/bl4N49dfUsdHgYiTf0a9Vt2OUigoROt7W33N+KJGubDXHvtd8cSAb3wcZadX+0ljvmhNn3Bd51YHwpZck0XcDRg+YNlUvf401WmKO7brR7roooTJphmMJ3/ofEwNcctLwOfkNiJnASmQ== X-MS-Exchange-AntiSpam-MessageData: 6UB2X7bvcX5TXfpxCbhle4ucJ45j7pY98r/ktJ1zafPW5tf8SqL8OHhVYJYXGeMAAYEjetOATpTdRMjl82HIf4kpnbSdfi+BgeedNcG108b+kp4fzufLeJUW92CDXuu799r9lUXUMKm3nZyY/bDLPDFColWUaqk/bLEaHVv+pSkusuDW0k/zZFJFaeD/VtAcA0ILNwJEN1ZyT1/4EUq0NVtpvFIB8Dkzv+jite3moIdTSzOFjU3YZ+BgS8kguJSQYCots6bzAMvzANjr4DMjCd5E6RGyhka2pXEfKVHgiA09eta31uB6O0AwrZomxPRz+qIVr0nzK2/Qg8gSG0VzoRd6wmELrkeFG623v/9z2K6rxKb3pHkNH5RR4pz+chNIjJhqKMbWDFqi07HRi9yiZbm1KM8PSbjs/dJiw9uO87PXtpQQ6m5FgEn+gtgJnY77UqImA0yY3uBgdrZjVudJ58GkwU1S7Ng6RxUe5HQYb6xGqSQSD0bnwW4X7TV9nyjK X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 17e957d6-81e4-468d-0e4a-08d80cbb12b6 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2020 21:21:28.8032 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: R0WW66dIh0UyLNCJtYxi9oO0zn1BLg6RU9OyQ2FQVtK/nphpw7ODfK8lJZ0Fqs9KRyvmZjHTf8f1BDQCNki0iQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6350 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,wasim.khan@oss.nxp.com X-Gm-Message-State: 1d1DschY5q7hu1IZKr0mPMPcx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1591781682; bh=tzbyUaosi3Dh6mvjgIQttGGmCLM9Xx3IazXqv+MnPqA=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=R5FVD8Hv7FpC7a2gj3y4M0M5T6Pca9jYXLRF3ZTBrgsmGU9nXZCCf5aPCzuaFRPWtYG ODTHewcJuTSxwQNE5MshT+BHoR7B7bVUIete1T+M5SWtKcKyCsbIZ208gckdo58HGHKfd 5+oKvN/iLlpz9ciKy+sStarrqSjCgb8Qxis= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: Wasim Khan System Version Register(SVR) is used to provide the SoC details like Manufacturer ID, SoC Family, SoC major and minor version etc. DEVDISRn is used to disable unused peripherals. Update Device Configuration structure for SVR and DEVDISRn. Signed-off-by: Wasim Khan --- Silicon/NXP/Chassis3V2/Include/Chassis.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Silicon/NXP/Chassis3V2/Include/Chassis.h b/Silicon/NXP/Chassis= 3V2/Include/Chassis.h index 0fd70132d897..cbc6b20e244d 100644 --- a/Silicon/NXP/Chassis3V2/Include/Chassis.h +++ b/Silicon/NXP/Chassis3V2/Include/Chassis.h @@ -18,7 +18,17 @@ **/ #pragma pack(1) typedef struct { - UINT8 Reserved0[0x100 - 0x0]; + UINT8 Reserved0[0x70 - 0x0]; + UINT32 DeviceDisableRegister1; // Device Disable Register 1 + UINT32 DeviceDisableRegister2; // Device Disable Register 2 + UINT32 DeviceDisableRegister3; // Device Disable Register 3 + UINT32 DeviceDisableRegister4; // Device Disable Register 4 + UINT32 DeviceDisableRegister5; // Device Disable Register 5 + UINT32 DeviceDisableRegister6; // Device Disable Register 6 + UINT32 DeviceDisableRegister7; // Device Disable Register 7 + UINT8 Reserved1[0xa4 - 0x8c]; + UINT32 Svr; // System Version Register + UINT8 Reserved2[0x100 - 0xa8]; UINT32 RcwSr[32]; // Reset Control Word Status Register } NXP_LAYERSCAPE_CHASSIS3V2_DEVICE_CONFIG; #pragma pack() --=20 2.7.4 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#61061): https://edk2.groups.io/g/devel/message/61061 Mute This Topic: https://groups.io/mt/74793018/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Tue Nov 26 01:33:19 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+61052+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+61052+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=oss.nxp.com Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1591781679177680.691726486031; Wed, 10 Jun 2020 02:34:39 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id nIYSYY1788612xHrTWedHkw5; Wed, 10 Jun 2020 02:34:38 -0700 X-Received: from EUR01-VE1-obe.outbound.protection.outlook.com (EUR01-VE1-obe.outbound.protection.outlook.com [40.107.14.85]) by mx.groups.io with SMTP id smtpd.web12.726.1591737693453785037 for ; Tue, 09 Jun 2020 14:21:33 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LYl/qXSmhKTOV7jJXEul5Munz051o6zDhgKTXvlQe17HX9EJZpXUdHgTbranZc+iQaCslEbi7k2KjR0EnK0SRI4zjb0Sqsv2mHKkazvAGys/ZbWMbNAzb7ekHJsW9zF2zE0WsLQMwm139RphWDunGDmtZo8U5NDBsP9a5jml7TITmA2gFTOxDxvyW/htzo1C5QYUAxmePpoWqkSrtRBQy17a/6L0aEaub+Rn7uSl9ADJ6Oh6K9pCNStVOAxQOcrBWDvzIJ/d3PXCOalx8WKaa1BfKYb6Y7LRjyM3x+CJkTMzpGvL5d5Vm4DItZmnAq55s8g5jke7k0SmbflTO9Qkkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GQGZ48tu0HwKonIZTS7gB1h4Y0UPr/IuJSa6yNOXbAU=; b=i1fnNbsbE/iwzca+mM+rVGUKnD+XwP0S1/XQ4Gtcg9P0/bsm8FG7bF6OjPSOpARlbw3Gsinjp8P6DuKwgc/O1nxQ+btQozKxNAcxE9UdIaWEFit2LsLfn6Ubhpa4YrPArf+Lme2Rh3iJORGNo5XvrvMbX65mkGUs201g5Yhz1afsBkRubnbiwTn6WXAb/T/3l1Yy0qiTuacE3ZeU+U0s3axOMYoXam1ZsdxppE3jdHKJUJ4fyDDd4Vyu7nRK5iLLo+zlhoQz9ySFzi1ZAtoVbu0RT1yNQf4sdMrH0ZEjdiZffU2a+iCVwN+hIjUmer9TkXO3SYTY5hNEckojBmZjqg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none X-Received: from VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:123::13) by VE1PR04MB6350.eurprd04.prod.outlook.com (2603:10a6:803:122::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.19; Tue, 9 Jun 2020 21:21:31 +0000 X-Received: from VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::81c4:97a6:7592:f225]) by VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::81c4:97a6:7592:f225%7]) with mapi id 15.20.3088.018; Tue, 9 Jun 2020 21:21:31 +0000 From: Wasim Khan To: devel@edk2.groups.io, meenakshi.aggarwal@nxp.com, V.Sethi@nxp.com, ard.biesheuvel@arm.com, leif@nuviainc.com CC: Wasim Khan Subject: [edk2-devel] [PATCH edk2-platforms 6/8] Silicon/NXP: Chassis3V2: define SVR macros Date: Wed, 10 Jun 2020 02:50:57 +0530 Message-ID: <1591737659-8051-7-git-send-email-wasim.khan@oss.nxp.com> In-Reply-To: <1591737659-8051-1-git-send-email-wasim.khan@oss.nxp.com> References: <1591737659-8051-1-git-send-email-wasim.khan@oss.nxp.com> X-ClientProxiedBy: BMXPR01CA0039.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::25) To VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:123::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-Received: from wasimk-VirtualBox.nxp.com (157.37.179.16) by BMXPR01CA0039.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3088.18 via Frontend Transport; Tue, 9 Jun 2020 21:21:29 +0000 X-Originating-IP: [157.37.179.16] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1c15a9a4-a75c-4bb5-356c-08d80cbb1424 X-MS-TrafficTypeDiagnostic: VE1PR04MB6350: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3826; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: m3gz7TiRzdureO3wEBuusc4zHnmGViQmsD+XA4hT5tVQ/858yceBzHCdT+amwUWhZTrvn1VmfM2bLa9aUmwkDdCtje4EGJcSPG2iiyO9xovYeyHb+tBZ2pcVPS+Y8LNmWlFl/5+weSqjJlldH6YaN2X/KqbW+d/mK39k1Fu9VyYZCdBxjM3nSQeVjyCnk2aPKmC2avqpybMhsU6K23A0rOBhQjeg3gKRHXpvyr26FF1sFdRewsLoG+7AwO1U5u3OJrj4FS91ncfjNf+u+RCdkxAMAhEZV+QY5X5m9cbNEaBSsaVWlU2GQUHlhIQuY2vhrheH0vAtwlWkh7q64w6FZA== X-MS-Exchange-AntiSpam-MessageData: gu9ApgFm0j9zARoKpogNH6LHRnHYUxAZiFscRHFmZ5LWnJWBgg1m3rVpamKeKXk+ulxWvqLILPl3D8jbE+lYo11euHUzTkhUh6UAaxI5IvPo27e56ZBIfCs3H7JcXvIjwrq/NuN9x4a+Gg26NI0hWsiNxIqNrVwcwbgJc3OIAdbcgvXjn6pjdPn4g8hWE3kxz3bOsqJmU1yiTaxnVAI+NMfb3ZLahQLG96VcG3EBk+SLxcYVtIM7jGeGqB80ngVaFQLI2wnet1adykm3a9cmjr6fQZn4tfZ4wtyCpEsrvgYVsUn7NdzhsHsXk7XY9RhAZwQsX6rOd3gsQoKPLkibolO7C3aZSlIlHumoP2WQlhmGsQ/iHirgmDVxIGe8dbtlDbHuTMXLzNdgf8qbs1uWsAmLEi2QQKIukEDxYjzugp8RjEiVUxFi8IenL9uhiikXokHKMVjQ/SQgbq3WOIkZ7h78fpz+QS0XaBtbitquy5IrHr7sdv4cSGZicvbH85gU X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1c15a9a4-a75c-4bb5-356c-08d80cbb1424 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2020 21:21:31.2528 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8zuOASbGkWNfhl5kydxVmFc8grQQRoDjad920gjzNlYtKb8cgJHD5+1+Vks5DXLc8v/EqdUb5EtBKzsGr1EEdw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6350 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,wasim.khan@oss.nxp.com X-Gm-Message-State: 0KFM4gCkWbCoV08BEh9Sd42Mx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1591781678; bh=NhNzQ5uvcHBUkMX9vWUBbiO+qEZi+kR9kNkknSEb8/Q=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=t5QIBx/GMGNnYlWo6OchksxCpQ/ZfBgZQ5jFa8WTJ9SuGb9pUKGLZGQZXMimJbL4hRx hZqgXNcZsZzxm9PhYBtRqbwdv0APjdXLYkNmEUbbNiDS3DjzISkizIJ/PrbFsgeCgTU7D KR3CBPBcSHOG55N5/wi3bWyRpdZKX5KBQoM= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: Wasim Khan Define macros to retrieve System Version Register(SVR) related information Signed-off-by: Wasim Khan --- Silicon/NXP/Chassis3V2/Include/Chassis.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Silicon/NXP/Chassis3V2/Include/Chassis.h b/Silicon/NXP/Chassis= 3V2/Include/Chassis.h index cbc6b20e244d..c302e5c9a719 100644 --- a/Silicon/NXP/Chassis3V2/Include/Chassis.h +++ b/Silicon/NXP/Chassis3V2/Include/Chassis.h @@ -12,6 +12,10 @@ =20 #define NXP_LAYERSCAPE_CHASSIS3V2_DCFG_ADDRESS 0x1E00000 =20 +#define SVR_SOC_VER(svr) (((svr) >> 8) & 0xFFFFFE) +#define SVR_MAJOR(svr) (((svr) >> 4) & 0xf) +#define SVR_MINOR(svr) (((svr) >> 0) & 0xf) + /** The Device Configuration Unit provides general purpose configuration and status for the device. These registers only support 32-bit accesses. --=20 2.7.4 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#61052): https://edk2.groups.io/g/devel/message/61052 Mute This Topic: https://groups.io/mt/74793009/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Tue Nov 26 01:33:19 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+61057+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+61057+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=oss.nxp.com Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1591781682034751.6239575757351; Wed, 10 Jun 2020 02:34:42 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id xkrSYY1788612xDlKpxe2hVb; Wed, 10 Jun 2020 02:34:41 -0700 X-Received: from EUR04-VI1-obe.outbound.protection.outlook.com (EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.47]) by mx.groups.io with SMTP id smtpd.web11.804.1591737696336355948 for ; Tue, 09 Jun 2020 14:21:36 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kbo+actLuzATeii7xIb/UrFf+ZTPS18xlwfVHUhPVYEbZgGI7tENTDQSPlX5VuCAQyAoYTcTVszhPALKTHGcv4mtJRNiaJmJ2ij+D52idLS7JACfEsy92DfXLfZBgbEc/T05FxGvEt4W1MKdiNKlFLHOsWDOg32dnBqDJTykHPNFOtreGYhHfTGGaUNln//uIkjr4+zBMxkksDgIoMVef3Wgl/ZWJ3c+mWZybHkwOHamihRKoBotaHPGP9ONqf39HHrVmwS1k1WRu+km4y4JIxNFR1GuVNMwIouvuuiiSZ7v+mxvs0S5pqJFcoMWBDA5RI0PIqaAhSyurdIPTg6Q+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mtbPHVwLcGfvHkGNkkIBydDtm8xyLLid8+QpHm99jUs=; b=PaGZ705GvaDSOk5O3pdaZ9svPpFGTTS36U7qaf1cC20WxM+TtLy42dUJJFZYqn4ZJlpTfhLcmc0v4l5jAPykuO5bfDr+0+9tXfJNu+rMn99Lr5IzHTZGsI8fC0MheB85cTaS68SfGHzGSslP3VurOi8NjwLQFpKU2mMwiyw82tBtNEDuYy9GC8VSt38ynBvacziZLOVyb/9Rx6qVCI3VDYtKLADXEesusY+0vsEMBnrd+6D6uRv6FqrTsobVqSafFnMxnyjj7mymMMEFjnrtNu9UROdDGnQX+wKL+ED5E/Cizbw4QeOnWZahuTP3gbc0Kh76D5fCC9eidewKVL1uRQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none X-Received: from VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:123::13) by VE1PR04MB6720.eurprd04.prod.outlook.com (2603:10a6:803:123::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Tue, 9 Jun 2020 21:21:34 +0000 X-Received: from VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::81c4:97a6:7592:f225]) by VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::81c4:97a6:7592:f225%7]) with mapi id 15.20.3088.018; Tue, 9 Jun 2020 21:21:34 +0000 From: Wasim Khan To: devel@edk2.groups.io, meenakshi.aggarwal@nxp.com, V.Sethi@nxp.com, ard.biesheuvel@arm.com, leif@nuviainc.com CC: Wasim Khan Subject: [edk2-devel] [PATCH edk2-platforms 7/8] Silicon/NXP: LX2160A: Define SVR for LX2160A SoC Date: Wed, 10 Jun 2020 02:50:58 +0530 Message-ID: <1591737659-8051-8-git-send-email-wasim.khan@oss.nxp.com> In-Reply-To: <1591737659-8051-1-git-send-email-wasim.khan@oss.nxp.com> References: <1591737659-8051-1-git-send-email-wasim.khan@oss.nxp.com> X-ClientProxiedBy: BMXPR01CA0039.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::25) To VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:123::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-Received: from wasimk-VirtualBox.nxp.com (157.37.179.16) by BMXPR01CA0039.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3088.18 via Frontend Transport; Tue, 9 Jun 2020 21:21:31 +0000 X-Originating-IP: [157.37.179.16] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 7a6c5176-f565-48da-362c-08d80cbb15c6 X-MS-TrafficTypeDiagnostic: VE1PR04MB6720: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1079; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: HTtBVq/8HcF6DnAf4BDkSiU6lXFAaE0cSt3eOoHEtvszMRpWi+Xgk9uy//aXtHQAUZxKF7d+l8QgrfHtgeEFGFgjnqPImK0AhlciW0EHrOl3/Inr7QMbYSb6r5ZuIaauZfj5FMEJNd1MHPiTVrq/DMfenXX7XGWFowrncfeCfFcK3jfg0sophn++3hdPaeHY6nvQSZd4mgVa4yszXJM4fNOHia/67Zt4US6SvZt2QPr8pB1rFbMDGtmiRmWVFK2gydT2bugE0EjeleXVE+XLCnFFZuxLMx9IZbLxWEK6STuYvXVM3lR9uWEzy/QxOsZa X-MS-Exchange-AntiSpam-MessageData: cN3zNDL+N1yTJhdIRtGU4t/vqUIPb2bljzSkJpzWP5Fkl5QMNmOMabTugBVl5bEasb89a0rKA0sezDTvk05lxiFeTGsXuwELA7jRn2A1d1JFiS6aHpZDHR7H9Ey2rWuSFL4XJpmNBMS1CFPG2+0d817HVFI52h/HWBsruaTx7DThYeZBA23qeHqPRgwqsLcICqfpsegOe17ZflafKUJn13yk2pAwjqx4HBfhlk9nOx1kE0byJuC8NqiLEBHqX2PZI5SRrGwAUjUWTbUj/8xeWdrpKBITHvz8RsMs+PIMNHqS6JVRgY/aU+5oRLmUXCzt639pWhSE/kv3DHNpGyp+TJOwKjPBRAwjorLUb4eE1owrKY5Xv6IPAO2UDfGhguAbzvzY+LSaF0dN0QL6Q3bMTWSzCCetOzuWe7EOsblbhelhwWFiPUkG7hvDIw8rvbc6EX8RER1cR2vo1NJL/9/WMo1grNYjmfg/JDXq9LwkLBI1EO1w+S1vmzORciLqEEyq X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7a6c5176-f565-48da-362c-08d80cbb15c6 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2020 21:21:33.9872 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: PypBdlAidv2YPdGP67iCQs4JMBogwJ3dyIqqySvCyKBGY2JqY7V+RsEunscrqEaMqrzyQvtxKbAKJ8B0WOZXpQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6720 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,wasim.khan@oss.nxp.com X-Gm-Message-State: 5l7zOO27n6dTJNRWYDpQRlAqx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1591781681; bh=IVmTmmv5z9C5sPpmiGNxe+6rtypyOwwGFw6dw+ajSnQ=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=tbE92YrG93cdxEkuUTvb94TlkUaX1YQll2Afhs+mwTKHPsp+W/cYV6C2DGX7rjSLJ/H xPfavDyu8oNOed05Q2D2lkI02pgEO8bXTf3E3M2sHlVnEJt8kYiUCJh6b8yEw0BhWwdXl 3GN2cHl9JZdr3sxE9wxRdli4Qf0nD8V4mdQ= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: Wasim Khan Define System Version Register(SVR) for LX2160A SoC Signed-off-by: Wasim Khan --- Silicon/NXP/LX2160A/Include/Soc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Silicon/NXP/LX2160A/Include/Soc.h b/Silicon/NXP/LX2160A/Includ= e/Soc.h index 52674ee5f32c..6c745d580a6d 100644 --- a/Silicon/NXP/LX2160A/Include/Soc.h +++ b/Silicon/NXP/LX2160A/Include/Soc.h @@ -28,6 +28,9 @@ =20 #define LX2160A_DCFG_ADDRESS NXP_LAYERSCAPE_CHASSIS3V2_DCFG_ADDRESS =20 +// SVR +#define SVR_LX2160A 0x873600 + /** Reset Control Word (RCW) Bits **/ --=20 2.7.4 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#61057): https://edk2.groups.io/g/devel/message/61057 Mute This Topic: https://groups.io/mt/74793014/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Tue Nov 26 01:33:19 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+61058+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+61058+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=oss.nxp.com Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1591781681626441.20779663990504; Wed, 10 Jun 2020 02:34:41 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 5C9NYY1788612xQPR49dyqXS; Wed, 10 Jun 2020 02:34:41 -0700 X-Received: from EUR04-VI1-obe.outbound.protection.outlook.com (EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.70]) by mx.groups.io with SMTP id smtpd.web11.805.1591737698405107946 for ; Tue, 09 Jun 2020 14:21:38 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jci6aaANptvRWUv24R+dwPkdLS052pXF+HtobJOvWt8mcMBx6sXTuoi7NsgLVV6dn9tW0466xKXYEwBlP+HaZxEeOaFN6OBLYYp0uS0h9h4klaNtd6xB3tfCVnKVDHShvxA1VNdRU18mM+oeil4B5PpZIoy7MJfK/aub04cpW3ZdlndFAbVVV7EUSH1wAzIB/jE9uLlNll/Fk9wRVRoOVGW08j4cLbOrztJ/KaIw9HPx+E1cKcl6I3YoM4LeWrR8b7crgbJgajSjH456ewKOXkQVpCFiSkBUCD2SKmFHrdQQ2oMLBUDZTzBqQxKv6ZClKCKMK0pRxNOSEXUwC+9DHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YbBNWf4WZE0npGsSC0fvtIVO1H/fQtseoRvQjcPFCbI=; b=Vln+hluDSFwto8VAMmm5MFZmxDQemuwY3NWREEb4b7l8cGefJ9mHoKqFzzWNY0oJCi5C/YWfkBTu+ZQRL4KJsz763MiEBdpd+15T1f+UFJ1QchHSfNdIqSw82wBvbQOdFhCEvB6LtUzm+/9tyvrLDh8R1/eTZgKybzGAsEHw0dSwJRvrvTnbkB3WnzexoREIJZf9tk1H3BcjqwTvmKmzTzOy7Gu6xw23UMlmO7YbJyoR6YE925N8K2VSgOTJ5JQUgWdONRTIMWOGidFqMbe6JaGVJTS1DQaB9i6QfhUNoRZu4EWcbLciaF/xreAdj43jisjVrIUTDiKyQfQkdKCyDA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none X-Received: from VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:123::13) by VE1PR04MB6720.eurprd04.prod.outlook.com (2603:10a6:803:123::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Tue, 9 Jun 2020 21:21:36 +0000 X-Received: from VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::81c4:97a6:7592:f225]) by VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::81c4:97a6:7592:f225%7]) with mapi id 15.20.3088.018; Tue, 9 Jun 2020 21:21:36 +0000 From: Wasim Khan To: devel@edk2.groups.io, meenakshi.aggarwal@nxp.com, V.Sethi@nxp.com, ard.biesheuvel@arm.com, leif@nuviainc.com CC: Wasim Khan Subject: [edk2-devel] [PATCH edk2-platforms 8/8] Silicon/NXP: LX2160A: Add SocGetSvr API Date: Wed, 10 Jun 2020 02:50:59 +0530 Message-ID: <1591737659-8051-9-git-send-email-wasim.khan@oss.nxp.com> In-Reply-To: <1591737659-8051-1-git-send-email-wasim.khan@oss.nxp.com> References: <1591737659-8051-1-git-send-email-wasim.khan@oss.nxp.com> X-ClientProxiedBy: BMXPR01CA0039.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::25) To VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:123::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-Received: from wasimk-VirtualBox.nxp.com (157.37.179.16) by BMXPR01CA0039.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3088.18 via Frontend Transport; Tue, 9 Jun 2020 21:21:34 +0000 X-Originating-IP: [157.37.179.16] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: f17708ef-a797-4176-1457-08d80cbb1729 X-MS-TrafficTypeDiagnostic: VE1PR04MB6720: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:989; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: m8kRgMITsCHXBT1NJ1JlRCYrwXc4qVOen3OdOZP3g9N7rMKn3K/Xk/54rQjgo2QNFLJcJ+WC6yrXnctXqEUr2u2ddrwqGeVd91at81GYS24k12GO7tOtJnPzltSuHzLX/BUTWwWpdJET6Mvzvy5xETjLaHwJ3cfpMBT6vsnef/Nqrs5bNonK/afVw4ErhHPDZmgHiEfZJq0mNQCwmdY2N6rvKtA3zP4Uq88Z5BS2UON31gkeLoNPnXU5qrd1nW4KiwkRkJARm4y+Z7ptcveZoI3R4IdRoYBXyrwdNv/OdoyKP3cbcJQS9AK2/OVp6N6WfRd71GrOYJcijDrNpJrdcw== X-MS-Exchange-AntiSpam-MessageData: CA3UwWPI9z/isXDkzne4xGMhbnqt8pb3CsUncmmKGI+iCe1ImW+rAHwUYMr1SQdB3rEp+/Mmsbsjgsfs3k1rKnLySgxMbSNDt+mlpzMpJZvizeGl9haZTsocvIDq0V+ol44DP6rY1ta6ZALFLCdZbj15LwBfEc2+uR2sgf/G3QORmX1MfKmvlbGLuK+YetXWBvf1Fz1wfX03aA17zklFyZEHWJnLmfzqYU+EiMibYfSYFRevRFuXj6p/kRwHHzgWd4CrDnWgtfByy2U4AJ+8t3l5Ai0C9wmf7SoRYvFRagozM5dyyOuJbJBw65em+XzgtlctoUDFC2Vx2/4S4n7XyzTnfDNf4hCI9lMw9dPi98jUarxlWT9Wqspr9zenrzjMAgOskBHBF2WE8L7h4MlLofWGCBbioU9Hsp73IoBrJR5Z1a9XINwIYHnDwu08U8wqmT53na6xvdrMFMlpR8RVPNSmpwajuSvw25J1nREebXLj1dzmtm2Vh7rRh0myGWPc X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f17708ef-a797-4176-1457-08d80cbb1729 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2020 21:21:36.3109 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: w7GAyazDz5pIzcnb+ptBiBWBbwHH95pusLXeCe/rUJpWveqtLkjt9UMBWu0zT03oiBRQ6kuhWONaHJq5i41uFw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6720 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,wasim.khan@oss.nxp.com X-Gm-Message-State: ZkayKEqWF1cJwYXksBv0vrLGx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1591781681; bh=BYNRsCYnheXuU767KCF/HxsFX1odTbONAMsTAwnaBFo=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=cK67WlL2VrLgKk4ZR84b/xFHjV0bfcyf12/JHR8cIPz+pj/PXdoiwQTKqO3RFNLP4+b xKeiMrpdfS/wP3Sx5RHSu63Wa66Z/dMxpulZn2uf+/16Mwlorkw+4LYswiHB9sB0NnM2o fFYEiBVHPP1OnwEkY0l8NlbcbhwqvNeqKOQ= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: Wasim Khan Add SocGetSvr API to get the System Version Register(SVR) Signed-off-by: Wasim Khan --- Silicon/NXP/LX2160A/Library/SocLib/SocLib.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Silicon/NXP/LX2160A/Library/SocLib/SocLib.c b/Silicon/NXP/LX21= 60A/Library/SocLib/SocLib.c index 6f774eb7dc6c..3939afb2fb0c 100644 --- a/Silicon/NXP/LX2160A/Library/SocLib/SocLib.c +++ b/Silicon/NXP/LX2160A/Library/SocLib/SocLib.c @@ -67,6 +67,20 @@ SocGetClock ( } =20 /** + Function to get SoC's System Version Register(SVR) + **/ +UINT32 +SocGetSvr ( + VOID + ) +{ + LX2160A_DEVICE_CONFIG *DeviceConfig; + + DeviceConfig =3D (LX2160A_DEVICE_CONFIG *)LX2160A_DCFG_ADDRESS; + return DcfgRead32 ((UINTN)&DeviceConfig->Svr); +} + +/** Function to initialize SoC specific constructs **/ VOID --=20 2.7.4 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#61058): https://edk2.groups.io/g/devel/message/61058 Mute This Topic: https://groups.io/mt/74793015/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-