summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/arm920t/s3c24x0/timer.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-12-13 20:48:32 +0000
committerTom Rini <trini@ti.com>2013-02-01 15:07:49 -0500
commitb339051c0d45599c3c874141c52d912d78991dd4 (patch)
tree1a78d10e99fe38a735ef9de3884709b1f3966059 /arch/arm/cpu/arm920t/s3c24x0/timer.c
parentf47e6ecd5d0cca61602a3d569b40a99d0bb7604a (diff)
downloadtalos-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.c4
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)
OpenPOWER on IntegriCloud