public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 00/19] ADD LX2160ARDB Platform Support
@ 2020-02-07 12:43 Pankaj Bansal
  2020-02-07 12:43 ` [PATCH 01/19] Silicon/NXP: Add I2c lib Pankaj Bansal
                   ` (18 more replies)
  0 siblings, 19 replies; 49+ messages in thread
From: Pankaj Bansal @ 2020-02-07 12:43 UTC (permalink / raw)
  To: Leif Lindholm, Meenakshi Aggarwal, Michael D Kinney, Varun Sethi
  Cc: devel, Pankaj Bansal

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 13814 bytes --]

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


^ permalink raw reply	[flat|nested] 49+ messages in thread

end of thread, other threads:[~2020-02-20 19:05 UTC | newest]

Thread overview: 49+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-07 12:43 [PATCH 00/19] ADD LX2160ARDB Platform Support Pankaj Bansal
2020-02-07 12:43 ` [PATCH 01/19] Silicon/NXP: Add I2c lib Pankaj Bansal
2020-02-08 17:13   ` Leif Lindholm
2020-02-09 11:49     ` [edk2-devel] " Ard Biesheuvel
2020-02-07 12:43 ` [PATCH 02/19] Silicon/NXP: changes to use I2clib in i2cdxe Pankaj Bansal
2020-02-08 17:23   ` Leif Lindholm
2020-02-07 12:43 ` [PATCH 03/19] NXP/LS1043aRdb: Move Soc specific components to soc files Pankaj Bansal
2020-02-08 17:27   ` Leif Lindholm
2020-02-07 12:43 ` [PATCH 04/19] Silicon/NXP: Remove DuartLib and use BaseSerialPortLib16550 Pankaj Bansal
2020-02-08 17:46   ` Leif Lindholm
2020-02-10  5:48     ` Pankaj Bansal
2020-02-12 23:27       ` Leif Lindholm
2020-02-07 12:43 ` [PATCH 05/19] NXP/BaseSerialPortLib16550: remove SerialPortInitalize functionality Pankaj Bansal
2020-02-07 12:43 ` [PATCH 06/19] Silicon/NXP: remove print information from Soc lib Pankaj Bansal
2020-02-10 17:09   ` [EXTERNAL] " Leif Lindholm
2020-02-07 12:43 ` [PATCH 07/19] Silicon/NXP: remove not needed components Pankaj Bansal
2020-02-10 17:11   ` Leif Lindholm
2020-02-11  7:24     ` Pankaj Bansal
2020-02-20 19:05       ` Leif Lindholm
2020-02-07 12:43 ` [PATCH 08/19] Silicon/NXP: Remove unnecessary PCDs Pankaj Bansal
2020-02-10 17:32   ` Leif Lindholm
2020-02-11  8:45     ` Pankaj Bansal
2020-02-20 18:56       ` Leif Lindholm
2020-02-07 12:43 ` [PATCH 09/19] Silicon/NXP: Move dsc file Pankaj Bansal
2020-02-11 11:35   ` Leif Lindholm
2020-02-07 12:43 ` [PATCH 10/19] Platform/NXP: rename the ArmPlatformLib as per ArmPlatformPkg Pankaj Bansal
2020-02-11 11:40   ` Leif Lindholm
2020-02-07 12:43 ` [PATCH 11/19] Silicon/NXP: Add Chassis Lib for Chassis2 Pankaj Bansal
2020-02-11 12:28   ` Leif Lindholm
2020-02-07 12:43 ` [PATCH 12/19] Silicon/NXP/LS1043A: Add SocLib Pankaj Bansal
2020-02-11 12:38   ` Leif Lindholm
2020-02-07 12:43 ` [PATCH 13/19] Silicon/NXP: Move RAM retrieval from SocLib Pankaj Bansal
2020-02-11 13:28   ` Leif Lindholm
2020-02-07 12:43 ` [PATCH 14/19] Silicon/NXP/LS1043A: Replce SocLib Pankaj Bansal
2020-02-11 13:35   ` Leif Lindholm
2020-02-12  9:37     ` Pankaj Bansal
2020-02-12 22:50       ` Leif Lindholm
2020-02-13 11:00         ` Pankaj Bansal
2020-02-20 18:45           ` Leif Lindholm
2020-02-07 12:43 ` [PATCH 15/19] Platform/NXP/LS1043ARDB: introduce PEI Phase Pankaj Bansal
2020-02-12 20:24   ` Leif Lindholm
2020-02-07 12:43 ` [PATCH 16/19] Silicon/NXP: Add Pl011 Serial port lib Pankaj Bansal
2020-02-12 20:26   ` Leif Lindholm
2020-02-07 12:43 ` [PATCH 17/19] Silicon/NXP: Add Chassis3V2 Pankaj Bansal
2020-02-12 20:33   ` Leif Lindholm
2020-02-07 12:43 ` [PATCH 18/19] Silicon/NXP: Add LX2160A SocLib Pankaj Bansal
2020-02-12 21:39   ` Leif Lindholm
2020-02-07 12:43 ` [PATCH 19/19] Platform/NXP: Add LX2160ARDBPKG Pankaj Bansal
2020-02-12 21:36   ` Leif Lindholm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox