Skip to contentSkip to conversation

ls1088ardb_pb: Add support for ls1088ardb_pb board.

PATCH New Pramod Kumar 2 participants 2 messages Aug 7, 2018 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ls1088ardb_pb: Add support for ls1088ardb_pb board.

ls1088ardb-pb is another varinat of the ls1088ardb. This board support two m.2 x2 gen 3 pcie card slot. There is no support of sata,pcie standard slot, miniPCIE slot and TDM in this board

---
 arch/arm/Kconfig                              | 14 +++
 arch/arm/cpu/armv8/Kconfig                    |  1 +
 board/freescale/ls1088a/Kconfig               | 43 +++++++++
 board/freescale/ls1088a/MAINTAINERS           |  8 ++
 board/freescale/ls1088a/Makefile              |  1 +
 board/freescale/ls1088a/ddr.h                 |  4 +-
 board/freescale/ls1088a/ls1088a.c             | 13 ++-
 ... ls1088ardb_pb_qspi_SECURE_BOOT_defconfig} |  2 +-
 ...defconfig => ls1088ardb_pb_qspi_defconfig} |  2 +-
 ...ardb_pb_sdcard_qspi_SECURE_BOOT_defconfig} |  2 +-
 ...ig => ls1088ardb_pb_sdcard_qspi_defconfig} |  2 +-
 include/configs/ls1088ardb_pb.h               | 87 +++++++++++++++++++
 12 files changed, 172 insertions(+), 7 deletions(-)
 copy configs/{ls1088ardb_qspi_SECURE_BOOT_defconfig => ls1088ardb_pb_qspi_SECURE_BOOT_defconfig} (97%)
 copy configs/{ls1088ardb_qspi_defconfig => ls1088ardb_pb_qspi_defconfig} (97%)
 copy configs/{ls1088ardb_sdcard_qspi_SECURE_BOOT_defconfig => ls1088ardb_pb_sdcard_qspi_SECURE_BOOT_defconfig} (98%)
 copy configs/{ls1088ardb_sdcard_qspi_defconfig => ls1088ardb_pb_sdcard_qspi_defconfig} (98%)
 create mode 100644 include/configs/ls1088ardb_pb.h
arch/arm/Kconfig +14 -0
index a047552ed3..10fb7149cb 100644
@@ -1120,6 +1120,20 @@ config TARGET_LS1088ARDB
 	  development platform that supports the QorIQ LS1088A
 	  Layerscape Architecture processor.
 
+config TARGET_LS1088ARDB_PB
+	bool "Support ls1088ardb_pb"
+	select ARCH_LS1088A
+	select ARM64
+	select ARMV8_MULTIENTRY
+	select ARCH_MISC_INIT
+	select BOARD_LATE_INIT
+	select SUPPORT_SPL
+	help
+	  Support for NXP LS1088ARDB_PB platform.
+	  The LS1088A Reference design board (RDB_PB) is a high-performance
+	  development platform that supports the QorIQ LS1088A
+	  Layerscape Architecture processor.
+
 config TARGET_LS1021AQDS
 	bool "Support ls1021aqds"
 	select ARCH_LS1021A
arch/arm/cpu/armv8/Kconfig +1 -0
index c8bebabdf6..8ede276b65 100644
@@ -100,6 +100,7 @@ config PSCI_RESET
 		   !TARGET_LS2080A_SIMU && !TARGET_LS2080AQDS && \
 		   !TARGET_LS2080ARDB && !TARGET_LS2080A_EMU && \
 		   !TARGET_LS1088ARDB && !TARGET_LS1088AQDS && \
+		   !TARGET_LS1088ARDB_PB && \
 		   !TARGET_LS1012ARDB && !TARGET_LS1012AFRDM && \
 		   !TARGET_LS1012A2G5RDB && !TARGET_LS1012AQDS && \
 		   !TARGET_LS1012AFRWY && \
