board: phytec: phycore-am62x: Add DDR size fixups if ECC is enabled
authorWadim Egorov <w.egorov@phytec.de>
Wed, 15 Jan 2025 09:41:29 +0000 (10:41 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 23 Jan 2025 18:11:50 +0000 (12:11 -0600)
commit86f3c1cc4750e9de0ee1f44c03219b919f49365a
tree2656e6e4bfd66d4478420361f2869a2de24f3218
parent8352727e331d16c790d0e0105f58bdfd27b227b6
board: phytec: phycore-am62x: Add DDR size fixups if ECC is enabled

With commit 22ce56a3ebdb ("ram: k3-ddrss: Add k3_ddrss_ddr_bank_base_size_calc()
to solve 'calculations restricted to 32 bits' issue") we need to provide the
detected RAM size in the device tree node prio to K3 DDRSS driver probe.
This is done by calling fdt_fixup_memory_banks() in do_board_detect().

After probing, call into k3-ddrss driver to fixup device tree and resize
the available amount of DDR if ECC is enabled.

A third fixup is required from A53 SPL to take the fixup
as done from R5 SPL and apply it to DT passed to A53 U-boot,
which in turn passes this to the OS.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
board/phytec/phycore_am62x/phycore-am62x.c