i.MX8MN SoCs offer the same boot ROM API as the i.MX8MP and we already have an imx8mn_bootrom_load_image() providing access to it. Wire it in to allow using SDPS with barebox. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- arch/arm/mach-imx/atf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-imx/atf.c b/arch/arm/mach-imx/atf.c index bb9e04c9746b..a4c658283006 100644 --- a/arch/arm/mach-imx/atf.c +++ b/arch/arm/mach-imx/atf.c @@ -181,6 +181,9 @@ void imx8mn_load_and_start_image_via_tfa(void) case BOOTSOURCE_MMC: imx8mn_esdhc_load_image(instance, false); break; + case BOOTSOURCE_SERIAL: + imx8mn_bootrom_load_image(); + break; default: printf("Unhandled bootsource BOOTSOURCE_%d\n", src); hang(); -- 2.30.2