davinci: da850/omap-l138: unlock PLL registers during init
authorSekhar Nori <nsekhar@ti.com>
Mon, 16 Nov 2009 11:51:38 +0000 (17:21 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Thu, 4 Feb 2010 21:29:39 +0000 (13:29 -0800)
commit7aad472bb5602242113718fc170e61b127460cbe
tree4a3cd317ee79094b86217eac216ef96c5f4b72b8
parent948c66df0d5e23dbcb84bee39a11b56c8a0d3e41
davinci: da850/omap-l138: unlock PLL registers during init

On omap-l1 devices the PLL registers can be locked from
writes. Currently the cpufreq rate setting code unlocks
PLL0 before the write actually happens. With suspend
support getting added PLL1 registers need be be unlocked
as well.

To facilitate this, unlock both PLLs during the init time
itself.

This also obviates the need to unlock PLL registers for
each CPUFreq transtition.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-davinci/da850.c