projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mx25: Make the UART port number explicit in its setup function
[oweals/u-boot.git]
/
arch
/
arm
/
cpu
/
arm926ejs
/
mx25
/
timer.c
diff --git
a/arch/arm/cpu/arm926ejs/mx25/timer.c
b/arch/arm/cpu/arm926ejs/mx25/timer.c
index 11d41a8bf9f5b44ec098c18e4b62911f66cc1115..14f0c2dc73b923f28480abeccdba42a3675f2c12 100644
(file)
--- a/
arch/arm/cpu/arm926ejs/mx25/timer.c
+++ b/
arch/arm/cpu/arm926ejs/mx25/timer.c
@@
-41,8
+41,10
@@
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
-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,