diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2010-06-19 00:08:09 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-08-05 08:26:13 -0400 |
commit | 544a7324198972716d486e04e77bc2622e12245b (patch) | |
tree | 486c239bf899218fcd351c47240ebfbc05eb5f14 /arch/mips/include/asm/mach-jz4740 | |
parent | 9869848d12601cdddf097a36aebe0b10dc5d177b (diff) |
MIPS: JZ4740: Add timer support
Add support for the timer/counter unit on a JZ4740 SoC. This code is used
as a common base for the JZ4740 clocksource/clockevent implementation and
PWM support.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/1396/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/mach-jz4740')
-rw-r--r-- | arch/mips/include/asm/mach-jz4740/timer.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-jz4740/timer.h b/arch/mips/include/asm/mach-jz4740/timer.h new file mode 100644 index 000000000000..9baa03ce748c --- /dev/null +++ b/arch/mips/include/asm/mach-jz4740/timer.h | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de> | ||
3 | * JZ4740 platform timer support | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify it | ||
6 | * under the terms of the GNU General Public License as published by the | ||
7 | * Free Software Foundation; either version 2 of the License, or (at your | ||
8 | * option) any later version. | ||
9 | * | ||
10 | * You should have received a copy of the GNU General Public License along | ||
11 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
12 | * 675 Mass Ave, Cambridge, MA 02139, USA. | ||
13 | * | ||
14 | */ | ||
15 | |||
16 | #ifndef __ASM_MACH_JZ4740_TIMER | ||
17 | #define __ASM_MACH_JZ4740_TIMER | ||
18 | |||
19 | void jz4740_timer_enable_watchdog(void); | ||
20 | void jz4740_timer_disable_watchdog(void); | ||
21 | |||
22 | #endif | ||