diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-arm/arch-s3c2410/regs-dsc.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/asm-arm/arch-s3c2410/regs-dsc.h')
-rw-r--r-- | include/asm-arm/arch-s3c2410/regs-dsc.h | 183 |
1 files changed, 183 insertions, 0 deletions
diff --git a/include/asm-arm/arch-s3c2410/regs-dsc.h b/include/asm-arm/arch-s3c2410/regs-dsc.h new file mode 100644 index 000000000000..a023b0434efe --- /dev/null +++ b/include/asm-arm/arch-s3c2410/regs-dsc.h | |||
@@ -0,0 +1,183 @@ | |||
1 | /* linux/include/asm/hardware/s3c2410/regs-dsc.h | ||
2 | * | ||
3 | * Copyright (c) 2004 Simtec Electronics <linux@simtec.co.uk> | ||
4 | * http://www.simtec.co.uk/products/SWLINUX/ | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | * | ||
10 | * S3C2440 Signal Drive Strength Control | ||
11 | * | ||
12 | * Changelog: | ||
13 | * 11-Aug-2004 BJD Created file | ||
14 | * 25-Aug-2004 BJD Added the _SELECT_* defs for using with functions | ||
15 | */ | ||
16 | |||
17 | |||
18 | #ifndef __ASM_ARCH_REGS_DSC_H | ||
19 | #define __ASM_ARCH_REGS_DSC_H "2440-dsc" | ||
20 | |||
21 | #ifdef CONFIG_CPU_S3C2440 | ||
22 | |||
23 | #define S3C2440_DSC0 S3C2410_GPIOREG(0xc4) | ||
24 | #define S3C2440_DSC1 S3C2410_GPIOREG(0xc8) | ||
25 | |||
26 | #define S3C2440_SELECT_DSC0 (0) | ||
27 | #define S3C2440_SELECT_DSC1 (1<<31) | ||
28 | |||
29 | #define S3C2440_DSC_GETSHIFT(x) ((x) & 31) | ||
30 | |||
31 | #define S3C2440_DSC0_DISABLE (1<<31) | ||
32 | |||
33 | #define S3C2440_DSC0_ADDR (S3C2440_SELECT_DSC0 | 8) | ||
34 | #define S3C2440_DSC0_ADDR_12mA (0<<8) | ||
35 | #define S3C2440_DSC0_ADDR_10mA (1<<8) | ||
36 | #define S3C2440_DSC0_ADDR_8mA (2<<8) | ||
37 | #define S3C2440_DSC0_ADDR_6mA (3<<8) | ||
38 | #define S3C2440_DSC0_ADDR_MASK (3<<8) | ||
39 | |||
40 | /* D24..D31 */ | ||
41 | #define S3C2440_DSC0_DATA3 (S3C2440_SELECT_DSC0 | 6) | ||
42 | #define S3C2440_DSC0_DATA3_12mA (0<<6) | ||
43 | #define S3C2440_DSC0_DATA3_10mA (1<<6) | ||
44 | #define S3C2440_DSC0_DATA3_8mA (2<<6) | ||
45 | #define S3C2440_DSC0_DATA3_6mA (3<<6) | ||
46 | #define S3C2440_DSC0_DATA3_MASK (3<<6) | ||
47 | |||
48 | /* D16..D23 */ | ||
49 | #define S3C2440_DSC0_DATA2 (S3C2440_SELECT_DSC0 | 4) | ||
50 | #define S3C2440_DSC0_DATA2_12mA (0<<4) | ||
51 | #define S3C2440_DSC0_DATA2_10mA (1<<4) | ||
52 | #define S3C2440_DSC0_DATA2_8mA (2<<4) | ||
53 | #define S3C2440_DSC0_DATA2_6mA (3<<4) | ||
54 | #define S3C2440_DSC0_DATA2_MASK (3<<4) | ||
55 | |||
56 | /* D8..D15 */ | ||
57 | #define S3C2440_DSC0_DATA1 (S3C2440_SELECT_DSC0 | 2) | ||
58 | #define S3C2440_DSC0_DATA1_12mA (0<<2) | ||
59 | #define S3C2440_DSC0_DATA1_10mA (1<<2) | ||
60 | #define S3C2440_DSC0_DATA1_8mA (2<<2) | ||
61 | #define S3C2440_DSC0_DATA1_6mA (3<<2) | ||
62 | #define S3C2440_DSC0_DATA1_MASK (3<<2) | ||
63 | |||
64 | /* D0..D7 */ | ||
65 | #define S3C2440_DSC0_DATA0 (S3C2440_SELECT_DSC0 | 0) | ||
66 | #define S3C2440_DSC0_DATA0_12mA (0<<0) | ||
67 | #define S3C2440_DSC0_DATA0_10mA (1<<0) | ||
68 | #define S3C2440_DSC0_DATA0_8mA (2<<0) | ||
69 | #define S3C2440_DSC0_DATA0_6mA (3<<0) | ||
70 | #define S3C2440_DSC0_DATA0_MASK (3<<0) | ||
71 | |||
72 | #define S3C2440_DSC1_SCK1 (S3C2440_SELECT_DSC1 | 28) | ||
73 | #define S3C2440_DSC1_SCK1_12mA (0<<28) | ||
74 | #define S3C2440_DSC1_SCK1_10mA (1<<28) | ||
75 | #define S3C2440_DSC1_SCK1_8mA (2<<28) | ||
76 | #define S3C2440_DSC1_SCK1_6mA (3<<28) | ||
77 | #define S3C2440_DSC1_SCK1_MASK (3<<28) | ||
78 | |||
79 | #define S3C2440_DSC1_SCK0 (S3C2440_SELECT_DSC1 | 26) | ||
80 | #define S3C2440_DSC1_SCK0_12mA (0<<26) | ||
81 | #define S3C2440_DSC1_SCK0_10mA (1<<26) | ||
82 | #define S3C2440_DSC1_SCK0_8mA (2<<26) | ||
83 | #define S3C2440_DSC1_SCK0_6mA (3<<26) | ||
84 | #define S3C2440_DSC1_SCK0_MASK (3<<26) | ||
85 | |||
86 | #define S3C2440_DSC1_SCKE (S3C2440_SELECT_DSC1 | 24) | ||
87 | #define S3C2440_DSC1_SCKE_10mA (0<<24) | ||
88 | #define S3C2440_DSC1_SCKE_8mA (1<<24) | ||
89 | #define S3C2440_DSC1_SCKE_6mA (2<<24) | ||
90 | #define S3C2440_DSC1_SCKE_4mA (3<<24) | ||
91 | #define S3C2440_DSC1_SCKE_MASK (3<<24) | ||
92 | |||
93 | /* SDRAM nRAS/nCAS */ | ||
94 | #define S3C2440_DSC1_SDR (S3C2440_SELECT_DSC1 | 22) | ||
95 | #define S3C2440_DSC1_SDR_10mA (0<<22) | ||
96 | #define S3C2440_DSC1_SDR_8mA (1<<22) | ||
97 | #define S3C2440_DSC1_SDR_6mA (2<<22) | ||
98 | #define S3C2440_DSC1_SDR_4mA (3<<22) | ||
99 | #define S3C2440_DSC1_SDR_MASK (3<<22) | ||
100 | |||
101 | /* NAND Flash Controller */ | ||
102 | #define S3C2440_DSC1_NFC (S3C2440_SELECT_DSC1 | 20) | ||
103 | #define S3C2440_DSC1_NFC_10mA (0<<20) | ||
104 | #define S3C2440_DSC1_NFC_8mA (1<<20) | ||
105 | #define S3C2440_DSC1_NFC_6mA (2<<20) | ||
106 | #define S3C2440_DSC1_NFC_4mA (3<<20) | ||
107 | #define S3C2440_DSC1_NFC_MASK (3<<20) | ||
108 | |||
109 | /* nBE[0..3] */ | ||
110 | #define S3C2440_DSC1_nBE (S3C2440_SELECT_DSC1 | 18) | ||
111 | #define S3C2440_DSC1_nBE_10mA (0<<18) | ||
112 | #define S3C2440_DSC1_nBE_8mA (1<<18) | ||
113 | #define S3C2440_DSC1_nBE_6mA (2<<18) | ||
114 | #define S3C2440_DSC1_nBE_4mA (3<<18) | ||
115 | #define S3C2440_DSC1_nBE_MASK (3<<18) | ||
116 | |||
117 | #define S3C2440_DSC1_WOE (S3C2440_SELECT_DSC1 | 16) | ||
118 | #define S3C2440_DSC1_WOE_10mA (0<<16) | ||
119 | #define S3C2440_DSC1_WOE_8mA (1<<16) | ||
120 | #define S3C2440_DSC1_WOE_6mA (2<<16) | ||
121 | #define S3C2440_DSC1_WOE_4mA (3<<16) | ||
122 | #define S3C2440_DSC1_WOE_MASK (3<<16) | ||
123 | |||
124 | #define S3C2440_DSC1_CS7 (S3C2440_SELECT_DSC1 | 14) | ||
125 | #define S3C2440_DSC1_CS7_10mA (0<<14) | ||
126 | #define S3C2440_DSC1_CS7_8mA (1<<14) | ||
127 | #define S3C2440_DSC1_CS7_6mA (2<<14) | ||
128 | #define S3C2440_DSC1_CS7_4mA (3<<14) | ||
129 | #define S3C2440_DSC1_CS7_MASK (3<<14) | ||
130 | |||
131 | #define S3C2440_DSC1_CS6 (S3C2440_SELECT_DSC1 | 12) | ||
132 | #define S3C2440_DSC1_CS6_10mA (0<<12) | ||
133 | #define S3C2440_DSC1_CS6_8mA (1<<12) | ||
134 | #define S3C2440_DSC1_CS6_6mA (2<<12) | ||
135 | #define S3C2440_DSC1_CS6_4mA (3<<12) | ||
136 | #define S3C2440_DSC1_CS6_MASK (3<<12) | ||
137 | |||
138 | #define S3C2440_DSC1_CS5 (S3C2440_SELECT_DSC1 | 10) | ||
139 | #define S3C2440_DSC1_CS5_10mA (0<<10) | ||
140 | #define S3C2440_DSC1_CS5_8mA (1<<10) | ||
141 | #define S3C2440_DSC1_CS5_6mA (2<<10) | ||
142 | #define S3C2440_DSC1_CS5_4mA (3<<10) | ||
143 | #define S3C2440_DSC1_CS5_MASK (3<<10) | ||
144 | |||
145 | #define S3C2440_DSC1_CS4 (S3C2440_SELECT_DSC1 | 8) | ||
146 | #define S3C2440_DSC1_CS4_10mA (0<<8) | ||
147 | #define S3C2440_DSC1_CS4_8mA (1<<8) | ||
148 | #define S3C2440_DSC1_CS4_6mA (2<<8) | ||
149 | #define S3C2440_DSC1_CS4_4mA (3<<8) | ||
150 | #define S3C2440_DSC1_CS4_MASK (3<<8) | ||
151 | |||
152 | #define S3C2440_DSC1_CS3 (S3C2440_SELECT_DSC1 | 6) | ||
153 | #define S3C2440_DSC1_CS3_10mA (0<<6) | ||
154 | #define S3C2440_DSC1_CS3_8mA (1<<6) | ||
155 | #define S3C2440_DSC1_CS3_6mA (2<<6) | ||
156 | #define S3C2440_DSC1_CS3_4mA (3<<6) | ||
157 | #define S3C2440_DSC1_CS3_MASK (3<<6) | ||
158 | |||
159 | #define S3C2440_DSC1_CS2 (S3C2440_SELECT_DSC1 | 4) | ||
160 | #define S3C2440_DSC1_CS2_10mA (0<<4) | ||
161 | #define S3C2440_DSC1_CS2_8mA (1<<4) | ||
162 | #define S3C2440_DSC1_CS2_6mA (2<<4) | ||
163 | #define S3C2440_DSC1_CS2_4mA (3<<4) | ||
164 | #define S3C2440_DSC1_CS2_MASK (3<<4) | ||
165 | |||
166 | #define S3C2440_DSC1_CS1 (S3C2440_SELECT_DSC1 | 2) | ||
167 | #define S3C2440_DSC1_CS1_10mA (0<<2) | ||
168 | #define S3C2440_DSC1_CS1_8mA (1<<2) | ||
169 | #define S3C2440_DSC1_CS1_6mA (2<<2) | ||
170 | #define S3C2440_DSC1_CS1_4mA (3<<2) | ||
171 | #define S3C2440_DSC1_CS1_MASK (3<<2) | ||
172 | |||
173 | #define S3C2440_DSC1_CS0 (S3C2440_SELECT_DSC1 | 0 | ||
174 | #define S3C2440_DSC1_CS0_10mA (0<<0) | ||
175 | #define S3C2440_DSC1_CS0_8mA (1<<0) | ||
176 | #define S3C2440_DSC1_CS0_6mA (2<<0) | ||
177 | #define S3C2440_DSC1_CS0_4mA (3<<0) | ||
178 | #define S3C2440_DSC1_CS0_MASK (3<<0) | ||
179 | |||
180 | #endif /* CONFIG_CPU_S3C2440 */ | ||
181 | |||
182 | #endif /* __ASM_ARCH_REGS_DSC_H */ | ||
183 | |||