summaryrefslogtreecommitdiff
path: root/include/configs/pico-imx6.h
diff options
context:
space:
mode:
authorFabio Estevam <festevam@gmail.com>2019-09-17 22:04:57 -0300
committerStefano Babic <sbabic@denx.de>2019-10-08 16:35:59 +0200
commit77ecf95f22dc5cb0a9709805dd22555007d60b34 (patch)
tree6770462959d8c3d4f3f55030df2e2eb5005c3698 /include/configs/pico-imx6.h
parent953c2500bc0c0d72d9099319381542feb9905ea3 (diff)
downloadu-boot-77ecf95f22dc5cb0a9709805dd22555007d60b34.tar.gz
pico-imx6: Add Falcon mode
Add Falcon mode support, which allows the SPL to load and jump to the Linux kernel directly, without the need of loading U-Boot proper. CONFIG_SPL_OS_BOOT=y needs to be passed in the defconfig in order to use Falcon mode. Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'include/configs/pico-imx6.h')
-rw-r--r--include/configs/pico-imx6.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/configs/pico-imx6.h b/include/configs/pico-imx6.h
index 467d5ff4f5..5bbb9ea8f7 100644
--- a/include/configs/pico-imx6.h
+++ b/include/configs/pico-imx6.h
@@ -12,6 +12,18 @@
#include "imx6_spl.h"
+#ifdef CONFIG_SPL_OS_BOOT
+/* Falcon Mode */
+#define CONFIG_SPL_FS_LOAD_ARGS_NAME "args"
+#define CONFIG_SPL_FS_LOAD_KERNEL_NAME "uImage"
+#define CONFIG_SYS_SPL_ARGS_ADDR 0x18000000
+
+/* Falcon Mode - MMC support: args@1MB kernel@2MB */
+#define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR 0x800 /* 1MB */
+#define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS (CONFIG_CMD_SPL_WRITE_SIZE / 512)
+#define CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR 0x1000 /* 2MB */
+#endif
+
/* Size of malloc() pool */
#define CONFIG_SYS_MALLOC_LEN (35 * SZ_1M) /* Increase due to DFU */