blob: d1e796b9688857349bf40f5883f348309801ff7b [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * include/asm-sh/cpu-sh4/timer.h
3 *
Paul Mundt2b1bd1a2007-06-20 18:27:10 +09004 * Copyright (C) 2004 Lineo Solutions, Inc.
Linus Torvalds1da177e2005-04-16 15:20:36 -07005 *
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_SH4_TIMER_H
11#define __ASM_CPU_SH4_TIMER_H
12
13/*
14 * ---------------------------------------------------------------------------
15 * TMU Common definitions for SH4 processors
16 * SH7750S/SH7750R
17 * SH7751/SH7751R
18 * SH7760
Paul Mundt2b1bd1a2007-06-20 18:27:10 +090019 * SH-X3
Linus Torvalds1da177e2005-04-16 15:20:36 -070020 * ---------------------------------------------------------------------------
21 */
Paul Mundt2b1bd1a2007-06-20 18:27:10 +090022#ifdef CONFIG_CPU_SUBTYPE_SHX3
23#define TMU_012_BASE 0xffc10000
24#define TMU_345_BASE 0xffc20000
25#else
26#define TMU_012_BASE 0xffd80000
27#define TMU_345_BASE 0xfe100000
Linus Torvalds1da177e2005-04-16 15:20:36 -070028#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070029
Paul Mundt2b1bd1a2007-06-20 18:27:10 +090030#define TMU_TOCR TMU_012_BASE /* Not supported on all CPUs */
Linus Torvalds1da177e2005-04-16 15:20:36 -070031
Paul Mundt2b1bd1a2007-06-20 18:27:10 +090032#define TMU_012_TSTR (TMU_012_BASE + 0x04)
33#define TMU_345_TSTR (TMU_345_BASE + 0x04)
Linus Torvalds1da177e2005-04-16 15:20:36 -070034
Paul Mundt2b1bd1a2007-06-20 18:27:10 +090035#define TMU0_TCOR (TMU_012_BASE + 0x08)
36#define TMU0_TCNT (TMU_012_BASE + 0x0c)
37#define TMU0_TCR (TMU_012_BASE + 0x10)
Linus Torvalds1da177e2005-04-16 15:20:36 -070038
Paul Mundt2b1bd1a2007-06-20 18:27:10 +090039#define TMU1_TCOR (TMU_012_BASE + 0x14)
40#define TMU1_TCNT (TMU_012_BASE + 0x18)
41#define TMU1_TCR (TMU_012_BASE + 0x1c)
Linus Torvalds1da177e2005-04-16 15:20:36 -070042
Paul Mundt2b1bd1a2007-06-20 18:27:10 +090043#define TMU2_TCOR (TMU_012_BASE + 0x20)
44#define TMU2_TCNT (TMU_012_BASE + 0x24)
45#define TMU2_TCR (TMU_012_BASE + 0x28)
46#define TMU2_TCPR (TMU_012_BASE + 0x2c)
47
48#define TMU3_TCOR (TMU_345_BASE + 0x08)
49#define TMU3_TCNT (TMU_345_BASE + 0x0c)
50#define TMU3_TCR (TMU_345_BASE + 0x10)
51
52#define TMU4_TCOR (TMU_345_BASE + 0x14)
53#define TMU4_TCNT (TMU_345_BASE + 0x18)
54#define TMU4_TCR (TMU_345_BASE + 0x1c)
55
56#define TMU5_TCOR (TMU_345_BASE + 0x20)
57#define TMU5_TCNT (TMU_345_BASE + 0x24)
58#define TMU5_TCR (TMU_345_BASE + 0x28)
Linus Torvalds1da177e2005-04-16 15:20:36 -070059
60#endif /* __ASM_CPU_SH4_TIMER_H */