diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2021-06-21 11:27:55 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-06-21 13:11:57 +0200 |
commit | 325c40760866f1dc08d800dbc34d49e66da0205c (patch) | |
tree | a46d8b449e70b08372db328ceeae2274f0410498 /arch/arm/include | |
parent | 63f612f9e0ea2a9729b874ab45c3d9af45394d0d (diff) | |
download | barebox-325c40760866f1dc08d800dbc34d49e66da0205c.tar.gz barebox-325c40760866f1dc08d800dbc34d49e66da0205c.tar.xz |
ARM: Add relocate_to_adr_full()
relocate_to_adr() currently relocates the PBL code to another address,
but doesn't move the piggy data (compressed barebox image). This patch
adds relocate_to_adr_full() which moves the full image including the
piggy data. This is needed for upcoming Rockchip RK3568 support. Here
we are started at address 0x0, but must move away from that address as
this is where the ATF/OP-Tee binaries are expected to be loaded.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://lore.barebox.org/20210615141641.31577-6-s.hauer@pengutronix.de
Link: https://lore.barebox.org/20210621092802.27275-6-s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/barebox-arm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/barebox-arm.h b/arch/arm/include/asm/barebox-arm.h index 348a55e804..24f9bce2ef 100644 --- a/arch/arm/include/asm/barebox-arm.h +++ b/arch/arm/include/asm/barebox-arm.h @@ -53,6 +53,7 @@ void setup_c(void); void pbl_barebox_break(void); void relocate_to_current_adr(void); void relocate_to_adr(unsigned long target); +void relocate_to_adr_full(unsigned long target); void __noreturn barebox_arm_entry(unsigned long membase, unsigned long memsize, void *boarddata); struct barebox_arm_boarddata { |