]> git.baikalelectronics.ru Git - uboot.git/commit
sunxi: spl: Fix H616 clock initialization
authorJernej Skrabec <jernej.skrabec@siol.net>
Mon, 1 Feb 2021 17:25:57 +0000 (18:25 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Fri, 19 Feb 2021 23:28:50 +0000 (23:28 +0000)
commitec307b9d217375541a744afbe9d1bac9f2f0b53d
treee689b212b1ccc74974c7040577c77b5fead1e04d
parenta7c25df2d3cea3a9fdaa46ab14d303570ea2ce51
sunxi: spl: Fix H616 clock initialization

It turns out that there is a magic bit in PRCM region which seemingly
makes PLLs work if it's enabled. Sadly, there is no documentation what
it does exactly, so we'll just mimick BSP boot0 behaviour and enable it
before any clock is set up.

Fixes: 7b04e1e27304 ("sunxi: introduce support for H616 clocks")
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/mach-sunxi/clock_sun50i_h6.c