aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-iop13xx
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2007-04-29 04:32:51 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-04-30 10:24:54 -0400
commit84c981ffb371828ad6d1d220f076453b54734302 (patch)
tree43c85aef8399847ee07e9525099a0a0f9fe6b628 /arch/arm/mach-iop13xx
parent7dcad376e85b6eff56f29ee21e10e1fe855f1ed7 (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')
-rw-r--r--arch/arm/mach-iop13xx/iq81340mc.c4
-rw-r--r--arch/arm/mach-iop13xx/iq81340sc.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mach-iop13xx/iq81340mc.c b/arch/arm/mach-iop13xx/iq81340mc.c
index a519d707571c..1ae08cc04b48 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)
79 79
80static void __init iq81340mc_timer_init(void) 80static void __init iq81340mc_timer_init(void)
81{ 81{
82 iop_init_time(400000000); 82 unsigned long bus_freq = iop13xx_core_freq() / iop13xx_xsi_bus_ratio();
83 printk(KERN_DEBUG "%s: bus frequency: %lu\n", __FUNCTION__, bus_freq);
84 iop_init_time(bus_freq);
83} 85}
84 86
85static struct sys_timer iq81340mc_timer = { 87static struct sys_timer iq81340mc_timer = {
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)
81 81
82static void __init iq81340sc_timer_init(void) 82static void __init iq81340sc_timer_init(void)
83{ 83{
84 iop_init_time(400000000); 84 unsigned long bus_freq = iop13xx_core_freq() / iop13xx_xsi_bus_ratio();
85 printk(KERN_DEBUG "%s: bus frequency: %lu\n", __FUNCTION__, bus_freq);
86 iop_init_time(bus_freq);
85} 87}
86 88
87static struct sys_timer iq81340sc_timer = { 89static struct sys_timer iq81340sc_timer = {