diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-07-21 08:14:33 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-08-03 23:32:54 +0200 |
commit | 1a54512bfcf290f7a2269359838f92aea438f71f (patch) | |
tree | fa84e86ade5167b8efa4430cfeddc61b4de51674 /arch/arm/mach-at91/include/mach/cpu.h | |
parent | f9e7a605a8e1e6db11f62f2a9335c3775b44b220 (diff) | |
download | barebox-1a54512bfcf290f7a2269359838f92aea438f71f.tar.gz barebox-1a54512bfcf290f7a2269359838f92aea438f71f.tar.xz |
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>
Diffstat (limited to 'arch/arm/mach-at91/include/mach/cpu.h')
-rw-r--r-- | arch/arm/mach-at91/include/mach/cpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/include/mach/cpu.h b/arch/arm/mach-at91/include/mach/cpu.h index 6e0f25f325..fa25a4783b 100644 --- a/arch/arm/mach-at91/include/mach/cpu.h +++ b/arch/arm/mach-at91/include/mach/cpu.h @@ -167,6 +167,7 @@ struct at91_socinfo { extern struct at91_socinfo at91_soc_initdata; const char *at91_get_soc_type(struct at91_socinfo *c); const char *at91_get_soc_subtype(struct at91_socinfo *c); +extern unsigned long at91_bootsource; static inline int at91_soc_is_detected(void) { |