diff options
author | Jagan Teki <jagan@amarulasolutions.com> | 2018-05-07 11:21:39 +0530 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2018-05-18 08:23:43 +0200 |
commit | 9e759ce9044a978e90e3bd0d40bf4f29f19e267b (patch) | |
tree | 390772022ad39a240975759b7e8fec19e329c2fb /board/bticino/mamoj/spl.c | |
parent | 129ceda20217b2ac0adae16d9cce4710319c4849 (diff) |
configs: imx6dl-mamoj: Add Falcon mode support
Add Falcon mode support to boot Linux directly after SPL.
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'board/bticino/mamoj/spl.c')
-rw-r--r-- | board/bticino/mamoj/spl.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/board/bticino/mamoj/spl.c b/board/bticino/mamoj/spl.c index 4274cc87123..c52183749f8 100644 --- a/board/bticino/mamoj/spl.c +++ b/board/bticino/mamoj/spl.c @@ -30,6 +30,17 @@ static iomux_v3_cfg_t const uart3_pads[] = { IOMUX_PADS(PAD_EIM_D25__UART3_RX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL)), }; +#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 + struct mx6sdl_iomux_ddr_regs mx6sdl_ddr_ioregs = { .dram_sdclk_0 = IMX6SDL_DRIVE_STRENGTH, .dram_sdclk_1 = IMX6SDL_DRIVE_STRENGTH, |