diff options
author | Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> | 2007-10-22 06:43:15 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-10-22 17:09:00 -0400 |
commit | 1097c6ac33defae6cf501b7919c23faf240601f0 (patch) | |
tree | 326fdeb21a0b0b67a569e74117c63d74620a0fb2 /include/asm-mips | |
parent | d04533650f64fe3367e180f3e488d92205152cd3 (diff) |
[MIPS] time: Add GT641xx timer0 clockevent driver
And make use of it for Cobalt. A few others such as the Malta could make
use of it as well.
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips')
-rw-r--r-- | include/asm-mips/gt64120.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-mips/gt64120.h b/include/asm-mips/gt64120.h index 4bf8e28f8850..e64b41093c49 100644 --- a/include/asm-mips/gt64120.h +++ b/include/asm-mips/gt64120.h | |||
@@ -21,6 +21,8 @@ | |||
21 | #ifndef _ASM_GT64120_H | 21 | #ifndef _ASM_GT64120_H |
22 | #define _ASM_GT64120_H | 22 | #define _ASM_GT64120_H |
23 | 23 | ||
24 | #include <linux/clocksource.h> | ||
25 | |||
24 | #include <asm/addrspace.h> | 26 | #include <asm/addrspace.h> |
25 | #include <asm/byteorder.h> | 27 | #include <asm/byteorder.h> |
26 | 28 | ||
@@ -572,4 +574,7 @@ | |||
572 | #define GT_READ(ofs) le32_to_cpu(__GT_READ(ofs)) | 574 | #define GT_READ(ofs) le32_to_cpu(__GT_READ(ofs)) |
573 | #define GT_WRITE(ofs, data) __GT_WRITE(ofs, cpu_to_le32(data)) | 575 | #define GT_WRITE(ofs, data) __GT_WRITE(ofs, cpu_to_le32(data)) |
574 | 576 | ||
577 | extern void gt641xx_set_base_clock(unsigned int clock); | ||
578 | extern int gt641xx_timer0_state(void); | ||
579 | |||
575 | #endif /* _ASM_GT64120_H */ | 580 | #endif /* _ASM_GT64120_H */ |