socfpga: timer actually counts down
PATCH 1/1 socfpga: timer actually counts down
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 commit23ab7ee0ffa9d5efd0b4ad830befba306d24a327.
include/configs/socfpga_cyclone5.h +1 -0
@@ -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
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
PATCH 1/1 socfpga: timer actually counts down
Quoted 8 lines · Pavel Machek
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 <[email protected]>
Can we get an Altera ACK and apply for .07 as this is clearly bugfix please ?
Best regards,
Marek Vasut
PATCH 1/1 socfpga: timer actually counts down
In reply to Pavel MachekQuoted 8 lines · Pavel Machek
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 <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
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>
PATCH 1/1 socfpga: timer actually counts down
In reply to Pavel MachekQuoted 15 lines · ZY - pavel
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 <[email protected]>include/configs/socfpga_cyclone5.h +0
-0
include/configs/socfpga_cyclone5.h line 210
Quoted 7 lines
include/configs/socfpga_cyclone5.h +1
-0@@ -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
Thanks
Chin Liang