diff options
author | Dan Williams <dan.j.williams@intel.com> | 2007-04-29 09:32:51 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-04-30 15:24:54 +0100 |
commit | 84c981ffb371828ad6d1d220f076453b54734302 (patch) | |
tree | 43c85aef8399847ee07e9525099a0a0f9fe6b628 /arch/arm/mach-iop13xx/iq81340mc.c | |
parent | 7dcad376e85b6eff56f29ee21e10e1fe855f1ed7 (diff) |
[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/iq81340mc.c')
-rw-r--r-- | arch/arm/mach-iop13xx/iq81340mc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-iop13xx/iq81340mc.c b/arch/arm/mach-iop13xx/iq81340mc.c index a519d707571..1ae08cc04b4 100644 --- a/arch/arm/mach-iop13xx/iq81340mc.c +++ b/arch/arm/mach-iop13xx/iq81340mc.c @@ -79,7 +79,9 @@ static void __init iq81340mc_init(void) static void __init iq81340mc_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 iq81340mc_timer = { |