]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/cpu/arm926ejs/mx27/timer.c
arm926ejs: timer: Replace bss variable by gdr
[u-boot] / arch / arm / cpu / arm926ejs / mx27 / timer.c
index 8f1d47bba775716ec21afd2a5e662c617b7a24d4..5c1cf014f05a46565515db626e7e425a84f66126 100644 (file)
 #define GPTCR_CLKSOURCE_32     (4 << 1)        /* Clock source         */
 #define GPTCR_TEN              1               /* Timer enable         */
 
-static ulong timestamp;
-static ulong lastinc;
+DECLARE_GLOBAL_DATA_PTR;
+
+#define timestamp gd->tbl
+#define lastinc gd->lastinc
 
 /*
  * "time" is measured in 1 / CONFIG_SYS_HZ seconds,