Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
wdenk | 32fe287 | 2002-10-11 07:57:01 +0000 | [diff] [blame] | 2 | /* |
Marek Vasut | ba2d9be | 2011-11-26 10:02:41 +0100 | [diff] [blame] | 3 | * Marvell PXA2xx/3xx timer driver |
wdenk | 32fe287 | 2002-10-11 07:57:01 +0000 | [diff] [blame] | 4 | * |
Marek Vasut | ba2d9be | 2011-11-26 10:02:41 +0100 | [diff] [blame] | 5 | * Copyright (C) 2011 Marek Vasut <marek.vasut@gmail.com> |
wdenk | 32fe287 | 2002-10-11 07:57:01 +0000 | [diff] [blame] | 6 | */ |
7 | |||||
Marek Vasut | 2db1e96 | 2010-09-09 09:50:39 +0200 | [diff] [blame] | 8 | #include <common.h> |
Simon Glass | 9758973 | 2020-05-10 11:40:02 -0600 | [diff] [blame] | 9 | #include <init.h> |
Marcel Ziswiler | fe8ade0 | 2015-08-16 04:16:26 +0200 | [diff] [blame] | 10 | #include <asm/io.h> |
wdenk | 32fe287 | 2002-10-11 07:57:01 +0000 | [diff] [blame] | 11 | |
Marek Vasut | ba2d9be | 2011-11-26 10:02:41 +0100 | [diff] [blame] | 12 | int timer_init(void) |
wdenk | 32fe287 | 2002-10-11 07:57:01 +0000 | [diff] [blame] | 13 | { |
Andrew Ruder | c224090 | 2015-08-12 13:18:31 -0500 | [diff] [blame] | 14 | writel(0, CONFIG_SYS_TIMER_COUNTER); |
Jean-Christophe PLAGNIOL-VILLARD | 8c9fc00 | 2009-05-15 23:47:02 +0200 | [diff] [blame] | 15 | return 0; |
wdenk | 32fe287 | 2002-10-11 07:57:01 +0000 | [diff] [blame] | 16 | } |