Commit 857febf38cd33b49e29f2d17e885f2cb17a0aec0

Authored by Nobuhiro Iwamatsu
1 parent a633a18f90

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 <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -69,7 +69,7 @@
69 69  
70 70 static inline unsigned long get_tmu0_clk_rate(void)
71 71 {
72   - return CONFIG_SYS_CLK_FREQ;
  72 + return CONFIG_SH_TMU_CLK_FREQ;
73 73 }
74 74  
75 75 #endif /* __SH_TMU_H */