sunxi: A523: add DDR3 DRAM support
authorMikhail Kalashnikov <iuncuim@gmail.com>
Fri, 3 Jan 2025 05:19:07 +0000 (08:19 +0300)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 27 Jul 2025 22:11:08 +0000 (23:11 +0100)
commit45310eb74b4b420f196acafaf14f06c624a25ae7
tree0080a387395149a00a01681eee9a0a14017ac5ae
parent39a6a2a8a248cf42f068dae61c6d9a4c8ea4a172
sunxi: A523: add DDR3 DRAM support

Add reverse engineered code to add support for DDR3 DRAM chips on the
Allwinner A523 DRAM controller.
The timings are copying what boot0 set up on the X96QPro+ TV box, though
they seem quite suboptimal, with longer latencies that would be required
for DDR3-1600. The chips are also actually capable of DDR3-1833, so
there is room for future improvement.

Signed-off-by: Mikhail Kalashnikov <iuncuim@gmail.com>
[Andre: rework to copy from H616 DDR3 driver, calculate timings]
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/mach-sunxi/Kconfig
arch/arm/mach-sunxi/dram_sun55i_a523.c
arch/arm/mach-sunxi/dram_timings/Makefile
arch/arm/mach-sunxi/dram_timings/a523_ddr3.c [new file with mode: 0644]