ARM: tegra: clock: Allow Tegra3 PLLM rate change
authorAlex Frid <afrid@nvidia.com>
Sun, 24 Jun 2012 06:50:54 +0000 (23:50 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 16 Jul 2012 12:55:54 +0000 (17:55 +0530)
commit6bcc352e1b0bd6d032a8597ee836b7bac3e14066
tree2a24fbdd1e9bf37528e4e69100accc4297c18846
parente3477cfe9f942634889a68b4123167a5485c3bbd
ARM: tegra: clock: Allow Tegra3 PLLM rate change

Allowed Tegra3 memory PLLM rate change, provided it is disabled.

Since PLLM can deviate from boot configuration now, and on Tegra3 it
is controlled by PMC override registers (not CAR module registers):

- Re-factored PLLM initialization, resume, and set rate operations
accordingly (enable and disable ops already used PMC override).

- Made sure that boot configuration is restored on entry to LP0 to
match memory timing saved in scratch registers.

Bug 1005576

Change-Id: Iac6297455bec709a8e12d71deccab62c18905ea7
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/110937
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
(cherry picked from commit b53f88c68543a2b0ddb4545bb3b389b42eeb95d8)
Reviewed-on: http://git-master/r/114759
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
arch/arm/mach-tegra/sleep-t3.S
arch/arm/mach-tegra/sleep.h
arch/arm/mach-tegra/tegra30_clocks.c