]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit2156a0d64e8c118ea81e03614f88285eb59e6f33
tree383556a69976ea98c0300d79bcd69e715d0e5ec8
parent311afe92f9bbcbd00ede4815fcb7dd5c2671d493
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