summaryrefslogtreecommitdiff
path: root/include/configs/nios2-generic.h
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2015-10-08 13:17:42 (GMT)
committerThomas Chou <thomas@wytron.com.tw>2015-10-22 23:28:50 (GMT)
commitfea7f3aa3e5644b702be15d9076fe7b4b73db668 (patch)
tree62a96450a01f95286ab1fdda19940019a78eb097 /include/configs/nios2-generic.h
parent51068bcfc977538e3d3e1e32d9fccd0e1cacc501 (diff)
downloadu-boot-fsl-qoriq-fea7f3aa3e5644b702be15d9076fe7b4b73db668.tar.xz
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/nios2-generic.h')
-rw-r--r--include/configs/nios2-generic.h8
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