From e6500f86a6ddac4c4a2cfcbd517283665563ef70 Mon Sep 17 00:00:00 2001 From: Thomas Chou Date: Thu, 8 Oct 2015 21:23:37 +0800 Subject: nios2: Split timer code into timer.c Move the timer code from interrupts.c into timer.c . Eliminate the installation of timer interrupt handler, which is no longer used. Signed-off-by: Marek Vasut Signed-off-by: Thomas Chou --- include/configs/nios2-generic.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include') diff --git a/include/configs/nios2-generic.h b/include/configs/nios2-generic.h index 6e6cd8cd62..3d29a1f7af 100644 --- a/include/configs/nios2-generic.h +++ b/include/configs/nios2-generic.h @@ -40,7 +40,6 @@ * TIMER */ #define CONFIG_SYS_TIMER_RATE CONFIG_SYS_TIMER_FREQ -#define CONFIG_SYS_NIOS_TMRMS 10 /* FIXME: Desired period (msec)*/ /* * STATUS LED @@ -59,7 +58,7 @@ #define STATUS_LED_BIT 0 /* Bit-0 on GPIO */ #define STATUS_LED_STATE 1 /* Blinking */ -#define STATUS_LED_PERIOD (500 / CONFIG_SYS_NIOS_TMRMS) /* 500 msec */ +#define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2) /* 500 msec */ /* * BOOTP options -- cgit