board/freescale/ls1088a/Kconfig +43 -0

46 lines not on this page · raw message

board/freescale/ls1088a/MAINTAINERS +8 -0
index 4d804d9447..a7cd4fe277 100644
@@ -7,6 +7,14 @@ F:	include/configs/ls1088ardb.h
 F:	configs/ls1088ardb_qspi_defconfig
 F:	configs/ls1088ardb_sdcard_qspi_defconfig
 
+LS1088ARDB_PB BOARD
+M:	Pramod Kumar <[email protected]>
+S:	Maintained
+F:	board/freescale/ls1088a/
+F:	include/configs/ls1088ardb_pb.h
+F:	configs/ls1088ardb_pb_qspi_defconfig
+F:	configs/ls1088ardb_pb_sdcard_qspi_defconfig
+
 LS1088AQDS BOARD
 M:	Prabhakar Kushwaha <[email protected]>
 M:	Ashish Kumar <[email protected]>
board/freescale/ls1088a/Makefile +1 -0
index c2b0e7dc0f..dd5f365378 100644
@@ -6,5 +6,6 @@ obj-y += ls1088a.o
 obj-y += ddr.o
 ifndef CONFIG_SPL_BUILD
 obj-$(CONFIG_TARGET_LS1088ARDB) += eth_ls1088ardb.o
+obj-$(CONFIG_TARGET_LS1088ARDB_PB) += eth_ls1088ardb.o
 obj-$(CONFIG_TARGET_LS1088AQDS) += eth_ls1088aqds.o
 endif
board/freescale/ls1088a/ddr.h +2 -2
index b35c4ae2da..07f5f55e2e 100644
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0+ */
 /*
- * Copyright 2017 NXP
+ * Copyright 2018 NXP
  */
 
 #ifndef __LS1088A_DDR_H__
