diff options
author | Thomas Chou <thomas@wytron.com.tw> | 2015-10-08 21:17:42 +0800 |
---|---|---|
committer | Thomas Chou <thomas@wytron.com.tw> | 2015-10-23 07:28:50 +0800 |
commit | fea7f3aa3e5644b702be15d9076fe7b4b73db668 (patch) | |
tree | 62a96450a01f95286ab1fdda19940019a78eb097 /include/configs | |
parent | 51068bcfc977538e3d3e1e32d9fccd0e1cacc501 (diff) | |
download | u-boot-imx-fea7f3aa3e5644b702be15d9076fe7b4b73db668.zip u-boot-imx-fea7f3aa3e5644b702be15d9076fe7b4b73db668.tar.gz u-boot-imx-fea7f3aa3e5644b702be15d9076fe7b4b73db668.tar.bz2 |
nios2: Switch to generic timer
Zap almost all of the ad-hoc timer code from interrupts.c and
use the code in lib/time.c instead.
Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/nios2-generic.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/configs/nios2-generic.h b/include/configs/nios2-generic.h index 293acae..6e6cd8c 100644 --- a/include/configs/nios2-generic.h +++ b/include/configs/nios2-generic.h @@ -39,12 +39,8 @@ /* * TIMER */ -#define CONFIG_SYS_LOW_RES_TIMER -#define CONFIG_SYS_NIOS_TMRBASE CONFIG_SYS_TIMER_BASE -#define CONFIG_SYS_NIOS_TMRIRQ CONFIG_SYS_TIMER_IRQ -#define CONFIG_SYS_NIOS_TMRMS 10 /* Desired period (msec)*/ -#define CONFIG_SYS_NIOS_TMRCNT \ - (CONFIG_SYS_NIOS_TMRMS * (CONFIG_SYS_TIMER_FREQ / 1000) - 1) +#define CONFIG_SYS_TIMER_RATE CONFIG_SYS_TIMER_FREQ +#define CONFIG_SYS_NIOS_TMRMS 10 /* FIXME: Desired period (msec)*/ /* * STATUS LED |