summaryrefslogtreecommitdiff
path: root/arch/sh/lib
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>2014-01-08 14:57:30 +0900
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2014-01-08 14:59:53 +0900
commit8f0960e8378e0fc14d6216f60910994c217d3d57 (patch)
treef7a921e9158d23204523bec5af8f25183aedc94e /arch/sh/lib
parentcdc902bd9cca9b5a14353f46435b8fa27c0db590 (diff)
downloadu-boot-8f0960e8378e0fc14d6216f60910994c217d3d57.tar.gz
u-boot-8f0960e8378e0fc14d6216f60910994c217d3d57.tar.bz2
u-boot-8f0960e8378e0fc14d6216f60910994c217d3d57.zip
sh: sh2: Change CONFIG_SYS_HZ to CONFIG_SH_CMT_CLK_FREQ
CONFIG_SYS_HZ of SH2 is not used as frequency of base timer. This is the correct clock of CMT. This changes from CONFIG_SYS_HZ to CONFIG_SH_CMT_CLK_FREQ, in order to use CONFIG_SYS_HZ as clock of CMT. Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Diffstat (limited to 'arch/sh/lib')
-rw-r--r--arch/sh/lib/time_sh2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/lib/time_sh2.c b/arch/sh/lib/time_sh2.c
index be3896c3ed..4b1f47b6ad 100644
--- a/arch/sh/lib/time_sh2.c
+++ b/arch/sh/lib/time_sh2.c
@@ -84,5 +84,5 @@ void __udelay(unsigned long usec)
unsigned long get_tbclk(void)
{
- return CONFIG_SYS_HZ;
+ return CONFIG_SH_CMT_CLK_FREQ;
}