From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.107.0.51; helo=eur02-am5-obe.outbound.protection.outlook.com; envelope-from=meenakshi.aggarwal@nxp.com; receiver=edk2-devel@lists.01.org Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00051.outbound.protection.outlook.com [40.107.0.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id EA529223230FA for ; Fri, 16 Feb 2018 00:49:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=O12YmnH+CpmfJVUsPO7jZL5PhOjqoBrcu6mJDe01N0g=; b=sN81yVr8XdwCPA/XoNnaiNbTLgS4aQd1qftTyQZDGDWncLZfpzHd54tH6D5C64zMyxSUfW/lKqyg7Y2VeezOLPPWYqgCD8ELAHNqAkqWouhBXybe2gTqLC4LJzO97AI7jF+eckxVCQXJcjbT9dK8i4wqcKPBpyNoI5set3SxiS8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=meenakshi.aggarwal@nxp.com; Received: from idcbfarm.ap.freescale.net (192.88.169.1) by VI1PR04MB1008.eurprd04.prod.outlook.com (2a01:111:e400:5090::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.485.10; Fri, 16 Feb 2018 08:55:42 +0000 From: Meenakshi To: ard.biesheuvel@linaro.org, leif.lindholm@linaro.org, michael.d.kinney@intel.com, edk2-devel@lists.01.org Date: Fri, 16 Feb 2018 14:20:35 +0530 Message-Id: <1518771035-6733-40-git-send-email-meenakshi.aggarwal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1518771035-6733-1-git-send-email-meenakshi.aggarwal@nxp.com> References: <1518771035-6733-1-git-send-email-meenakshi.aggarwal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [192.88.169.1] X-ClientProxiedBy: HK2PR02CA0172.apcprd02.prod.outlook.com (2603:1096:201:1f::32) To VI1PR04MB1008.eurprd04.prod.outlook.com (2a01:111:e400:5090::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1d1b1e46-741c-4c4f-e2b1-08d5751b10c7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060)(7193020); SRVR:VI1PR04MB1008; X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB1008; 3:3FkzrEUyD1OqJnAVeBLdH7bbt17GcIv6zEibL3LOa4KUF8Q5e1q0z6ROyMEwTDaDIKiFjnKdK9AUnN5iwR3k1sQRjp3OEQTLrp3YtLl0W855liPFJKTG8KvKqxY3KKl5jb+ZaTooP8+5WLijbBjwdE+WNtBS7YpKSMMtY+Voyk+Y9oNgAV8VJbNTTFOxBoLokHfrRHdqcwu4p7FqJqp2fy/DO3nJI4Bs5KqHeczzubS14LLk1aMS4CfLBb0FZTck; 25:0ubTbERCBKJm3qtrFb/8s5zmAFCriCpdwUnOX9etDaTePO+yo/vr+PDV9xSLgSJIwZegSIMgzao1YCsUFov4WxCSSwXFSg8VxlfL7yC/qOOs/nnmW009jIquh6GHfLaTnQKhbVD/jeYZcaIjQvfZLowT9RG3GI1rc6aGUsZohQJ9L1lKUn2+9qC10Wh6MUAssacV54Dtjuy1rYKEsaprufwOLQnbKU51nVcLdQ/qD/Sc0c+FQ9ikAvQufHLSjClu9lSZNa3NhsnW/EI563u4iypcnXH1i7irPkbnZUeRuI1I9c6yHZaxE6p0SdpUOGt1GUDxnhIzLsPFlk8VQtiOoQ==; 31:jac4ZQD5pV9+ug4LerAZ4xXrYPDjg+WJ9G45fEqPf5G/ITCWjDF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XIxwL8H0kChR/o X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231101)(944501161)(6055026)(6041288)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:VI1PR04MB1008; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB1008; X-Forefront-PRVS: 0585417D7B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(376002)(39380400002)(396003)(39860400002)(366004)(199004)(189003)(86362001)(6486002)(8676002)(76176011)(36756003)(4326008)(6116002)(7736002)(386003)(68736007)(186003)(26005)(53936002)(305945005)(16526019)(81156014)(3846002)(6506007)(478600001)(50226002)(16586007)(8936002)(2950100002)(316002)(2906002)(59450400001)(25786009)(97736004)(50466002)(48376002)(105586002)(52116002)(47776003)(81166006)(51416003)(5660300001)(6666003)(106356001)(66066001)(6512007)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1008; H:idcbfarm.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR04MB1008; 23:k7acpWfiPNAqzI8ZME4R0yErQP3IDdj5V2yoBMlaS?= =?us-ascii?Q?N6wxrnMDZj3OKM7w4XENZADwdQLnEsLJy7MWub0Ty44SDYO1O0xDok7dHPsE?= =?us-ascii?Q?SzLSSiVYQiLpLUqQlTkxVNKdN2bBpXKF8JJe7OeN6IvJnJ0HSvKLm3BJ/DGO?= =?us-ascii?Q?KUhYOg2LSfCgdgmxK2OgY5i7V4ylpy7dm8UOS8FV7/PToXjKqvpDR6lccxSk?= =?us-ascii?Q?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q630HOaN0lfKHDjekWRMc939?= =?us-ascii?Q?k87qN1OxGTr+Ix7FA1kmp5KtTgInjH2?= X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB1008; 6:dWLyE1ckL+bpfr/hf2GPEzzMoSI/XSoj1kXIR77QqfNFgw9JIF1WIgJVvT8POZu2YzN5VB9GVmK57gUhg5XKCBVAhWK/j5qHOIPteUGLWoEMBWGsyJW+nZmoTG1F5STLwT6ZbNdkSlfNv/3YEYGeVwTlP8r46keVFUt2LgIBFxGFXGih5juILLkLMK9ltzq99jeXnqsocPyQs6tgoOXyikOIhHK7g86C6XUOPhHXSJbgMBxl6kxzINOdk2uufI/xie6SeNwsyofUGNYShcKjQYFslepP1hBUU8vIpwAkRO6ZJFEyogQ2lExpKt/FIHsVfPbzoL27Uh9+k2Xc25+cYi8Pdw0tZC6THu3+2HIJXiE=; 5:AQTqXk4MEkkgtZkhW7WgATQNfr8iETogBzPK5ySCngwrw+luc0NnqO/Tzj5BYN2wkgHz7Cd6gkCQ/3fEgWQQOcQqg+h2JNOwog3YEIyvO/u712OxiI61Pj5+9uZFn+mKNhetqmPrZqX/ABYuw6x2koQiwta0gHUTBhJ79td9unM=; 24:NfJ1ySAa0Be3oO3OhEySxWT2vMWhnd2QPiueMUavMtOWjQasUUMUK/kNQj1ibm9U7rF1IWUHmxdmCic8IehLy6KMjX0X3EDzEekQO58ijMo=; 7:3M5phXgqs2MH6bjf5Q1/RhrN1XgCqZ4GE3YzkhRezn6dvyEJ9TYDy6UZE+/x6Tf5NxVDJYLSPJcWgjWDrfjALPyutaD8oBGvaeW0gW67sguz8pNrduWUekVZ6r4u5BSMjpaxAgwqwNSoqrPy2MHRL+H7sb4S20Hn5eQOfLgEfD/WDJeoaoOJCGLree/3jwutWUm/VHYX75HpmYMG08hTwSpASr3TyCMTYvDRAf0KjkbYHQSHu3cjyNCZtCkURS9i SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Feb 2018 08:55:42.0301 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1d1b1e46-741c-4c4f-e2b1-08d5751b10c7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1008 Subject: [PATCH edk2-platforms 39/39] Platform/NXP:PCIe enablement for LS2088A RDB 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, 16 Feb 2018 08:49:54 -0000 Content-Type: text/plain From: Vabhav Compilation: Update the fdf, dsc and dec files. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Vabhav --- Platform/NXP/LS2088aRdbPkg/LS2088aRdbPkg.dsc | 17 +++++++++++++++++ Platform/NXP/LS2088aRdbPkg/LS2088aRdbPkg.fdf | 9 +++++++++ .../Library/PlatformLib/ArmPlatformLib.inf | 2 ++ .../LS2088aRdbPkg/Library/PlatformLib/NxpQoriqLsMem.c | 6 ++++++ Silicon/NXP/LS2088A/LS2088A.dsc | 3 +++ 5 files changed, 37 insertions(+) diff --git a/Platform/NXP/LS2088aRdbPkg/LS2088aRdbPkg.dsc b/Platform/NXP/LS2088aRdbPkg/LS2088aRdbPkg.dsc index 4d32ea5..1ae55d4 100755 --- a/Platform/NXP/LS2088aRdbPkg/LS2088aRdbPkg.dsc +++ b/Platform/NXP/LS2088aRdbPkg/LS2088aRdbPkg.dsc @@ -43,6 +43,8 @@ BoardLib|Platform/NXP/LS2088aRdbPkg/Library/BoardLib/BoardLib.inf FpgaLib|Platform/NXP/LS2088aRdbPkg/Library/FpgaLib/FpgaLib.inf NorFlashLib|Silicon/NXP/Library/NorFlashLib/NorFlashLib.inf + PciSegmentLib|Silicon/NXP/Library/PciSegmentLib/PciSegmentLib.inf + PciHostBridgeLib|Silicon/NXP/Library/PciHostBridgeLib/PciHostBridgeLib.inf [PcdsFixedAtBuild.common] @@ -97,6 +99,13 @@ gNxpQoriqLsTokenSpaceGuid.PcdFlashDeviceBase64|0x580000000 gNxpQoriqLsTokenSpaceGuid.PcdFlashReservedRegionBase64|0x580300000 + # + # PCI PCDs. + # + gNxpQoriqLsTokenSpaceGuid.PcdPciDebug|FALSE + gNxpQoriqLsTokenSpaceGuid.PcdPcieLutBase|0x80000 + gNxpQoriqLsTokenSpaceGuid.PcdPcieLutDbg|0x407FC + ################################################################################ # # Components Section - list of all EDK II Modules needed by this Platform @@ -115,3 +124,11 @@ Silicon/NXP/Drivers/I2cDxe/I2cDxe.inf Silicon/NXP/Drivers/NorFlashDxe/NorFlashDxe.inf Silicon/NXP/Drivers/UsbHcdInitDxe/UsbHcd.inf + Silicon/NXP/Drivers/PciCpuIo2Dxe/PciCpuIo2Dxe.inf + MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf { + + gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8010004F + } + MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf + + ## diff --git a/Platform/NXP/LS2088aRdbPkg/LS2088aRdbPkg.fdf b/Platform/NXP/LS2088aRdbPkg/LS2088aRdbPkg.fdf index 8688d85..35a79bd 100644 --- a/Platform/NXP/LS2088aRdbPkg/LS2088aRdbPkg.fdf +++ b/Platform/NXP/LS2088aRdbPkg/LS2088aRdbPkg.fdf @@ -127,6 +127,13 @@ READ_LOCK_STATUS = TRUE INF Silicon/NXP/Drivers/NorFlashDxe/NorFlashDxe.inf # + # PCI + # + INF Silicon/NXP/Drivers/PciCpuIo2Dxe/PciCpuIo2Dxe.inf + INF MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf + INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf + + # # Network modules # INF MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf @@ -153,6 +160,8 @@ READ_LOCK_STATUS = TRUE INF MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceDxe.inf + INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf + # # USB Support # diff --git a/Platform/NXP/LS2088aRdbPkg/Library/PlatformLib/ArmPlatformLib.inf b/Platform/NXP/LS2088aRdbPkg/Library/PlatformLib/ArmPlatformLib.inf index f5e5abd..0b836a8 100644 --- a/Platform/NXP/LS2088aRdbPkg/Library/PlatformLib/ArmPlatformLib.inf +++ b/Platform/NXP/LS2088aRdbPkg/Library/PlatformLib/ArmPlatformLib.inf @@ -44,6 +44,8 @@ gArmTokenSpaceGuid.PcdArmPrimaryCore gNxpQoriqLsTokenSpaceGuid.PcdCcsrBaseAddr gNxpQoriqLsTokenSpaceGuid.PcdCcsrSize + gNxpQoriqLsTokenSpaceGuid.PcdRomBaseAddr + gNxpQoriqLsTokenSpaceGuid.PcdRomSize gNxpQoriqLsTokenSpaceGuid.PcdIfcRegion1BaseAddr gNxpQoriqLsTokenSpaceGuid.PcdIfcRegion1Size gNxpQoriqLsTokenSpaceGuid.PcdIfcRegion2BaseAddr diff --git a/Platform/NXP/LS2088aRdbPkg/Library/PlatformLib/NxpQoriqLsMem.c b/Platform/NXP/LS2088aRdbPkg/Library/PlatformLib/NxpQoriqLsMem.c index ccb49f6..8b2145b 100644 --- a/Platform/NXP/LS2088aRdbPkg/Library/PlatformLib/NxpQoriqLsMem.c +++ b/Platform/NXP/LS2088aRdbPkg/Library/PlatformLib/NxpQoriqLsMem.c @@ -80,6 +80,12 @@ ArmPlatformGetVirtualMemoryMap ( VirtualMemoryTable[Index].Length = FixedPcdGet64 (PcdCcsrSize); VirtualMemoryTable[Index].Attributes = ARM_MEMORY_REGION_ATTRIBUTE_DEVICE; + // ROM Space + VirtualMemoryTable[++Index].PhysicalBase = FixedPcdGet64 (PcdRomBaseAddr); + VirtualMemoryTable[Index].VirtualBase = FixedPcdGet64 (PcdRomBaseAddr); + VirtualMemoryTable[Index].Length = FixedPcdGet64 (PcdRomSize); + VirtualMemoryTable[Index].Attributes = ARM_MEMORY_REGION_ATTRIBUTE_DEVICE; + // IFC region 1 // // A-009241 : Unaligned write transactions to IFC may result in corruption of data diff --git a/Silicon/NXP/LS2088A/LS2088A.dsc b/Silicon/NXP/LS2088A/LS2088A.dsc index 0d8fd82..831edea 100644 --- a/Silicon/NXP/LS2088A/LS2088A.dsc +++ b/Silicon/NXP/LS2088A/LS2088A.dsc @@ -69,5 +69,8 @@ gNxpQoriqLsTokenSpaceGuid.PcdNumI2cController|4 gNxpQoriqLsTokenSpaceGuid.PcdIfcBaseAddr|0x02240000 gNxpQoriqLsTokenSpaceGuid.PcdNumUsbController|2 + gNxpQoriqLsTokenSpaceGuid.PcdNumPciController|4 + gNxpQoriqLsTokenSpaceGuid.PcdRomBaseAddr|0x00000000 + gNxpQoriqLsTokenSpaceGuid.PcdRomSize|0x00100000 ## -- 1.9.1