]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/arm1176/tnetv107x/timer.c
ARM: remove a320evb board support
[karo-tx-uboot.git] / arch / arm / cpu / arm1176 / tnetv107x / timer.c
index a7a400d1e12b56f1656f52362a10d416f3c70e9f..6e0dd0d2bd41b78945c216eaaeb62d82ec933782 100644 (file)
@@ -1,22 +1,7 @@
 /*
  * TNETV107X: Timer implementation
  *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -60,15 +45,6 @@ int timer_init(void)
        return 0;
 }
 
-void reset_timer(void)
-{
-       lastinc = timestamp = 0;
-
-       __raw_writel(0,         &regs->tcr);
-       __raw_writel(0,         &regs->tim34);
-       __raw_writel(2 << 22,   &regs->tcr);
-}
-
 static ulong get_timer_raw(void)
 {
        ulong now = __raw_readl(&regs->tim34);
@@ -88,11 +64,6 @@ ulong get_timer(ulong base)
        return (get_timer_raw() / (TIMER_LOAD_VAL / TIM_CLK_DIV)) - base;
 }
 
-void set_timer(ulong t)
-{
-       timestamp = t;
-}
-
 unsigned long long get_ticks(void)
 {
        return get_timer(0);