From: Reinhard Meyer Date: Tue, 31 Aug 2010 09:36:43 +0200 Subject: [U-Boot] [PATCH V3] AT91 Fix: return value of get_tbclk In-Reply-To: <201008300852.07385.alexander.stein@systec-electronic.com> References: <4C5D9CB6.8090501@scharsoft.de> <201008090834.41511.alexander.stein@systec-electronic.com> <0F5F73E36031FD46AD3F2E6948F0C0A0042AE80C@frimb01.corp.atmel.com> <201008300852.07385.alexander.stein@systec-electronic.com> Message-ID: <4C7CB10B.6020407@emk-elektronik.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, this patch also fixed BOOTDELAY on AT91: * Fix: return value of get_tbclk * this fixes issue with prematurely restart/retry, if BOOT_RETRY_TIMEOUT is used Signed-off-by: Jens Scharsig --- cpu/arm926ejs/at91/timer.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/cpu/arm926ejs/at91/timer.c b/cpu/arm926ejs/at91/timer.c index d21eebf..8efc34b 100644 --- a/cpu/arm926ejs/at91/timer.c +++ b/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; } -- 1.6.0.2 Applied to u-boot-atmel/next Thanks, Reinhard