On Mon, Jan 20, 2025 at 12:29:20PM +0800, Huan Zhou wrote: > [EXTERNAL MAIL] > > Implement functionality to probe and calculate the DRAM size > during the boot phase for the RISC-V spacemit K1 platform. > > Tested-by: Marcel Ziswiler <[email protected]> # BPI-F3 16G > Signed-off-by: Huan Zhou <[email protected]> > --- > This patch introduce improvement for get dram size on spacemit k1 platform, > retrieving the dram size dynamically. > Have tested on Licheepi LPI3A 8G[1]. > > Links: > [1] https://gist.github.com/per1cycle/e4eab66ebb6f83fe5118e823367fce28 . > > Changes in v5: > - Fix the dummy typo. > - Link to v4: > https://lore.kernel.org/r/[email protected] > > Changes in v4: > - shorten the commit message. > - More proper way for `map_format_size` -> `ddr_map_size` > - Link to v3: > https://lore.kernel.org/r/[email protected] > > Changes in v3: > - Remove the inline attr in arch/riscv/cpu/k1/dram.c map_format_size(). > - Add detailed commit message. > - Link to v2: > https://lore.kernel.org/r/[email protected] > > Changes in v2: > - Fix bracker and return type in map_format_size() function. > - Add test log in the cover letter.. > - Link to v1: > https://lore.kernel.org/r/[email protected] > --- > arch/riscv/cpu/k1/dram.c | 40 ++++++++++++++++++++++++++++++++++++++-- > 1 file changed, 38 insertions(+), 2 deletions(-)
Reviewed-by: Leo Yu-Chi Liang <[email protected]>

