* [PATCH] ARM: boards: sama5d4 xplained: Use proper header for image start
@ 2025-06-20 7:41 Alexander Shiyan
2025-06-20 11:47 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Shiyan @ 2025-06-20 7:41 UTC (permalink / raw)
To: barebox; +Cc: Alexander Shiyan
Switch to using the SAMA5D4-specific entry function and barebox header
instead of the generic ARM entry points. This aligns the board with
standard AT91 bootstrap practices.
The board is already marked BROKEN, so this refactoring won't cause
regressions but improves code consistency with other AT91 boards.
Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
arch/arm/boards/sama5d4_xplained/lowlevel.c | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/arch/arm/boards/sama5d4_xplained/lowlevel.c b/arch/arm/boards/sama5d4_xplained/lowlevel.c
index 183bd9c5a9..38dc07a973 100644
--- a/arch/arm/boards/sama5d4_xplained/lowlevel.c
+++ b/arch/arm/boards/sama5d4_xplained/lowlevel.c
@@ -4,20 +4,12 @@
* Under GPLv2
*/
-#include <common.h>
-#include <init.h>
+#include <mach/at91/barebox-arm.h>
+#include <mach/at91/ddramc.h>
-#include <asm/barebox-arm-head.h>
-#include <asm/barebox-arm.h>
-
-#include <mach/at91/at91_ddrsdrc.h>
-#include <mach/at91/hardware.h>
-
-void __naked __bare_init barebox_arm_reset_vector(uint32_t r0, uint32_t r1, uint32_t r2)
+SAMA5D4_ENTRY_FUNCTION(start_sama5d4_xplained, r4)
{
arm_cpu_lowlevel_init();
- arm_setup_stack(SAMA5D4_SRAM_BASE + SAMA5D4_SRAM_SIZE);
-
- barebox_arm_entry(SAMA5_DDRCS, at91sama5d4_get_ddram_size(), NULL);
+ sama5d4_barebox_entry(r4, NULL);
}
--
2.39.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-20 12:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-20 7:41 [PATCH] ARM: boards: sama5d4 xplained: Use proper header for image start Alexander Shiyan
2025-06-20 11:47 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox