sunxi: H6: DRAM: follow recommended PHY init algorithm
authorAndre Przywara <andre.przywara@arm.com>
Mon, 15 Jul 2019 01:27:05 +0000 (02:27 +0100)
committerJagan Teki <jagan@amarulasolutions.com>
Tue, 16 Jul 2019 11:39:19 +0000 (17:09 +0530)
commit65f80f58049a820e7d1ed7b0b0d233885ce6ebb2
tree383556a69976ea98c0300d79bcd69e715d0e5ec8
parent1a1d1df384579e1323c72e8ba888ce45bfc4e781
sunxi: H6: DRAM: follow recommended PHY init algorithm

The DRAM controller manual suggests to first program the PHY
initialisation parameters to the PHY_PIR register, and then set bit 0 to
trigger the initialisation. This is also used in boot0.

Follow this recommendation by setting bit 0 in a separate step.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Jernej Skrabec <jernej.skrabec@siol.net>
Reviewed-by: Jernej Skrabec <jernej.skrabec@siol.net>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
arch/arm/mach-sunxi/dram_sun50i_h6.c