Commit 2110eeaf0fdf9b3b200076554d266459ca7ac26d

Authored by Marek Vasut
1 parent 498d1a62db

arm: socfpga: timer: Pull the timer reload value from config file

The timer reload value is a property of the timer hardware and there
is no reason for this to be configurable. Place this into the timer
driver just like on the other hardware.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@altera.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Tom Rini <trini@ti.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Pavel Machek <pavel@denx.de>
Acked-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Acked-by: Pavel Machek <pavel@denx.de>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

arch/arm/cpu/armv7/socfpga/timer.c
... ... @@ -8,6 +8,8 @@
8 8 #include <asm/io.h>
9 9 #include <asm/arch/timer.h>
10 10  
  11 +#define TIMER_LOAD_VAL 0xFFFFFFFF
  12 +
11 13 static const struct socfpga_timer *timer_base = (void *)CONFIG_SYS_TIMERBASE;
12 14  
13 15 /*
include/configs/socfpga_cyclone5.h
... ... @@ -195,8 +195,6 @@
195 195 /* This timer use eosc1 where the clock frequency is fixed
196 196 * throughout any condition */
197 197 #define CONFIG_SYS_TIMERBASE SOCFPGA_OSC1TIMER0_ADDRESS
198   -/* reload value when timer count to zero */
199   -#define TIMER_LOAD_VAL 0xFFFFFFFF
200 198 /* Timer info */
201 199 #ifdef CONFIG_SOCFPGA_VIRTUAL_TARGET
202 200 #define CONFIG_SYS_TIMER_RATE 2400000