From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (EUR05-VI1-obe.outbound.protection.outlook.com [40.107.21.87]) by mx.groups.io with SMTP id smtpd.web10.26.1591637323721476405 for ; Mon, 08 Jun 2020 10:28:44 -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=Uhr/CrL4; spf=pass (domain: oss.nxp.com, ip: 40.107.21.87, mailfrom: wasim.khan@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JguW/ZFtO/Tp9dHN/PbuqJ5gzjenqKSbxQGX5AsHEHyzLFBjoE4DbkMGl1MTKj59zLT8MDa08up39useJnGpq2AipzMtoOX/rDFFfVY/0IaAnWu6DITDakVwi5Rnc+5pw4sxkx3wF6c4ZXqbqcykLrjZbd4JkCqpM2Ajv/KtdCflEDTePhMpkxILWAsD5uMrE+ODjrOrIEf+3ikpTAa1HclLll8aNHOlFokQ1dARpLIJKn/Yft+t37OmdhoSJeTVqm9hNn1kdo8Ik+dlkUT6HeeXp11F52uBD7wR4JOmyLoCwCRAfHqoyi8ReAIRzy9nldGMy38xp8+sK59FjPjE9A== 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=/n4Zesjnuzy2RBqRk0XCXP72KfKgKh+epocXN/JhW+8=; b=l0IvFTV0vADzeilJpcDKjPg+bf5RIHVkRLUby/rxDoIBoMHIrSFZRo/QVYWeER8ZbSYbBB6vb8N5LWM9RTPfyfWaKaqphX/NgMSTp4TJcYal/ykDhW1ol8lbArXXMDeDdBOc8MbZrMx39esJKqYb3y7cyXO+/oaA9XobjjYDQ/Prd2+EHdorEEKdlmcsnsaBGNV+2D9hsi3EzXbJT9gqzWltqQ/Wf2Vveq/wapeuy+AmzeH59ZBI0kU+cY59DdugusgeLVAA/KRE7q9CbE1hhD+M22lleo3nlFczNZxXUTyJxvzDI7v6Q+pGciXWW6/lBm6OB/djt35H9R4TSNuf1g== 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=/n4Zesjnuzy2RBqRk0XCXP72KfKgKh+epocXN/JhW+8=; b=Uhr/CrL4bc8foQYhuPFe4VmHvBUUOi9jRypZKI1zAXv+NJmLt8gGiwuQeFmNRDXfviW3akDVzHKHm25F05kdKCSgd1C5RWF8fk/Wgrl0qSd8ADUzZGJ2cuwxY5NecYi3D0BvoBZoyPlfc71MOatMGn0lCqwdicEF5oEBNcXJ89A= 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 VE1PR04MB6638.eurprd04.prod.outlook.com (2603:10a6:803:119::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.19; Mon, 8 Jun 2020 17:28:41 +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.3066.023; Mon, 8 Jun 2020 17:28:41 +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 v3 0/3] Add SerDes Support Date: Mon, 8 Jun 2020 22:58:14 +0530 Message-ID: <1591637297-16073-1-git-send-email-wasim.khan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 X-ClientProxiedBy: BM1PR0101CA0064.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::26) 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.163.9) by BM1PR0101CA0064.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3066.18 via Frontend Transport; Mon, 8 Jun 2020 17:28:37 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [157.37.163.9] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 4750a3c3-fd70-4cc6-e8eb-08d80bd1628a X-MS-TrafficTypeDiagnostic: VE1PR04MB6638: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-Forefront-PRVS: 042857DBB5 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wAg3KBbQKl2zJfUETFlzthG16dgUMh2gtZcJHaKww/a/rKhIzJzVPx7zwD090zVODCLG5WUKnNUpjSjhE8md05/CLoi1CbBCNh8v0TDqEyAQeZBQNJxuYL6iRz1jDyO/G68ZmfuWS+IGwjEGypfjVbdlkf5Cb0NZiKp6VRe0sRvAgYVCVKlcuG2/Npk9JaiiY5LFT3JE3dKpEl/GISANkhMCoez4kmEhz51ks/viB+U+XIWY0LfG1g+75D67mzxkjVxVZyoCHX8MSTr4ff6YQe9LjTpmeD0fc4SXxhZ78X8D9boXtx/sZJSNukIxMXCNzNIeSVWuiq5fd+VzXnlq/UybSi4TtCNl5v3yr70aQPd46iuiuRJ7RGys/cLGqX2QLMSa2LidHZkSb5Gat7k0Xw== 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)(376002)(396003)(39860400002)(346002)(136003)(366004)(4326008)(478600001)(8676002)(966005)(8936002)(66556008)(66476007)(66946007)(5660300002)(86362001)(19627235002)(26005)(316002)(44832011)(16526019)(6666004)(2906002)(956004)(83380400001)(6486002)(2616005)(186003)(6512007)(52116002)(6506007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: aTIBBnrHfRvgom71ME9PCbCDqUTASFvOoZkjZt05K5XDFzhbnNLCuMBJa/ahKQ/DGze6sorxTRms8pEcwtVXcZFaHFiPkxuNfi7NzSyle48+hwmONMHoFuA2XTLx2VshFjnrpce8Ud9Pz+2s2Qkv7QuDcWrLC2BqHnOU/bOVWLpTHTgdfVhkN7J+jR0CjiNM5qIzVLkRQCLKDn4kqGf/h2rukkvXsYHs7Q412PbTmit60gRG9HnYhz5WqUhq7/yuoPJIstHlOH2NPpeWB8YV6rROyXN9/pRGkOQGws8bqCHF7Cvci7hfqxBX7NUkYHpQZ/2g3nxkXPL6ycccPFcoUyiUIqpbwmnjIg74iSHxu8mfwJpjP+W6XeqWKF48WZiJTQuFdZabvkr/j1f2lDvecMRPGaY787Klv7hhk7TN/Tqrg1bYA3o/kj1s6QkcI83Wo6hF1BvoCnVGspUWkT2qyCARAscxG7cm/I8qM843XZk= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4750a3c3-fd70-4cc6-e8eb-08d80bd1628a X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2020 17:28:41.0871 (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: ezVcXpkUihBkbxuvNOj4tm3E4F5U/ALhaVQEjKsiO+bkpItFNQtCH6lcFY1kWiCOEKGJhpOw8WxdLU+CJDJhbA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6638 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 series implements SerDesHelperLib and provide SoC specific serdes configuration for LS1043A, which can be used by different IPs (Ex: PCIe) to know the enabled interfaces and perform the required initialization. V1 Series can be referred here: https://edk2.groups.io/g/devel/message/60542 V2 Series can be referred here: https://edk2.groups.io/g/devel/message/60836 Changes in V3: - Addressed review comments received on V2. Wasim Khan (3): Silicon/NXP/Library: Implement SerDesHelperLib Silicon/NXP: LS1043A: Add SerDes Support Silicon/NXP: PciHostBridgeLib: Initialize only enabled PCIe controllers Silicon/NXP/NxpQoriqLs.dec | 1 + Silicon/NXP/LS1043A/LS1043A.dsc.inc | 2 + Silicon/NXP/LS1043A/Library/SocLib/SocLib.inf | 6 + Silicon/NXP/Library/PciHostBridgeLib/PciHostBridgeLib.inf | 1 + Silicon/NXP/Library/SerDesHelperLib/SerDesHelperLib.inf | 28 ++++ Silicon/NXP/Include/Library/SerDes.h | 28 ++++ Silicon/NXP/Include/Library/SerDesHelperLib.h | 64 ++++++++ Silicon/NXP/LS1043A/Library/SocLib/SerDes.c | 119 ++++++++++= ++++ Silicon/NXP/Library/PciHostBridgeLib/PciHostBridgeLib.c | 35 ++++- Silicon/NXP/Library/SerDesHelperLib/SerDesHelperLib.c | 164 ++++++++++= ++++++++++ 10 files changed, 447 insertions(+), 1 deletion(-) create mode 100644 Silicon/NXP/Library/SerDesHelperLib/SerDesHelperLib.inf create mode 100644 Silicon/NXP/Include/Library/SerDes.h create mode 100644 Silicon/NXP/Include/Library/SerDesHelperLib.h create mode 100644 Silicon/NXP/LS1043A/Library/SocLib/SerDes.c create mode 100644 Silicon/NXP/Library/SerDesHelperLib/SerDesHelperLib.c --=20 2.7.4