summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-08-22 10:57:31 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-08-23 10:10:09 +0200
commit058556a5163c68e13ce165f861b895b9f6e9ac32 (patch)
tree2742d989ad5d7c042d868ac831a457a431ce25f7
parent10f3061d97e610ceee0ea43cb04bb8fd0b0e96c2 (diff)
downloadbarebox-058556a5163c68e13ce165f861b895b9f6e9ac32.tar.gz
barebox-058556a5163c68e13ce165f861b895b9f6e9ac32.tar.xz
ARM: nxp-imx8mq-evk: Update comments
The comments mention contents of register r0, this is outdated. We base our decisions on the current EL. Update the comments. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reviewed-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
-rw-r--r--arch/arm/boards/nxp-imx8mq-evk/lowlevel.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/arm/boards/nxp-imx8mq-evk/lowlevel.c b/arch/arm/boards/nxp-imx8mq-evk/lowlevel.c
index 46dba16ec3..9d060fb589 100644
--- a/arch/arm/boards/nxp-imx8mq-evk/lowlevel.c
+++ b/arch/arm/boards/nxp-imx8mq-evk/lowlevel.c
@@ -88,11 +88,9 @@ static __noreturn noinline void nxp_imx8mq_evk_start(void)
setup_uart();
/*
- * if register r0 does not contain 1, we are running for the first time
- * and need to initialize the DRAM, install the trampoline and run TF-A
- * (BL31).
- * Otherwise the 1 indicates that the DRAM setup and trampoline are
- * already installed and TF-A has been run. In this case we can skip
+ * If we are in EL3 we are running for the first time and need to
+ * initialize the DRAM and run TF-A (BL31). The TF-A will then jump
+ * to DRAM in EL2.
*/
if (current_el() == 3) {
nxp_imx8mq_evk_sram_setup();
@@ -103,6 +101,7 @@ static __noreturn noinline void nxp_imx8mq_evk_start(void)
*/
memcpy((void *)MX8MQ_ATF_BL33_BASE_ADDR, _text, __bss_start - _text);
imx8mq_atf_load_bl31(bl31, bl31_size);
+ /* not reached */
}
imx8_get_boot_source(&src, &instance);