]> git.dujemihanovic.xyz Git - u-boot.git/commit
ram: stm32mp1: compute DDR size from DDRCTL registers
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Wed, 24 Nov 2021 09:52:18 +0000 (10:52 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 30 Nov 2021 15:43:28 +0000 (16:43 +0100)
commitd72e7bbe7c2841f161848d57b723495a731d0121
treea63817010a300a77f917f93a4e8a1ce3422c5843
parente84ee40b0b2d378aab66e45315ff835954b2078f
ram: stm32mp1: compute DDR size from DDRCTL registers

Compute the DDR size from DDR controller register (mstr and addrmap)
in U-Boot proper as the DDR information are useful only for SPL
but not for U-Boot proper, for example with TFABOOT.

This patch simplify U-Boot DT when several DDR size are supported
and support of next SOC in STM32MP family.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
drivers/ram/stm32mp1/stm32mp1_ddr_regs.h
drivers/ram/stm32mp1/stm32mp1_ram.c