Commit 2110eeaf0fdf9b3b200076554d266459ca7ac26d
1 parent
498d1a62db
Exists in
v2017.01-smarct4x
and in
37 other branches
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
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 |