MLK-19877-2: iMX8QXP: Add NAND SPL support
Add include files necessary for supporting SPL on QXP ARM2 board Signed-off-by: Teo Hall <teo.hall@nxp.com>
This commit is contained in:
parent
fe6af14493
commit
44af1001b2
|
|
@ -21,6 +21,20 @@
|
||||||
#define CONFIG_SPL_TEXT_BASE 0x0
|
#define CONFIG_SPL_TEXT_BASE 0x0
|
||||||
#define CONFIG_SPL_MAX_SIZE (124 * 1024)
|
#define CONFIG_SPL_MAX_SIZE (124 * 1024)
|
||||||
#define CONFIG_SYS_MONITOR_LEN (1024 * 1024)
|
#define CONFIG_SYS_MONITOR_LEN (1024 * 1024)
|
||||||
|
|
||||||
|
#ifdef CONFIG_NAND_BOOT
|
||||||
|
#define CONFIG_SPL_NAND_RAW_ONLY
|
||||||
|
#define CONFIG_SPL_NAND_SUPPORT
|
||||||
|
#define CONFIG_SPL_DMA_SUPPORT
|
||||||
|
#define CONFIG_SPL_NAND_MXS
|
||||||
|
#define CONFIG_SYS_NAND_U_BOOT_OFFS (0x4000000) /*Put the FIT out of first 64MB boot area */
|
||||||
|
#define CONFIG_SPL_NAND_BOOT
|
||||||
|
#define CONFIG_SYS_NAND_U_BOOT_DST 0x80000000
|
||||||
|
#define CONFIG_SYS_NAND_U_BOOT_SIZE (1024 * 1024 )
|
||||||
|
|
||||||
|
#define CONFIG_SYS_NAND_U_BOOT_START 0x80000000
|
||||||
|
#endif
|
||||||
|
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
|
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
|
||||||
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x1040 /* (32K + 2Mb)/sector_size */
|
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x1040 /* (32K + 2Mb)/sector_size */
|
||||||
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 0
|
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 0
|
||||||
|
|
@ -33,10 +47,10 @@
|
||||||
#define CONFIG_SPL_LIBCOMMON_SUPPORT
|
#define CONFIG_SPL_LIBCOMMON_SUPPORT
|
||||||
#define CONFIG_SPL_LIBGENERIC_SUPPORT
|
#define CONFIG_SPL_LIBGENERIC_SUPPORT
|
||||||
#define CONFIG_SPL_SERIAL_SUPPORT
|
#define CONFIG_SPL_SERIAL_SUPPORT
|
||||||
#define CONFIG_SPL_BSS_START_ADDR 0x00128000
|
#define CONFIG_SPL_BSS_START_ADDR 0x00138000
|
||||||
#define CONFIG_SPL_BSS_MAX_SIZE 0x1000 /* 4 KB */
|
#define CONFIG_SPL_BSS_MAX_SIZE 0x8000 /* 20 KB */
|
||||||
#define CONFIG_SYS_SPL_MALLOC_START 0x00120000
|
#define CONFIG_SYS_SPL_MALLOC_START 0x00120000
|
||||||
#define CONFIG_SYS_SPL_MALLOC_SIZE 0x3000 /* 12 KB */
|
#define CONFIG_SYS_SPL_MALLOC_SIZE 0x18000 /* 60 KB */
|
||||||
#define CONFIG_SERIAL_LPUART_BASE 0x5a060000
|
#define CONFIG_SERIAL_LPUART_BASE 0x5a060000
|
||||||
#define CONFIG_SYS_ICACHE_OFF
|
#define CONFIG_SYS_ICACHE_OFF
|
||||||
#define CONFIG_SYS_DCACHE_OFF
|
#define CONFIG_SYS_DCACHE_OFF
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,19 @@ void spl_set_bd(void);
|
||||||
*/
|
*/
|
||||||
void spl_set_header_raw_uboot(struct spl_image_info *spl_image);
|
void spl_set_header_raw_uboot(struct spl_image_info *spl_image);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* spl_set_header_raw_atf() - Set up a standard SPL image structure for ATF
|
||||||
|
*
|
||||||
|
* This sets up the given spl_image which the standard values obtained from
|
||||||
|
* config options: CONFIG_SYS_MONITOR_LEN, CONFIG_SYS_UBOOT_START,
|
||||||
|
* CONFIG_SYS_TEXT_BASE.
|
||||||
|
*
|
||||||
|
* @spl_image: Image description to set up
|
||||||
|
*/
|
||||||
|
void spl_set_header_raw_atf(struct spl_image_info *spl_image);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* spl_parse_image_header() - parse the image header and set up info
|
* spl_parse_image_header() - parse the image header and set up info
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue