diff options
author | Fabio Estevam <festevam@gmail.com> | 2018-06-29 15:19:14 -0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2018-07-23 10:59:48 +0200 |
commit | 78d30a1bc039bc4c0a63cca4c03238adb5cf02bb (patch) | |
tree | d88db7803f1c809bb98e565bb3e7ccf37b516572 /include | |
parent | 22dda6bd8b2b495a71d3776cf0b4379fe14fd8bc (diff) | |
download | u-boot-78d30a1bc039bc4c0a63cca4c03238adb5cf02bb.tar.gz |
pico-imx7d: Add Falcon mode support
Falcon mode boots the kernel directly from SPL, without loading
the full U-Boot.
As pico-imx7d 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: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/pico-imx7d.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/configs/pico-imx7d.h b/include/configs/pico-imx7d.h index 94c846a395..8f1876c8b2 100644 --- a/include/configs/pico-imx7d.h +++ b/include/configs/pico-imx7d.h @@ -12,6 +12,18 @@ #include "imx7_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 + /* Size of malloc() pool */ #define CONFIG_SYS_MALLOC_LEN (32 * SZ_1M) |