From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (EUR01-HE1-obe.outbound.protection.outlook.com [40.107.13.80]) by mx.groups.io with SMTP id smtpd.web10.45613.1591039682496519070 for ; Mon, 01 Jun 2020 12:28:03 -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=HINOpfPI; spf=pass (domain: oss.nxp.com, ip: 40.107.13.80, mailfrom: wasim.khan@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EvjNNOEbwV9Y10iM/Oci8V/h3/VWNN7NEf9paRG1dSI6eI+XAtUvvya4/SpCgoa5qL+5J2pbLBexX1nR30r5txAlCAanp/lZAzMfz3DTn69jCrYBdZRp9/NkpUQRAo//1gYMJIj8V18nAcdIKwBdxnGDpF5M3Rnwl3e/W74z9c+6nvX9PE5nXcwE253ax+6XlgW0ySZ1BgG9lkNqWr2sNEBrV+MMsuC67eSdOpBCaNG6jw7Ekgd2r101UOowzVa3hLq3pweZjvn1BoOecz9zYGosocbB4gDWWTMl/NMluQ58UUv4rw211kg2jLnQSqvxH3nFXBibpRpmWDnV5WQV7Q== 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=gjpQ+lCIZuOef9DB3yO8moE6+2/dnhyzT2/Q5VkvrXE=; b=KynBRD7Dv9Ol9CIJtzEIwAVN3J3INI63midunCsihOuV00kr/Jw2COE1Sn6RFx9vI26wzxVNo5DjO5w/j5BsJ5xuari4dySHVIs0xuyg26sOGtyVbBA2p2LNGQR4e5KkhvphZN3qAdi6RI7bHURXysTznli7cbu/tgQIaq6iE6Wa953AO7SODejgEVZYaAsUy7/c1DZ0tepVveFvu4RrF3JFhB4E+MCrzdlzFpTB2UmyjTZdhaa9TmKAt/NcYD6YTESNxRBeT3V73VkHOU1bPLAH13CoE7w/po5ZQHCzlS1swG/NTn7A/tUQEx6VQ0y9pl8iEaqNz6cJjSVfxwgbGw== 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=gjpQ+lCIZuOef9DB3yO8moE6+2/dnhyzT2/Q5VkvrXE=; b=HINOpfPIRFmqCp7rsXSyjZBDav4HqCirfteLAZyqxevB+WWpWpiaeBSPfvrr2lzksXFhJqkxI3YeuyP2dErOrvQYjM/toqx1meQVASHtvkRoQTTfrNpPYVjenMi6Gw+UeO46ErkP8raUfxk89UL6dxLvefUjYJwSowFccR35AVc= 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 VE1PR04MB6768.eurprd04.prod.outlook.com (2603:10a6:803:129::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3045.22; Mon, 1 Jun 2020 19:28: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.3045.024; Mon, 1 Jun 2020 19:28:00 +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 0/3] Add SerDes Support Date: Tue, 2 Jun 2020 00:57:35 +0530 Message-ID: <1591039658-18541-1-git-send-email-wasim.khan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 X-ClientProxiedBy: PN1PR01CA0082.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:1::22) 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.140.9) by PN1PR01CA0082.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3045.18 via Frontend Transport; Mon, 1 Jun 2020 19:27:55 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [157.37.140.9] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: faf27eff-aca1-4457-674c-08d80661e3ca X-MS-TrafficTypeDiagnostic: VE1PR04MB6768: 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: 0421BF7135 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: R6Ocz5RebFG4HmVHYWzI+SaceCclpviX6cu08wUk2sk44m0YBI1y9ReEwRiZg+6aHgIDFkcFYdCIlhRidUxFT+QSLWDpRvGNulwS6KhzLUmSnRVXKxas28V9ZXAX2wzRE6wLWMsa/SHy1G0ai8gRbdcWyhd85HlHw6FTSElyfdyY0zlHuPnHU3C0OfcUNcJg1N4ZKvYEI6R2UXY2ssqdBejfA3VEw2qvb4xkTV6Nigs/6CXROvsocs3nUoB3mrtDYsmgiuYwEli/QCTi9XtbQSao7XU4LXcc2WZYXYERPd5CCbBlu24gIy562CieUudfN2kPEMH2voQ5wciE2XY7PA== 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)(396003)(39860400002)(376002)(366004)(136003)(346002)(83380400001)(6512007)(19627235002)(6486002)(66946007)(66556008)(8676002)(2616005)(44832011)(66476007)(26005)(186003)(16526019)(956004)(2906002)(6506007)(86362001)(316002)(52116002)(6666004)(478600001)(4326008)(5660300002)(8936002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: TAmZ2njnv3MN1rr7CRg0FhIUCrcLYLRVURvgHiwIaJg4QCvk1fIZMqLgs6Xa1vrGbFPpcKNqsIaIKV377w9iv6akCuqB7FJbARVZQzt1/s8YNIUjl/4E5uYnR4+rFIWoxx6ML9QzxEpJk/4qhWTKJwB92eZQZu/TgPjyMFA4HSwHUzAqY124UP9JlFSvhFgKTsl1yUaaUw0/IbzaCExeTTXJrcqr7wlP2M+2+GwyeY6zx80PB9Uabw+85JizQGCu3k+bYuWkTIYqwwxyX4dxpbeRL53P8IQCOeGnSEMQeCqB1faTVDE87eP/Lb1Mndm0s8Ux8fFyxYI+pbwb51pOZG65M5MzYnVQICyXB++76HocLqrtLPVlCOLroha44KHvbwdwqWKQrQ1USBMWWx+Id1Ajvv2JUHGAKINY9+qK5rpXcJwnQVCFE1f2mXRrrFofSURlQSHWU83slEHStaQBP5DB0XoxmpqkB5Dtc6eViEE= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: faf27eff-aca1-4457-674c-08d80661e3ca X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2020 19:27:59.3232 (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: 1jCUXiz2wK3ia29/XHYhCzGwJsFxVpUgn9n0ZEG2UnAcopnz5RhW6ghT+5+ihqRuLOKMFdYH5jA1ts3kP24ymA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6768 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. 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/Include/SocSerDes.h | 68 ++++++++ Silicon/NXP/LS1043A/Library/SocLib/SerDes.c | 75 +++++++++ Silicon/NXP/Library/PciHostBridgeLib/PciHostBridgeLib.c | 35 ++++- Silicon/NXP/Library/SerDesHelperLib/SerDesHelperLib.c | 165 ++++++++++= ++++++++++ 11 files changed, 472 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/Include/SocSerDes.h create mode 100644 Silicon/NXP/LS1043A/Library/SocLib/SerDes.c create mode 100644 Silicon/NXP/Library/SerDesHelperLib/SerDesHelperLib.c --=20 2.7.4