diff options
author | Bin Meng <bin.meng@windriver.com> | 2021-01-31 20:35:57 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-02-03 03:38:41 -0700 |
commit | 85c714d8dcd56f63c2c0ae1b0f6a7e4a96c918a4 (patch) | |
tree | 2d185c829f6461849cfbf6d5988233d013506afe /drivers/ddr/microchip/ddr2.c | |
parent | 7a3c628c43f7200684edf81783e11b69fd0fd7df (diff) |
riscv: Adjust board_get_usable_ram_top() for 32-bit
When testing QEMU RISC-V 'virt' machine with a 2 GiB memory
configuration, it was discovered gd->ram_top is assigned to
value zero in setup_dest_addr().
While gd->ram_top should not be declared as type `unsigned long`,
which will be updated in a future patch, the current logic in
board_get_usable_ram_top() can be updated to cover both 64-bit
and 32-bit RISC-V.
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Diffstat (limited to 'drivers/ddr/microchip/ddr2.c')
0 files changed, 0 insertions, 0 deletions