aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-m68knommu/mcfpit.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-m68knommu/mcfpit.h
Linux-2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/asm-m68knommu/mcfpit.h')
-rw-r--r--include/asm-m68knommu/mcfpit.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/include/asm-m68knommu/mcfpit.h b/include/asm-m68knommu/mcfpit.h
new file mode 100644
index 000000000000..4cc2e9fd6ad0
--- /dev/null
+++ b/include/asm-m68knommu/mcfpit.h
@@ -0,0 +1,63 @@
1/****************************************************************************/
2
3/*
4 * mcfpit.h -- ColdFire internal PIT timer support defines.
5 *
6 * (C) Copyright 2003, Greg Ungerer (gerg@snapgear.com)
7 */
8
9/****************************************************************************/
10#ifndef mcfpit_h
11#define mcfpit_h
12/****************************************************************************/
13
14#include <linux/config.h>
15
16/*
17 * Get address specific defines for the 5270/5271 and 5280/5282.
18 */
19#define MCFPIT_BASE1 0x00150000 /* Base address of TIMER1 */
20#define MCFPIT_BASE2 0x00160000 /* Base address of TIMER2 */
21#define MCFPIT_BASE3 0x00170000 /* Base address of TIMER3 */
22#define MCFPIT_BASE4 0x00180000 /* Base address of TIMER4 */
23
24
25/*
26 * Define the PIT timer register set addresses.
27 */
28struct mcfpit {
29 unsigned short pcsr; /* PIT control and status */
30 unsigned short pmr; /* PIT modulus register */
31 unsigned short pcntr; /* PIT count register */
32} __attribute__((packed));
33
34/*
35 * Bit definitions for the PIT Control and Status register.
36 */
37#define MCFPIT_PCSR_CLK1 0x0000 /* System clock divisor */
38#define MCFPIT_PCSR_CLK2 0x0100 /* System clock divisor */
39#define MCFPIT_PCSR_CLK4 0x0200 /* System clock divisor */
40#define MCFPIT_PCSR_CLK8 0x0300 /* System clock divisor */
41#define MCFPIT_PCSR_CLK16 0x0400 /* System clock divisor */
42#define MCFPIT_PCSR_CLK32 0x0500 /* System clock divisor */
43#define MCFPIT_PCSR_CLK64 0x0600 /* System clock divisor */
44#define MCFPIT_PCSR_CLK128 0x0700 /* System clock divisor */
45#define MCFPIT_PCSR_CLK256 0x0800 /* System clock divisor */
46#define MCFPIT_PCSR_CLK512 0x0900 /* System clock divisor */
47#define MCFPIT_PCSR_CLK1024 0x0a00 /* System clock divisor */
48#define MCFPIT_PCSR_CLK2048 0x0b00 /* System clock divisor */
49#define MCFPIT_PCSR_CLK4096 0x0c00 /* System clock divisor */
50#define MCFPIT_PCSR_CLK8192 0x0d00 /* System clock divisor */
51#define MCFPIT_PCSR_CLK16384 0x0e00 /* System clock divisor */
52#define MCFPIT_PCSR_CLK32768 0x0f00 /* System clock divisor */
53#define MCFPIT_PCSR_DOZE 0x0040 /* Clock run in doze mode */
54#define MCFPIT_PCSR_HALTED 0x0020 /* Clock run in halt mode */
55#define MCFPIT_PCSR_OVW 0x0010 /* Overwrite PIT counter now */
56#define MCFPIT_PCSR_PIE 0x0008 /* Enable PIT interrupt */
57#define MCFPIT_PCSR_PIF 0x0004 /* PIT interrupt flag */
58#define MCFPIT_PCSR_RLD 0x0002 /* Reload counter */
59#define MCFPIT_PCSR_EN 0x0001 /* Enable PIT */
60#define MCFPIT_PCSR_DISABLE 0x0000 /* Disable PIT */
61
62/****************************************************************************/
63#endif /* mcfpit_h */