]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: remove dram_init_banksize()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 26 Sep 2023 07:16:34 +0000 (09:16 +0200)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 19 Oct 2023 09:29:32 +0000 (17:29 +0800)
commit9385c9b0cd9761b49033df13ccf45d3dd17f4027
tree5074540b380b90e588fc5af21a39f80d9e7b8245
parent9a0cf3993f71043ba08c315572c54622de42d447
riscv: remove dram_init_banksize()

Remove dram_init_banksize() on the architecture level.

Limiting used RAM to under 4 GiB is only necessary for CPUs which have a
DMA issue. SoC specific code already exists for FU540, FU740, JH7110.

Not all RISC-V boards will have memory below 4 GiB.

A weak implementation of dram_init_banksize() exists in common/board_f.c.

See the discussion in
https://lore.kernel.org/u-boot/545fe813-cb1e-469c-a131-0025c77aeaa2@canonical.com/T/

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
arch/riscv/cpu/generic/dram.c