ARM: rdu2: Initialize DEBUG_LL in entry function
Subsystems (3)
PATCH 1/1 ARM: rdu2: Initialize DEBUG_LL in entry function
When bootstrapping Barebox via JTAG rdu2_sram_setup() won't be executed resulting in non functional DEBUG_LL API. Move low-level UART initialization code to be a part of start_imx6_zii_rdu2() to avoid that problem.
Signed-off-by Andrey Smirnov <[email protected]>
--- arch/arm/boards/zii-imx6q-rdu2/lowlevel.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
arch/arm/boards/zii-imx6q-rdu2/lowlevel.c +5 -5
@@ -271,11 +271,6 @@ static noinline void rdu2_sram_setup(void)enum bootsource bootsrc;int instance; -imx6_ungate_all_peripherals (); - -if (IS_ENABLED (CONFIG_DEBUG_LL )) -setup_uart (); -arm_setup_stack (0x00920000 -8 );relocate_to_current_adr ();setup_c ();
@@ -296,6 +291,11 @@ ENTRY_FUNCTION(start_imx6_zii_rdu2, r0, r1, r2) {imx6_cpu_lowlevel_init (); +imx6_ungate_all_peripherals (); + +if (IS_ENABLED (CONFIG_DEBUG_LL )) +setup_uart (); +/* * When still running in SRAM, we need to setup the DRAM now and load * the remaining image.
Signature · 7 lines
2.21.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 9 lines · Andrey Smirnov
When bootstrapping Barebox via JTAG
rdu2_sram_setup()won't be executed resulting in non functionalDEBUG_LLAPI. Move low-level UART initialization code to be a part ofstart_imx6_zii_rdu2()to avoid that problem.Signed-off-by Andrey Smirnov <[email protected]>--- arch/arm/boards/zii-imx6q-rdu2/lowlevel.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
Applied, thanks
Sascha
Quoted 38 lines
arch/arm/boards/zii-imx6q-rdu2/lowlevel.c +5
-5@@ -271,11 +271,6 @@ static noinline void rdu2_sram_setup(void)enum bootsource bootsrc;int instance; -imx6_ungate_all_peripherals (); - -if (IS_ENABLED (CONFIG_DEBUG_LL )) -setup_uart (); -arm_setup_stack (0x00920000 -8 );relocate_to_current_adr ();setup_c ();@@ -296,6 +291,11 @@ ENTRY_FUNCTION(start_imx6_zii_rdu2, r0, r1, r2) {imx6_cpu_lowlevel_init (); +imx6_ungate_all_peripherals (); + +if (IS_ENABLED (CONFIG_DEBUG_LL )) +setup_uart (); +/* * When still running in SRAM, we need to setup the DRAM now and load * the remaining image. Signature · 7 lines
2.21.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox