diff options
author | Pavel Machek <pavel@denx.de> | 2014-07-13 13:10:45 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-07-14 11:21:35 -0400 |
commit | 2cc0ea72ef98eba3b6dbf65cff39f08e31e137d1 (patch) | |
tree | 3a8cc063cfdbd752219593258df01281de486ec5 /include/configs | |
parent | 4ec3f6e5104034e113f6ea8ab356f78ff4ad00b8 (diff) | |
download | u-boot-imx-2cc0ea72ef98eba3b6dbf65cff39f08e31e137d1.zip u-boot-imx-2cc0ea72ef98eba3b6dbf65cff39f08e31e137d1.tar.gz u-boot-imx-2cc0ea72ef98eba3b6dbf65cff39f08e31e137d1.tar.bz2 |
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
23ab7ee0ffa9d5efd0b4ad830befba306d24a327.
Signed-off-by: Pavel Machek <pavel@denx.de>
Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/socfpga_cyclone5.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/configs/socfpga_cyclone5.h b/include/configs/socfpga_cyclone5.h index 7646a85..262e744 100644 --- a/include/configs/socfpga_cyclone5.h +++ b/include/configs/socfpga_cyclone5.h @@ -202,6 +202,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 |