diff options
author | Oleksij Rempel <o.rempel@pengutronix.de> | 2021-04-23 16:28:27 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-05-17 09:00:16 +0200 |
commit | ffaddea2324866840f1aec041edcdc2d87dab21a (patch) | |
tree | 8914e1bafdfdb1cd74e7d8ad07f27d990aec3428 | |
parent | e30fb46597d308e62af561d91524a5d8b4a46e5a (diff) | |
download | barebox-ffaddea2324866840f1aec041edcdc2d87dab21a.tar.gz barebox-ffaddea2324866840f1aec041edcdc2d87dab21a.tar.xz |
ARM: at91: add __sama5d3_stashed_bootrom_r4 helper
Add sama5d3 specific __sama5d3_stashed_bootrom_r4 helper.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://lore.barebox.org/20210423142829.29468-5-o.rempel@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/arm/mach-at91/include/mach/sama5_bootsource.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/include/mach/sama5_bootsource.h b/arch/arm/mach-at91/include/mach/sama5_bootsource.h index 8355c2eeb6..931e1f29c8 100644 --- a/arch/arm/mach-at91/include/mach/sama5_bootsource.h +++ b/arch/arm/mach-at91/include/mach/sama5_bootsource.h @@ -46,6 +46,9 @@ static inline int sama5_bootsource_instance(u32 reg) #define __sama5d2_stashed_bootrom_r4 \ (*(volatile u32 *)(SAMA5D2_SRAM_BASE + SAMA5D2_SRAM_SIZE - 0x4)) +#define __sama5d3_stashed_bootrom_r4 \ + (*(volatile u32 *)(SAMA5D3_SRAM_BASE + SAMA5D3_SRAM_SIZE - 0x4)) + static inline void __noreturn sama5_boot_xload(void __noreturn (*bb)(void), u32 r4) { asm volatile("mov r4, %0" : : "r"(r4) : ); |