public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] socfpga: timer actually counts down
@ 2014-07-13 11:10 Pavel Machek
  2014-07-13 13:28 ` Marek Vasut
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Pavel Machek @ 2014-07-13 11:10 UTC (permalink / raw)
  To: u-boot


Timer on cyclone5 actually counts down. It took me a while to figure
out, as timer counting in wrong direction actually _can_ be used, it
just appears to tick at extremely high frequency in u-boot.

The bug was introduced in commit
23ab7ee0ffa9d5efd0b4ad830befba306d24a327.
    
Signed-off-by: Pavel Machek <pavel@denx.de>

diff --git a/include/configs/socfpga_cyclone5.h b/include/configs/socfpga_cyclone5.h
index c9c8e53..cc4f690 100644
--- a/include/configs/socfpga_cyclone5.h
+++ b/include/configs/socfpga_cyclone5.h
@@ -204,6 +204,7 @@
 #else
 #define CONFIG_SYS_TIMER_RATE		25000000
 #endif
+#define CONFIG_SYS_TIMER_COUNTS_DOWN
 #define CONFIG_SYS_TIMER_COUNTER	(CONFIG_SYS_TIMERBASE + 0x4)
 
 #define CONFIG_ENV_IS_NOWHERE

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* [U-Boot] [PATCH] socfpga: timer actually counts down
  2014-07-13 11:10 [U-Boot] [PATCH] socfpga: timer actually counts down Pavel Machek
@ 2014-07-13 13:28 ` Marek Vasut
  2014-07-14 15:24 ` Tom Rini
  2014-07-17 10:21 ` Chin Liang See
  2 siblings, 0 replies; 4+ messages in thread
From: Marek Vasut @ 2014-07-13 13:28 UTC (permalink / raw)
  To: u-boot

On Sunday, July 13, 2014 at 01:10:45 PM, Pavel Machek wrote:
> Timer on cyclone5 actually counts down. It took me a while to figure
> out, as timer counting in wrong direction actually _can_ be used, it
> just appears to tick at extremely high frequency in u-boot.
> 
> The bug was introduced in commit
> 23ab7ee0ffa9d5efd0b4ad830befba306d24a327.
> 
> Signed-off-by: Pavel Machek <pavel@denx.de>

Acked-by: Marek Vasut <marex@denx.de>

Can we get an Altera ACK and apply for .07 as this is clearly bugfix please ?

Best regards,
Marek Vasut

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

* [U-Boot] [PATCH] socfpga: timer actually counts down
  2014-07-13 11:10 [U-Boot] [PATCH] socfpga: timer actually counts down Pavel Machek
  2014-07-13 13:28 ` Marek Vasut
@ 2014-07-14 15:24 ` Tom Rini
  2014-07-17 10:21 ` Chin Liang See
  2 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2014-07-14 15:24 UTC (permalink / raw)
  To: u-boot

On Sun, Jul 13, 2014 at 01:10:45PM +0200, Pavel Machek wrote:

> Timer on cyclone5 actually counts down. It took me a while to figure
> out, as timer counting in wrong direction actually _can_ be used, it
> just appears to tick at extremely high frequency in u-boot.
> 
> The bug was introduced in commit
> 23ab7ee0ffa9d5efd0b4ad830befba306d24a327.
>     
> Signed-off-by: Pavel Machek <pavel@denx.de>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140714/39561bbc/attachment.pgp>

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

* [U-Boot] [PATCH] socfpga: timer actually counts down
  2014-07-13 11:10 [U-Boot] [PATCH] socfpga: timer actually counts down Pavel Machek
  2014-07-13 13:28 ` Marek Vasut
  2014-07-14 15:24 ` Tom Rini
@ 2014-07-17 10:21 ` Chin Liang See
  2 siblings, 0 replies; 4+ messages in thread
From: Chin Liang See @ 2014-07-17 10:21 UTC (permalink / raw)
  To: u-boot

On Sun, 2014-07-13 at 13:10 +0200, ZY - pavel wrote:
> Timer on cyclone5 actually counts down. It took me a while to figure
> out, as timer counting in wrong direction actually _can_ be used, it
> just appears to tick at extremely high frequency in u-boot.
> 
> The bug was introduced in commit
> 23ab7ee0ffa9d5efd0b4ad830befba306d24a327.
>     
> Signed-off-by: Pavel Machek <pavel@denx.de>
> 
> diff --git a/include/configs/socfpga_cyclone5.h b/include/configs/socfpga_cyclone5.h
> index c9c8e53..cc4f690 100644
> --- a/include/configs/socfpga_cyclone5.h
> +++ b/include/configs/socfpga_cyclone5.h
> @@ -204,6 +204,7 @@
>  #else
>  #define CONFIG_SYS_TIMER_RATE		25000000
>  #endif
> +#define CONFIG_SYS_TIMER_COUNTS_DOWN
>  #define CONFIG_SYS_TIMER_COUNTER	(CONFIG_SYS_TIMERBASE + 0x4)
>  
>  #define CONFIG_ENV_IS_NOWHERE
> 

Acked-by: Chin Liang See <clsee@altera.com>

Thanks
Chin Liang

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

end of thread, other threads:[~2014-07-17 10:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-13 11:10 [U-Boot] [PATCH] socfpga: timer actually counts down Pavel Machek
2014-07-13 13:28 ` Marek Vasut
2014-07-14 15:24 ` Tom Rini
2014-07-17 10:21 ` Chin Liang See

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox