summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/tegra114
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2015-08-20 11:42:20 +0200
committerTom Warren <twarren@nvidia.com>2015-09-16 16:10:22 -0700
commit97c02d87f4b08556a36903ce4c5aa9744a95b91e (patch)
treed98ea2074e30e33beb7edf8a067e212c328e5687 /arch/arm/mach-tegra/tegra114
parentc043c0259cd88f39cdca5f98af8b10f178660745 (diff)
downloadu-boot-imx-97c02d87f4b08556a36903ce4c5aa9744a95b91e.zip
u-boot-imx-97c02d87f4b08556a36903ce4c5aa9744a95b91e.tar.gz
u-boot-imx-97c02d87f4b08556a36903ce4c5aa9744a95b91e.tar.bz2
ARM: tegra: clk_m is the architected timer source clock
While clk_m and the oscillator run at the same frequencies on Tegra114 and Tegra124, clk_m is the proper source for the architected timer. On more recent Tegra generations, Tegra210 and later, both the oscillator and clk_m can run at different frequencies. clk_m will be divided down from the oscillator. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/tegra114')
-rw-r--r--arch/arm/mach-tegra/tegra114/clock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/tegra114/clock.c b/arch/arm/mach-tegra/tegra114/clock.c
index 5e805a7..cec843b 100644
--- a/arch/arm/mach-tegra/tegra114/clock.c
+++ b/arch/arm/mach-tegra/tegra114/clock.c
@@ -679,8 +679,8 @@ void arch_timer_init(void)
struct sysctr_ctlr *sysctr = (struct sysctr_ctlr *)NV_PA_TSC_BASE;
u32 freq, val;
- freq = clock_get_rate(CLOCK_ID_OSC);
- debug("%s: osc freq is %dHz [0x%08X]\n", __func__, freq, freq);
+ freq = clock_get_rate(CLOCK_ID_CLK_M);
+ debug("%s: clk_m freq is %dHz [0x%08X]\n", __func__, freq, freq);
/* ARM CNTFRQ */
asm("mcr p15, 0, %0, c14, c0, 0\n" : : "r" (freq));