]> git.dujemihanovic.xyz Git - u-boot.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)
commitbc24884c4c6bb589d61a1802cc0824b00ffe72d1
treee689b212b1ccc74974c7040577c77b5fead1e04d
parenta1a652e8016426e2d67148cab225cd5ec45189fb
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: b18bd53d6cde ("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