Skip to contentSkip to conversation

armv8: lx2160aqds : Add support for LX2160AQDS platform

PATCH Superseded Pankaj Bansal 1 participant 1 message Nov 15, 2018 Arm (32-bit)

v4 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 armv8: lx2160aqds : Add support for LX2160AQDS platform

LX2160AQDS is a development board that supports LX2160A family SoCs. This patch add base support for this board.

---

Notes:
This patch depends on following patches:
[1] https://patchwork.ozlabs.org/patch/970926/
[2] https://patchwork.ozlabs.org/patch/970927/
[3] https://patchwork.ozlabs.org/patch/983917/

V4
- changed the LX2160ARDB to LX2160AQDS in dts file description Also removed the Author info from dts file header dts file : arch/arm/dts/fsl-lx2160a-qds.dts
V3
- modified the fdt phy fixup function as per fdt. refer https://patchwork.codeaurora.org/patch/657515/
V2:
- removed checkpatch warnings about line over 80 chars
- Added CONFIG_FSL_MC_ENET macro in eth_lx2160aqds.c file to avoid compilation errors if this macro is not defined
V1:
The checkpatch script reported 28 warnings about line over 80 characters, that i have not corrected. as IMO doing so, makes the code less legible.

 arch/arm/Kconfig                             |  13 +
 arch/arm/cpu/armv8/Kconfig                   |   1 +
 arch/arm/dts/Makefile                        |   3 +-
 arch/arm/dts/fsl-lx2160a-qds.dts             | 123 +++
 .../asm/arch-fsl-layerscape/immap_lsch3.h    |   8 +
 board/freescale/lx2160a/Kconfig              |  17 +
 board/freescale/lx2160a/MAINTAINERS          |   9 +
 board/freescale/lx2160a/Makefile             |   1 +
 board/freescale/lx2160a/README               |  83 ++
 board/freescale/lx2160a/eth_lx2160aqds.c     | 789 +++++++++++++++++
 board/freescale/lx2160a/lx2160a.c            | 280 +++++-
 configs/lx2160aqds_tfa_defconfig             |  74 ++
 include/configs/lx2160aqds.h                 | 111 +++
 13 files changed, 1510 insertions(+), 2 deletions(-)
arch/arm/Kconfig +13 -0
index 9671b490bd..7073f91384 100644
@@ -1055,6 +1055,19 @@ config TARGET_LX2160ARDB
 	  is a high-performance development platform that supports the
 	  QorIQ LX2160A/LX2120A/LX2080A Layerscape Architecture processor.
 
