This patch series aims to add support of LX2160ARDB Platform, which is based on LX2160A Soc in edk2-platforms. Also We have modified the directory structure of NXP code and added PEI Phase support also for NXP platforms. This series can be divied into 4 phases: 1. Cleaning up the old code This phase aims to remove the information and compoenents which are not needed for boot process. we plan to reintroduce only required components one by one later on, once PEI phase changes have been accepted. This phase has 10 patches: Silicon/NXP: Add I2c lib Silicon/NXP: changes to use I2clib in i2cdxe NXP/LS1043aRdb: Move Soc specific components to soc files Silicon/NXP: Remove DuartLib and use BaseSerialPortLib16550 NXP/BaseSerialPortLib16550: remove SerialPortInitalize functionality Silicon/NXP: remove print information from Soc lib Silicon/NXP: remove not needed components Silicon/NXP: Remove unnecessary PCDs Silicon/NXP: Move dsc file Platform/NXP: rename the ArmPlatformLib as per ArmPlatformPkg 2. Adding components necessary for PEI Phase This phase adds the necessary components required for PEI Phase. Also we change the directory structure to bring more consistency. This phase has 4 patches: Silicon/NXP: Add Chassis Lib for Chassis2 Silicon/NXP/LS1043A: Add SocLib Silicon/NXP: Move RAM retrieval from SocLib Silicon/NXP/LS1043A: Replce SocLib 3. Add PEI Phase for LS1043ARDB This phase adds PEI phase support to LS1043ARDB platform. This phase has 1 patch: Platform/NXP/LS1043ARDB: introduce PEI Phase 4. Add LX2160ARDB platform This phase adds necessary components for LX2160ARDB platform. The code structure for LS1043A has been mimiced for LX2160A. This phase has 4 patches: Silicon/NXP: Add Pl011 Serial port lib Silicon/NXP: Add Chassis3V2 Silicon/NXP: Add LX2160A SocLib Platform/NXP: Add LX2160ARDBPKG After all these patches, this is the directory tree for Silicon/NXP: Silicon/NXP/ ├── Chassis2 │   ├── Include │   ├── Library │   │   └── ChassisLib │   └── LS1043A │   ├── Include │   └── Library │   └── SocLib ├── Chassis3V2 │   ├── Include │   ├── Library │   │   └── ChassisLib │   └── LX2160A │   ├── Include │   └── Library │   └── SocLib ├── Drivers │   └── I2cDxe ├── Include │   ├── Library │   └── Ppi └── Library ├── BaseSerialPortLib16550 ├── I2cLib ├── IoAccessLib ├── MemoryInitPeiLib ├── Pcf8563RealTimeClockLib ├── PL011SerialPortLib └── PlatformPeiLib Pankaj Bansal (19): Silicon/NXP: Add I2c lib Silicon/NXP: changes to use I2clib in i2cdxe NXP/LS1043aRdb: Move Soc specific components to soc files Silicon/NXP: Remove DuartLib and use BaseSerialPortLib16550 NXP/BaseSerialPortLib16550: remove SerialPortInitalize functionality Silicon/NXP: remove print information from Soc lib Silicon/NXP: remove not needed components Silicon/NXP: Remove unnecessary PCDs Silicon/NXP: Move dsc file Platform/NXP: rename the ArmPlatformLib as per ArmPlatformPkg Silicon/NXP: Add Chassis Lib for Chassis2 Silicon/NXP/LS1043A: Add SocLib Silicon/NXP: Move RAM retrieval from SocLib Silicon/NXP/LS1043A: Replce SocLib Platform/NXP/LS1043ARDB: introduce PEI Phase Silicon/NXP: Add Pl011 Serial port lib Silicon/NXP: Add Chassis3V2 Silicon/NXP: Add LX2160A SocLib Platform/NXP: Add LX2160ARDBPKG Platform/NXP/FVRules.fdf.inc | 60 +- Platform/NXP/Include/Qixis.h | 40 + .../Drivers/PlatformDxe/PlatformDxe.c | 15 +- .../Drivers/PlatformDxe/PlatformDxe.inf | 9 +- Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc | 28 +- Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf | 19 +- .../AArch64/ArmPlatformHelper.S | 46 ++ .../Library/ArmPlatformLib/ArmPlatformLib.c | 141 ++++ .../Library/ArmPlatformLib/ArmPlatformLib.inf | 43 + .../ArmPlatformLib/ArmPlatformLibMem.c | 136 ++++ .../Library/PlatformLib/ArmPlatformLib.c | 98 --- .../Library/PlatformLib/ArmPlatformLib.inf | 55 -- .../Library/PlatformLib/NxpQoriqLsHelper.S | 31 - .../Library/PlatformLib/NxpQoriqLsMem.c | 144 ---- Platform/NXP/LS1043aRdbPkg/VarStore.fdf.inc | 91 +++ Platform/NXP/LX2160aRdbPkg/LX2160aRdbPkg.dec | 23 + Platform/NXP/LX2160aRdbPkg/LX2160aRdbPkg.dsc | 54 ++ Platform/NXP/LX2160aRdbPkg/LX2160aRdbPkg.fdf | 172 ++++ .../AArch64/ArmPlatformHelper.S | 46 ++ .../Library/ArmPlatformLib/ArmPlatformLib.c | 168 ++++ .../Library/ArmPlatformLib/ArmPlatformLib.inf | 45 ++ .../ArmPlatformLib/ArmPlatformLibInternal.h | 26 + .../ArmPlatformLib/ArmPlatformLibMem.c | 80 ++ Platform/NXP/LX2160aRdbPkg/VarStore.fdf.inc | 90 +++ Platform/NXP/NxpQoriqLsPlatform.dec | 23 + .../Maxim/Library/Ds1307RtcLib/Ds1307RtcLib.c | 23 +- Silicon/NXP/Chassis2/Chassis2.dec | 23 + Silicon/NXP/Chassis2/Chassis2.dsc.inc | 10 + Silicon/NXP/Chassis2/Include/Chassis.h | 54 ++ Silicon/NXP/Chassis2/LS1043A/Include/Soc.h | 56 ++ Silicon/NXP/Chassis2/LS1043A/LS1043A.dec | 23 + Silicon/NXP/Chassis2/LS1043A/LS1043A.dsc.inc | 31 + .../Chassis2/LS1043A/Library/SocLib/SocLib.c | 101 +++ .../LS1043A/Library/SocLib/SocLib.inf | 40 + .../Chassis2/Library/ChassisLib/ChassisLib.c | 211 +++++ .../Library/ChassisLib/ChassisLib.inf | 41 + Silicon/NXP/Chassis3V2/Chassis3V2.dec | 23 + Silicon/NXP/Chassis3V2/Chassis3V2.dsc.inc | 10 + Silicon/NXP/Chassis3V2/Include/Chassis.h | 42 + Silicon/NXP/Chassis3V2/LX2160A/Include/Soc.h | 39 + Silicon/NXP/Chassis3V2/LX2160A/LX2160A.dec | 23 + .../NXP/Chassis3V2/LX2160A/LX2160A.dsc.inc | 34 + .../LX2160A/Library/SocLib/SocLib.c | 79 ++ .../LX2160A/Library/SocLib/SocLib.inf | 31 + .../Library/ChassisLib/ChassisLib.c | 186 +++++ .../Library/ChassisLib/ChassisLib.inf | 41 + Silicon/NXP/Drivers/I2cDxe/I2cDxe.c | 526 +------------ Silicon/NXP/Drivers/I2cDxe/I2cDxe.h | 51 +- Silicon/NXP/Drivers/I2cDxe/I2cDxe.inf | 9 +- Silicon/NXP/Include/Chassis2/LsSerDes.h | 62 -- Silicon/NXP/Include/Chassis2/NxpSoc.h | 361 --------- Silicon/NXP/Include/DramInfo.h | 38 - Silicon/NXP/Include/Library/ChassisLib.h | 39 + Silicon/NXP/Include/Library/I2cLib.h | 99 +++ Silicon/NXP/Include/Library/SocLib.h | 80 ++ Silicon/NXP/Include/Ppi/NxpPlatformGetClock.h | 47 ++ Silicon/NXP/LS1043A/Include/SocSerDes.h | 51 -- Silicon/NXP/LS1043A/LS1043A.dec | 16 - Silicon/NXP/LS1043A/LS1043A.dsc.inc | 61 -- .../BaseSerialPortLib16550.c | 738 ++++++++++++++++++ .../BaseSerialPortLib16550.inf | 40 + .../BaseSerialPortLib16550.uni | 17 + Silicon/NXP/Library/DUartPortLib/DUart.h | 122 --- .../NXP/Library/DUartPortLib/DUartPortLib.c | 364 --------- .../NXP/Library/DUartPortLib/DUartPortLib.inf | 34 - Silicon/NXP/Library/I2cLib/I2cLib.c | 532 +++++++++++++ Silicon/NXP/Library/I2cLib/I2cLib.inf | 30 + Silicon/NXP/Library/I2cLib/I2cLibInternal.h | 95 +++ .../Library/MemoryInitPei/MemoryInitPeiLib.c | 140 ---- .../MemoryInitPeiLib/MemoryInitPeiLib.c | 311 ++++++++ .../MemoryInitPeiLib/MemoryInitPeiLib.h | 23 + .../MemoryInitPeiLib.inf | 26 +- .../PL011SerialPortLib/PL011SerialPortLib.c | 229 ++++++ .../PL011SerialPortLib/PL011SerialPortLib.inf | 42 + .../Library/PlatformPeiLib/PlatformPeiLib.c | 30 + .../Library/PlatformPeiLib/PlatformPeiLib.inf | 50 ++ Silicon/NXP/Library/SocLib/Chassis.c | 495 ------------ Silicon/NXP/Library/SocLib/Chassis2/Soc.c | 162 ---- Silicon/NXP/Library/SocLib/LS1043aSocLib.inf | 45 -- Silicon/NXP/Library/SocLib/NxpChassis.h | 136 ---- Silicon/NXP/Library/SocLib/SerDes.c | 268 ------- Silicon/NXP/NxpQoriqLs.dec | 101 +-- {Platform => Silicon}/NXP/NxpQoriqLs.dsc.inc | 74 +- 83 files changed, 4916 insertions(+), 3432 deletions(-) create mode 100644 Platform/NXP/Include/Qixis.h create mode 100644 Platform/NXP/LS1043aRdbPkg/Library/ArmPlatformLib/AArch64/ArmPlatformHelper.S create mode 100644 Platform/NXP/LS1043aRdbPkg/Library/ArmPlatformLib/ArmPlatformLib.c create mode 100644 Platform/NXP/LS1043aRdbPkg/Library/ArmPlatformLib/ArmPlatformLib.inf create mode 100644 Platform/NXP/LS1043aRdbPkg/Library/ArmPlatformLib/ArmPlatformLibMem.c delete mode 100644 Platform/NXP/LS1043aRdbPkg/Library/PlatformLib/ArmPlatformLib.c delete mode 100644 Platform/NXP/LS1043aRdbPkg/Library/PlatformLib/ArmPlatformLib.inf delete mode 100644 Platform/NXP/LS1043aRdbPkg/Library/PlatformLib/NxpQoriqLsHelper.S delete mode 100644 Platform/NXP/LS1043aRdbPkg/Library/PlatformLib/NxpQoriqLsMem.c create mode 100644 Platform/NXP/LS1043aRdbPkg/VarStore.fdf.inc create mode 100644 Platform/NXP/LX2160aRdbPkg/LX2160aRdbPkg.dec create mode 100644 Platform/NXP/LX2160aRdbPkg/LX2160aRdbPkg.dsc create mode 100644 Platform/NXP/LX2160aRdbPkg/LX2160aRdbPkg.fdf create mode 100644 Platform/NXP/LX2160aRdbPkg/Library/ArmPlatformLib/AArch64/ArmPlatformHelper.S create mode 100644 Platform/NXP/LX2160aRdbPkg/Library/ArmPlatformLib/ArmPlatformLib.c create mode 100644 Platform/NXP/LX2160aRdbPkg/Library/ArmPlatformLib/ArmPlatformLib.inf create mode 100644 Platform/NXP/LX2160aRdbPkg/Library/ArmPlatformLib/ArmPlatformLibInternal.h create mode 100644 Platform/NXP/LX2160aRdbPkg/Library/ArmPlatformLib/ArmPlatformLibMem.c create mode 100644 Platform/NXP/LX2160aRdbPkg/VarStore.fdf.inc create mode 100644 Platform/NXP/NxpQoriqLsPlatform.dec create mode 100644 Silicon/NXP/Chassis2/Chassis2.dec create mode 100644 Silicon/NXP/Chassis2/Chassis2.dsc.inc create mode 100644 Silicon/NXP/Chassis2/Include/Chassis.h create mode 100644 Silicon/NXP/Chassis2/LS1043A/Include/Soc.h create mode 100644 Silicon/NXP/Chassis2/LS1043A/LS1043A.dec create mode 100644 Silicon/NXP/Chassis2/LS1043A/LS1043A.dsc.inc create mode 100644 Silicon/NXP/Chassis2/LS1043A/Library/SocLib/SocLib.c create mode 100644 Silicon/NXP/Chassis2/LS1043A/Library/SocLib/SocLib.inf create mode 100644 Silicon/NXP/Chassis2/Library/ChassisLib/ChassisLib.c create mode 100644 Silicon/NXP/Chassis2/Library/ChassisLib/ChassisLib.inf create mode 100644 Silicon/NXP/Chassis3V2/Chassis3V2.dec create mode 100644 Silicon/NXP/Chassis3V2/Chassis3V2.dsc.inc create mode 100644 Silicon/NXP/Chassis3V2/Include/Chassis.h create mode 100644 Silicon/NXP/Chassis3V2/LX2160A/Include/Soc.h create mode 100644 Silicon/NXP/Chassis3V2/LX2160A/LX2160A.dec create mode 100644 Silicon/NXP/Chassis3V2/LX2160A/LX2160A.dsc.inc create mode 100644 Silicon/NXP/Chassis3V2/LX2160A/Library/SocLib/SocLib.c create mode 100644 Silicon/NXP/Chassis3V2/LX2160A/Library/SocLib/SocLib.inf create mode 100644 Silicon/NXP/Chassis3V2/Library/ChassisLib/ChassisLib.c create mode 100644 Silicon/NXP/Chassis3V2/Library/ChassisLib/ChassisLib.inf delete mode 100644 Silicon/NXP/Include/Chassis2/LsSerDes.h delete mode 100644 Silicon/NXP/Include/Chassis2/NxpSoc.h delete mode 100644 Silicon/NXP/Include/DramInfo.h create mode 100644 Silicon/NXP/Include/Library/ChassisLib.h create mode 100644 Silicon/NXP/Include/Library/I2cLib.h create mode 100644 Silicon/NXP/Include/Library/SocLib.h create mode 100644 Silicon/NXP/Include/Ppi/NxpPlatformGetClock.h delete mode 100644 Silicon/NXP/LS1043A/Include/SocSerDes.h delete mode 100644 Silicon/NXP/LS1043A/LS1043A.dec delete mode 100644 Silicon/NXP/LS1043A/LS1043A.dsc.inc create mode 100644 Silicon/NXP/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.c create mode 100644 Silicon/NXP/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf create mode 100644 Silicon/NXP/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.uni delete mode 100644 Silicon/NXP/Library/DUartPortLib/DUart.h delete mode 100644 Silicon/NXP/Library/DUartPortLib/DUartPortLib.c delete mode 100644 Silicon/NXP/Library/DUartPortLib/DUartPortLib.inf create mode 100644 Silicon/NXP/Library/I2cLib/I2cLib.c create mode 100644 Silicon/NXP/Library/I2cLib/I2cLib.inf create mode 100644 Silicon/NXP/Library/I2cLib/I2cLibInternal.h delete mode 100644 Silicon/NXP/Library/MemoryInitPei/MemoryInitPeiLib.c create mode 100644 Silicon/NXP/Library/MemoryInitPeiLib/MemoryInitPeiLib.c create mode 100644 Silicon/NXP/Library/MemoryInitPeiLib/MemoryInitPeiLib.h rename Silicon/NXP/Library/{MemoryInitPei => MemoryInitPeiLib}/MemoryInitPeiLib.inf (63%) create mode 100644 Silicon/NXP/Library/PL011SerialPortLib/PL011SerialPortLib.c create mode 100644 Silicon/NXP/Library/PL011SerialPortLib/PL011SerialPortLib.inf create mode 100644 Silicon/NXP/Library/PlatformPeiLib/PlatformPeiLib.c create mode 100644 Silicon/NXP/Library/PlatformPeiLib/PlatformPeiLib.inf delete mode 100644 Silicon/NXP/Library/SocLib/Chassis.c delete mode 100644 Silicon/NXP/Library/SocLib/Chassis2/Soc.c delete mode 100644 Silicon/NXP/Library/SocLib/LS1043aSocLib.inf delete mode 100644 Silicon/NXP/Library/SocLib/NxpChassis.h delete mode 100644 Silicon/NXP/Library/SocLib/SerDes.c rename {Platform => Silicon}/NXP/NxpQoriqLs.dsc.inc (84%) -- 2.17.1