]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: highbank: avoid bss write in timer_init
authorRob Herring <rob.herring@calxeda.com>
Thu, 13 Jun 2013 03:24:50 +0000 (22:24 -0500)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 25 Jul 2013 06:15:44 +0000 (08:15 +0200)
The timer_init function is called before relocation and writes to bss data
were corrupting relocation data. Fix this by removing the call to
reset_timer_masked. The initial timer count should be 0 or near 0 anyway,
so initializing the variables are not needed.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
arch/arm/cpu/armv7/highbank/timer.c

index d93de1e611411f96b19c2c8e3da3674ded45cc9c..832c0123e5da11b722c81e42661762284303c965 100644 (file)
@@ -46,8 +46,6 @@ int timer_init(void)
        writel(SYSTIMER_EN | SYSTIMER_32BIT | SYSTIMER_PRESC_256,
                &systimer_base->timer0control);
 
-       reset_timer_masked();
-
        return 0;
 
 }