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 commit
23ab7ee0ff
.
Signed-off-by: Pavel Machek <pavel@denx.de>
Acked-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
4ec3f6e510
commit
2cc0ea72ef
@ -202,6 +202,7 @@
|
|||||||
#else
|
#else
|
||||||
#define CONFIG_SYS_TIMER_RATE 25000000
|
#define CONFIG_SYS_TIMER_RATE 25000000
|
||||||
#endif
|
#endif
|
||||||
|
#define CONFIG_SYS_TIMER_COUNTS_DOWN
|
||||||
#define CONFIG_SYS_TIMER_COUNTER (CONFIG_SYS_TIMERBASE + 0x4)
|
#define CONFIG_SYS_TIMER_COUNTER (CONFIG_SYS_TIMERBASE + 0x4)
|
||||||
|
|
||||||
#define CONFIG_ENV_IS_NOWHERE
|
#define CONFIG_ENV_IS_NOWHERE
|
||||||
|
Loading…
Reference in New Issue
Block a user