summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/localtimer.c
diff options
context:
space:
mode:
authorAlex Frid <afrid@nvidia.com>2011-03-20 19:16:32 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-04-26 15:54:09 -0700
commit202519c95bbeda1118448525bb0aee564dae117a (patch)
tree1b881af931b62738db9f9c2b518c7e99c0bdfede /arch/arm/mach-tegra/localtimer.c
parent8aca1bed2143109426225eb991b573887d6d8787 (diff)
ARM: tegra: clock: Update twd clock settings
On Tegra3 twd peripheral clock is divided by 2 from CPU clock (while on Tegra2 divide by 4 was used). Original-Change-Id: I15ee928049d21bda1a39b43ff88edc5f9d6675f6 Reviewed-on: http://git-master/r/23732 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Change-Id: I82772100308231bd43a005724c91f9455e575cf4
Diffstat (limited to 'arch/arm/mach-tegra/localtimer.c')
-rw-r--r--arch/arm/mach-tegra/localtimer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/localtimer.c b/arch/arm/mach-tegra/localtimer.c
index 6ba38f136199..ead217b90eea 100644
--- a/arch/arm/mach-tegra/localtimer.c
+++ b/arch/arm/mach-tegra/localtimer.c
@@ -21,5 +21,9 @@
void __cpuinit local_timer_setup(struct clock_event_device *evt)
{
evt->irq = IRQ_LOCALTIMER;
+#ifdef CONFIG_ARCH_TEGRA_2x_SOC
twd_timer_setup_scalable(evt, 2500000, 4);
+#else
+ twd_timer_setup_scalable(evt, 4000000, 2);
+#endif
}