summaryrefslogtreecommitdiff
path: root/arch/arm/cpu
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-10-03 13:33:51 -0700
committerSimon Glass <sjg@chromium.org>2011-10-06 19:24:58 -0700
commit9eddab44e6e5e8875094b4e0827596b2fe5ab61d (patch)
tree9b58d811f2e0bc42b52c0f4c9c8a11fcbb7345c0 /arch/arm/cpu
parent5605de2e1851d005c226643af2040bffca9c6c39 (diff)
tegra: Add support for 408MHz PLLP
The 216MHz PLLP is not always wanted - this adds support for 408MHz which will be used on T30. BUG=chromium-os:19004 TEST=build and boot on Seaboard Change-Id: I4c053b5a9db4efb7b926ad2c9072f392d24033c9 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: http://gerrit.chromium.org/gerrit/8689 Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r--arch/arm/cpu/armv7/tegra-common/clock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/tegra-common/clock.c b/arch/arm/cpu/armv7/tegra-common/clock.c
index 0aa4ef33ecf..e0d27501932 100644
--- a/arch/arm/cpu/armv7/tegra-common/clock.c
+++ b/arch/arm/cpu/armv7/tegra-common/clock.c
@@ -925,7 +925,11 @@ void clock_early_init(void)
*/
switch (clock_get_osc_freq()) {
case CLOCK_OSC_FREQ_12_0: /* OSC is 12Mhz */
+#ifdef CONFIG_SYS_PLLP_BASE_IS_408MHZ
+ clock_set_rate(CLOCK_ID_PERIPH, 408, 12, 0, 8);
+#else
clock_set_rate(CLOCK_ID_PERIPH, 432, 12, 1, 8);
+#endif
clock_set_rate(CLOCK_ID_CGENERAL, 600, 12, 0, 8);
break;