]> git.baikalelectronics.ru Git - uboot.git/commit
arm: mach-k3: j721e: Fix clk-data parenting for postdiv PLL clocks
authorSuman Anna <s-anna@ti.com>
Tue, 7 Sep 2021 22:16:54 +0000 (17:16 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 17 Sep 2021 18:47:03 +0000 (14:47 -0400)
commit062c4bb0491d9ac6d2a1960f51be3dfd40dea351
treec4857c8b3fcce1fefbae8a60ef9ab6fa38490a66
parentaaab2ee9c40a8a68fd31abccc4b398042bb96da6
arm: mach-k3: j721e: Fix clk-data parenting for postdiv PLL clocks

The TI K3 Fractional PLLs use two programmable POSTDIV1 and POSTDIV2
divisors to generate the final FOUTPOSTDIV clock. These are in sequence
with POSTDIV2 following the POSTDIV1 clock. The current J721E clock data
has the POSTDIV2 clock as the parent for the POSTDIV1 clock, which is
opposite of the actual implementation. Fix the data by simply adjusting
the register bit-shifts.

The Main PLL1 POSTDIV clocks were also defined incorrectly using Main PLL0
register values, fix these as well.

Fixes: 912547a6c636 ("arm: mach-k3: Add platform data for j721e and j7200")
Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
arch/arm/mach-k3/j721e/clk-data.c