[PATCH 2/9] arm: socfgpa: agilex5: remove unused memsize
Michael Tretter
m.tretter at pengutronix.de
Thu Apr 16 02:48:06 PDT 2026
The memsize parameter isn't used when loading the TF-A. Furthermore,
using a fixed memory size may be wrong if inline ecc is enabled, because
inline ecc reduces the amount of usable memory.
Remove the parameter to avoid confusion.
Signed-off-by: Michael Tretter <m.tretter at pengutronix.de>
---
arch/arm/boards/arrow-axe5-eagle/lowlevel.c | 2 +-
arch/arm/mach-socfpga/atf.c | 2 +-
include/mach/socfpga/generic.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boards/arrow-axe5-eagle/lowlevel.c b/arch/arm/boards/arrow-axe5-eagle/lowlevel.c
index 6b158305fdb5..41c1b832a682 100644
--- a/arch/arm/boards/arrow-axe5-eagle/lowlevel.c
+++ b/arch/arm/boards/arrow-axe5-eagle/lowlevel.c
@@ -63,7 +63,7 @@ static noinline void axe5_eagle_continue(void)
socfpga_mailbox_s10_init();
socfpga_mailbox_s10_qspi_open();
- agilex5_load_and_start_image_via_tfa(SZ_1G);
+ agilex5_load_and_start_image_via_tfa();
}
fdt = __dtb_z_socfpga_agilex5_axe5_eagle_start;
diff --git a/arch/arm/mach-socfpga/atf.c b/arch/arm/mach-socfpga/atf.c
index 98460472227e..3ad19e33ac94 100644
--- a/arch/arm/mach-socfpga/atf.c
+++ b/arch/arm/mach-socfpga/atf.c
@@ -9,7 +9,7 @@
#include <mach/socfpga/generic.h>
#include <mach/socfpga/soc64-regs.h>
-void __noreturn agilex5_load_and_start_image_via_tfa(unsigned long memsize)
+void __noreturn agilex5_load_and_start_image_via_tfa(void)
{
void *bl31 = (void *)AGILEX5_ATF_BL31_BASE_ADDR;
void *bl33 = (void *)AGILEX5_ATF_BL33_BASE_ADDR;
diff --git a/include/mach/socfpga/generic.h b/include/mach/socfpga/generic.h
index 07add9ed40d6..06768e9ec0a0 100644
--- a/include/mach/socfpga/generic.h
+++ b/include/mach/socfpga/generic.h
@@ -100,7 +100,7 @@ static inline void arria10_watchdog_disable(void) {}
#endif
int agilex5_clk_init(void);
-void __noreturn agilex5_load_and_start_image_via_tfa(unsigned long memsize);
+void __noreturn agilex5_load_and_start_image_via_tfa(void);
static inline void __udelay(unsigned us)
{
--
2.47.3
More information about the barebox
mailing list