summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2015-09-03 12:47:07 +0200
committerLuka Perkov <luka.perkov@sartura.hr>2015-10-01 02:00:02 +0200
commit787ddb7cd141bda9f0c4818023a2fd684053c15a (patch)
tree09356b5ad8a73cd0e60baaf5168a764e2095ee07 /arch
parentcefd764222ee0d030b90e594f84eddeac7b9b423 (diff)
downloadtalos-obmc-uboot-787ddb7cd141bda9f0c4818023a2fd684053c15a.tar.gz
talos-obmc-uboot-787ddb7cd141bda9f0c4818023a2fd684053c15a.zip
arm: mvebu: timer.c: Explicitly move "init_done" var to data section
As reported by Simon Guinot, commit ade741b3 "arm: mvebu: Call timer_init early before PHY and DDR init" breaks Kirkwood platforms. As the static variable "init_done" is not available at that early boot time. This patch moves it to explicitly to the data section, making it available at that time. Signed-off-by: Stefan Roese <sr@denx.de> Reported-by: Simon Guinot <simon.guinot@sequanux.org> Cc: Luka Perkov <luka.perkov@sartura.hr> Tested-by: Simon Guinot <simon.guinot@sequanux.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mvebu/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-mvebu/timer.c b/arch/arm/mach-mvebu/timer.c
index c516c419ed..5449a8926c 100644
--- a/arch/arm/mach-mvebu/timer.c
+++ b/arch/arm/mach-mvebu/timer.c
@@ -41,7 +41,7 @@
#define timestamp gd->arch.tbl
#define lastdec gd->arch.lastinc
-static int init_done;
+static int init_done __attribute__((section(".data"))) = 0;
/* Timer reload and current value registers */
struct kwtmr_val {
OpenPOWER on IntegriCloud