sunxi: Fix H616 DRAM read calibration for dual rank
authorJernej Skrabec <jernej.skrabec@gmail.com>
Sat, 29 Jan 2022 15:58:43 +0000 (16:58 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 30 Jan 2022 01:25:00 +0000 (01:25 +0000)
commite97943b732d0e0588cfab3a8cb53459ca14dc81d
treee211e21e8b71925f689df84fc76678fa5f3bfa1f
parent18a59276983903ea4364d2945c880a62392e4e34
sunxi: Fix H616 DRAM read calibration for dual rank

Although it isn't known what bit 0 in PHY reg 8 does, it's obvious that
it has to be set before read calibration and cleared afterwards. This is
already done for first rank, but not for second (copy & paste error.)

Fix it.

Fixes: f4317dbd06b6 ("sunxi: Add H616 DRAM support")
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/mach-sunxi/dram_sun50i_h616.c