All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] AT91 Fix: return value of get_tbclk
@ 2010-04-02 13:45 Jens Scharsig
  2010-08-07 16:52 ` [U-Boot] [PATCH V2] " Jens Scharsig
  0 siblings, 1 reply; 3+ messages in thread
From: Jens Scharsig @ 2010-04-02 13:45 UTC (permalink / raw)
  To: u-boot

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


Signed-off-by: Jens Scharsig <js_at_ng@scharsoft.de>
---
 cpu/arm926ejs/at91/timer.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/cpu/arm926ejs/at91/timer.c b/cpu/arm926ejs/at91/timer.c
index d21eebf..8efc34b 100644
--- a/cpu/arm926ejs/at91/timer.c
+++ b/cpu/arm926ejs/at91/timer.c
@@ -138,8 +138,5 @@ ulong get_timer(ulong base)
  */
 ulong get_tbclk(void)
 {
-	ulong tbclk;
-
-	tbclk = CONFIG_SYS_HZ;
-	return tbclk;
+	return timer_freq;
 }
-- 
1.6.0.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH V2] AT91 Fix: return value of get_tbclk
  2010-04-02 13:45 [U-Boot] [PATCH] AT91 Fix: return value of get_tbclk Jens Scharsig
@ 2010-08-07 16:52 ` Jens Scharsig
  2010-08-07 17:05   ` Jens Scharsig
  0 siblings, 1 reply; 3+ messages in thread
From: Jens Scharsig @ 2010-08-07 16:52 UTC (permalink / raw)
  To: u-boot

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

Signed-off-by: Jens Scharsig <js_at_ng@scharsoft.de>
---
 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(-)

diff --git a/arch/arm/cpu/arm920t/at91/timer.c b/arch/arm/cpu/arm920t/at91/timer.c
index 91377d4..1c20857 100644
--- a/arch/arm/cpu/arm920t/at91/timer.c
+++ b/arch/arm/cpu/arm920t/at91/timer.c
@@ -159,5 +159,5 @@ unsigned long long get_ticks(void)
  */
 ulong get_tbclk(void)
 {
-	return CONFIG_SYS_HZ;
+	return timer_freq;
 }
diff --git a/arch/arm/cpu/arm920t/at91rm9200/timer.c b/arch/arm/cpu/arm920t/at91rm9200/timer.c
index 9c54bbe..8db7e76 100644
--- a/arch/arm/cpu/arm920t/at91rm9200/timer.c
+++ b/arch/arm/cpu/arm920t/at91rm9200/timer.c
@@ -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;
 }
diff --git a/arch/arm/cpu/arm926ejs/at91/timer.c b/arch/arm/cpu/arm926ejs/at91/timer.c
index d21eebf..8efc34b 100644
--- a/arch/arm/cpu/arm926ejs/at91/timer.c
+++ b/arch/arm/cpu/arm926ejs/at91/timer.c
@@ -138,8 +138,5 @@ ulong get_timer(ulong base)
  */
 ulong get_tbclk(void)
 {
-	ulong tbclk;
-
-	tbclk = CONFIG_SYS_HZ;
-	return tbclk;
+	return timer_freq;
 }
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH V2] AT91 Fix: return value of get_tbclk
  2010-08-07 16:52 ` [U-Boot] [PATCH V2] " Jens Scharsig
@ 2010-08-07 17:05   ` Jens Scharsig
  0 siblings, 0 replies; 3+ messages in thread
From: Jens Scharsig @ 2010-08-07 17:05 UTC (permalink / raw)
  To: u-boot

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

regards Jens

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-07 17:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-02 13:45 [U-Boot] [PATCH] AT91 Fix: return value of get_tbclk Jens Scharsig
2010-08-07 16:52 ` [U-Boot] [PATCH V2] " Jens Scharsig
2010-08-07 17:05   ` Jens Scharsig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.