]> git.ipfire.org Git - thirdparty/u-boot.git/commit
ARM: DRA7: Fixup DPLL clock rate fixup logic for newer kernels
authorSuman Anna <s-anna@ti.com>
Fri, 16 Aug 2019 22:30:16 +0000 (17:30 -0500)
committerTom Rini <trini@konsulko.com>
Tue, 20 Aug 2019 15:46:38 +0000 (11:46 -0400)
commita517c1f62f49d7e16b328d9d12785ca58c887346
treec59b4a9b12fe44520f497cfc919b35c7db4481e0
parent042dd8f2a64e6fe7f6fb0f329f0d32998ebd7aef
ARM: DRA7: Fixup DPLL clock rate fixup logic for newer kernels

The commit 1b42ab3eda8a ("ARM: DRA7: Fixup DSPEVE, IVA and GPU clock
frequencies based on OPP") updates the kernel device-tree blob to adjust
the DSP, IVA and GPU DPLL clocks based on a one-time OPP choice selected
in U-Boot. All these DPLL clocks are children of the cm_core_aon clocks
DT node.

The hierarchy of this clocks DT node has changed in newer Linux kernels
starting from v5.0, and this results in a failure in ft_fixup_clocks()
function to update the clock rates on these newer kernels. Fix this by
updating the lookup logic to look through both the newer and older
DT hierarchy paths for the cm_core_aon clocks node.

Signed-off-by: Suman Anna <s-anna@ti.com>
arch/arm/mach-omap2/omap5/fdt.c