summaryrefslogtreecommitdiff
path: root/arch/sh/lib/time.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@gmail.com>2018-08-24 21:29:04 +0200
committerMarek Vasut <marex@denx.de>2018-09-15 03:19:07 +0200
commitae59a9f8f7785d86277149eb37314d2f21392f6f (patch)
tree18a34d71fa30ef64cb42a973cbd6b3e5b3790e8b /arch/sh/lib/time.c
parent15f11fc6d72175ff5b7763f03d7b0d502efd24af (diff)
downloadu-boot-ae59a9f8f7785d86277149eb37314d2f21392f6f.tar.gz
sh: tmu: Inline get_tmu0_clk_rate()
This function just returns CONFIG_SH_TMU_CLK_FREQ, use the constant directly instead. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Diffstat (limited to 'arch/sh/lib/time.c')
-rw-r--r--arch/sh/lib/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/lib/time.c b/arch/sh/lib/time.c
index 6273f39f21..0f3127106a 100644
--- a/arch/sh/lib/time.c
+++ b/arch/sh/lib/time.c
@@ -22,7 +22,7 @@ static struct tmu_regs *tmu = (struct tmu_regs *)TMU_BASE;
unsigned long get_tbclk(void)
{
- return get_tmu0_clk_rate() >> 2;
+ return CONFIG_SH_TMU_CLK_FREQ / 4;
}
unsigned long timer_read_counter(void)