projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' of /home/wd/git/u-boot/custodians
[oweals/u-boot.git]
/
arch
/
arm
/
cpu
/
arm926ejs
/
spear
/
timer.c
diff --git
a/arch/arm/cpu/arm926ejs/spear/timer.c
b/arch/arm/cpu/arm926ejs/spear/timer.c
index 06858b4a13bacf4fcaad376eff0a7aed407cd7d1..66cf4de81713205d24e1b3d94f862f01badf62a4 100644
(file)
--- a/
arch/arm/cpu/arm926ejs/spear/timer.c
+++ b/
arch/arm/cpu/arm926ejs/spear/timer.c
@@
-36,8
+36,10
@@
static struct gpt_regs *const gpt_regs_p =
static struct misc_regs *const misc_regs_p =
(struct misc_regs *)CONFIG_SPEAR_MISCBASE;
-static ulong timestamp;
-static ulong lastdec;
+DECLARE_GLOBAL_DATA_PTR;
+
+#define timestamp gd->tbl
+#define lastdec gd->lastinc
int timer_init(void)
{