summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-06-03 12:28:57 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2019-06-04 10:27:54 +0200
commitb518f0e7801c0677c4288cad5a3908a1198c3ab9 (patch)
treed76ce8ea4c9ad3aefd0ea09764816ffb965e04c8 /arch/arm/boards
parentd0b67df6c65f85045908099d1b284c9d96d22fe4 (diff)
downloadbarebox-b518f0e7801c0677c4288cad5a3908a1198c3ab9.tar.gz
barebox-b518f0e7801c0677c4288cad5a3908a1198c3ab9.tar.xz
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 <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards')
-rw-r--r--arch/arm/boards/zii-imx6q-rdu2/lowlevel.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/boards/zii-imx6q-rdu2/lowlevel.c b/arch/arm/boards/zii-imx6q-rdu2/lowlevel.c
index a5ac6f64c2..9672a69bfd 100644
--- a/arch/arm/boards/zii-imx6q-rdu2/lowlevel.c
+++ b/arch/arm/boards/zii-imx6q-rdu2/lowlevel.c
@@ -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.