summaryrefslogtreecommitdiff
path: root/arch/sh/lib/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/lib/time.c')
-rw-r--r--arch/sh/lib/time.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/sh/lib/time.c b/arch/sh/lib/time.c
index 0f3127106a..9a1d3fb013 100644
--- a/arch/sh/lib/time.c
+++ b/arch/sh/lib/time.c
@@ -22,7 +22,11 @@ static struct tmu_regs *tmu = (struct tmu_regs *)TMU_BASE;
unsigned long get_tbclk(void)
{
- return CONFIG_SH_TMU_CLK_FREQ / 4;
+#ifdef CONFIG_RCAR_GEN2
+ return CONFIG_SYS_CLK_FREQ / 8;
+#else
+ return CONFIG_SYS_CLK_FREQ / 4;
+#endif
}
unsigned long timer_read_counter(void)