]> git.baikalelectronics.ru Git - uboot.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)
commit32d697237df3b490cccf3d8aa21392599eef36a9
treea63817010a300a77f917f93a4e8a1ce3422c5843
parent5d1dcc72c623df04a530c0addedc74b1c5f48e77
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