mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Sascha Hauer" <s.hauer@pengutronix.de>
To: "Ahmad Fatoum" <a.fatoum@pengutronix.de>
Cc: BAREBOX <barebox@lists.infradead.org>,
	Fabian Pflug <f.pflug@pengutronix.de>
Subject: Re: [PATCH v2 2/2] ARM: i.MX: riotboard: switch to imx6q_barebox_entry
Date: Tue, 12 May 2026 06:24:28 +0000	[thread overview]
Message-ID: <E1wMgXc-0000000HaqW-2JlO@pty.whiteo.stw.pengutronix.de> (raw)
In-Reply-To: <fbe6e09e-4b21-4638-8254-1c46a75b5c91@pengutronix.de>

On 2026-05-11 15:48, Ahmad Fatoum wrote:
> Hi,
> 
> On 5/11/26 3:32 PM, Fabian Pflug wrote:
> > Make use of the imx6q_barebox_entry instead of calling
> > barebox_arm_entry directly, which allows us to profit from optional
> > OP-TEE loading in this function.
> > Always setup UART, in case OP-TEE gets integrated, which will crash if
> > the UART is not configured correctly and debug is enabled.
> > Since now a bit more functions are called, we use
> > relocate_to_current_adr instead of get_runtime_offset.
> > 
> > This should not change behaviour of current implementations, but makes
> > way for OP-TEE implementations.
> > 
> > Signed-off-by: Fabian Pflug <f.pflug@pengutronix.de>
> 
> Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> 
> Minor comment below:
> 
> > -ENTRY_FUNCTION(start_imx6s_riotboard, r0, r1, r2)
> > +static noinline void continue_imx6s_riotboard(void)
> >  {
> > -	void *fdt;
> > +	void __iomem *iomuxbase = IOMEM(MX6_IOMUXC_BASE_ADDR);
> >  
> > -	imx6_cpu_lowlevel_init();
> > +	writel(0x4, iomuxbase + 0x016c);
> > +
> > +	imx6_ungate_all_peripherals();
> > +	// if uart ist not set-up, then OP-TEE will fail if debugging is enabled.
> > +	imx6_uart_setup(IOMEM(MX6_UART2_BASE_ADDR));
> >  
> >  	if (IS_ENABLED(CONFIG_DEBUG_LL)) {
> 
> This if claude can be removed.

Fixed while applying.

Sascha

--
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



  reply	other threads:[~2026-05-12  6:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-11 13:32 [PATCH v2 0/2] ARM: i.MX: riotboard: Add OP-TEE integration Fabian Pflug
2026-05-11 13:32 ` [PATCH v2 1/2] ARM: i.MX: riotboard: add tzasc.h to flashheader Fabian Pflug
2026-05-11 13:32 ` [PATCH v2 2/2] ARM: i.MX: riotboard: switch to imx6q_barebox_entry Fabian Pflug
2026-05-11 13:48   ` Ahmad Fatoum
2026-05-12  6:24     ` Sascha Hauer [this message]
2026-05-12  6:23 ` [PATCH v2 0/2] ARM: i.MX: riotboard: Add OP-TEE integration Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1wMgXc-0000000HaqW-2JlO@pty.whiteo.stw.pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=f.pflug@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox