]> git.baikalelectronics.ru Git - kernel.git/commit
Clk: SPEAr1340: Update sys clock parent array
authorVipul Kumar Samar <vipulkumar.samar@st.com>
Fri, 6 Jul 2012 10:22:36 +0000 (15:52 +0530)
committerShiraz Hashim <shiraz.hashim@st.com>
Wed, 18 Jul 2012 04:34:53 +0000 (10:04 +0530)
commitf2bccab581cb4f6f48cad9daded817ae97402097
treec29bb95a5f7f113d162785d30e7d7d5393cbb8bc
parent6f4e2c9ff54a29cf0f676d9c3351583af88950e1
Clk: SPEAr1340: Update sys clock parent array

sys_clk has multiple parents and selection of parent depends on sys_clk_ctrl
register bit no. 23:25, with following possibilities

   0XX: pll1_clk
   10X: sys_synth_clk
   110: pll2_clk
   111: pll3_clk

Out of several possibilities (h/w wise) to select same clock parent for
sys_clk, current clock implementation was considering just one value.

When bootloader programmed different (valid) value to select a clock
parent then Linux breaks.

Here, we try to include all possibilities which can lead to same
clock selection thus making Linux independent of bootloader selection
values.

Signed-off-by: Vipul Kumar Samar <vipulkumar.samar@st.com>
Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/clk/spear/spear1340_clock.c