arm: ls102xa: Add QSPI boot support for LS1021AQDS/TWR board
PATCH 1/1 arm: ls102xa: Add QSPI boot support for LS1021AQDS/TWR board
This patch adds QSPI boot support for LS1021AQDS/TWR board. The QSPI boot image need to be programmed into the QSPI flash first. Then the booting will start from QSPI memory space.
This patch is based on the previous QSPI enabled patches.
--- board/freescale/ls1021aqds/MAINTAINERS | 1 + board/freescale/ls1021aqds/ls1021aqds.c | 4 ++++ board/freescale/ls1021atwr/MAINTAINERS | 1 + configs/ls1021aqds_qspi_defconfig | 3 +++ configs/ls1021atwr_qspi_defconfig | 3 +++ include/configs/ls1021aqds.h | 5 +++++ include/configs/ls1021atwr.h | 10 ++++++++++ 7 files changed, 27 insertions(+) create mode 100644 configs/ls1021aqds_qspi_defconfig create mode 100644 configs/ls1021atwr_qspi_defconfig
board/freescale/ls1021aqds/MAINTAINERS +1 -0
@@ -7,3 +7,4 @@ F: configs/ls1021aqds_nor_defconfig F: configs/ls1021aqds_ddr4_nor_defconfig F: configs/ls1021aqds_sdcard_defconfig F: configs/ls1021aqds_nand_defconfig +F: configs/ls1021aqds_qspi_defconfig
board/freescale/ls1021aqds/ls1021aqds.c +4 -0
@@ -29,7 +29,9 @@ enum {int checkboard (void ) { +#ifndef CONFIG_QSPI_BOOT char buf[64 ]; +#endif #if !defined(CONFIG_SD_BOOT ) && !defined(CONFIG_QSPI_BOOT )u8 sw;#endif
@@ -52,12 +54,14 @@ int checkboard(void)printf ("invalid setting of SW%u\n" ,QIXIS_LBMAP_SWITCH );#endif +#ifndef CONFIG_QSPI_BOOT printf ("Sys ID:0x%02x, Sys Ver: 0x%02x\n" ,QIXIS_READ (id),QIXIS_READ (arch));printf ("FPGA: v%d (%s), build %d\n" , (int )QIXIS_READ (scver),qixis_read_tag (buf), (int )qixis_read_minor ()); +#endif return 0 ; }
board/freescale/ls1021atwr/MAINTAINERS +1 -0
@@ -5,3 +5,4 @@ F: board/freescale/ls1021atwr/ F: include/configs/ls1021atwr.h F: configs/ls1021atwr_nor_defconfig F: configs/ls1021atwr_sdcard_defconfig +F: configs/ls1021atwr_qspi_defconfig
configs/ls1021aqds_qspi_defconfig new file +3 -0
@@ -0,0 +1,3 @@ +CONFIG_SYS_EXTRA_OPTIONS="QSPI_BOOT" ++S:CONFIG_ARM=y ++S:CONFIG_TARGET_LS1021AQDS=y
configs/ls1021atwr_qspi_defconfig new file +3 -0
@@ -0,0 +1,3 @@ +CONFIG_SYS_EXTRA_OPTIONS="QSPI_BOOT" ++S:CONFIG_ARM=y ++S:CONFIG_TARGET_LS1021ATWR=y
include/configs/ls1021aqds.h +5 -0
@@ -112,6 +112,11 @@ unsigned long get_board_ddr_clk(void);#define CONFIG_SYS_MONITOR_LEN 0x80000#endif +#ifdef CONFIG_QSPI_BOOT +#define CONFIG_SYS_TEXT_BASE 0x40010000 +#define CONFIG_SYS_NO_FLASH +#endif +#ifndef CONFIG_SYS_TEXT_BASE #define CONFIG_SYS_TEXT_BASE 0x67f80000#endif
include/configs/ls1021atwr.h +10 -0
@@ -68,6 +68,11 @@#define CONFIG_SYS_NO_FLASH #endif +#if defined(CONFIG_QSPI_BOOT ) +#define CONFIG_SYS_TEXT_BASE 0x40010000 +#define CONFIG_SYS_NO_FLASH +#endif +#ifndef CONFIG_SYS_TEXT_BASE #define CONFIG_SYS_TEXT_BASE 0x67f80000#endif
@@ -340,6 +345,11 @@#define CONFIG_ENV_IS_IN_MMC #define CONFIG_SYS_MMC_ENV_DEV 0#define CONFIG_ENV_SIZE 0x20000 +#elif defined(CONFIG_QSPI_BOOT ) +#define CONFIG_ENV_IS_IN_SPI_FLASH +#define CONFIG_ENV_SIZE 0x2000 +#define CONFIG_ENV_OFFSET 0x100000 +#define CONFIG_ENV_SECT_SIZE 0x10000#else #define CONFIG_ENV_IS_IN_FLASH #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
Signature · 1 line
2.1.0.27.g96db324
PATCH 1/1 arm: ls102xa: Add QSPI boot support for LS1021AQDS/TWR board
Quoted 8 lines · Alison Wang
This patch adds QSPI boot support for LS1021AQDS/TWR board. The QSPI boot image need to be programmed into the QSPI flash first. Then the booting will start from QSPI memory space.
This patch is based on the previous QSPI enabled patches.
Signed-off-by Alison Wang <[email protected]>---
Alison,
I lost track the "previous QSPI enabled patches". Can you point me a link?
York
PATCH 1/1 arm: ls102xa: Add QSPI boot support for LS1021AQDS/TWR board
Hi, york,
Quoted 15 lines
-----Original Message-----
From: York Sun [mailto:yorksun at freescale.com]
Sent: Wednesday, November 26, 2014 5:23 AM
To: Wang Huan-B18965; u-boot at lists.denx.de
Cc: Jin Zhengxiong-R64188; Wang Huan-B18965
Subject: Re: [PATCH] arm: ls102xa: Add QSPI boot support for LS1021AQDS/TWR boardQuoted 6 lines · Alison Wang
This patch adds QSPI boot support for LS1021AQDS/TWR board. The QSPI boot image need to be programmed into the QSPI flash first. Then the booting will start from QSPI memory space.
This patch is based on the previous QSPI enabled patches.
Quoted 8 lines
Quoted 2 lines
Signed-off-by Alison Wang <[email protected]>---
Alison,
I lost track the "previous QSPI enabled patches". Can you point me a link?
[Alison Wang] I will resend that patch. The previous patch need to be rebased.
Best Regards,
Alison Wang
PATCH 1/1 arm: ls102xa: Add QSPI boot support for LS1021AQDS/TWR board
Quoted 20 lines · On 11/25/2014 10:58 PM, Wang Huan-B18965 wrote:
Hi, york,
Quoted 18 lines
-----Original Message-----
From: York Sun [mailto:yorksun at freescale.com]
Sent: Wednesday, November 26, 2014 5:23 AM
To: Wang Huan-B18965; u-boot at lists.denx.de
Cc: Jin Zhengxiong-R64188; Wang Huan-B18965
Subject: Re: [PATCH] arm: ls102xa: Add QSPI boot support for LS1021AQDS/TWR boardQuoted 8 lines · Alison Wang
This patch adds QSPI boot support for LS1021AQDS/TWR board. The QSPI boot image need to be programmed into the QSPI flash first. Then the booting will start from QSPI memory space.
This patch is based on the previous QSPI enabled patches.
Signed-off-by Alison Wang <[email protected]>---
Quoted 7 lines
Quoted 5 lines
Alison,
I lost track the "previous QSPI enabled patches". Can you point me a link?
[Alison Wang] I will resend that patch. The previous patch need to be rebased.
Alison,
Have you rebase this patch?
York