diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-07-01 11:11:19 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-07-14 20:32:56 +0200 |
commit | 5991cb8eeb8a4eea2587be3b1d1b45d845bd3c68 (patch) | |
tree | feed9136ff5978a2c7ea1b62cb089325cd40b7c2 /arch/arm/boards/sama5d27-som1 | |
parent | 7208a44d8bc6058a120d49b7061e2b9f9c0502c8 (diff) | |
download | barebox-5991cb8eeb8a4eea2587be3b1d1b45d845bd3c68.tar.gz barebox-5991cb8eeb8a4eea2587be3b1d1b45d845bd3c68.tar.xz |
ARM: at91: sama5d2: populate $bootsource and $bootsource_instance
The BootROM passes us information about the boot medium in r4 and we
already use that in first stage and pass it along to second stage
PBL already. To make use of it, we need to pass it to barebox proper, do
this by writing it in the last 4 bytes of the SRAM. As second stage
always run in DRAM, this is safe to do.
We could also write to SRAM directly from first stage, but at91bootstrap
passes info in r4 as well for the sama5d3 boards, so we do it likewise
to maintain compatibility.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/sama5d27-som1')
-rw-r--r-- | arch/arm/boards/sama5d27-som1/lowlevel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/boards/sama5d27-som1/lowlevel.c b/arch/arm/boards/sama5d27-som1/lowlevel.c index 792e065076..b093711918 100644 --- a/arch/arm/boards/sama5d27-som1/lowlevel.c +++ b/arch/arm/boards/sama5d27-som1/lowlevel.c @@ -69,5 +69,5 @@ SAMA5_ENTRY_FUNCTION(start_sama5d27_som1_ek, r4) fdt = __dtb_z_at91_sama5d27_som1_ek_start + get_runtime_offset(); ek_turn_led(RGB_LED_GREEN); - sama5d2_barebox_entry(fdt); + sama5d2_barebox_entry(r4, fdt); } |