summaryrefslogtreecommitdiffstats
path: root/board/technexion/pico-imx6
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 /board/technexion/pico-imx6
parent953c2500bc0c0d72d9099319381542feb9905ea3 (diff)
downloadu-boot-77ecf95f22dc5cb0a9709805dd22555007d60b34.tar.gz
u-boot-77ecf95f22dc5cb0a9709805dd22555007d60b34.tar.xz
u-boot-77ecf95f22dc5cb0a9709805dd22555007d60b34.zip
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 'board/technexion/pico-imx6')
-rw-r--r--board/technexion/pico-imx6/spl.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/board/technexion/pico-imx6/spl.c b/board/technexion/pico-imx6/spl.c
index 5bf87023ac..06ad0a8c32 100644
--- a/board/technexion/pico-imx6/spl.c
+++ b/board/technexion/pico-imx6/spl.c
@@ -27,6 +27,17 @@
#define IMX6DQ_DRIVE_STRENGTH 0x30
#define IMX6SDL_DRIVE_STRENGTH 0x28
+#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
+
/* configure MX6Q/DUAL mmdc DDR io registers */
static struct mx6dq_iomux_ddr_regs mx6dq_ddr_ioregs = {
.dram_sdclk_0 = IMX6DQ_DRIVE_STRENGTH,