summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2013-06-12 22:24:50 -0500
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2013-07-25 08:15:44 +0200
commit0f7cf3803f59b0c8d94aa52cc8827aab28591eb4 (patch)
tree30eaea06f19d534b1a5ba790ef5ea7b09eb1c112
parent714d1f5da53101ec44ab9c3d10564462b102bd8f (diff)
downloadu-boot-imx-0f7cf3803f59b0c8d94aa52cc8827aab28591eb4.zip
u-boot-imx-0f7cf3803f59b0c8d94aa52cc8827aab28591eb4.tar.gz
u-boot-imx-0f7cf3803f59b0c8d94aa52cc8827aab28591eb4.tar.bz2
ARM: highbank: avoid bss write in timer_init
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>
-rw-r--r--arch/arm/cpu/armv7/highbank/timer.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/highbank/timer.c b/arch/arm/cpu/armv7/highbank/timer.c
index d93de1e..832c012 100644
--- a/arch/arm/cpu/armv7/highbank/timer.c
+++ b/arch/arm/cpu/armv7/highbank/timer.c
@@ -46,8 +46,6 @@ int timer_init(void)
writel(SYSTIMER_EN | SYSTIMER_32BIT | SYSTIMER_PRESC_256,
&systimer_base->timer0control);
- reset_timer_masked();
-
return 0;
}