aboutsummaryrefslogtreecommitdiff
path: root/include/configs/pico-imx6ul.h
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2018-09-13 16:57:05 -0300
committerStefano Babic <sbabic@denx.de>2018-09-14 15:22:52 +0200
commit9ddd1cd596b5d825a53265c267d9322f2af0f4d1 (patch)
tree0db406ad186af253781b5b9e0904b1db6caee238 /include/configs/pico-imx6ul.h
parent1b5f4dc9e618763b0729bdb9a91aaeecf9499eeb (diff)
downloadu-boot-9ddd1cd596b5d825a53265c267d9322f2af0f4d1.zip
u-boot-9ddd1cd596b5d825a53265c267d9322f2af0f4d1.tar.gz
u-boot-9ddd1cd596b5d825a53265c267d9322f2af0f4d1.tar.bz2
pico-imx6ul: Add Falcon mode support
Falcon mode boots the kernel directly from SPL, without loading the full U-Boot. As pico-imx6ul does not have a GPIO for selecting Falcon versus normal mode, enter in Falcon mode when the customer selects the CONFIG_SPL_OS_BOOT option in menuconfig. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'include/configs/pico-imx6ul.h')
-rw-r--r--include/configs/pico-imx6ul.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/configs/pico-imx6ul.h b/include/configs/pico-imx6ul.h
index ead242d..8c657c1 100644
--- a/include/configs/pico-imx6ul.h
+++ b/include/configs/pico-imx6ul.h
@@ -14,6 +14,18 @@
#include <asm/mach-imx/gpio.h>
#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 0x88000000
+
+/* 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
+
/* Network support */
#define CONFIG_FEC_MXC