From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dinh Nguyen Date: Tue, 16 Sep 2014 10:55:47 -0500 Subject: [U-Boot] [PATCH 18/35] arm: socfpga: timer: Pull the timer reload value from config file In-Reply-To: <1410779188-6880-19-git-send-email-marex@denx.de> References: <1410779188-6880-1-git-send-email-marex@denx.de> <1410779188-6880-19-git-send-email-marex@denx.de> Message-ID: <54185D83.9010100@opensource.altera.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 09/15/2014 06:06 AM, Marek Vasut wrote: > 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 > Cc: Chin Liang See > Cc: Dinh Nguyen > Cc: Albert Aribaud > Cc: Tom Rini > Cc: Wolfgang Denk > Cc: Pavel Machek > --- > arch/arm/cpu/armv7/socfpga/timer.c | 2 ++ > include/configs/socfpga_cyclone5.h | 2 -- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/cpu/armv7/socfpga/timer.c b/arch/arm/cpu/armv7/socfpga/timer.c > index 58fc789..253cde3 100644 > --- a/arch/arm/cpu/armv7/socfpga/timer.c > +++ b/arch/arm/cpu/armv7/socfpga/timer.c > @@ -8,6 +8,8 @@ > #include > #include > > +#define TIMER_LOAD_VAL 0xFFFFFFFF > + > static const struct socfpga_timer *timer_base = (void *)CONFIG_SYS_TIMERBASE; > > /* > diff --git a/include/configs/socfpga_cyclone5.h b/include/configs/socfpga_cyclone5.h > index 3b6cfb4..f50081b 100644 > --- a/include/configs/socfpga_cyclone5.h > +++ b/include/configs/socfpga_cyclone5.h > @@ -195,8 +195,6 @@ > /* This timer use eosc1 where the clock frequency is fixed > * throughout any condition */ > #define CONFIG_SYS_TIMERBASE SOCFPGA_OSC1TIMER0_ADDRESS > -/* reload value when timer count to zero */ > -#define TIMER_LOAD_VAL 0xFFFFFFFF > /* Timer info */ > #ifdef CONFIG_SOCFPGA_VIRTUAL_TARGET > #define CONFIG_SYS_TIMER_RATE 2400000 > Acked-by: Dinh Nguyen Thanks...