From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by mx.groups.io with SMTP id smtpd.web09.22247.1574332901320610319 for ; Thu, 21 Nov 2019 02:41:41 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: nxp.com, ip: 92.121.34.13, mailfrom: meenakshi.aggarwal@nxp.com) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 6DCD11A0625; Thu, 21 Nov 2019 11:41:39 +0100 (CET) Received: from inv0113.in-blr01.nxp.com (inv0113.in-blr01.nxp.com [165.114.116.118]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id EC4441A0009; Thu, 21 Nov 2019 11:41:38 +0100 (CET) Received: from uefi-OptiPlex-790.ap.freescale.net (uefi-OptiPlex-790.ap.freescale.net [10.232.132.78]) by inv0113.in-blr01.nxp.com (Postfix) with ESMTP id EC563316; Thu, 21 Nov 2019 16:11:37 +0530 (IST) From: "Meenakshi Aggarwal" To: ard.biesheuvel@linaro.org, leif.lindholm@linaro.org, michael.d.kinney@intel.com, devel@edk2.groups.io Cc: v.sethi@nxp.com, Meenakshi Aggarwal Subject: [edk2-platforms] [PATCH v2 00/11] NXP : Add support of LS1043 SoC. Date: Thu, 21 Nov 2019 21:55:03 +0530 Message-Id: <1574353514-23986-1-git-send-email-meenakshi.aggarwal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1570639758-30355-1-git-send-email-meenakshi.aggarwal@nxp.com> References: <1570639758-30355-1-git-send-email-meenakshi.aggarwal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP We have combined all review comments recieved till now. Major changes are: - Using Watchdog driver from MdeModulePkg Following patches will add support of LS1043 SoC in edk2-platforms. We will send patches to support LS2088 and LS1046 SoC after LS1043 gets merged. Our directory structure will be: edk2-platforms |-- Platform | |-- NXP | | |-- FVRules.fdf.inc | | |-- LS1043aRdbPkg | | | |-- Drivers | | | | `-- PlatformDxe | | | | |-- PlatformDxe.c | | | | `-- PlatformDxe.inf | | | |-- Library | | | | `-- PlatformLib | | | | |-- ArmPlatformLib.c | | | | |-- ArmPlatformLib.inf | | | | |-- NxpQoriqLsHelper.S | | | | `-- NxpQoriqLsMem.c | | | |-- LS1043aRdbPkg.dec | | | |-- LS1043aRdbPkg.dsc | | | `-- LS1043aRdbPkg.fdf | | |-- NxpQoriqLs.dsc.inc | | `-- Readme.md |-- Silicon | |-- Maxim | | `-- Library | | `-- Ds1307RtcLib | | |-- Ds1307Rtc.h | | |-- Ds1307RtcLib.c | | |-- Ds1307RtcLib.dec | | `-- Ds1307RtcLib.inf | |-- NXP | | |-- Drivers | | | |-- I2cDxe | | | | |-- ComponentName.c | | | | |-- DriverBinding.c | | | | |-- I2cDxe.c | | | | |-- I2cDxe.h | | | | `-- I2cDxe.inf | | |-- Include | | | |-- Chassis2 | | | | |-- LsSerDes.h | | | | `-- NxpSoc.h | | | |-- DramInfo.h | | | `-- Library | | | `-- IoAccessLib.h | | |-- Library | | | |-- DUartPortLib | | | | |-- DUart.h | | | | |-- DUartPortLib.c | | | | `-- DUartPortLib.inf | | | |-- IoAccessLib | | | | |-- IoAccessLib.c | | | | `-- IoAccessLib.inf | | | |-- MemoryInitPei | | | | |-- MemoryInitPeiLib.c | | | | `-- MemoryInitPeiLib.inf | | | |-- Pcf8563RealTimeClockLib | | | | |-- Pcf8563RealTimeClockLib.c | | | | |-- Pcf8563RealTimeClockLib.dec | | | | `-- Pcf8563RealTimeClockLib.inf | | | `-- SocLib | | | |-- Chassis2 | | | | `-- Soc.c | | | |-- Chassis.c | | | |-- LS1043aSocLib.inf | | | |-- NxpChassis.h | | | `-- SerDes.c | | |-- LS1043A | | | |-- Include | | | | `-- SocSerDes.h | | | |-- LS1043A.dec | | | `-- LS1043A.dsc.inc | | `-- NxpQoriqLs.dec In Silicon/NXP, we are keeping our SoC specific information and all Drivers and Library which are used by SoCs. Platform/NXP/ will host our board packages and build script. Board specific libraries and header files will reside inside board package. Looking forward for your kind support in upstreaming our boards in edk2-platforms. Meenakshi Aggarwal (11): Silicon/NXP: Add Library to provide Mmio APIs with swapped data. Silicon/NXP: Add function to return swapped Mmio APIs pointer SocLib : Add support for initialization of peripherals Silicon/NXP : Add support for DUART library Silicon/NXP: Add support for I2c driver Silicon/Maxim : Add support for DS1307 RTC library Silicon/NXP : Add MemoryInitPei Library Platform/NXP: Add support for ArmPlatformLib Platform/NXP: Add Platform driver for LS1043 RDB board Compilation : Add the fdf, dsc and dec files. Readme : Add Readme.md file. Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dec | 23 + Silicon/Maxim/Library/Ds1307RtcLib/Ds1307RtcLib.dec | 23 + Silicon/NXP/LS1043A/LS1043A.dec | 16 + Silicon/NXP/NxpQoriqLs.dec | 103 +++ Platform/NXP/NxpQoriqLs.dsc.inc | 368 +++++++++++ Silicon/NXP/LS1043A/LS1043A.dsc.inc | 61 ++ Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc | 77 +++ Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf | 167 +++++ Platform/NXP/LS1043aRdbPkg/Drivers/PlatformDxe/PlatformDxe.inf | 52 ++ Platform/NXP/LS1043aRdbPkg/Library/PlatformLib/ArmPlatformLib.inf | 55 ++ Silicon/Maxim/Library/Ds1307RtcLib/Ds1307RtcLib.inf | 40 ++ Silicon/NXP/Drivers/I2cDxe/I2cDxe.inf | 58 ++ Silicon/NXP/Library/DUartPortLib/DUartPortLib.inf | 34 + Silicon/NXP/Library/IoAccessLib/IoAccessLib.inf | 26 + Silicon/NXP/Library/MemoryInitPei/MemoryInitPeiLib.inf | 48 ++ Silicon/NXP/Library/SocLib/LS1043aSocLib.inf | 45 ++ Silicon/Maxim/Library/Ds1307RtcLib/Ds1307Rtc.h | 48 ++ Silicon/NXP/Drivers/I2cDxe/I2cDxe.h | 100 +++ Silicon/NXP/Include/Chassis2/LsSerDes.h | 62 ++ Silicon/NXP/Include/Chassis2/NxpSoc.h | 361 ++++++++++ Silicon/NXP/Include/DramInfo.h | 38 ++ Silicon/NXP/Include/Library/IoAccessLib.h | 326 +++++++++ Silicon/NXP/LS1043A/Include/SocSerDes.h | 51 ++ Silicon/NXP/Library/DUartPortLib/DUart.h | 122 ++++ Silicon/NXP/Library/SocLib/NxpChassis.h | 136 ++++ Platform/NXP/LS1043aRdbPkg/Drivers/PlatformDxe/PlatformDxe.c | 114 ++++ Platform/NXP/LS1043aRdbPkg/Library/PlatformLib/ArmPlatformLib.c | 98 +++ Platform/NXP/LS1043aRdbPkg/Library/PlatformLib/NxpQoriqLsMem.c | 144 ++++ Silicon/Maxim/Library/Ds1307RtcLib/Ds1307RtcLib.c | 372 +++++++++++ Silicon/NXP/Drivers/I2cDxe/ComponentName.c | 179 +++++ Silicon/NXP/Drivers/I2cDxe/DriverBinding.c | 235 +++++++ Silicon/NXP/Drivers/I2cDxe/I2cDxe.c | 690 ++++++++++++++++++++ Silicon/NXP/Library/DUartPortLib/DUartPortLib.c | 364 +++++++++++ Silicon/NXP/Library/IoAccessLib/IoAccessLib.c | 404 ++++++++++++ Silicon/NXP/Library/MemoryInitPei/MemoryInitPeiLib.c | 139 ++++ Silicon/NXP/Library/SocLib/Chassis.c | 498 ++++++++++++++ Silicon/NXP/Library/SocLib/Chassis2/Soc.c | 162 +++++ Silicon/NXP/Library/SocLib/SerDes.c | 268 ++++++++ Platform/NXP/FVRules.fdf.inc | 93 +++ Platform/NXP/LS1043aRdbPkg/Library/PlatformLib/NxpQoriqLsHelper.S | 31 + Platform/NXP/Readme.md | 5 + Readme.md | 3 + 42 files changed, 6239 insertions(+) create mode 100644 Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dec create mode 100644 Silicon/Maxim/Library/Ds1307RtcLib/Ds1307RtcLib.dec create mode 100644 Silicon/NXP/LS1043A/LS1043A.dec create mode 100644 Silicon/NXP/NxpQoriqLs.dec create mode 100644 Platform/NXP/NxpQoriqLs.dsc.inc create mode 100644 Silicon/NXP/LS1043A/LS1043A.dsc.inc create mode 100644 Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc create mode 100644 Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf create mode 100644 Platform/NXP/LS1043aRdbPkg/Drivers/PlatformDxe/PlatformDxe.inf create mode 100644 Platform/NXP/LS1043aRdbPkg/Library/PlatformLib/ArmPlatformLib.inf create mode 100644 Silicon/Maxim/Library/Ds1307RtcLib/Ds1307RtcLib.inf create mode 100644 Silicon/NXP/Drivers/I2cDxe/I2cDxe.inf create mode 100644 Silicon/NXP/Library/DUartPortLib/DUartPortLib.inf create mode 100644 Silicon/NXP/Library/IoAccessLib/IoAccessLib.inf create mode 100644 Silicon/NXP/Library/MemoryInitPei/MemoryInitPeiLib.inf create mode 100644 Silicon/NXP/Library/SocLib/LS1043aSocLib.inf create mode 100644 Silicon/Maxim/Library/Ds1307RtcLib/Ds1307Rtc.h create mode 100644 Silicon/NXP/Drivers/I2cDxe/I2cDxe.h create mode 100644 Silicon/NXP/Include/Chassis2/LsSerDes.h create mode 100644 Silicon/NXP/Include/Chassis2/NxpSoc.h create mode 100644 Silicon/NXP/Include/DramInfo.h create mode 100644 Silicon/NXP/Include/Library/IoAccessLib.h create mode 100644 Silicon/NXP/LS1043A/Include/SocSerDes.h create mode 100644 Silicon/NXP/Library/DUartPortLib/DUart.h create mode 100644 Silicon/NXP/Library/SocLib/NxpChassis.h create mode 100644 Platform/NXP/LS1043aRdbPkg/Drivers/PlatformDxe/PlatformDxe.c create mode 100644 Platform/NXP/LS1043aRdbPkg/Library/PlatformLib/ArmPlatformLib.c create mode 100644 Platform/NXP/LS1043aRdbPkg/Library/PlatformLib/NxpQoriqLsMem.c create mode 100644 Silicon/Maxim/Library/Ds1307RtcLib/Ds1307RtcLib.c create mode 100644 Silicon/NXP/Drivers/I2cDxe/ComponentName.c create mode 100644 Silicon/NXP/Drivers/I2cDxe/DriverBinding.c create mode 100644 Silicon/NXP/Drivers/I2cDxe/I2cDxe.c create mode 100644 Silicon/NXP/Library/DUartPortLib/DUartPortLib.c create mode 100644 Silicon/NXP/Library/IoAccessLib/IoAccessLib.c create mode 100644 Silicon/NXP/Library/MemoryInitPei/MemoryInitPeiLib.c create mode 100644 Silicon/NXP/Library/SocLib/Chassis.c create mode 100644 Silicon/NXP/Library/SocLib/Chassis2/Soc.c create mode 100644 Silicon/NXP/Library/SocLib/SerDes.c create mode 100644 Platform/NXP/FVRules.fdf.inc create mode 100644 Platform/NXP/LS1043aRdbPkg/Library/PlatformLib/NxpQoriqLsHelper.S create mode 100644 Platform/NXP/Readme.md -- 1.9.1