mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Jonas Rebmann <jre@pengutronix.de>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	BAREBOX <barebox@lists.infradead.org>
Subject: Re: [PATCH 1/2] ARM: i.MX8M: Add support for eCSPI boot
Date: Wed, 11 Jun 2025 10:13:06 +0200	[thread overview]
Message-ID: <031c088c-4c05-4c94-a663-11de9f5617df@pengutronix.de> (raw)
In-Reply-To: <20250610-imx8mp_ecspi-v1-1-d14d1e9d65f3@pengutronix.de>

Hello Jonas,

On 6/10/25 17:30, Jonas Rebmann wrote:
> Load and boot barebox via eCSPI when started so via bootrom.
> 
> Only tested on i.MX8MP
> 
> Signed-off-by: Jonas Rebmann <jre@pengutronix.de>
> ---
>  arch/arm/mach-imx/atf.c       |  4 ++++
>  arch/arm/mach-imx/xload-spi.c | 38 ++++++++++++++++++++++++++++++++++++++
>  include/mach/imx/xload.h      |  1 +
>  3 files changed, 43 insertions(+)
> 
> diff --git a/arch/arm/mach-imx/atf.c b/arch/arm/mach-imx/atf.c
> index 6dc80cb70054eca2aa70b0cfc989baf2a5b75232..6993e33baa39c87afa15ee7302e574d096fde7a5 100644
> --- a/arch/arm/mach-imx/atf.c
> +++ b/arch/arm/mach-imx/atf.c
> @@ -16,6 +16,7 @@
>  #include <soc/fsl/caam.h>
>  #include <tee/optee.h>
>  #include <mach/imx/ele.h>
> +#include <mach/imx/xload.h>
>  
>  /**
>   * imx8m_atf_load_bl31 - Load ATF BL31 blob and transfer control to it
> @@ -193,6 +194,9 @@ void imx8mp_load_bl33(void *bl33)
>  	case BOOTSOURCE_SPI:
>  		imx8mp_qspi_load_image(instance, bl33);
>  		break;
> +	case BOOTSOURCE_SPI_NOR:
> +		imx8m_ecspi_load_image(instance, bl33);

Can you send a fixup enabling this for all imx8m*_ variants?

Thanks,
Ahmad

-- 
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:[~2025-06-11  8:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-10 15:30 [PATCH 0/2] Add support for eCSPI boot on i.MX8M Jonas Rebmann
2025-06-10 15:30 ` [PATCH 1/2] ARM: i.MX8M: Add support for eCSPI boot Jonas Rebmann
2025-06-11  8:13   ` Ahmad Fatoum [this message]
2025-06-10 15:30 ` [PATCH 2/2] ARM: i.MX8M: Add bbu " Jonas Rebmann
2025-06-11  7:04 ` [PATCH 0/2] Add support for eCSPI boot on i.MX8M 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=031c088c-4c05-4c94-a663-11de9f5617df@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=jre@pengutronix.de \
    --cc=s.hauer@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