OMAP3: Avoid re-write to PRM_CLKSRC_CTRL
authorSanjeev Premi <premi@ti.com>
Mon, 8 Feb 2010 16:33:25 +0000 (11:33 -0500)
committerTom Rix <Tom.Rix@windriver.com>
Fri, 12 Feb 2010 18:31:54 +0000 (12:31 -0600)
commitb74064a0e2984a166e3575852f3697ef5595a97b
treedc44374e1bddde0515aa1de33defc1e69c36284c
parenteff536befd3efab538bba10bad07ecff63c9f470
OMAP3: Avoid re-write to PRM_CLKSRC_CTRL

In function get_osc_clk_speed(), do not change/ update
the divider for SYS_CLK as it can has cascading effect
on the other derived clocks.

Sudden change in divider value can lead to inconsistent
behavior in the system - often leading to crashes.

The problem was found when working with OMAP3EVM using
DM3730 processor card.

The patch has been tested with OMAP3530 on OMAP3EVM as
well

Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Hiremath Vaibhav <hvaibhav@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
cpu/arm_cortexa8/omap3/clock.c