]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pico-imx6ul: Add Falcon mode support
authorOtavio Salvador <otavio@ossystems.com.br>
Thu, 13 Sep 2018 19:57:05 +0000 (16:57 -0300)
committerStefano Babic <sbabic@denx.de>
Fri, 14 Sep 2018 13:22:52 +0000 (15:22 +0200)
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>
board/technexion/pico-imx6ul/spl.c
configs/pico-imx6ul_defconfig
include/configs/pico-imx6ul.h

index 18197220240e8143d6c441c6a4c634b6f7625577..6464a32d3b6214057b16dd4b02bcdd862524d24c 100644 (file)
 #include <spl.h>
 
 #if defined(CONFIG_SPL_BUILD)
+
+#ifdef CONFIG_SPL_OS_BOOT
+int spl_start_uboot(void)
+{
+       return 0;
+}
+#endif
+
 #include <asm/arch/mx6-ddr.h>
 
 static struct mx6ul_iomux_grp_regs mx6_grp_ioregs = {
index 3d4063b136228d5c168f33c12529cfb88b9d85a3..c8d58cbe71c0db96862741264ab274d24dffad39 100644 (file)
@@ -21,6 +21,8 @@ CONFIG_SPL_USB_HOST_SUPPORT=y
 CONFIG_SPL_USB_GADGET_SUPPORT=y
 CONFIG_SPL_USB_SDP_SUPPORT=y
 CONFIG_CMD_BOOTMENU=y
+CONFIG_CMD_SPL=y
+CONFIG_CMD_SPL_WRITE_SIZE=0x20000
 CONFIG_CMD_MEMTEST=y
 CONFIG_CMD_DFU=y
 # CONFIG_CMD_FLASH is not set
index ead242d2ff65e716243219ced5eed9b1e17d595b..8c657c13ac459d814be46521fcbc96535997fe81 100644 (file)
 #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