@@ -27,7 +27,7 @@ static const struct board_specific_parameters udimm0[] = {
 	 *   num|  hi| rank|  clk| wrlvl |   wrlvl   |  wrlvl
 	 * ranks| mhz| GB  |adjst| start |   ctl2    |  ctl3
 	 */
-#if defined(CONFIG_TARGET_LS1088ARDB)
+#if defined(CONFIG_TARGET_LS1088ARDB) || defined(CONFIG_TARGET_LS1088ARDB_PB)
 
 	{2,  1666, 0, 8,     8, 0x090A0B0E, 0x0F10110D,},
 	{2,  1900, 0, 8,     9, 0x0A0B0C10, 0x1112140E,},
board/freescale/ls1088a/ls1088a.c +12 -1
index a0dab6fc2e..7dda7921df 100644
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 /*
- * Copyright 2017 NXP
+ * Copyright 2018 NXP
  */
 #include <common.h>
 #include <i2c.h>
@@ -28,6 +28,15 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
+#ifdef CONFIG_TARGET_LS1088ARDB_PB
+int fixup_ls1088ardb_pb_banner(void *fdt)
+{
+	fdt_setprop_string(fdt, 0, "model", "LS1088ARDB-PB Board");
+
+	return 0;
+}
+#endif
+
 int board_early_init_f(void)
 {
 #if defined(CONFIG_SYS_I2C_EARLY_INIT) && defined(CONFIG_TARGET_LS1088AQDS)
@@ -78,6 +87,8 @@ int checkboard(void)
 
 #ifdef CONFIG_TARGET_LS1088AQDS
 	printf("Board: LS1088A-QDS, ");
+#elif CONFIG_TARGET_LS1088ARDB_PB
+	printf("Board: LS1088ARDB-PB, ");
 #else
 	printf("Board: LS1088A-RDB, ");
 #endif
configs/ls1088ardb_pb_qspi_SECURE_BOOT_defconfig renamed from configs/ls1088ardb_qspi_SECURE_BOOT_defconfig +1 -1
similarity index 97%
copy from configs/ls1088ardb_qspi_SECURE_BOOT_defconfig
copy to configs/ls1088ardb_pb_qspi_SECURE_BOOT_defconfig
index d0334a239f..d2faf25f39 100644
@@ -1,5 +1,5 @@
 CONFIG_ARM=y
-CONFIG_TARGET_LS1088ARDB=y
+CONFIG_TARGET_LS1088ARDB_PB=y
 CONFIG_SYS_TEXT_BASE=0x20100000
 CONFIG_SECURE_BOOT=y
 CONFIG_FSL_LS_PPA=y
configs/ls1088ardb_pb_qspi_defconfig renamed from configs/ls1088ardb_qspi_defconfig +1 -1
similarity index 97%
copy from configs/ls1088ardb_qspi_defconfig
copy to configs/ls1088ardb_pb_qspi_defconfig
index d806966540..cb9eac88a9 100644
@@ -1,5 +1,5 @@
 CONFIG_ARM=y
-CONFIG_TARGET_LS1088ARDB=y
+CONFIG_TARGET_LS1088ARDB_PB=y
 CONFIG_SYS_TEXT_BASE=0x20100000
 CONFIG_FSL_LS_PPA=y
 CONFIG_QSPI_AHB_INIT=y
configs/ls1088ardb_pb_sdcard_qspi_SECURE_BOOT_defconfig renamed from configs/ls1088ardb_sdcard_qspi_SECURE_BOOT_defconfig +1 -1
similarity index 98%
copy from configs/ls1088ardb_sdcard_qspi_SECURE_BOOT_defconfig
copy to configs/ls1088ardb_pb_sdcard_qspi_SECURE_BOOT_defconfig
index 59356095cd..75ad7c26d1 100644
@@ -1,5 +1,5 @@
 CONFIG_ARM=y
-CONFIG_TARGET_LS1088ARDB=y
+CONFIG_TARGET_LS1088ARDB_PB=y
 CONFIG_SYS_TEXT_BASE=0x80400000
 CONFIG_SPL_LIBCOMMON_SUPPORT=y
 CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/ls1088ardb_pb_sdcard_qspi_defconfig renamed from configs/ls1088ardb_sdcard_qspi_defconfig +1 -1
similarity index 98%
copy from configs/ls1088ardb_sdcard_qspi_defconfig
copy to configs/ls1088ardb_pb_sdcard_qspi_defconfig
index bf1c0a2d7b..c501795ef0 100644
@@ -1,5 +1,5 @@
 CONFIG_ARM=y
-CONFIG_TARGET_LS1088ARDB=y
+CONFIG_TARGET_LS1088ARDB_PB=y
 CONFIG_SYS_TEXT_BASE=0x80400000
 CONFIG_SPL_LIBCOMMON_SUPPORT=y
 CONFIG_SPL_LIBGENERIC_SUPPORT=y
include/configs/ls1088ardb_pb.h new file +87 -0

87 lines not on this page · raw message

Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 ls1088ardb_pb: Add support for ls1088ardb_pb board.

Quoted 10 lines

-----Original Message-----
From: U-Boot [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Pramod Kumar
Sent: Tuesday, August 7, 2018 12:52 PM
To: u-boot at lists.denx.de
Cc: Pramod Kumar <[email protected]>
Subject: [U-Boot] [PATCH] ls1088ardb_pb: Add support for ls1088ardb_pb board.

Quoted 5 lines

ls1088ardb-pb is another varinat of the ls1088ardb.
This board support two m.2 x2 gen 3 pcie card slot.
There is no support of sata,pcie standard slot, miniPCIE slot and TDM in this board

Please put space after ","

Quoted 149 lines
---
 arch/arm/Kconfig                              | 14 +++
 arch/arm/cpu/armv8/Kconfig                    |  1 +
 board/freescale/ls1088a/Kconfig               | 43 +++++++++
 board/freescale/ls1088a/MAINTAINERS           |  8 ++
 board/freescale/ls1088a/Makefile              |  1 +
 board/freescale/ls1088a/ddr.h                 |  4 +-
 board/freescale/ls1088a/ls1088a.c             | 13 ++-

... ls1088ardb_pb_qspi_SECURE_BOOT_defconfig} | 2 +- ...defconfig =>
ls1088ardb_pb_qspi_defconfig} | 2 +- ...ardb_pb_sdcard_qspi_SECURE_BOOT_defconfig} | 2 +- ...ig => ls1088ardb_pb_sdcard_qspi_defconfig} | 2 +-

 include/configs/ls1088ardb_pb.h               | 87 +++++++++++++++++++
 12 files changed, 172 insertions(+), 7 deletions(-)  copy

