summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/arm926ejs/davinci
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-12-13 20:48:33 +0000
committerTom Rini <trini@ti.com>2013-02-01 15:07:50 -0500
commit8ff43b03e9f38a6e136e2e20eec4e8b2eb4a1d3d (patch)
tree15e1efcbbead4e7612e8b084f9fcee4f0d5e2bd1 /arch/arm/cpu/arm926ejs/davinci
parentb339051c0d45599c3c874141c52d912d78991dd4 (diff)
downloadu-boot-imx-8ff43b03e9f38a6e136e2e20eec4e8b2eb4a1d3d.zip
u-boot-imx-8ff43b03e9f38a6e136e2e20eec4e8b2eb4a1d3d.tar.gz
u-boot-imx-8ff43b03e9f38a6e136e2e20eec4e8b2eb4a1d3d.tar.bz2
arm: Move tbu to arch_global_data
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/cpu/arm926ejs/davinci')
-rw-r--r--arch/arm/cpu/arm926ejs/davinci/timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/cpu/arm926ejs/davinci/timer.c b/arch/arm/cpu/arm926ejs/davinci/timer.c
index 7e852b5..e28e6e3 100644
--- a/arch/arm/cpu/arm926ejs/davinci/timer.c
+++ b/arch/arm/cpu/arm926ejs/davinci/timer.c
@@ -75,10 +75,10 @@ unsigned long long get_ticks(void)
/* increment tbu if tbl has rolled over */
if (now < gd->tbl)
- gd->tbu++;
+ gd->arch.tbu++;
gd->tbl = now;
- return (((unsigned long long)gd->tbu) << 32) | gd->tbl;
+ return (((unsigned long long)gd->arch.tbu) << 32) | gd->tbl;
}
ulong get_timer(ulong base)