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.web12.282.1592334122592008828 for ; Tue, 16 Jun 2020 12:02:04 -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=IiHfTrAz; spf=pass (domain: oss.nxp.com, ip: 40.107.6.69, mailfrom: wasim.khan@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aVyvETC34Gsgo7Daz8ap6zO6jNyAt9kUPaSapod7C/mFJ8H87dvnuvFdrJ6rRlRnu7bqeob/oTegXHwtHXulcUUAYU0UGIs6dZVXwU0C/WqGXGwixMsL9jcKopmjwLVPATnl2DTMjpvTudWVgbhtKhl9mbDjqDBfpROhwS8hsxoccUpW0+h/NS5Estvu8gcCxjCqxvSssCyjX/w6Fxd3q+TASmtRkA9sBL3jDhjugQaIetpgAsInEXtljuA+CCHENuEPHLs3y1lj0WdxPWpa21tyvMfy50wttDQ+z0WoOBC5YgO/W5wvDCAq2WsbXWCdSYplm1NHNcr7/AH4PBEfeQ== 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=Cg83Xr8hw6skHMDJVIdedFnr/TdqZ3BZasmwH9RWmxY=; b=ICE1MqFCJrGmuKkiDtehvWZ2qap3t3Ostdi7EsujAgIkAA1jWKTdFg3RCZxkwaIiZnS/kDYVzn5Aep6oU++pBqeGD3fmSyhjdebnrgElgTwAcz3+1taHUeIgTtfHqXQZ3BxbHi3eJx/X6TtPKfauFUVtsJzGcYQ1StcSRRu7132j/sCfjFmd7A78hW/xErfCsHrmCzNr5zcYawx5TMEE01JwdmBO/Pg7Xo8GeKQmz4At+C8674LbpEI9pHQKurOgGoDES7NOsZP3qBqW7ijlMaBNMnziqzEc4zSeoh76VXF/JIqwfgCIziHj/WqJzbWfnnElV4+a6WWJ8wVe7jWS+Q== 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=Cg83Xr8hw6skHMDJVIdedFnr/TdqZ3BZasmwH9RWmxY=; b=IiHfTrAzi3bLDtCMqMw8d6MNVCIweRa3lI+SNTLVIp9mQkTczMIDKQugkxkX79iG7xUNPNb3iUZjJknnmnqQgglcf3E/6I+CaEMoC/ykGOnylGzl3sAAIDYhWdx18/kCgXNO9tHkRoL/pnRrJ8RdM9D2vAFPcNgO7SZJmn968dA= 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 VE1PR04MB6621.eurprd04.prod.outlook.com (2603:10a6:803:124::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.24; Tue, 16 Jun 2020 19:02:00 +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.029; Tue, 16 Jun 2020 19:02:00 +0000 From: Wasim Khan To: devel@edk2.groups.io, meenakshi.aggarwal@nxp.com, V.Sethi@nxp.com, leif@nuviainc.com CC: Wasim Khan Subject: [PATCH edk2-platforms v2 0/3] Silicon/NXP: LX2160A: Add SerDes Support Date: Wed, 17 Jun 2020 00:31:43 +0530 Message-ID: <1592334106-3226-1-git-send-email-wasim.khan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 X-ClientProxiedBy: PN1PR01CA0102.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00::18) 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 localhost.localdomain (157.37.209.63) by PN1PR01CA0102.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3088.20 via Frontend Transport; Tue, 16 Jun 2020 19:01:58 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [157.37.209.63] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 90e92cc2-d0b1-4b09-836f-08d81227bf94 X-MS-TrafficTypeDiagnostic: VE1PR04MB6621: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-Forefront-PRVS: 04362AC73B X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MymN7TzrrxL8cfWZDS1T6fKzisA1Olb+7XtrrtykM6DVlmcdqbcCGM2+aXmusPG3n8BgspmYH2nCBNMFqk8f7X9a2CNpmEP+4hRK9Sq/Kvs0kMP8V7mY9aDqGYIC6KlM0FfAxe61D+gh54DlEwJLrBZognMC+OpL+3JLDgIp72CNPXiZD6FrQ1Lva7yyShS4S5A1Cu1N/+2zAztXjmwW0OebbqFNcxi8eePw2w4fb0qheYcEJhF/eMiiDmaOnBS7YKLxmKsE3VRca0c7VfdZMTaFMNXoG5hizyUEWaP8ljGakKf5vYJu0Li5AybCpYyIUjWWWNnXW94pdTxxn1CDJyKzSI9uPuGiTuNZzDdoLUWivYwYCVHwGFh2ukJbL3aoAmSMFzn+kOkHH1uzn/zX7CmSVF7phQRPc1nF6l/lThgYn9xbifGk9AZggBKnOYCpDSZzc1F1lpc+9wVaHOJvtg== 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)(66556008)(6486002)(69590400007)(66946007)(66476007)(44832011)(86362001)(5660300002)(956004)(2616005)(6506007)(186003)(16526019)(2906002)(26005)(52116002)(498600001)(19627235002)(6512007)(8936002)(966005)(8676002)(4326008)(6666004)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: kGqj+C9nd3pNmQW/b+dbxBDtQgjLku5IstVKIC+wfqlenlCtdKGOU3uTUEkIcckQjEI5Y84tKXopw+hwwzM/SDEw7ZTjwef9MSyOnFED80sFJdYIg9CMdMp3Y4/EoV8W1iNIUnuh6JjY5aBQhgWLxTCEYQTolC0S5xVWm3dC4oU+MO3XRJPIubWwC7CrWy6nWJb7aO4ljVgJzxHsbcyKv76uU8VgNhpDs5f36EEfIoVOrkfu13aoKgaHc04KFzr1aDdN+jTY8Rw+O9xbnLZ5/UHCTPFjAOzGIJEEJxYwSfDOAEGBz7heZ+XcRH+nM9t5ESqWMqztybIniEkfSso6RaxRbczNvt2Qwhhr8VU3S7/KyBCT+EAVn+KFDvx4xWz0E56m67f2mqLge8f5ry/Ebme5FO+6HGLRwUPpWUpnRv/bKysJxVHtcYipP9TIcOkm7goycWNxQ1QBpDe61p5roTGn+9QPF9FqygEMh+qNESs= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 90e92cc2-d0b1-4b09-836f-08d81227bf94 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2020 19:02:00.3538 (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: 3Vz920UYflk+kCEM3rHct9OlX/tpzb337XyxDhTKUEDpI8rs7Wo0/cywgSsYqKHzJOby+6nvq+Wlw8POTSMxIQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6621 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Wasim Khan NXP SoCs supports different Serdes protocols using reset configuration word (RCW).=20 Based on Serdes protocol value in reset configuration word (RCW) different IP blocks gets enabled in HW. This patch add Serdes support for LX2160A, which has 3 Serdes. Changes in V2: - Incorporate review comments to change SerDesConfigTable to STATIC - Incorporate similar changes for LS1043 - Update Debug log in SerdesHelperLib V1 series can be accessed from: https://edk2.groups.io/g/devel/message/61056 =20 Wasim Khan (3): Silicon/NXP: LX2160A: Add SerDes Support Silicon/NXP: LS1043A: Change SerDes ConfigTable to STATIC Silicon/NXP: SerDesHelperLib: Correct DEBUG log Silicon/NXP/LX2160A/LX2160A.dsc.inc | 2 + Silicon/NXP/LX2160A/Library/SocLib/SocLib.inf | 6 + Silicon/NXP/LX2160A/Include/SocSerDes.h | 74 +++++++ Silicon/NXP/LS1043A/Library/SocLib/SerDes.c | 4 +- Silicon/NXP/LX2160A/Library/SocLib/SerDes.c | 211 ++++++++++++++= ++++++ Silicon/NXP/Library/SerDesHelperLib/SerDesHelperLib.c | 2 +- 6 files changed, 296 insertions(+), 3 deletions(-) create mode 100644 Silicon/NXP/LX2160A/Include/SocSerDes.h create mode 100644 Silicon/NXP/LX2160A/Library/SocLib/SerDes.c --=20 2.7.4