configs/{ls1088ardb_qspi_SECURE_BOOT_defconfig => ls1088ardb_pb_qspi_SECURE_BOOT_defconfig} (97%) copy configs/{ls1088ardb_qspi_defconfig => ls1088ardb_pb_qspi_defconfig} (97%) copy configs/{ls1088ardb_sdcard_qspi_SECURE_BOOT_defconfig => ls1088ardb_pb_sdcard_qspi_SECURE_BOOT_defconfig} (98%) copy configs/{ls1088ardb_sdcard_qspi_defconfig => ls1088ardb_pb_sdcard_qspi_defconfig} (98%) create mode 100644 include/configs/ls1088ardb_pb.h

arch/arm/Kconfig index renamed from arch/arm/Kconfig +0 -0

a047552ed3..10fb7149cb 100644

arch/arm/Kconfig +11 -0
@@ -1120,6 +1120,20 @@ config TARGET_LS1088ARDB
 	  development platform that supports the QorIQ LS1088A
 	  Layerscape Architecture processor.
 
+config TARGET_LS1088ARDB_PB
+	bool "Support ls1088ardb_pb"
+	select ARCH_LS1088A
+	select ARM64
+	select ARMV8_MULTIENTRY
+	select ARCH_MISC_INIT
+	select BOARD_LATE_INIT
+	select SUPPORT_SPL
+	help
+	  Support for NXP LS1088ARDB_PB platform.
+	  The LS1088A Reference design board (RDB_PB) is a high-

performance

arch/arm/Kconfig +3 -0
+	  development platform that supports the QorIQ LS1088A
+	  Layerscape Architecture processor.
+
 config TARGET_LS1021AQDS
 	bool "Support ls1021aqds"
 	select ARCH_LS1021A
arch/arm/cpu/armv8/Kconfig +1 -0
index c8bebabdf6..8ede276b65 100644
@@ -100,6 +100,7 @@ config PSCI_RESET
 		   !TARGET_LS2080A_SIMU && !TARGET_LS2080AQDS && \
 		   !TARGET_LS2080ARDB && !TARGET_LS2080A_EMU && \
 		   !TARGET_LS1088ARDB && !TARGET_LS1088AQDS && \
+		   !TARGET_LS1088ARDB_PB && \
 		   !TARGET_LS1012ARDB && !TARGET_LS1012AFRDM && \
 		   !TARGET_LS1012A2G5RDB && !TARGET_LS1012AQDS && \
 		   !TARGET_LS1012AFRWY && \
(quoted diff) +0 -0

b/board/freescale/ls1088a/Kconfig index 8bb828e3fd..9f20d7247f 100644

board/freescale/ls1088a/Kconfig +43 -0
@@ -59,3 +59,46 @@ endif
 
 source "board/freescale/common/Kconfig"
 endif
