From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i0mZd-0003C9-M2 for barebox@lists.infradead.org; Thu, 22 Aug 2019 12:52:19 +0000 From: Sascha Hauer Date: Thu, 22 Aug 2019 14:51:58 +0200 Message-Id: <20190822125158.10296-9-s.hauer@pengutronix.de> In-Reply-To: <20190822125158.10296-1-s.hauer@pengutronix.de> References: <20190822125158.10296-1-s.hauer@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 8/8] ARM: nxp-imx8mq-evk: Update comments To: Barebox List 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 --- arch/arm/boards/nxp-imx8mq-evk/lowlevel.c | 9 ++++----- 1 file 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); -- 2.20.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox