
-----Original Message----- From: Gong Qianyu [mailto:Qianyu.Gong@nxp.com] Sent: Friday, August 26, 2016 7:29 PM To: u-boot@lists.denx.de; york sun york.sun@nxp.com Cc: Prabhakar Kushwaha prabhakar.kushwaha@nxp.com; Mingkai Hu mingkai.hu@nxp.com; Shaohui Xie shaohui.xie@nxp.com; Zhiqiang Hou zhiqiang.hou@nxp.com; Wenbin Song wenbin.song@nxp.com; Mingkai Hu mingkai.hu@nxp.com; Qianyu Gong qianyu.gong@nxp.com Subject: [PATCH 8/8] armv8: ls1046ardb: Add LS1046ARDB board support
From: Mingkai Hu mingkai.hu@nxp.com
LS1046ARDB Specification:
Memory subsystem:
- 8GByte DDR4 SDRAM (64bit bus)
- 512 Mbyte NAND flash
- Two 64 Mbyte high-speed SPI flash
- SD connector to interface with the SD memory card
- On-board 4G eMMC
Ethernet:
- Two XFI 10G ports
- Two SGMII ports
- Two RGMII ports
PCIe:
- PCIe1 (SerDes2 Lane0) to miniPCIe slot
- PCIe2 (SerDes2 Lane1) to x2 PCIe slot
- PCIe3 (SerDes2 Lane2) to x4 PCIe slot
SATA:
- SerDes2 Lane3 to SATA port
USB 3.0: one super speed USB 3.0 type A port one Micro-AB port
UART: supports two UARTs up to 115200 bps for console
Signed-off-by: Gong Qianyu Qianyu.Gong@nxp.com Signed-off-by: Mingkai Hu mingkai.hu@nxp.com
arch/arm/Kconfig | 9 + arch/arm/dts/Makefile | 1 + arch/arm/dts/fsl-ls1046a-rdb.dts | 44 ++++ arch/arm/dts/fsl-ls1046a.dtsi | 220 +++++++++++++++++++ board/freescale/ls1046ardb/Kconfig | 16 ++ board/freescale/ls1046ardb/MAINTAINERS | 8 + board/freescale/ls1046ardb/Makefile | 10 + board/freescale/ls1046ardb/README | 67 ++++++ board/freescale/ls1046ardb/cpld.c | 158 ++++++++++++++ board/freescale/ls1046ardb/cpld.h | 49 +++++ board/freescale/ls1046ardb/ddr.c | 140 ++++++++++++ board/freescale/ls1046ardb/ddr.h | 44 ++++ board/freescale/ls1046ardb/eth.c | 77 +++++++ board/freescale/ls1046ardb/ls1046ardb.c | 173 +++++++++++++++ board/freescale/ls1046ardb/ls1046ardb_pbi.cfg | 22 ++ board/freescale/ls1046ardb/ls1046ardb_rcw_emmc.cfg | 7 + board/freescale/ls1046ardb/ls1046ardb_rcw_sd.cfg | 7 + .../ls1046ardb/ls1046ardb_rcw_sd_1200.cfg | 7 + .../ls1046ardb/ls1046ardb_rcw_sd_1400.cfg | 7 + .../ls1046ardb/ls1046ardb_rcw_sd_5506.cfg | 7 + configs/ls1046ardb_qspi_defconfig | 25 +++ configs/ls1046ardb_sdcard_defconfig | 26 +++ include/configs/ls1046a_common.h | 181 ++++++++++++++++ include/configs/ls1046ardb.h | 237 +++++++++++++++++++++ 24 files changed, 1542 insertions(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index aef901c..d343995 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -811,6 +811,14 @@ config TARGET_LS1043ARDB help Support for Freescale LS1043ARDB platform.
+Memory map from core's view +---------------------------- +Start Address End Address Description Size +0x00_0000_0000 0x00_000F_FFFF Secure Boot ROM 1MB +0x00_0100_0000 0x00_0FFF_FFFF CCSRBAR 240MB +0x00_1000_0000 0x00_1000_FFFF OCRAM0 64KB +0x00_1001_0000 0x00_1001_FFFF OCRAM1 64KB +0x00_2000_0000 0x00_20FF_FFFF DCSR 16MB +0x00_7E80_0000 0x00_7E80_FFFF IFC - NAND Flash 64KB +0x00_7FB0_0000 0x00_7FB0_0FFF IFC - FPGA 4KB +0x00_8000_0000 0x00_FFFF_FFFF DRAM1 2GB
It's better to add DRAM2 memory map. 0x08 _8000_0000 0x09_FFFF_FFFF DRAM2 6GB
+QSPI flash map: +Start Address End Address Description Size +0x0_4000_0000 - 0x0_400F_FFFF RCW + PBI 1MB +0x0_4010_0000 - 0x0_401F_FFFF U-Boot 1MB +0x0_4020_0000 - 0x0_402F_FFFF U-Boot Env 1MB +0x0_4030_0000 - 0x0_403F_FFFF FMan ucode 1MB +0x0_4040_0000 - 0x0_404F_FFFF UEFI 1MB +0x0_4050_0000 - 0x0_405F_FFFF PPA 1MB +0x0_4060_0000 - 0x0_40FF_FFFF Reserved 10MB +0x0_4100_0000 - 0x0_43FF_FFFF FIT Image 48MB
Increase the PPA size to 2M and add memory space for secure boot header as follows:
0x40500000 0x406FFFFF Primary Protected Application (PPA) 2 M 0x40700000 0x408FFFFF Secure boot header + bootscript 2 M 0x40900000 0x40FFFFFF Reserved 7 M
Regards, Mingkai