+
+if TARGET_LS1088ARDB_PB
+
+config SYS_BOARD
+	default "ls1088a"
+
+config SYS_VENDOR
+	default "freescale"
+
+config SYS_SOC
+	default "fsl-layerscape"
+
+config SYS_CONFIG_NAME
+	default "ls1088ardb_pb"
+
+if SYS_LS_PPA_FW_IN_XIP
+
+config SYS_LS_PPA_FW_ADDR
+	hex "PPA Firmware Addr"
+	default 0x20400000
+
+if CHAIN_OF_TRUST
+config SYS_LS_PPA_ESBC_ADDR
+	hex "PPA Firmware HDR Addr"
+	default 0x20680000
+endif
+endif
+
+if (SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND)
+
+config SYS_LS_PPA_FW_ADDR
+	hex "PPA Firmware Addr"
+	default 0x400000
+
+if CHAIN_OF_TRUST
+config SYS_LS_PPA_ESBC_ADDR
+	hex "PPA Firmware HDR Addr"
+	default 0x680000
+endif
+endif
+
+source "board/freescale/common/Kconfig"
+endif
board/freescale/ls1088a/MAINTAINERS +8 -0
index 4d804d9447..a7cd4fe277 100644
@@ -7,6 +7,14 @@ F:	include/configs/ls1088ardb.h
 F:	configs/ls1088ardb_qspi_defconfig
 F:	configs/ls1088ardb_sdcard_qspi_defconfig
 
+LS1088ARDB_PB BOARD
+M:	Pramod Kumar <[email protected]>
+S:	Maintained
+F:	board/freescale/ls1088a/
+F:	include/configs/ls1088ardb_pb.h
+F:	configs/ls1088ardb_pb_qspi_defconfig
+F:	configs/ls1088ardb_pb_sdcard_qspi_defconfig
+
 LS1088AQDS BOARD
 M:	Prabhakar Kushwaha <[email protected]>
 M:	Ashish Kumar <[email protected]>
board/freescale/ls1088a/Makefile +1 -0
index c2b0e7dc0f..dd5f365378 100644
@@ -6,5 +6,6 @@ obj-y += ls1088a.o
 obj-y += ddr.o
 ifndef CONFIG_SPL_BUILD
 obj-$(CONFIG_TARGET_LS1088ARDB) += eth_ls1088ardb.o
+obj-$(CONFIG_TARGET_LS1088ARDB_PB) += eth_ls1088ardb.o
 obj-$(CONFIG_TARGET_LS1088AQDS) += eth_ls1088aqds.o  endif diff --git

a/board/freescale/ls1088a/ddr.h b/board/freescale/ls1088a/ddr.h index b35c4ae2da..07f5f55e2e 100644

board/freescale/ls1088a/ddr.h line 3

Quoted 4 lines
board/freescale/ls1088a/ddr.h +1 -1
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0+ */
 /*
- * Copyright 2017 NXP
+ * Copyright 2018 NXP

2017-2018

Quoted 20 lines
board/freescale/ls1088a/ddr.h +2 -1
  */
 
 #ifndef __LS1088A_DDR_H__
@@ -27,7 +27,7 @@ static const struct board_specific_parameters udimm0[]
 = {
 	 *   num|  hi| rank|  clk| wrlvl |   wrlvl   |  wrlvl
 	 * ranks| mhz| GB  |adjst| start |   ctl2    |  ctl3
 	 */
-#if defined(CONFIG_TARGET_LS1088ARDB)
+#if defined(CONFIG_TARGET_LS1088ARDB) ||
+defined(CONFIG_TARGET_LS1088ARDB_PB)
 
 	{2,  1666, 0, 8,     8, 0x090A0B0E, 0x0F10110D,},
 	{2,  1900, 0, 8,     9, 0x0A0B0C10, 0x1112140E,},
board/freescale/ls1088a/ls1088a.c +0 -0
index a0dab6fc2e..7dda7921df 100644

board/freescale/ls1088a/ls1088a.c line 3

Quoted 4 lines
board/freescale/ls1088a/ls1088a.c +1 -1
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 /*
- * Copyright 2017 NXP
+ * Copyright 2018 NXP

2017-2018

--pk