summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-iop13xx/iq81340sc.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2007-04-29 10:32:51 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-04-30 16:24:54 +0200
commit84c981ffb371828ad6d1d220f076453b54734302 (patch)
tree43c85aef8399847ee07e9525099a0a0f9fe6b628 /arch/arm/mach-iop13xx/iq81340sc.c
parent[ARM] 4341/1: iop13xx: fix i/o address translation (diff)
downloadlinux-84c981ffb371828ad6d1d220f076453b54734302.tar.xz
linux-84c981ffb371828ad6d1d220f076453b54734302.zip
[ARM] 4343/1: iop13xx: automatically detect the internal bus frequency
Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-iop13xx/iq81340sc.c')
-rw-r--r--arch/arm/mach-iop13xx/iq81340sc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-iop13xx/iq81340sc.c b/arch/arm/mach-iop13xx/iq81340sc.c
index 0e71fbcabe00..0f8801406f23 100644
--- a/arch/arm/mach-iop13xx/iq81340sc.c
+++ b/arch/arm/mach-iop13xx/iq81340sc.c
@@ -81,7 +81,9 @@ static void __init iq81340sc_init(void)
static void __init iq81340sc_timer_init(void)
{
- iop_init_time(400000000);
+ unsigned long bus_freq = iop13xx_core_freq() / iop13xx_xsi_bus_ratio();
+ printk(KERN_DEBUG "%s: bus frequency: %lu\n", __FUNCTION__, bus_freq);
+ iop_init_time(bus_freq);
}
static struct sys_timer iq81340sc_timer = {