aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/scx200.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/linux/scx200.h
Linux-2.6.12-rc2v2.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/linux/scx200.h')
-rw-r--r--include/linux/scx200.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/include/linux/scx200.h b/include/linux/scx200.h
new file mode 100644
index 000000000000..a22f9e173ad2
--- /dev/null
+++ b/include/linux/scx200.h
@@ -0,0 +1,58 @@
1/* linux/include/linux/scx200.h
2
3 Copyright (c) 2001,2002 Christer Weinigel <wingel@nano-system.com>
4
5 Defines for the National Semiconductor SCx200 Processors
6*/
7
8/* Interesting stuff for the National Semiconductor SCx200 CPU */
9
10extern unsigned scx200_cb_base;
11
12#define scx200_cb_present() (scx200_cb_base!=0)
13
14/* F0 PCI Header/Bridge Configuration Registers */
15#define SCx200_DOCCS_BASE 0x78 /* DOCCS Base Address Register */
16#define SCx200_DOCCS_CTRL 0x7c /* DOCCS Control Register */
17
18/* GPIO Register Block */
19#define SCx200_GPIO_SIZE 0x2c /* Size of GPIO register block */
20
21/* General Configuration Block */
22#define SCx200_CB_BASE_FIXED 0x9000 /* Base fixed at 0x9000 according to errata? */
23
24/* Watchdog Timer */
25#define SCx200_WDT_OFFSET 0x00 /* offset within configuration block */
26#define SCx200_WDT_SIZE 0x05 /* size */
27
28#define SCx200_WDT_WDTO 0x00 /* Time-Out Register */
29#define SCx200_WDT_WDCNFG 0x02 /* Configuration Register */
30#define SCx200_WDT_WDSTS 0x04 /* Status Register */
31#define SCx200_WDT_WDSTS_WDOVF (1<<0) /* Overflow bit */
32
33/* High Resolution Timer */
34#define SCx200_TIMER_OFFSET 0x08
35#define SCx200_TIMER_SIZE 0x05
36
37/* Clock Generators */
38#define SCx200_CLOCKGEN_OFFSET 0x10
39#define SCx200_CLOCKGEN_SIZE 0x10
40
41/* Pin Multiplexing and Miscellaneous Configuration Registers */
42#define SCx200_MISC_OFFSET 0x30
43#define SCx200_MISC_SIZE 0x10
44
45#define SCx200_PMR 0x30 /* Pin Multiplexing Register */
46#define SCx200_MCR 0x34 /* Miscellaneous Configuration Register */
47#define SCx200_INTSEL 0x38 /* Interrupt Selection Register */
48#define SCx200_IID 0x3c /* IA On a Chip Identification Number Reg */
49#define SCx200_REV 0x3d /* Revision Register */
50#define SCx200_CBA 0x3e /* Configuration Base Address Register */
51#define SCx200_CBA_SCRATCH 0x64 /* Configuration Base Address Scratchpad */
52
53/*
54 Local variables:
55 compile-command: "make -C ../.. bzImage modules"
56 c-basic-offset: 8
57 End:
58*/