]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: dts: DRA7x: Fix the bypass clock source for dpll_iva and others
authorRavikumar Kattekola <rk@ti.com>
Sat, 31 Jan 2015 17:06:44 +0000 (22:36 +0530)
committerTony Lindgren <tony@atomide.com>
Fri, 6 Mar 2015 16:34:21 +0000 (08:34 -0800)
commitdbfdf0dc075f973cd59822f3f82bc1ac69113c1a
tree3b469ef3eceabefbe137a417dafef6ffd89df225
parent2e43d41fdf5d9bb7497bcfbed64b6a1a7c85de82
ARM: dts: DRA7x: Fix the bypass clock source for dpll_iva and others

Fixes: 4b86023047 (ARM: dts: dra7 clock data)
On DRA7x, For DPLL_IVA, the ref clock(CLKINP) is connected to sys_clk1 and
the bypass input(CLKINPULOW) is connected to iva_dpll_hs_clk_div clock.
But the bypass input is not directly routed to bypass clkout instead
both CLKINP and CLKINPULOW are connected to bypass clkout via a mux.

This mux is controlled by the bit - CM_CLKSEL_DPLL_IVA[23]:DPLL_BYP_CLKSEL
and it's POR value is zero which selects the CLKINP as bypass clkout.
which means iva_dpll_hs_clk_div is not the bypass clock for dpll_iva_ck

Fix this by adding another mux clock as parent in bypass mode.

This design is common to most of the PLLs and the rest have only one bypass
clock. Below is a list of the DPLLs that need this fix:

DPLL_IVA, DPLL_DDR,
DPLL_DSP, DPLL_EVE,
DPLL_GMAC, DPLL_PER,
DPLL_USB and DPLL_CORE

Signed-off-by: Ravikumar Kattekola <rk@ti.com>
Acked-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/dra7xx-clocks.dtsi