diff options
author | Simon Glass <sjg@chromium.org> | 2012-12-13 20:48:32 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-02-01 15:07:49 -0500 |
commit | b339051c0d45599c3c874141c52d912d78991dd4 (patch) | |
tree | 1a78d10e99fe38a735ef9de3884709b1f3966059 /arch/arm/cpu/arm920t/s3c24x0/timer.c | |
parent | f47e6ecd5d0cca61602a3d569b40a99d0bb7604a (diff) | |
download | talos-obmc-uboot-b339051c0d45599c3c874141c52d912d78991dd4.tar.gz talos-obmc-uboot-b339051c0d45599c3c874141c52d912d78991dd4.zip |
arm: Move timer_rate_hz into 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/arm920t/s3c24x0/timer.c')
-rw-r--r-- | arch/arm/cpu/arm920t/s3c24x0/timer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/cpu/arm920t/s3c24x0/timer.c b/arch/arm/cpu/arm920t/s3c24x0/timer.c index d8668bec5e..7694feac67 100644 --- a/arch/arm/cpu/arm920t/s3c24x0/timer.c +++ b/arch/arm/cpu/arm920t/s3c24x0/timer.c @@ -52,7 +52,7 @@ int timer_init(void) * @33.25MHz and 15625 @ 50 MHz */ gd->tbu = get_PCLK() / (2 * 16 * 100); - gd->timer_rate_hz = get_PCLK() / (2 * 16); + gd->arch.timer_rate_hz = get_PCLK() / (2 * 16); } /* load value for 10 ms timeout */ writel(gd->tbu, &timers->tcntb4); @@ -93,7 +93,7 @@ ulong get_timer_masked(void) { ulong tmr = get_ticks(); - return tmr / (gd->timer_rate_hz / CONFIG_SYS_HZ); + return tmr / (gd->arch.timer_rate_hz / CONFIG_SYS_HZ); } void udelay_masked(unsigned long usec) |