OSDN Git Service

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)
commitd2192ea09858a8535b056fcede1a41d824e0b3d8
tree3b469ef3eceabefbe137a417dafef6ffd89df225
parent13a7a6ac0a11197edcd0f756a035f472b42cdf8b
ARM: dts: DRA7x: Fix the bypass clock source for dpll_iva and others

Fixes: ee6c750761 (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