Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * include/asm-sh/cpu-sh3/timer.h |
| 3 | * |
| 4 | * Copyright (C) 2004 Lineo Solutions, Inc. |
| 5 | * |
| 6 | * This file is subject to the terms and conditions of the GNU General Public |
| 7 | * License. See the file "COPYING" in the main directory of this archive |
| 8 | * for more details. |
| 9 | */ |
| 10 | #ifndef __ASM_CPU_SH3_TIMER_H |
| 11 | #define __ASM_CPU_SH3_TIMER_H |
| 12 | |
| 13 | /* |
| 14 | * --------------------------------------------------------------------------- |
| 15 | * TMU Common definitions for SH3 processors |
| 16 | * SH7706 |
| 17 | * SH7709S |
| 18 | * SH7727 |
| 19 | * SH7729R |
| 20 | * SH7710 |
| 21 | * SH7720 |
Paul Mundt | e5723e0 | 2006-09-27 17:38:11 +0900 | [diff] [blame] | 22 | * SH7710 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | * --------------------------------------------------------------------------- |
| 24 | */ |
| 25 | |
Yoshihiro Shimoda | 31a49c4 | 2007-12-26 11:45:06 +0900 | [diff] [blame] | 26 | #if !defined(CONFIG_CPU_SUBTYPE_SH7720) && !defined(CONFIG_CPU_SUBTYPE_SH7721) |
Paul Mundt | d95fb13 | 2006-09-27 13:30:08 +0900 | [diff] [blame] | 27 | #define TMU_TOCR 0xfffffe90 /* Byte access */ |
| 28 | #endif |
| 29 | |
Markus Brunner | 3ea6bc3 | 2007-08-20 08:59:33 +0900 | [diff] [blame] | 30 | #if defined(CONFIG_CPU_SUBTYPE_SH7710) || \ |
Yoshihiro Shimoda | 31a49c4 | 2007-12-26 11:45:06 +0900 | [diff] [blame] | 31 | defined(CONFIG_CPU_SUBTYPE_SH7720) || \ |
| 32 | defined(CONFIG_CPU_SUBTYPE_SH7721) |
Nobuhiro Iwamatsu | 75f016a | 2007-07-06 10:26:03 +0900 | [diff] [blame] | 33 | #define TMU_012_TSTR 0xa412fe92 /* Byte access */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 34 | |
| 35 | #define TMU0_TCOR 0xa412fe94 /* Long access */ |
| 36 | #define TMU0_TCNT 0xa412fe98 /* Long access */ |
| 37 | #define TMU0_TCR 0xa412fe9c /* Word access */ |
| 38 | |
| 39 | #define TMU1_TCOR 0xa412fea0 /* Long access */ |
| 40 | #define TMU1_TCNT 0xa412fea4 /* Long access */ |
| 41 | #define TMU1_TCR 0xa412fea8 /* Word access */ |
| 42 | |
| 43 | #define TMU2_TCOR 0xa412feac /* Long access */ |
| 44 | #define TMU2_TCNT 0xa412feb0 /* Long access */ |
| 45 | #define TMU2_TCR 0xa412feb4 /* Word access */ |
| 46 | |
| 47 | #else |
Nobuhiro Iwamatsu | 75f016a | 2007-07-06 10:26:03 +0900 | [diff] [blame] | 48 | #define TMU_012_TSTR 0xfffffe92 /* Byte access */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 49 | |
| 50 | #define TMU0_TCOR 0xfffffe94 /* Long access */ |
| 51 | #define TMU0_TCNT 0xfffffe98 /* Long access */ |
| 52 | #define TMU0_TCR 0xfffffe9c /* Word access */ |
| 53 | |
| 54 | #define TMU1_TCOR 0xfffffea0 /* Long access */ |
| 55 | #define TMU1_TCNT 0xfffffea4 /* Long access */ |
| 56 | #define TMU1_TCR 0xfffffea8 /* Word access */ |
| 57 | |
| 58 | #define TMU2_TCOR 0xfffffeac /* Long access */ |
| 59 | #define TMU2_TCNT 0xfffffeb0 /* Long access */ |
| 60 | #define TMU2_TCR 0xfffffeb4 /* Word access */ |
Yoshihiro Shimoda | 31a49c4 | 2007-12-26 11:45:06 +0900 | [diff] [blame] | 61 | #if !defined(CONFIG_CPU_SUBTYPE_SH7720) && !defined(CONFIG_CPU_SUBTYPE_SH7721) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 62 | #define TMU2_TCPR2 0xfffffeb8 /* Long access */ |
| 63 | #endif |
| 64 | #endif |
| 65 | |
| 66 | #endif /* __ASM_CPU_SH3_TIMER_H */ |
| 67 | |