]> git.baikalelectronics.ru Git - uboot.git/commit
arm: mach-k3: j7200: Fix clk-data parenting for postdiv PLL clocks
authorSuman Anna <s-anna@ti.com>
Tue, 7 Sep 2021 22:16:55 +0000 (17:16 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 17 Sep 2021 18:47:03 +0000 (14:47 -0400)
commit5aa75b607937cfc8fb22e41a688b93bd2f27dcc4
tree32245833b74129e20d13e8d20cae308d0bb37c03
parent062c4bb0491d9ac6d2a1960f51be3dfd40dea351
arm: mach-k3: j7200: 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 J7200 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/j7200/clk-data.c