mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/9] arm: socfpga: agilex5: rework low level code
@ 2026-04-16  9:48 Michael Tretter
  2026-04-16  9:48 ` [PATCH 1/9] arm: socfpga: agilex5: cleanup TF-A loading Michael Tretter
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Michael Tretter @ 2026-04-16  9:48 UTC (permalink / raw)
  To: Sascha Hauer, BAREBOX; +Cc: Steffen Trumtrar, Michael Tretter

The available SDRAM on an Agilex 5 system isn't fixed, but may change
based on the system configuration. If inline ECC is enabled, 1/8 of the
SDRAM is used for checksums. The memory reserved for the TF-A is also
not usable by barebox. Thus, using hard-coded memory limits is not
sufficient even on a board level.

Rework the Agilex 5 low level code to respect the memory configuration
by reading the available memory from the firewall configuration. The
rework also allows moving the entry code from board-specific code to SoC
specific code.

Patch 1 and 2 clean the TF-A loading as preparation.

Patch 3 to 6 clean and fix the setup and read back of the firewall
configuration.

Patch 7 switches the Arrow AXE5-Eagle development board from fixed
memory limits to the memory limits from the firewall configuration.

Patches 8 and 9 extract the now reusable lowlevel code from the
board-specific code.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
---
Michael Tretter (9):
      arm: socfpga: agilex5: cleanup TF-A loading
      arm: socfgpa: agilex5: remove unused memsize
      arm: socfpga: agilex5: configure firewall with base and size
      arm: socfpga: agilex5: fix read of memory limit
      arm: socfpga: agilex5: fix SDRAM size calculation
      arm: socfpga: agilex5: remove unused declarations
      arm: socfpga: agilex5: read SDRAM limits from firewall
      arm: socfpga: agilex5: add agilex5_barebox_entry
      arm: socfpga: agilex5: add explicit unreachable after TF-A load

 arch/arm/boards/arrow-axe5-eagle/lowlevel.c | 30 +--------------
 arch/arm/mach-socfpga/agilex5-sdram.c       | 27 ++++++-------
 arch/arm/mach-socfpga/atf.c                 | 59 ++++++++++++++++++++++++-----
 include/mach/socfpga/generic.h              |  2 +-
 include/mach/socfpga/soc64-sdram.h          | 36 +++++++++---------
 5 files changed, 82 insertions(+), 72 deletions(-)
---
base-commit: 2f83a1e9e4ecf9f2fe1948550801c27a60769d2b
change-id: 20260416-socfpga-agilex5-sdram-e2a429635bac

Best regards,
-- 
Michael Tretter <m.tretter@pengutronix.de>




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-04-17  8:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-16  9:48 [PATCH 0/9] arm: socfpga: agilex5: rework low level code Michael Tretter
2026-04-16  9:48 ` [PATCH 1/9] arm: socfpga: agilex5: cleanup TF-A loading Michael Tretter
2026-04-16  9:48 ` [PATCH 2/9] arm: socfgpa: agilex5: remove unused memsize Michael Tretter
2026-04-16  9:48 ` [PATCH 3/9] arm: socfpga: agilex5: configure firewall with base and size Michael Tretter
2026-04-16  9:48 ` [PATCH 4/9] arm: socfpga: agilex5: fix read of memory limit Michael Tretter
2026-04-16  9:48 ` [PATCH 5/9] arm: socfpga: agilex5: fix SDRAM size calculation Michael Tretter
2026-04-16  9:48 ` [PATCH 6/9] arm: socfpga: agilex5: remove unused declarations Michael Tretter
2026-04-16  9:48 ` [PATCH 7/9] arm: socfpga: agilex5: read SDRAM limits from firewall Michael Tretter
2026-04-16  9:48 ` [PATCH 8/9] arm: socfpga: agilex5: add agilex5_barebox_entry Michael Tretter
2026-04-16  9:48 ` [PATCH 9/9] arm: socfpga: agilex5: add explicit unreachable after TF-A load Michael Tretter
2026-04-17  8:25 ` [PATCH 0/9] arm: socfpga: agilex5: rework low level code Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox