Skip to contentSkip to conversation

davinci: Fixed wrong timebase clock frequency.

PATCH New Manfred Rudigier 3 participants 3 messages Dec 14, 2011 – Dec 15, 2011 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 davinci: Fixed wrong timebase clock frequency.

---
 arch/arm/cpu/arm926ejs/davinci/timer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/cpu/arm926ejs/davinci/timer.c +1 -1
index a06d449..93c9e60 100644
@@ -108,7 +108,7 @@ void __udelay(unsigned long usec)
  */
 ulong get_tbclk(void)
 {
-	return CONFIG_SYS_HZ;
+	return gd->timer_rate_hz;
 }
 
 #ifdef CONFIG_HW_WATCHDOG
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 davinci: Fixed wrong timebase clock frequency.

Quoted 11 lines · Manfred Rudigier
---
 arch/arm/cpu/arm926ejs/davinci/timer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/cpu/arm926ejs/davinci/timer.c +0 -0
index a06d449..93c9e60 100644

arch/arm/cpu/arm926ejs/davinci/timer.c void __udelay(unsigned long usec) · line 114

Quoted 8 lines
arch/arm/cpu/arm926ejs/davinci/timer.c +1 -1
@@ -108,7 +108,7 @@ void __udelay(unsigned long usec)
  */
 ulong get_tbclk(void)
 {
-	return CONFIG_SYS_HZ;
+	return gd->timer_rate_hz;
 }
 
 #ifdef CONFIG_HW_WATCHDOG

Applied to u-boot-ti/master, thanks.

Signature · 1 line
Tom
#2 lore raw

PATCH 1/1 davinci: Fixed wrong timebase clock frequency.

In reply to Manfred Rudigier

Hello Manfred,

Quoted 10 lines · Manfred Rudigier
---
 arch/arm/cpu/arm926ejs/davinci/timer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/cpu/arm926ejs/davinci/timer.c +0 -0
index a06d449..93c9e60 100644

arch/arm/cpu/arm926ejs/davinci/timer.c void __udelay(unsigned long usec) · line 114

Quoted 8 lines
arch/arm/cpu/arm926ejs/davinci/timer.c +1 -1
@@ -108,7 +108,7 @@ void __udelay(unsigned long usec)
  */
 ulong get_tbclk(void)
 {
-	return CONFIG_SYS_HZ;
+	return gd->timer_rate_hz;
 }
 
 #ifdef CONFIG_HW_WATCHDOG

Tested on the cam_enc_4x board, thanks!

Also too late, but:

bye,
Heiko

Signature · 2 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany