From: Nobuhiro Iwamatsu Date: Tue, 20 Aug 2013 02:40:24 +0000 (+0900) Subject: sh: timer: Change definition of clock of TMU X-Git-Tag: v2014.01-rc1~206^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=857febf38cd33b49e29f2d17e885f2cb17a0aec0;p=u-boot sh: timer: Change definition of clock of TMU The former SH/TMU driver had calculated timer based on CONFIG_SYS_CLK_FREQ. The newest SH/TMU newly needs calculation of the clock for TMU. This patch defines clock CONFIG_SH_TMU_CLK_FREQ for TMU and changes it to CONFIG_SH_TMU_CLK_FREQ from CONFIG_SYS_CLK_FREQ. Signed-off-by: Nobuhiro Iwamatsu Signed-off-by: Nobuhiro Iwamatsu --- diff --git a/include/sh_tmu.h b/include/sh_tmu.h index 96c589da50..f5b42faea4 100644 --- a/include/sh_tmu.h +++ b/include/sh_tmu.h @@ -69,7 +69,7 @@ struct tmu_regs { static inline unsigned long get_tmu0_clk_rate(void) { - return CONFIG_SYS_CLK_FREQ; + return CONFIG_SH_TMU_CLK_FREQ; } #endif /* __SH_TMU_H */