aboutsummaryrefslogtreecommitdiff
path: root/scripts/dtc/pylibfdt/setup.py
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2023-01-05 02:22:22 +0100
committerPatrick Delaunay <patrick.delaunay@foss.st.com>2023-01-06 11:02:17 +0100
commita2e0b041d662e4c80502cd5c9a8326d026f9deb1 (patch)
tree492f45518ea4272de62dd40c5aba44bd32eb2baf /scripts/dtc/pylibfdt/setup.py
parent8d6cbf5e6bc4e10e38b954763fa025caed517cc2 (diff)
arm: stm32mp: Fix board_get_usable_ram_top() again
Do not access gd->ram_size and assume this is actual valid RAM size. Since commit 777aaaa706b ("common/memsize.c: Fix get_effective_memsize() to check for overflow") the RAM size may be less than gd->ram_size , call get_effective_memsize() to get the limited value instead. The aforementioned commit makes STM32MP15xx boards with 1 GiB of DRAM at 0xc0000000 hang on boot, which is a grave defect. Signed-off-by: Marek Vasut <marex@denx.de> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'scripts/dtc/pylibfdt/setup.py')
0 files changed, 0 insertions, 0 deletions