From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR03-VE1-obe.outbound.protection.outlook.com (EUR03-VE1-obe.outbound.protection.outlook.com [40.107.5.63]) by mx.groups.io with SMTP id smtpd.web12.7254.1591535768843178203 for ; Sun, 07 Jun 2020 06:16:09 -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=Au0cASzu; spf=pass (domain: oss.nxp.com, ip: 40.107.5.63, mailfrom: wasim.khan@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z/c5AtSw5XvMIn5Q5vTf1GniY6aoqZUO8f2usf0h+aiLbw4c4/ZX0hqsgXkkJss60ziw6rVGcgDdNBZ+y+CBN4vWaCDdQX0hi+eWipznwIOpRzMuIjLILvLFqA2fqtWGiX3m6HmDzjAadW8zvMHEqo9e9s0VCCPUtzXQdj+g2eDx40yZyNz883RbITCQoISrd82B0Al7eBw37spKYWGBemr0YNNCjBn+/eoF8WF9Ymv4uvlthLeO+ZdLvuWVZJpDrOXUHUnARM4uQBiSrbYEwja22YffJecmjRBfjlu7HQxji52SyTmE2Mvs0QoJP8fhTvrCYUD9qJEh4o1D0r6EZA== 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=jo6TkRFbn9xh1QpXsyC55vycF9SFA4fb9nS7VJPz6Ho=; b=BsnNXjch2JPZBQ02vR7Ilq+QqtqHhUzRrhKfLx0c7qirVUTqpRz+e0LfADUmEtSBsXJOz7DjIDm4Qb7cJjmoUM7carN0TRzoVqVe4ctsSprezdiCZHpggvRnuQPt/aiSvbybbyfDippSy/kolGa8Uf/gmEwDnDvvo4oJtTPGem38Trw7JtPcxP7dXFoigb/oRkehICSFPeTjN7t+tMjP5CuRJ9M2GKAzA3OrBYHopaFItQZcwF1yZiqNA1bT9kcMgiInzsGnhjb0ePcSVkBdNXE1Ze9jcrfhETHuagBVFrE6IPDEESpCMkgBtdj4UgFDJ4Sl2kG/FSY3NDwlc9rAjw== 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=jo6TkRFbn9xh1QpXsyC55vycF9SFA4fb9nS7VJPz6Ho=; b=Au0cASzuZ2D5M76rLR8dVRvt0ICB/ca++Bc6PGRTE9da4ons5/ZF9nZfE6ORezuyZLzOBdo9mFpHRhJzDy6kpRXW/o/ytl4szdJIDqF2DwEjCdOm4nZ4PXwc7bdA5asvyKHFtKvHLLUERVP6AzxV4rPg1FGxlSXBk4IrxL8Y91I= 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 VE1PR04MB6493.eurprd04.prod.outlook.com (2603:10a6:803:11f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.20; Sun, 7 Jun 2020 13:16:04 +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; Sun, 7 Jun 2020 13:16:04 +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 v2 0/3] Add SerDes Support Date: Sun, 7 Jun 2020 18:45:47 +0530 Message-ID: <1591535750-15743-1-git-send-email-wasim.khan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 X-ClientProxiedBy: BM1PR01CA0153.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:68::23) 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.233.236) by BM1PR01CA0153.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:68::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3066.18 via Frontend Transport; Sun, 7 Jun 2020 13:16:02 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [157.47.233.236] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: aaff8ecc-c225-4a9c-3af3-08d80ae4ee60 X-MS-TrafficTypeDiagnostic: VE1PR04MB6493: 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: 04270EF89C X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2lm/Mko88/R8Hje7w2TYS49zT/mX6+jc7yHtXhJHJSfadBOnfFPbg0sxrcwuFa6wssnx+rKYTPBNSMtdVjSXt/x3rdJcioyS9vZhGgafmapFid1/X8xsdSJnBPhfqrBn3B7Arb4dTz2M/2cJ3Liv2ozOZKK6QUPR7NZcn45gGnCytyYN95/X+Ab2NdLkcFpHc4J/gaZOrVgTsaiCqYhQ6V3or4idRbHiSoYpsZzkmJwYOvS1eR6o5HNAKA9qxrhCtDsOUolGQgOLdFlSsoYyDA+BrCG5AwuoyYDh8JxS3tP9xmeKqZs6o4X4hFlvcgGZIupC0T/OSc306kAvPTez4ZaxOsPFY38XthgzTjgM4Hj4h+zcfQJ3SsI/rDocVKBHMNM2Q4HjaslZgv9gwUFAvA== 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)(39860400002)(366004)(136003)(396003)(376002)(186003)(26005)(16526019)(86362001)(478600001)(83380400001)(4326008)(8936002)(8676002)(5660300002)(44832011)(6486002)(66946007)(6666004)(66556008)(6512007)(316002)(19627235002)(6506007)(2906002)(966005)(52116002)(2616005)(956004)(66476007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: ZAkQ16O6+VS/82fZX5KK+ciRQcp+Fte5Q8NmDUZ87N9y1berV7nqFSci2EkT6+CvtE7o1tdzHfw4SqSscrMTmZFoHcftxQJGiBN6ZcmNqeJHOVbULlkNn0xmF9mDfpYNjgnIMkMQjJKzFQOaHVpjPyYzxWrudWy8coEskS0nZJO585julWIGognTkRZQubucK8ZdzJQzqZTNHJP3kC3YR4Ouuno2s9a4iVu45vKwA0KocFQQEC7cAqxvHfvkuA4nDYFK7dH5oEkUE10i2KYO3XsQJdP5tRE6tF13lvXR3tfZH8Nug4Cv9SUinqHhxoXme4xLDl0haRccqYKFoYk0K4dosbwCCMviAE/7nstf+DwZZ4HcTi5hNScw91QohljGMFPA7I+dDEB8yE1dBUy/BSy2QiSCpRsyg6/cJ8/zBzRxNVmmDLBiMBnpNGSnHTrcD7Y9M9DxbRziHGlBMusYhSI9NUWdBwf2qXSyqWqlUiXcFfOyFDtS4wCzKUOZCHho X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: aaff8ecc-c225-4a9c-3af3-08d80ae4ee60 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2020 13:16:04.4108 (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: XFRlr82HO+pbVccKGWln0r4TWE0ujkN8AYyVKVqLm0DtUfAXuzzSzvSg31W/sS8hpKFXcDyYfEhxa+wBYt6RGw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6493 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 Changes in V2: - Addressed review comments received on V1. 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 | 132 ++++++++++= ++++++ Silicon/NXP/Library/PciHostBridgeLib/PciHostBridgeLib.c | 35 ++++- Silicon/NXP/Library/SerDesHelperLib/SerDesHelperLib.c | 164 ++++++++++= ++++++++++ 10 files changed, 460 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