ARM: at91: pass along bootsource to netbooted barebox
ROM-Code passes boot source information in r4. First stage does likewise
when invoking second stage. When net booting second stage, r4 has no
definite value. Fix this and pass the original boot source along.

This gives us a valid $bootsource value in net booted barebox, which is
important, so the same environment is loaded.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent f9e7a60 commit 1a54512bfcf290f7a2269359838f92aea438f71f
@Ahmad Fatoum Ahmad Fatoum authored on 21 Jul 2020
Sascha Hauer committed on 3 Aug 2020
Showing 8 changed files
View
arch/arm/mach-at91/Makefile
View
arch/arm/mach-at91/bootm-barebox.c 0 → 100644
View
arch/arm/mach-at91/include/mach/cpu.h
View
arch/arm/mach-at91/include/mach/sama5_bootsource.h
View
arch/arm/mach-at91/include/mach/xload.h
View
arch/arm/mach-at91/sama5d2.c
View
arch/arm/mach-at91/setup.c
View
arch/arm/mach-at91/xload-mmc.c