summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2015-10-08 21:17:42 +0800
committerThomas Chou <thomas@wytron.com.tw>2015-10-23 07:28:50 +0800
commitfea7f3aa3e5644b702be15d9076fe7b4b73db668 (patch)
tree62a96450a01f95286ab1fdda19940019a78eb097 /common
parent51068bcfc977538e3d3e1e32d9fccd0e1cacc501 (diff)
downloadtalos-obmc-uboot-fea7f3aa3e5644b702be15d9076fe7b4b73db668.tar.gz
talos-obmc-uboot-fea7f3aa3e5644b702be15d9076fe7b4b73db668.zip
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 'common')
-rw-r--r--common/board_f.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/board_f.c b/common/board_f.c
index 613332e1dc..8bb8ded50e 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -795,7 +795,8 @@ static init_fnc_t init_sequence_f[] = {
init_timebase,
#endif
#if defined(CONFIG_ARM) || defined(CONFIG_MIPS) || \
- defined(CONFIG_BLACKFIN) || defined(CONFIG_NDS32)
+ defined(CONFIG_BLACKFIN) || defined(CONFIG_NDS32) || \
+ defined(CONFIG_NIOS2)
timer_init, /* initialize timer */
#endif
#ifdef CONFIG_SYS_ALLOC_DPRAM
OpenPOWER on IntegriCloud