+config TARGET_LX2160AQDS
+	bool "Support lx2160aqds"
+	select ARCH_LX2160A
+	select ARCH_MISC_INIT
+	select ARM64
+	select ARMV8_MULTIENTRY
+	select BOARD_LATE_INIT
+	help
+	  Support for NXP LX2160AQDS platform.
+	  The lx2160aqds (LX2160A QorIQ Development System (QDS)
+	  is a high-performance development platform that supports the
+	  QorIQ LX2160A/LX2120A/LX2080A Layerscape Architecture processor.
+
 config TARGET_HIKEY
 	bool "Support HiKey 96boards Consumer Edition Platform"
 	select ARM64
arch/arm/cpu/armv8/Kconfig +1 -0
index aac3aebb44..7dff2f8910 100644
@@ -106,6 +106,7 @@ config PSCI_RESET
 		   !TARGET_LS1043ARDB && !TARGET_LS1043AQDS && \
 		   !TARGET_LS1046ARDB && !TARGET_LS1046AQDS && \
 		   !TARGET_LS2081ARDB && !TARGET_LX2160ARDB && \
+		   !TARGET_LX2160AQDS && \
 		   !ARCH_UNIPHIER && !TARGET_S32V234EVB
 	help
 	  Most armv8 systems have PSCI support enabled in EL3, either through
arch/arm/dts/Makefile +2 -1
index eedacee9dd..5e4433f5d5 100644
@@ -229,7 +229,8 @@ dtb-$(CONFIG_FSL_LSCH3) += fsl-ls2080a-qds.dtb \
 	fsl-ls2088a-rdb-qspi.dtb \
 	fsl-ls1088a-rdb.dtb \
 	fsl-ls1088a-qds.dtb \
-	fsl-lx2160a-rdb.dtb
+	fsl-lx2160a-rdb.dtb \
+	fsl-lx2160a-qds.dtb
 dtb-$(CONFIG_FSL_LSCH2) += fsl-ls1043a-qds-duart.dtb \
 	fsl-ls1043a-qds-lpuart.dtb \
 	fsl-ls1043a-rdb.dtb \
arch/arm/dts/fsl-lx2160a-qds.dts new file +123 -0

123 lines not on this page · raw message

arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h +8 -0
index 4741276836..76284f0171 100644
@@ -356,6 +356,14 @@ struct ccsr_gur {
 #define FSL_CHASSIS3_SRDS1_REGSR	29
 #define FSL_CHASSIS3_SRDS2_REGSR	29
 #define FSL_CHASSIS3_SRDS3_REGSR	29
+#define FSL_CHASSIS3_RCWSR12_REGSR         12
+#define FSL_CHASSIS3_RCWSR13_REGSR         13
+#define FSL_CHASSIS3_SDHC1_BASE_PMUX_MASK  0x07000000
+#define FSL_CHASSIS3_SDHC1_BASE_PMUX_SHIFT 24
+#define FSL_CHASSIS3_SDHC2_BASE_PMUX_MASK  0x00000038
+#define FSL_CHASSIS3_SDHC2_BASE_PMUX_SHIFT 3
+#define FSL_CHASSIS3_IIC5_PMUX_MASK        0x00000E00
+#define FSL_CHASSIS3_IIC5_PMUX_SHIFT       9
 #elif defined(CONFIG_ARCH_LS1088A)
 #define FSL_CHASSIS3_EC1_REGSR  26
 #define FSL_CHASSIS3_EC2_REGSR  26
board/freescale/lx2160a/Kconfig +17 -0
index 5562c3ec45..42778d26f0 100644
@@ -14,3 +14,20 @@ config SYS_CONFIG_NAME
 
 source "board/freescale/common/Kconfig"
 endif
+
+if TARGET_LX2160AQDS
+
+config SYS_BOARD
+	default "lx2160a"
+
+config SYS_VENDOR
+	default "freescale"
+
+config SYS_SOC
+	default "fsl-layerscape"
+
+config SYS_CONFIG_NAME
+	default "lx2160aqds"
+
+source "board/freescale/common/Kconfig"
+endif
board/freescale/lx2160a/MAINTAINERS +9 -0
index b4dd842afc..07c5f07959 100644
@@ -6,3 +6,12 @@ F:	include/configs/lx2160a_common.h
 F:	include/configs/lx2160ardb.h
 F:	configs/lx2160ardb_defconfig
 F:	arch/arm/dts/fsl-lx2160a-rdb.dts
+
+LX2160AQDS BOARD
+M:	Pankaj Bansal <[email protected]>
+S:	Maintained
+F:	board/freescale/lx2160a/
+F:	board/freescale/lx2160a/eth_lx2160aqds.c
+F:	include/configs/lx2160aqds.h
+F:	configs/lx2160aqds_defconfig
+F:	arch/arm/dts/fsl-lx2160a-qds.dts
board/freescale/lx2160a/Makefile +1 -0
index be3709d449..d1a621b682 100644
@@ -7,3 +7,4 @@
 obj-y += lx2160a.o
 obj-y += ddr.o
 obj-$(CONFIG_TARGET_LX2160ARDB) += eth_lx2160ardb.o
+obj-$(CONFIG_TARGET_LX2160AQDS) += eth_lx2160aqds.o
board/freescale/lx2160a/README +83 -0

86 lines not on this page · raw message

board/freescale/lx2160a/eth_lx2160aqds.c new file +789 -0

789 lines not on this page · raw message

board/freescale/lx2160a/lx2160a.c +279 -1

333 lines not on this page · raw message

configs/lx2160aqds_tfa_defconfig new file +74 -0

74 lines not on this page · raw message

include/configs/lx2160aqds.h new file +111 -0

111 lines not on this page · raw message

Signature · 1 line
2.17.1