[PATCH 1/2] ARM: i.MX8M: Add support for eCSPI boot
Ahmad Fatoum
a.fatoum at pengutronix.de
Wed Jun 11 01:13:06 PDT 2025
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 at 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 |
More information about the barebox
mailing list