riscv: spacemit: k1: probe dram size during boot phase.
authorHuan Zhou <me@per1cycle.org>
Mon, 20 Jan 2025 04:29:20 +0000 (12:29 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Mon, 3 Feb 2025 03:33:04 +0000 (11:33 +0800)
commit3691fbccfc89eda39faacb3fff3e6edbc9c62cd4
treeb207708de8241fbc8bb6c50393ea7086febfbcc4
parentb6d150b9496fc42a2c88515fa14426ac892c3500
riscv: spacemit: k1: probe dram size during boot phase.

Implement functionality to probe and calculate the DRAM size
during the boot phase for the RISC-V spacemit K1 platform.

Tested-by: Marcel Ziswiler <marcel@ziswiler.com> # BPI-F3 16G
Signed-off-by: Huan Zhou <me@per1cycle.org>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/cpu/k1/dram.c