From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR02-VE1-obe.outbound.protection.outlook.com (EUR02-VE1-obe.outbound.protection.outlook.com [40.107.2.58]) by mx.groups.io with SMTP id smtpd.web12.3371.1590102191174125906 for ; Thu, 21 May 2020 16:03:11 -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=eYchbJaO; spf=pass (domain: oss.nxp.com, ip: 40.107.2.58, mailfrom: wasim.khan@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=acDj5XHHPFQNbiWvYWfSojIvmu3KYEqJ4dASgXMfMRrkCzp8FLdMp2G+pkx0xGOp52dsHZyfieq0dXv84dNdSIZggX5zLzqPpT8T1yXj/phYYkvopjxgvc8ahcB4QFg1HvQPhT/ExxHIbFdM2ToADAvgZo7M5hZPnSodciDauA7u7s2bu8delgRzZkQQZsjvb23Ti8ePYfBrQ+ZSL6nZ5VaciQdVTmlliGNxOz3r52vU4ne//MqHHDSgKH5rGqMW2QByqbNuLHD0TFgaNZWqjohJI/zsLMkMTnSXbj+L17abQXU/yK9jNnBPlSUQo3pAgpqn6+GCMdW2YktWupoSQw== 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=RYqcKp8W1bifjmeJQ/UaJmEY9xYSGJDtTNnKlEcutpc=; b=h+6ykKiZxwySstuunRVZKVwCbM4MYPt00j7L8t6BhZYAV3e7RbMsr4hia4nzCkYKHG7P9H2RkUvltZXBrMBAamGiSiObgpGtWry21nFLgJplAOimkDGRuLb3wFJzoIhRmI1JbGk4lA9OcNcMpoCAwHELlfc7TTqYvt8gF2Itqr/Rsq5qb3f1hadNjjkJ0H/WiOKq2JEke1AA5p0hek8+afATBFU6S/75DroFGVvkwr/wvLn7QNjCr5XhkIC+peC53ay7h+XeoYijrFMIVROkiGAz0oGFKWqUXjpF0qRfaPp4E8y+1I/i5Z0cEuno6d5YJQDUmwW74WzMfZROhZCX2g== 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=RYqcKp8W1bifjmeJQ/UaJmEY9xYSGJDtTNnKlEcutpc=; b=eYchbJaOjZ3aVCJfWtyX4WdXwgO8v9nDK+ElxOIvRXKn+uplbOGI6C7Vq5bZiz12MoXRxPwms101LfosGg1xc08S1m+wsHoDc9VhKJu9emvKU38kY/M0nyXPherd1AfB/bociqxLW0ht9eIYoHvaE1+2ur7Zdwz6bC67M6n16K8= 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 VE1PR04MB6381.eurprd04.prod.outlook.com (2603:10a6:803:119::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.27; Thu, 21 May 2020 23:03:07 +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.3021.020; Thu, 21 May 2020 23:03:07 +0000 From: Wasim Khan To: devel@edk2.groups.io, meenakshi.aggarwal@nxp.com, vabhav.sharma@nxp.com, V.Sethi@nxp.com, ard.biesheuvel@arm.com, leif@nuviainc.com, jon@solid-run.com CC: Wasim Khan Subject: [PATCH edk2-platforms 00/16] Add PCIe Support Date: Fri, 22 May 2020 04:32:03 +0530 Message-ID: <1590102139-16588-1-git-send-email-wasim.khan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 X-ClientProxiedBy: PN1PR01CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:1::11) 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.47.200.219) by PN1PR01CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:1::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3021.23 via Frontend Transport; Thu, 21 May 2020 23:03:04 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [157.47.200.219] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: b1fcaf9a-205b-4f5a-7397-08d7fddb1fd4 X-MS-TrafficTypeDiagnostic: VE1PR04MB6381: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:935; X-Forefront-PRVS: 041032FF37 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vG6Xv/hkCYQs4yWxRVneauf5yOkNq8BXz8iPwKErwbZXLmCqqwvuirZmi+TtdrBqH1qtAfsYehYE0BnZT3g/vug1CaYy/E2J8o+aszbPf38pd6u4UZCACXJ1fVKudJl6MH7W+G1RdJfP8B+wVYVXVAQXrb22fYLUBztijtl+9N8Jd/mJT7R6t0uXWeK8Y8FGZm4HHkmnRt1znn1BLLQ00uMiZhdkeSd3bBSYygb6tH3sQiBHFMDGJjcgZnJVN4Bp7715rvUclTYq8uMaQkDLgOpjYlzJzIWAXYLryG3/r+QADuD4awESNpcU040+ousceEIIaX84S+RfoM89JhYyvg== 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)(346002)(376002)(136003)(366004)(396003)(39860400002)(6506007)(52116002)(66476007)(2616005)(956004)(44832011)(66946007)(8936002)(8676002)(4326008)(316002)(478600001)(2906002)(16526019)(186003)(66556008)(86362001)(6512007)(19627235002)(5660300002)(6486002)(26005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: HW6JMp6WSxGFSczdCqnbqk4ermXY/CWTkO3CfKtUqsscJS9Govvm/LuhgMAQogbCauyudUWLHk4qWAIl8M44kHiyijW4noT/AUb2bJBb8BMSuB5sxrvUgrCBgRVZqB3UPe2lmEPaVaOW4D2Sr7CvA0oRg9EYbYLJ1UEa91V+ra6J1D6v4N9lxlDxPvqjSFATKk5SObYvNr2oRsJGj7JY5SghE/QSj2uav3mo/6IOhrPNyxXRhzn3xRvREXT0UeJYs6AEPs3ht8i4OpkRYOmPzqwRLvgo9HqPN+JGbCAVzWxsWZ1bzjoRYqMrDBPSRjmKQsj/xTNYjVj8xW5zj06c6rWEDOOV/Z5KTW00GXBRQHeOdOveoYgImuF0ghaEVELNicxCTA+3f1BG1UbLkpDWk7gGtc3ADXi+GOQByLhXr4YEDDJ8zhwgUNDV/Fvi+EOv6ftl7eZ4cZ5GBDIDaSsNoyuGWQ6quTq5Gvs2uo82e6i5yhxVmK15a1EeK45UQaBd X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b1fcaf9a-205b-4f5a-7397-08d7fddb1fd4 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2020 23:03:07.4254 (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: TQRbBRPkNBB3qvffzaoU2Z/ZIlkwPPTtd6zpY2iSvb5dNU26V+jw/7aFr7hKrt57jAV2JpXW96ZSxlZLwf20Qg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6381 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable From: Wasim Khan Add PCIe Support for NXP Layerscape SoC which supports different PCIe controllers. Use generic PCIe drivers and wire up PciHostBridgeLib, PciSegmentLib and PciCpuIo2Dxe driver for controller specific implementation. Wasim Khan (16): Silicon/NXP/NxpQoriqLs.dec: Add PCIe related PCDs. Silicon/NXP: LS1043A: Define PCIe related PCDs Silicon/NXP: Implement PciHostBridgeLib support Silicon/NXP: PciHostBridgeLib: CFG Shift feature support for PCIeLS Ctrl Silicon/NXP: PciHostBridgeLib: Setup PCIe LsGen4 Controller and ATU Windows Silicon/NXP: PciHostBridgeLib: add Workaround for A-011451 Silicon/NXP: PciHostBridgeLib: Dump Layerscale Gen4 ATU windows Silicon/NXP: PciHostBridgeLib: Dump Layerscale iATU windows Silicon/NXP: Implement PciSegmentLib for PCIe Layerscape Controller Silicon/NXP: PciSegmentLib: Add ECAM config support for PCIe LS Controller Silicon/NXP: PciSegmentLib: Add support PCIe LsGen4 Controller Silicon/NXP: PciSegmentLib: LsGen4Ctrl: Add Workaround for A-011264 Silicon/NXP/Drivers: Implement PciCpuIo2Dxe Driver Platform/NXP: LS1043aRdbPkg: Enable NetworkPkg Platform/NXP: LS1043aRdbPkg: Enable PCIE support Platform/NXP: LS1043aRdbPkg : Increase fv image size Silicon/NXP/NxpQoriqLs.dec | 13 + Silicon/NXP/LS1043A/LS1043A.dsc.inc | 8 + Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc | 20 + Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf | 20 +- Silicon/NXP/Drivers/PciCpuIo2Dxe/PciCpuIo2Dxe.inf | 40 + .../Library/PciHostBridgeLib/PciHostBridgeLib.inf | 45 ++ .../NXP/Library/PciSegmentLib/PciSegmentLib.inf | 36 + Silicon/NXP/Include/Pcie.h | 231 ++++++ Silicon/NXP/Drivers/PciCpuIo2Dxe/PciCpuIo2Dxe.c | 628 +++++++++++++++ .../Library/PciHostBridgeLib/PciHostBridgeLib.c | 842 +++++++++++++++++= ++++ Silicon/NXP/Library/PciSegmentLib/PciSegmentLib.c | 699 +++++++++++++++++ 11 files changed, 2579 insertions(+), 3 deletions(-) create mode 100755 Silicon/NXP/Drivers/PciCpuIo2Dxe/PciCpuIo2Dxe.inf create mode 100644 Silicon/NXP/Library/PciHostBridgeLib/PciHostBridgeLib.i= nf create mode 100755 Silicon/NXP/Library/PciSegmentLib/PciSegmentLib.inf create mode 100755 Silicon/NXP/Include/Pcie.h create mode 100755 Silicon/NXP/Drivers/PciCpuIo2Dxe/PciCpuIo2Dxe.c create mode 100644 Silicon/NXP/Library/PciHostBridgeLib/PciHostBridgeLib.c create mode 100755 Silicon/NXP/Library/PciSegmentLib/PciSegmentLib.c --=20 2.7.4