From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@nxp1.onmicrosoft.com header.s=selector2-nxp1-onmicrosoft-com header.b=GT3ditAg; spf=pass (domain: oss.nxp.com, ip: 40.107.7.75, mailfrom: wasim.khan@oss.nxp.com) 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CrvFeNJTuoL1ExOwXMY122PDnqe1FUd6UqFS9MqDLb4=; b=GT3ditAgWNAIBGd9hPFKFYT0DaEPTOCafyRFulf1XdmfA5yuyqw7OTR1TabJl9ol2TRCoh9UsijRoJmoTb7qxQDw2FldkZ+Qvkd3vLB8cnpUt6fr/47f+qnfPt8kCbZiJOrrRjiON/7NdVWtZhHS1xYJ95Q1UVdYDzTtd3/bPCU= Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=oss.nxp.com; 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 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: [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> X-Mailer: git-send-email 2.7.4 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) Return-Path: wasim.khan@oss.nxp.com MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 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-Mailer: git-send-email 2.7.4 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-Forefront-PRVS: 042957ACD7 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HbYL6u2WslK5pV/MTDVRc4t9dRfa7VpZCR2RZZdIWrIsxPmTD6p893mq2kximft84+ujm9efIRiidqbkaZdLY2O/7o1O/AIsD2i6KQGYhtorJkMP3gaRYrIOCXNZEa+e6xpbbhXe605gC3lpkI6gYbd9Sh56L/qpfJ/vqqb/2kPUHzNTD7vbeihuAhKSV+LOlGs1PeS+t6kcWb71HlJasiQz/tKhAAy0FGaUz0g5/vxlu+lNgqN+2UUn9Wp7xEHMNjzzeGpd4bLhAIiLSZJfFPYgewiNutDU9I9ETXZsF+cr6yG8TUWiHQq9WVObK2mokD8qXGakPFyxTwhQsJNGYw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB6702.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(366004)(376002)(136003)(39850400004)(346002)(396003)(2906002)(4326008)(6666004)(66946007)(16526019)(66476007)(19627235002)(8676002)(6506007)(186003)(5660300002)(66556008)(8936002)(26005)(4744005)(52116002)(956004)(6512007)(6486002)(316002)(478600001)(44832011)(2616005)(86362001);DIR:OUT;SFP:1101; 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Wasim Khan Define macros to retrieve System Version Register(SVR) related information Signed-off-by: Wasim Khan --- 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