diff mbox

[U-Boot] igep003x: Falcon mode

Message ID 20170625083047.x7jcyodwiqmkra2w@lenoch
State Accepted
Commit ab3b7770b6a39741bdad2b24a58b69b868863780
Delegated to: Tom Rini
Headers show

Commit Message

Ladislav Michl June 25, 2017, 8:30 a.m. UTC
Implement spl_start_uboot to let Falcon mode work.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
 board/isee/igep003x/board.c       | 8 ++++++++
 configs/am335x_igep003x_defconfig | 1 +
 2 files changed, 9 insertions(+)

Comments

Heiko Schocher June 26, 2017, 5:10 a.m. UTC | #1
Hello Ladislav,

Am 25.06.2017 um 10:30 schrieb Ladislav Michl:
> Implement spl_start_uboot to let Falcon mode work.
>
> Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
> ---
>   board/isee/igep003x/board.c       | 8 ++++++++
>   configs/am335x_igep003x_defconfig | 1 +
>   2 files changed, 9 insertions(+)

Thanks!

Acked-by: Heiko Schocher <hs@denx.de>

bye,
Heiko
>
> diff --git a/board/isee/igep003x/board.c b/board/isee/igep003x/board.c
> index 2d0ebbf5ef..e33170d65f 100644
> --- a/board/isee/igep003x/board.c
> +++ b/board/isee/igep003x/board.c
> @@ -166,6 +166,14 @@ void sdram_init(void)
>   		config_ddr(400, &ioregs_igep0034_lite, &ddr3_igep0034_lite_data,
>   			&ddr3_igep0034_lite_cmd_ctrl_data, &ddr3_igep0034_lite_emif_reg_data, 0);
>   }
> +
> +#ifdef CONFIG_SPL_OS_BOOT
> +int spl_start_uboot(void)
> +{
> +	/* break into full u-boot on 'c' */
> +	return serial_tstc() && serial_getc() == 'c';
> +}
> +#endif
>   #endif
>
>   /*
> diff --git a/configs/am335x_igep003x_defconfig b/configs/am335x_igep003x_defconfig
> index df7d1c69af..8fc31461f1 100644
> --- a/configs/am335x_igep003x_defconfig
> +++ b/configs/am335x_igep003x_defconfig
> @@ -22,6 +22,7 @@ CONFIG_SPL_STACK_R=y
>   CONFIG_SPL_EXT_SUPPORT=y
>   CONFIG_SPL_I2C_SUPPORT=y
>   CONFIG_SPL_MTD_SUPPORT=y
> +CONFIG_SPL_OS_BOOT=y
>   CONFIG_SPL_POWER_SUPPORT=y
>   CONFIG_SPL_YMODEM_SUPPORT=y
>   CONFIG_HUSH_PARSER=y
>
Tom Rini July 7, 2017, 11:41 a.m. UTC | #2
On Sun, Jun 25, 2017 at 10:30:47AM +0200, Ladislav Michl wrote:

> Implement spl_start_uboot to let Falcon mode work.
> 
> Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
> Acked-by: Heiko Schocher <hs@denx.de>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/board/isee/igep003x/board.c b/board/isee/igep003x/board.c
index 2d0ebbf5ef..e33170d65f 100644
--- a/board/isee/igep003x/board.c
+++ b/board/isee/igep003x/board.c
@@ -166,6 +166,14 @@  void sdram_init(void)
 		config_ddr(400, &ioregs_igep0034_lite, &ddr3_igep0034_lite_data,
 			&ddr3_igep0034_lite_cmd_ctrl_data, &ddr3_igep0034_lite_emif_reg_data, 0);
 }
+
+#ifdef CONFIG_SPL_OS_BOOT
+int spl_start_uboot(void)
+{
+	/* break into full u-boot on 'c' */
+	return serial_tstc() && serial_getc() == 'c';
+}
+#endif
 #endif
 
 /*
diff --git a/configs/am335x_igep003x_defconfig b/configs/am335x_igep003x_defconfig
index df7d1c69af..8fc31461f1 100644
--- a/configs/am335x_igep003x_defconfig
+++ b/configs/am335x_igep003x_defconfig
@@ -22,6 +22,7 @@  CONFIG_SPL_STACK_R=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_MTD_SUPPORT=y
+CONFIG_SPL_OS_BOOT=y
 CONFIG_SPL_POWER_SUPPORT=y
 CONFIG_SPL_YMODEM_SUPPORT=y
 CONFIG_HUSH_PARSER=y