armv8: lx2160aqds : Add support for LX2160AQDS platform
PATCH v2 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/
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 | 126 +++ .../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 | 787 +++++++++++++++++ board/freescale/lx2160a/lx2160a.c | 280 +++++- configs/lx2160aqds_tfa_defconfig | 74 ++ include/configs/lx2160aqds.h | 111 +++ 13 files changed, 1511 insertions(+), 2 deletions(-)
arch/arm/Kconfig +13 -0
@@ -1032,6 +1032,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
@@ -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
@@ -227,7 +227,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 +126 -0
126 lines not on this page · raw message
arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h +8 -0
@@ -354,6 +354,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
@@ -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
@@ -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
@@ -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 +787 -0
787 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