diff options
author | Tom Rini <trini@ti.com> | 2014-12-19 16:52:55 -0500 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2015-01-05 15:13:45 -0500 |
commit | b31079282e16c77f6f8878999867c7d622ececae (patch) | |
tree | de4301a0f6e17447d68164ae38ccce2ce3f42049 /arch/arm/cpu/armv7 | |
parent | b352dde1ea715e8481946ec7d8086b3c3eb126ae (diff) | |
download | u-boot-imx-b31079282e16c77f6f8878999867c7d622ececae.zip u-boot-imx-b31079282e16c77f6f8878999867c7d622ececae.tar.gz u-boot-imx-b31079282e16c77f6f8878999867c7d622ececae.tar.bz2 |
omap-common/hwinit-common.c: timer_init() doesn't need to touch gd
The gd will be cleared at first so we don't need to set arch.tbl to 0.
In addition, the checks later against lastinc also work fine with an
initial value of 0 here. This also brings us in line with sunxi code
for example.
Signed-off-by: Tom Rini <trini@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/cpu/armv7')
-rw-r--r-- | arch/arm/cpu/armv7/omap-common/timer.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/arm/cpu/armv7/omap-common/timer.c b/arch/arm/cpu/armv7/omap-common/timer.c index 7c9924d..032bd2c 100644 --- a/arch/arm/cpu/armv7/omap-common/timer.c +++ b/arch/arm/cpu/armv7/omap-common/timer.c @@ -41,11 +41,6 @@ int timer_init(void) writel((CONFIG_SYS_PTV << 2) | TCLR_PRE | TCLR_AR | TCLR_ST, &timer_base->tclr); - /* reset time, capture current incrementer value time */ - gd->arch.lastinc = readl(&timer_base->tcrr) / - (TIMER_CLOCK / CONFIG_SYS_HZ); - gd->arch.tbl = 0; /* start "advancing" time stamp from 0 */ - return 0; } |