Skip to contentSkip to conversation

AT91 Fix: return value of get_tbclk

PATCH Superseded Jens Scharsig 1 participant 3 messages Apr 2, 2010 – Aug 7, 2010

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 AT91 Fix: return value of get_tbclk

* Fix: return value of get_tbclk
* this fixes issue with prematurely restart/retry, if BOOT_RETRY_TIMEOUT is used

---
 cpu/arm926ejs/at91/timer.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
cpu/arm926ejs/at91/timer.c +1 -4
index d21eebf..8efc34b 100644
@@ -138,8 +138,5 @@ ulong get_timer(ulong base)
  */
 ulong get_tbclk(void)
 {
-	ulong tbclk;
-
-	tbclk = CONFIG_SYS_HZ;
-	return tbclk;
+	return timer_freq;
 }
Signature · 1 line
1.6.0.2
#1 lore raw

PATCH v2 1/1 AT91 Fix: return value of get_tbclk

* Fix: return value of get_tbclk
* this fixes issue with prematurely restart/retry, if BOOT_RETRY_TIMEOUT is used

---
the V2 supports the actually file structure.
the original patch http://lists.denx.de/pipermail/u-boot/2010-April/069415.html
use the old directory /cpu/arch structure.

 arch/arm/cpu/arm920t/at91/timer.c       |    2 +-
 arch/arm/cpu/arm920t/at91rm9200/timer.c |    5 +----
 arch/arm/cpu/arm926ejs/at91/timer.c     |    5 +----
 3 files changed, 3 insertions(+), 9 deletions(-)
arch/arm/cpu/arm920t/at91/timer.c +1 -1
index 91377d4..1c20857 100644
@@ -159,5 +159,5 @@ unsigned long long get_ticks(void)
  */
 ulong get_tbclk(void)
 {
-	return CONFIG_SYS_HZ;
+	return timer_freq;
 }
arch/arm/cpu/arm920t/at91rm9200/timer.c +1 -4
index 9c54bbe..8db7e76 100644
@@ -153,8 +153,5 @@ unsigned long long get_ticks(void)
  */
 ulong get_tbclk (void)
 {
-	ulong tbclk;
-
-	tbclk = CONFIG_SYS_HZ;
-	return tbclk;
+	return timer_freq;
 }
arch/arm/cpu/arm926ejs/at91/timer.c +1 -4
index d21eebf..8efc34b 100644
@@ -138,8 +138,5 @@ ulong get_timer(ulong base)
  */
 ulong get_tbclk(void)
 {
-	ulong tbclk;
-
-	tbclk = CONFIG_SYS_HZ;
-	return tbclk;
+	return timer_freq;
 }
Signature · 1 line
1.7.1
#2 lore raw

PATCH v2 1/1 AT91 Fix: return value of get_tbclk

Sorry I have attach the wrong patch file
I ll resend the right as V3

regards Jens