sunxi: a523: Re-use H6/H616 DRAM size detection method
authorAndre Przywara <andre.przywara@arm.com>
Mon, 20 Oct 2025 14:26:22 +0000 (15:26 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 27 Oct 2025 00:44:53 +0000 (00:44 +0000)
commitfb48e8760ed20eff57cedac2f50be5f86e81eee0
treee31ba39af6e09579a1f50468e8988a01d80391be
parent4e203ee0ce1909dace04dfc9fe7db0907d60434a
sunxi: a523: Re-use H6/H616 DRAM size detection method

The H6 and H616 DRAM initialisation code recently gained a joint and
improved size detection routine, which helped to avoid the occasional
DRAM size misdetection.

Use the same code for the A523 DRAM initialisation as well, which
suffers from the same misdetection at times.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Tested-by: Chen-Yu Tsai <wens@kernel.org>
arch/arm/mach-sunxi/Makefile
arch/arm/mach-sunxi/dram_sun55i_a523.c