From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (EUR04-DB3-obe.outbound.protection.outlook.com [40.107.6.69]) by mx.groups.io with SMTP id smtpd.web10.10520.1591104393621739127 for ; Tue, 02 Jun 2020 06:26: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=C/EAwpJr; spf=pass (domain: oss.nxp.com, ip: 40.107.6.69, mailfrom: pankaj.bansal@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BJLMAqhtlHnBtQo9m9Atrt/YdbDhx2z0IyDHzIFP2QfPgsDODo4HPBuB5U3eg00h39Gy9uF8vbsIzy4rWf0EkzfiLrimT3UAx4PuNLB7IIXRxj6dea49+UKQJxwheb4JkNSRvHGWbOVG5jJvGQZ898rDvkrRLqY3EdgLacvrHN9t3rPAOIHhtnfEbtDkgK0CQm//wBsQozOR0GUX5JKh8uIVPxA5S0f3jGFmqPsP9ovnhCfDanRzXiKH0mzrLYv3fe1P9UswWCwCuhycgywkVV3LpoQ8fRdOzL40Fdbinr8OmD28DKx+mPMl+rWAITMUUvuZtqZJC994pcgp8J7etQ== 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=sTM78kGCBF91jUEdeAnjEHvWaYL81nFbGLk6KMjdgH8=; b=fvXQhkJdcvfJQrx5abgYhR0hmxFWl+RQNL2cAze2hzBkWmgiDOLpcR4vyWHL8ezsuT/K0d5piK6VsjpV3V4/8CDKSdq+Hsm7/u73EcbbinMWQDVNzqC+5TkU0dTjAJV8+R02wi/NxXOca/nfXnvPfXVZWm95KazeMeAt5BaKoa5TgWrgzhTRaE8+LayLxtObCA3lwDUeEWmu4kpC0zCnu5hd2UKeupXKPFWsgfwQrfXDH+OQ361Ue+Pc0ocSq5/Cmfn9bvXZAHxRnYPtCSrPw8jyBwepYwUUoIQQO4DyrB3sOAH4hTuwGBJhf6F9IP5Yl15sr1/6TBH4T1B01mP6mA== 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=sTM78kGCBF91jUEdeAnjEHvWaYL81nFbGLk6KMjdgH8=; b=C/EAwpJrq+2faroZUppJrE2aTZBx6qncmF0yPiqX8NJVwvLjC6IEE+2QmbTSe6XelALRffkP+7UrkmTHwuU3y7/z/lah52mLB8r3n8MF0B3xAJ8OD6DXO7R6II0g+hgVJ950xCt/Yj1wzWYd6DWMwJwYs+5RObnhHn2kMp7i5LE= Authentication-Results: nuviainc.com; dkim=none (message not signed) header.d=none;nuviainc.com; dmarc=none action=none header.from=oss.nxp.com; Received: from AM6PR04MB5926.eurprd04.prod.outlook.com (2603:10a6:20b:af::31) by AM6PR04MB5702.eurprd04.prod.outlook.com (2603:10a6:20b:b0::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3045.17; Tue, 2 Jun 2020 13:26:31 +0000 Received: from AM6PR04MB5926.eurprd04.prod.outlook.com ([fe80::64fa:9421:3ffb:eed7]) by AM6PR04MB5926.eurprd04.prod.outlook.com ([fe80::64fa:9421:3ffb:eed7%4]) with mapi id 15.20.3066.018; Tue, 2 Jun 2020 13:26:31 +0000 From: "Pankaj Bansal" To: Leif Lindholm , Meenakshi Aggarwal , Michael D Kinney , devel@edk2.groups.io, Varun Sethi , Samer El-Haj-Mahmoud , Augustine Philips , Ard Biesheuvel , Arokia Samy , Kuldip Dwivedi Subject: [PATCH edk2-platforms 1/5] Silicon/NXP/LS1043A: Fix the Platform PLL calculation Date: Tue, 2 Jun 2020 18:54:59 +0530 Message-ID: <20200602132503.27154-2-pankaj.bansal@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200602132503.27154-1-pankaj.bansal@oss.nxp.com> References: <20200602132503.27154-1-pankaj.bansal@oss.nxp.com> X-ClientProxiedBy: SG2PR02CA0109.apcprd02.prod.outlook.com (2603:1096:4:92::25) To AM6PR04MB5926.eurprd04.prod.outlook.com (2603:10a6:20b:af::31) Return-Path: pankaj.bansal@oss.nxp.com MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from uefi-workstation.ap.freescale.net (92.120.0.69) by SG2PR02CA0109.apcprd02.prod.outlook.com (2603:1096:4:92::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18 via Frontend Transport; Tue, 2 Jun 2020 13:26:28 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [92.120.0.69] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 938639b7-5111-49b2-9aa7-08d806f8900c X-MS-TrafficTypeDiagnostic: AM6PR04MB5702: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2582; X-Forefront-PRVS: 0422860ED4 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 03WNEXMk6JTP1EUnX2Vuj8yOnt0X9PvdPQLgRNZfu14z+NYYsFTwizKv5bhN0UR86AJ3kcKfhsGvvVvbglK/m6f1c1vngIQFrdyGb3mxek333QHwigXnL7wTj4fAc9jeovr6M9lEy8cmWvc6vKTWbeXwcxQhAdzysoxqLFLcHbtcD2D/IJOCVusdadpUjb0a6YX38TZ5Xk8JNM7FOmLwMgoNoKgXAh0gRPq+LJvDZCL7S5oi3pdIYwj4pL5cY5BF+KUS0qk7rJu+DxQYUuP5wK6aYSEP+1mM27v5phthmjGVIKpr6ztO9KDGccsrByD2qLiZyd06NlarGr5ZaBa25nCRhFWF8qUFhttmtEojkdfNG+m9dfkBm5DJeRlHUX2w X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB5926.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(366004)(2906002)(66946007)(2616005)(956004)(498600001)(66476007)(66556008)(8936002)(4744005)(83380400001)(8676002)(19627235002)(5660300002)(186003)(86362001)(6666004)(16526019)(44832011)(110136005)(1076003)(6486002)(6506007)(6512007)(26005)(52116002)(921003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: JPMhZ3sLxRR4lowovenGvyNNBMLyyWKgeM3mxESMmVTKQDmOVmbO5a5H1B9zZ3UaQJEH4VxDS+9N/gEG7lAxUbUEcddibEIPVP1lIBINY1PWVDAHyZRBP95RWCU6+ibuFhfYZB7ZMvhOsa1x9mEIRjdxQLEYJI823qe86ob3x6Y6oYayeJTFBTT4Xa1C8jZHPslSBhjTeWnSbjgmiUOfg2ZovUQRfwpayjhoajTgGDfQTCpyo+HK3i6+781EofnikQGj/rDl8o+lY4QC6VIrkbYmnD6V4U2PrOemfL0S09Tk/lX6bcheZIj7TdY07CwzNkn2mxpMWO9TRSBztGmnoy3mL8YffbO5c0DGBFP6PaQO6uh2fph3Re9cFn2Y4jQ9p5u4W+6XXd9RurGVJLunVuphLvXKz8kEKdsm61HptVKs/Ih2XV9x9GnJBvRXkMYr+I1vzYfxS4sUjkuloz/xpSbMMU7rAz96NEOmVY87eOQ= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 938639b7-5111-49b2-9aa7-08d806f8900c X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2020 13:26:31.4884 (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: F5nBAvLmW0ieHbQvShCyzsiCpHMcfFLyLXtikx3i8mklKeqrBlPMRqbVK/WANZAKkLhlhWHy06viVoHMyrRREw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB5702 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Pankaj Bansal for LS1043A SOC the DCFG registers are read in big endian format. However current Platofmr PLL calculation is being done assuing the little endian format. Fix the Platform PLL calculation Signed-off-by: Pankaj Bansal --- Silicon/NXP/LS1043A/Include/Soc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Silicon/NXP/LS1043A/Include/Soc.h b/Silicon/NXP/LS1043A/Includ= e/Soc.h index 97a77d3f5da6..afcd9da34cda 100644 --- a/Silicon/NXP/LS1043A/Include/Soc.h +++ b/Silicon/NXP/LS1043A/Include/Soc.h @@ -48,7 +48,7 @@ /** Reset Control Word (RCW) Bits **/ -#define SYS_PLL_RAT(x) (((x) & 0x7c) >> 2) // Bits 2-6 +#define SYS_PLL_RAT(x) (((x) >> 25) & 0x1f) // Bits 2-6 =20 typedef NXP_LAYERSCAPE_CHASSIS2_DEVICE_CONFIG LS1043A_DEVICE_CONFIG; =20 --=20 2.17.1