From: Alexander Stein Date: Mon, 9 Aug 2010 08:34:41 +0200 Subject: [U-Boot] [PATCH V3] AT91 Fix: return value of get_tbclk In-Reply-To: <4C5D9CB6.8090501@scharsoft.de> References: <4C5D9CB6.8090501@scharsoft.de> Message-ID: <201008090834.41511.alexander.stein@systec-electronic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, Am Samstag, 7. August 2010, 19:49:42 schrieb Jens Scharsig: > * Fix: return value of get_tbclk > * this fixes issue with prematurely restart/retry, if BOOT_RETRY_TIMEOUT > is used This issue also arises, if you use CONFIG_AUTOBOOT_KEYED & friends > Signed-off-by: Jens Scharsig > --- > the V3 supports the actually file structure. > the original patch > http://lists.denx.de/pipermail/u-boot/2010-April/069415.html use the old > directory /cpu/arch structure. > > arch/arm/cpu/arm926ejs/at91/timer.c | 5 +---- > 1 files changed, 1 insertions(+), 4 deletions(-) > > diff --git a/arch/arm/cpu/arm926ejs/at91/timer.c > b/arch/arm/cpu/arm926ejs/at91/timer.c index d21eebf..8efc34b 100644 > --- a/arch/arm/cpu/arm926ejs/at91/timer.c > +++ b/arch/arm/cpu/arm926ejs/at91/timer.c > @@ -138,8 +138,5 @@ ulong get_timer(ulong base) > */ > ulong get_tbclk(void) > { > - ulong tbclk; > - > - tbclk = CONFIG_SYS_HZ; > - return tbclk; > + return timer_freq; > } Best regards, Alexander