From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=104.47.36.70; helo=nam02-sn1-obe.outbound.protection.outlook.com; envelope-from=vabhav.sharma@nxp.com; receiver=edk2-devel@lists.01.org Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0070.outbound.protection.outlook.com [104.47.36.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 31939222CB318 for ; Thu, 21 Dec 2017 22:45:45 -0800 (PST) Received: from BN6PR03CA0021.namprd03.prod.outlook.com (10.168.230.159) by CO2PR03MB2360.namprd03.prod.outlook.com (10.166.93.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.345.14; Fri, 22 Dec 2017 06:50:33 +0000 Received: from BN1AFFO11OLC003.protection.gbl (2a01:111:f400:7c10::198) by BN6PR03CA0021.outlook.office365.com (2603:10b6:404:23::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.345.14 via Frontend Transport; Fri, 22 Dec 2017 06:50:32 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11OLC003.mail.protection.outlook.com (10.58.53.74) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.302.6 via Frontend Transport; Fri, 22 Dec 2017 06:50:18 +0000 Received: from uefi-OptiPlex-790.ap.freescale.net ([10.232.132.56]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vBM6oHF4022495; Thu, 21 Dec 2017 23:50:28 -0700 From: Vabhav To: , , , Date: Fri, 22 Dec 2017 00:18:29 +0530 Message-ID: <1513882109-14295-4-git-send-email-vabhav.sharma@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1513882109-14295-1-git-send-email-vabhav.sharma@nxp.com> References: <1513882109-14295-1-git-send-email-vabhav.sharma@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131583990184051277; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(7966004)(336005)(396003)(346002)(39860400002)(39380400002)(376002)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(356003)(5660300001)(8936002)(68736007)(77096006)(59450400001)(305945005)(50226002)(86362001)(106466001)(53936002)(2950100002)(85426001)(36756003)(105606002)(2201001)(97736004)(8656006)(54906003)(110136005)(316002)(16586007)(2906002)(498600001)(4326008)(51416003)(76176011)(104016004)(50466002)(47776003)(81156014)(8676002)(48376002)(81166006)(142933001)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR03MB2360; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11OLC003; 1:0h0WS3KuKWwkeglTZzW+ZpxxhBEwAqX6DRVF05tVqEwHSJLScZSlPQhxHUwH0btk7Z+4QgsopQcZQxggvlmGLVZSx3CNyT91xZ5hujTjEznIk+TGy1KYpie4O9WJDkob MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1265f373-aa3a-4528-824d-08d549084383 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); S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M8bc14JoRM=; 4:Vw7cFW2T1ikIX6MF9gf2njN9y49H+n7ET6gqDBibJHYYSVBQxDiVks5uTHv8qVPXqJY33CFD+/9p9CS57XwnTUZ1LPkZyR8YiR/AXD1PGUfCgMCMdOAW2t1qf1/FyEPRJX5cj5Mp51yOjTmOJoumz0RWGxvsZfa1xkJXwa/YkumR/PfvZfxmQhUanqLcdyZ3asQH+OfOtcu0pzSqka+KQWE5E2w9vXaXj8IOpaD+bvENGd8L7xVut0ALhMgn7pp1zZYyTnSgTxYGWdIAEeNljikyooK68JJccAC8JZrJpemyhFGvNLCVE/qtHTADjTKW X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231023)(6055026)(6096035)(20161123559100)(20161123556025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123565025)(20161123563025)(20161123561025)(201708071742011); SRVR:CO2PR03MB2360; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:CO2PR03MB2360; X-Forefront-PRVS: 05299D545B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR03MB2360; 23:PabqmKqYqAyGIgtchTYqit3b7Wn4YVBs/mCFcKBba?= =?us-ascii?Q?kVda5Tng5MQFerM3VJdlpgrfKpVTN2/0krrKB7j6uT8zEtKUIY5SHo3kBf8o?= =?us-ascii?Q?YpmVA2t64WwbbwB4C8iFOOK3bdaY02sdEOrNwxZ8x91dkdZwAlbclhsZLmGU?= =?us-ascii?Q?txosJ7sXX/87xb8Wv6vrAj5sDyrOH7hrFP58PDiYZyIRHhAQ+QhCFQlIeIaf?= =?us-ascii?Q?eOZ7VWUFnJbNrH4Hf+ZdwuE6ly/ZLV6Y7Kw7EvwP8JPC1YxxN6dAdHJcbeQv?= =?us-ascii?Q?dcsH2BrvIXLN04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3D?= X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2360; 6:EHPRPWgug2jdUADIoMRglOEC6gjom4JmosAQZL27dqMo60INEEYSaxla3K5NM8OvRN0Zj1aI3Lw8gueTX8+cCJpu2HSBtQADwMbaFqhzExt+Fcr+88g2mBSIAcj2ZFoaRWtLLg9g1+Fjh3EsC9Af7VXyinmLqnFvthJ8+V1x5oe8UTUFaphqgcEJVY40qMp3BvgfyMZgiXoyVbdkl/wq1zhNofgfAZ+DiNY/OJSCsCKVrhzGcnhwHDjX8L4bNlOWRXgXxNVRAxWJNEWrVOdwP69cTrhm7Hf2L4aBHock4GNjCDef1c1Ln9FyMqYW9ER2vRlMd35JzZgEkq6UN1SimwI8hdkkfM4i7JwWkrM1VIQ=; 5:0W5msubzCSwfupt4j276V+1xfXxqQxJczCxzBaSSeaqJJiRPCnFtBQ9XKKzOjTx7w2T11f9h6lBM15o2Ppb8X4KkH7YiL1mV0jlLL0uMr1JWGbD7/Hc+XpCceqeZ8v6pSybnGh5ZR6DEitqROcHvsRAMF4NVh6swLt8gaDCnq9I=; 24:/wbG7Tl+uibKe/jXlQBihxdm2vCasp/+DTZsfoHMcm7s02Sd4gH53YI8Eaa9gboO+NpRa7xKpbukHur255ZV1vMm0+N76WuMZP/rRSmVqy4=; 7:kFwXjEE8gPE/iIdVrAhhquMWIfR9bY9XUZTP9g9SaH/3caFsToV2LD680/pSuMd+kbrnEyXCxxTHMbBA5BQNnxE9DO+rL5weyO2QmmH98v4x/SKmru2Qk7iMFh3VhIOLQnn4H2slbhuBFnCX96YXJBbohLoRDGqKEgPzu/XFJaEQP/NDUgdGoH5/DW9y+8LtyJrPxThE+V27uzPq90OJJ3rHIO22d8Op9kNTEpaK1mchup1L+nVWoQbaPk3KxsKH SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2017 06:50:18.2491 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1265f373-aa3a-4528-824d-08d549084383 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR03MB2360 Subject: [PATCH edk2-platforms 3/3] Compilation:Modify dsc, fdf files X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Dec 2017 06:45:45 -0000 Content-Type: text/plain Enabling support for compilation of PciHost Bridge Library, PciHostBridge Dxe Driver and include respective serdes functions Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Vabhav --- Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc | 31 ++++++++++++++++++++++++++++ Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf | 6 ++++++ Silicon/NXP/Chassis/Chassis.c | 11 ++++++++++ Silicon/NXP/Chassis/Chassis2/SerDes.h | 11 ++++++++++ Silicon/NXP/LS1043A/LS1043A.dsc | 1 + 5 files changed, 60 insertions(+) diff --git a/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc b/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc index 7ea791e..21f451f 100644 --- a/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc +++ b/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc @@ -54,6 +54,11 @@ # MmcLib|edk2-platforms/Platform/NXP/Library/MmcLib/MmcLib.inf + # + # Pci Library + # + PciHostBridgeLib|edk2-platforms/Platform/NXP/Library/PciHostBridgeLib/PciHostBridgeLib.inf + [PcdsFixedAtBuild.common] # @@ -70,6 +75,7 @@ gNxpQoriqLsTokenSpaceGuid.PcdWdogBigEndian|TRUE gNxpQoriqLsTokenSpaceGuid.PcdMmcBigEndian|TRUE gNxpQoriqLsTokenSpaceGuid.PcdIfcBigEndian|TRUE + gNxpQoriqLsTokenSpaceGuid.PcdPciLutBigEndian|TRUE # # NV Storage PCDs. @@ -79,6 +85,25 @@ gNxpQoriqLsTokenSpaceGuid.PcdFlashReservedRegionBase64|0x60300000 # + # PCIe Pcds + # + gNxpQoriqLsTokenSpaceGuid.PcdPciExp1SysAddr|0x03400000 + gNxpQoriqLsTokenSpaceGuid.PcdPciExp2SysAddr|0x03500000 + gNxpQoriqLsTokenSpaceGuid.PcdPciExp3SysAddr|0x03600000 + gNxpQoriqLsTokenSpaceGuid.PcdKludgeMapPciMmioAsCached|FALSE + gNxpQoriqLsTokenSpaceGuid.PcdPciMaxPayloadFixup|FALSE + gNxpQoriqLsTokenSpaceGuid.PcdPciBusMin|0 + gNxpQoriqLsTokenSpaceGuid.PcdPciBusMax|255 + gNxpQoriqLsTokenSpaceGuid.PcdPci1Mmio64Base|0x4040000000 + gNxpQoriqLsTokenSpaceGuid.PcdPci2Mmio64Base|0x4840000000 + gNxpQoriqLsTokenSpaceGuid.PcdPci3Mmio64Base|0x5040000000 + gNxpQoriqLsTokenSpaceGuid.PcdPciMmio64Size|0x0040000000 + gNxpQoriqLsTokenSpaceGuid.PcdPciDebug|FALSE + gNxpQoriqLsTokenSpaceGuid.PcdPcieLutBase|0x10000 + gNxpQoriqLsTokenSpaceGuid.PcdPcieLutDbg|0x7FC + gNxpQoriqLsTokenSpaceGuid.PcdPciMemOneTransaction|0x10000000 + + # # I2C controller Pcds # gNxpQoriqLsTokenSpaceGuid.PcdI2cBus|0 @@ -109,4 +134,10 @@ EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf edk2-platforms/Platform/NXP/Drivers/MmcHostDxe/MmcHostDxe.inf + # + # PCI + # + MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf + edk2-platforms/Platform/NXP/Drivers/PciHostBridgeDxe/PciHostBridgeDxe.inf + ## diff --git a/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf b/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf index 023480b..d462ae2 100644 --- a/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf +++ b/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf @@ -127,6 +127,12 @@ READ_LOCK_STATUS = TRUE INF edk2-platforms/Platform/NXP/Drivers/NorFlashDxe/NorFlashDxe.inf # + # PCI + # + INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf + INF edk2-platforms/Platform/NXP/Drivers/PciHostBridgeDxe/PciHostBridgeDxe.inf + + # # Network modules # INF MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf diff --git a/Silicon/NXP/Chassis/Chassis.c b/Silicon/NXP/Chassis/Chassis.c index a6a77c2..2a7ecbc 100644 --- a/Silicon/NXP/Chassis/Chassis.c +++ b/Silicon/NXP/Chassis/Chassis.c @@ -411,3 +411,14 @@ CalculateI2cClockRate ( return SocSysInfo.FreqSystemBus; } + +/** + Return PCI address space mask +**/ +UINT64 +GetPciAddressSpaceMask ( + IN VOID + ) +{ + return MAX_UINT32; +} diff --git a/Silicon/NXP/Chassis/Chassis2/SerDes.h b/Silicon/NXP/Chassis/Chassis2/SerDes.h index 9fc60d3..fb2e728 100644 --- a/Silicon/NXP/Chassis/Chassis2/SerDes.h +++ b/Silicon/NXP/Chassis/Chassis2/SerDes.h @@ -66,4 +66,15 @@ SerDesProbeLanes( IN VOID *Arg ); +VOID +GetSerdesProtocolMaps( + OUT UINT64 *SerDes1ProtocolMapPtr +); + +BOOLEAN +IsSerDesLaneProtocolConfigured( + IN UINT64 SerDes1ProtocolMap, + IN SERDES_PROTOCOL Device +); + #endif /* __SERDES_H */ diff --git a/Silicon/NXP/LS1043A/LS1043A.dsc b/Silicon/NXP/LS1043A/LS1043A.dsc index 024c09a..22cea54 100644 --- a/Silicon/NXP/LS1043A/LS1043A.dsc +++ b/Silicon/NXP/LS1043A/LS1043A.dsc @@ -76,5 +76,6 @@ gNxpQoriqLsTokenSpaceGuid.PcdI2c2BaseAddr|0x021A0000 gNxpQoriqLsTokenSpaceGuid.PcdI2c3BaseAddr|0x021B0000 gNxpQoriqLsTokenSpaceGuid.PcdNumI2cController|4 + gNxpQoriqLsTokenSpaceGuid.PcdNumPciController|3 ## -- 1.9.1