summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTeo Hall <teo.hall@nxp.com>2018-10-15 17:01:27 -0500
committerNitin Garg <nitin.garg@nxp.com>2018-11-02 20:50:08 -0500
commit44af1001b241d98d36f35f74e1447e3d3b54724f (patch)
tree8fffc8b0327fdb41ded1b07129a1e9efecb6864a /include
parentfe6af144930a0a32cbc4599635a96c8a629432a1 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/configs/imx8qxp_arm2.h20
-rw-r--r--include/spl.h13
2 files changed, 30 insertions, 3 deletions
diff --git a/include/configs/imx8qxp_arm2.h b/include/configs/imx8qxp_arm2.h
index f0c72f36a7..389ea8fb9b 100644
--- a/include/configs/imx8qxp_arm2.h
+++ b/include/configs/imx8qxp_arm2.h
@@ -21,6 +21,20 @@
#define CONFIG_SPL_TEXT_BASE 0x0
#define CONFIG_SPL_MAX_SIZE (124 * 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_SECTOR 0x1040 /* (32K + 2Mb)/sector_size */
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 0
@@ -33,10 +47,10 @@
#define CONFIG_SPL_LIBCOMMON_SUPPORT
#define CONFIG_SPL_LIBGENERIC_SUPPORT
#define CONFIG_SPL_SERIAL_SUPPORT
-#define CONFIG_SPL_BSS_START_ADDR 0x00128000
-#define CONFIG_SPL_BSS_MAX_SIZE 0x1000 /* 4 KB */
+#define CONFIG_SPL_BSS_START_ADDR 0x00138000
+#define CONFIG_SPL_BSS_MAX_SIZE 0x8000 /* 20 KB */
#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_SYS_ICACHE_OFF
#define CONFIG_SYS_DCACHE_OFF
diff --git a/include/spl.h b/include/spl.h
index 5af42b7f3e..199ce33e7f 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -99,6 +99,19 @@ void spl_set_bd(void);
*/
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
*