]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
i.MX6Q: icorem6: Add falcon mode
authorJagan Teki <jagan@amarulasolutions.com>
Mon, 28 Aug 2017 11:15:48 +0000 (16:45 +0530)
committerStefano Babic <sbabic@denx.de>
Wed, 30 Aug 2017 10:18:41 +0000 (12:18 +0200)
Add Falcon mode support in Engicam i.CoreM6 board.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
board/engicam/common/spl.c
configs/imx6qdl_icore_mmc_defconfig
include/configs/imx6-engicam.h

index 29a27ce80f7a97450bc624e6f9a2a298a0f3a924..6964c131d90dd660bb6ef0d5f56c86b4cb319877 100644 (file)
@@ -39,6 +39,17 @@ static iomux_v3_cfg_t const uart_pads[] = {
 #endif
 };
 
+#ifdef CONFIG_SPL_OS_BOOT
+int spl_start_uboot(void)
+{
+       /* break into full u-boot on 'c' */
+       if (serial_tstc() && serial_getc() == 'c')
+               return 1;
+
+       return 0;
+}
+#endif
+
 #ifdef CONFIG_MX6QDL
 /*
  * Driving strength:
index 9d61c488180a7f4a0e634f3b325b8ceb82c669c1..4baed1cf37fe49811444b36244c10abf9f3edd2c 100644 (file)
@@ -48,3 +48,4 @@ CONFIG_DEBUG_UART_CLOCK=24000000
 CONFIG_MXC_UART=y
 CONFIG_IMX_THERMAL=y
 CONFIG_VIDEO_IPUV3=y
+CONFIG_SPL_OS_BOOT=y
index e0bdb656b2676c202df63a7938fa2573965a7d64..a1b70361560f2b5b174b7d98d28291c24631a7eb 100644 (file)
 # define CONFIG_MII
 #endif
 
+/* Falcon Mode */
+#ifdef CONFIG_SPL_OS_BOOT
+# define CONFIG_SPL_FS_LOAD_ARGS_NAME  "args"
+# define CONFIG_SPL_FS_LOAD_KERNEL_NAME        "uImage"
+# define CONFIG_CMD_SPL
+# define CONFIG_SYS_SPL_ARGS_ADDR      0x18000000
+# define CONFIG_CMD_SPL_WRITE_SIZE     (128 * SZ_1K)
+
+/* 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
+
 /* Framebuffer */
 #ifdef CONFIG_VIDEO_IPUV3
 # define CONFIG_IPUV3_CLK              260000000