sunxi: A523: add DRAM initialisation routine
authorJernej Skrabec <jernej.skrabec@gmail.com>
Sun, 29 Dec 2024 20:13:13 +0000 (21:13 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 27 Jul 2025 22:02:09 +0000 (23:02 +0100)
commit39a6a2a8a248cf42f068dae61c6d9a4c8ea4a172
tree6f8032468b592d283ecc5cf0ba38120953f44925
parentd157dec118f8cf81bc60dcfd010cc30bde8e5e23
sunxi: A523: add DRAM initialisation routine

DRAM init code, as per reverse engineering and matching against
previous SoCs. As usual no real documentation, and the DRAM controller
is the usual mixture of close-to-previous IP and new inventions.

This version supports LPDDR4 for now only, as seen on the early boards.

This needs improvements, but it can be done later.

Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/include/asm/arch-sunxi/dram.h
arch/arm/include/asm/arch-sunxi/dram_sun55i_a523.h [new file with mode: 0644]
arch/arm/mach-sunxi/Kconfig
arch/arm/mach-sunxi/Makefile
arch/arm/mach-sunxi/dram_sun55i_a523.c [new file with mode: 0644]
arch/arm/mach-sunxi/dram_timings/Makefile
arch/arm/mach-sunxi/dram_timings/a523_lpddr4.c [new file with mode: 0644]