[PATCH v2 4/6] ARM: at91: add __sama5d3_stashed_bootrom_r4 helper
Oleksij Rempel
o.rempel at pengutronix.de
Fri Apr 23 15:28:27 BST 2021
Add sama5d3 specific __sama5d3_stashed_bootrom_r4 helper.
Signed-off-by: Oleksij Rempel <o.rempel at pengutronix.de>
---
arch/arm/mach-at91/include/mach/sama5_bootsource.h | 3 +++
1 file changed, 3 insertions(+)
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) : );
--
2.29.2
More information about the barebox
mailing list