]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/cpu/arm926ejs/armada100/timer.c
Merge commit '7b2fac7654f7420c2787f74ec3b1540fa3b343e9'
[u-boot] / arch / arm / cpu / arm926ejs / armada100 / timer.c
index eb4923463d47e1859c18065c73474f0aea9fb214..82a6d7b72dc8f5ee644049ed83e2f28fe7e43d64 100644 (file)
@@ -77,13 +77,6 @@ ulong read_timer(void)
        return(readl(&armd1timers->cvwr));
 }
 
-void reset_timer_masked(void)
-{
-       /* reset time */
-       gd->tbl = read_timer();
-       gd->tbu = 0;
-}
-
 ulong get_timer_masked(void)
 {
        ulong now = read_timer();
@@ -100,11 +93,6 @@ ulong get_timer_masked(void)
        return gd->tbu;
 }
 
-void reset_timer(void)
-{
-       reset_timer_masked();
-}
-
 ulong get_timer(ulong base)
 {
        return ((get_timer_masked() / (CONFIG_SYS_HZ_CLOCK / 1000)) -
@@ -147,7 +135,8 @@ int timer_init(void)
        /* Enable timer 0 */
        writel(0x1, &armd1timers->cer);
        /* init the gd->tbu and gd->tbl value */
-       reset_timer_masked();
+       gd->tbl = read_timer();
+       gd->tbu = 0;
 
        return 0;
 }