From mboxrd@z Thu Jan 1 00:00:00 1970 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 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=dAcFrtIP; spf=pass (domain: oss.nxp.com, ip: 40.107.14.85, mailfrom: wasim.khan@oss.nxp.com) 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 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=GQGZ48tu0HwKonIZTS7gB1h4Y0UPr/IuJSa6yNOXbAU=; b=dAcFrtIPYzl7A+m3TC6I83MsdxWEyMgSW2wveQNircoNkIV7rD50u5qRw1vLHLAXe7jYsbs53SRqPvAT+8pbUZ24r0bQbPe4t0WVAxN/pRoQkoNKwCqsHOfp+wVxAmV8QhvE+tPhORcvki8m99xIN6fXhs28MeOjiSXPq4Gy8Y0= 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:31 +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: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: [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> 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:29 +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: 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-Forefront-PRVS: 042957ACD7 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: m3gz7TiRzdureO3wEBuusc4zHnmGViQmsD+XA4hT5tVQ/858yceBzHCdT+amwUWhZTrvn1VmfM2bLa9aUmwkDdCtje4EGJcSPG2iiyO9xovYeyHb+tBZ2pcVPS+Y8LNmWlFl/5+weSqjJlldH6YaN2X/KqbW+d/mK39k1Fu9VyYZCdBxjM3nSQeVjyCnk2aPKmC2avqpybMhsU6K23A0rOBhQjeg3gKRHXpvyr26FF1sFdRewsLoG+7AwO1U5u3OJrj4FS91ncfjNf+u+RCdkxAMAhEZV+QY5X5m9cbNEaBSsaVWlU2GQUHlhIQuY2vhrheH0vAtwlWkh7q64w6FZA== 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)(83380400001)(2616005)(86362001);DIR:OUT;SFP:1101; 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 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/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