wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 1 | /* |
2 | * (C) Copyright 2003 | ||||
3 | * David Müller ELSOFT AG Switzerland. d.mueller@elsoft.ch | ||||
4 | * | ||||
5 | * See file CREDITS for list of people who contributed to this | ||||
6 | * project. | ||||
7 | * | ||||
8 | * This program is free software; you can redistribute it and/or | ||||
9 | * modify it under the terms of the GNU General Public License as | ||||
10 | * published by the Free Software Foundation; either version 2 of | ||||
11 | * the License, or (at your option) any later version. | ||||
12 | * | ||||
13 | * This program is distributed in the hope that it will be useful, | ||||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
16 | * GNU General Public License for more details. | ||||
17 | * | ||||
18 | * You should have received a copy of the GNU General Public License | ||||
19 | * along with this program; if not, write to the Free Software | ||||
20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, | ||||
21 | * MA 02111-1307 USA | ||||
22 | */ | ||||
23 | |||||
24 | /************************************************ | ||||
25 | * NAME : s3c24x0.h | ||||
26 | * Version : 31.3.2003 | ||||
27 | * | ||||
28 | * common stuff for SAMSUNG S3C24X0 SoC | ||||
29 | ************************************************/ | ||||
30 | |||||
31 | #ifndef __S3C24X0_H__ | ||||
32 | #define __S3C24X0_H__ | ||||
33 | |||||
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 34 | /* Memory controller (see manual chapter 5) */ |
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 35 | struct s3c24x0_memctl { |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 36 | u32 bwscon; |
37 | u32 bankcon[8]; | ||||
38 | u32 refresh; | ||||
39 | u32 banksize; | ||||
40 | u32 mrsrb6; | ||||
41 | u32 mrsrb7; | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 42 | }; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 43 | |
44 | |||||
45 | /* USB HOST (see manual chapter 12) */ | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 46 | struct s3c24x0_usb_host { |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 47 | u32 HcRevision; |
48 | u32 HcControl; | ||||
49 | u32 HcCommonStatus; | ||||
50 | u32 HcInterruptStatus; | ||||
51 | u32 HcInterruptEnable; | ||||
52 | u32 HcInterruptDisable; | ||||
53 | u32 HcHCCA; | ||||
54 | u32 HcPeriodCuttendED; | ||||
55 | u32 HcControlHeadED; | ||||
56 | u32 HcControlCurrentED; | ||||
57 | u32 HcBulkHeadED; | ||||
58 | u32 HcBuldCurrentED; | ||||
59 | u32 HcDoneHead; | ||||
60 | u32 HcRmInterval; | ||||
61 | u32 HcFmRemaining; | ||||
62 | u32 HcFmNumber; | ||||
63 | u32 HcPeriodicStart; | ||||
64 | u32 HcLSThreshold; | ||||
65 | u32 HcRhDescriptorA; | ||||
66 | u32 HcRhDescriptorB; | ||||
67 | u32 HcRhStatus; | ||||
68 | u32 HcRhPortStatus1; | ||||
69 | u32 HcRhPortStatus2; | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 70 | }; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 71 | |
72 | |||||
73 | /* INTERRUPT (see manual chapter 14) */ | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 74 | struct s3c24x0_interrupt { |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 75 | u32 srcpnd; |
76 | u32 intmod; | ||||
77 | u32 intmsk; | ||||
78 | u32 priority; | ||||
79 | u32 intpnd; | ||||
80 | u32 intoffset; | ||||
81 | #if defined(CONFIG_S3C2410) || defined(CONFIG_S3C2440) | ||||
82 | u32 subsrcpnd; | ||||
83 | u32 intsubmsk; | ||||
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 84 | #endif |
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 85 | }; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 86 | |
87 | |||||
88 | /* DMAS (see manual chapter 8) */ | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 89 | struct s3c24x0_dma { |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 90 | u32 disrc; |
91 | #if defined(CONFIG_S3C2410) || defined(CONFIG_S3C2440) | ||||
92 | u32 disrcc; | ||||
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 93 | #endif |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 94 | u32 didst; |
95 | #if defined(CONFIG_S3C2410) || defined(CONFIG_S3C2440) | ||||
96 | u32 didstc; | ||||
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 97 | #endif |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 98 | u32 dcon; |
99 | u32 dstat; | ||||
100 | u32 dcsrc; | ||||
101 | u32 dcdst; | ||||
102 | u32 dmasktrig; | ||||
103 | #if defined(CONFIG_S3C2400) || defined(CONFIG_S3C2410) \ | ||||
104 | || defined(CONFIG_S3C2440) | ||||
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 105 | u32 res[1]; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 106 | #endif |
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 107 | }; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 108 | |
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 109 | struct s3c24x0_dmas { |
110 | struct s3c24x0_dma dma[4]; | ||||
111 | }; | ||||
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 112 | |
113 | |||||
114 | /* CLOCK & POWER MANAGEMENT (see S3C2400 manual chapter 6) */ | ||||
115 | /* (see S3C2410 manual chapter 7) */ | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 116 | struct s3c24x0_clock_power { |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 117 | u32 locktime; |
118 | u32 mpllcon; | ||||
119 | u32 upllcon; | ||||
120 | u32 clkcon; | ||||
121 | u32 clkslow; | ||||
122 | u32 clkdivn; | ||||
123 | #if defined(CONFIG_S3C2440) | ||||
124 | u32 camdivn; | ||||
125 | #endif | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 126 | }; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 127 | |
128 | |||||
129 | /* LCD CONTROLLER (see manual chapter 15) */ | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 130 | struct s3c24x0_lcd { |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 131 | u32 lcdcon1; |
132 | u32 lcdcon2; | ||||
133 | u32 lcdcon3; | ||||
134 | u32 lcdcon4; | ||||
135 | u32 lcdcon5; | ||||
136 | u32 lcdsaddr1; | ||||
137 | u32 lcdsaddr2; | ||||
138 | u32 lcdsaddr3; | ||||
139 | u32 redlut; | ||||
140 | u32 greenlut; | ||||
141 | u32 bluelut; | ||||
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 142 | u32 res[8]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 143 | u32 dithmode; |
144 | u32 tpal; | ||||
145 | #if defined(CONFIG_S3C2410) || defined(CONFIG_S3C2440) | ||||
146 | u32 lcdintpnd; | ||||
147 | u32 lcdsrcpnd; | ||||
148 | u32 lcdintmsk; | ||||
149 | u32 lpcsel; | ||||
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 150 | #endif |
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 151 | }; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 152 | |
153 | |||||
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 154 | #ifdef CONFIG_S3C2410 |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 155 | /* NAND FLASH (see S3C2410 manual chapter 6) */ |
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 156 | struct s3c2410_nand { |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 157 | u32 nfconf; |
158 | u32 nfcmd; | ||||
159 | u32 nfaddr; | ||||
160 | u32 nfdata; | ||||
161 | u32 nfstat; | ||||
162 | u32 nfecc; | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 163 | }; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 164 | #endif |
165 | #ifdef CONFIG_S3C2440 | ||||
166 | /* NAND FLASH (see S3C2440 manual chapter 6) */ | ||||
167 | struct s3c2440_nand { | ||||
168 | u32 nfconf; | ||||
169 | u32 nfcont; | ||||
170 | u32 nfcmd; | ||||
171 | u32 nfaddr; | ||||
172 | u32 nfdata; | ||||
173 | u32 nfeccd0; | ||||
174 | u32 nfeccd1; | ||||
175 | u32 nfeccd; | ||||
176 | u32 nfstat; | ||||
177 | u32 nfstat0; | ||||
178 | u32 nfstat1; | ||||
179 | }; | ||||
180 | #endif | ||||
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 181 | |
182 | |||||
183 | /* UART (see manual chapter 11) */ | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 184 | struct s3c24x0_uart { |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 185 | u32 ulcon; |
186 | u32 ucon; | ||||
187 | u32 ufcon; | ||||
188 | u32 umcon; | ||||
189 | u32 utrstat; | ||||
190 | u32 uerstat; | ||||
191 | u32 ufstat; | ||||
192 | u32 umstat; | ||||
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 193 | #ifdef __BIG_ENDIAN |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 194 | u8 res1[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 195 | u8 utxh; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 196 | u8 res2[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 197 | u8 urxh; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 198 | #else /* Little Endian */ |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 199 | u8 utxh; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 200 | u8 res1[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 201 | u8 urxh; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 202 | u8 res2[3]; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 203 | #endif |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 204 | u32 ubrdiv; |
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 205 | }; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 206 | |
207 | |||||
208 | /* PWM TIMER (see manual chapter 10) */ | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 209 | struct s3c24x0_timer { |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 210 | u32 tcntb; |
211 | u32 tcmpb; | ||||
212 | u32 tcnto; | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 213 | }; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 214 | |
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 215 | struct s3c24x0_timers { |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 216 | u32 tcfg0; |
217 | u32 tcfg1; | ||||
218 | u32 tcon; | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 219 | struct s3c24x0_timer ch[4]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 220 | u32 tcntb4; |
221 | u32 tcnto4; | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 222 | }; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 223 | |
224 | |||||
225 | /* USB DEVICE (see manual chapter 13) */ | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 226 | struct s3c24x0_usb_dev_fifos { |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 227 | #ifdef __BIG_ENDIAN |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 228 | u8 res[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 229 | u8 ep_fifo_reg; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 230 | #else /* little endian */ |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 231 | u8 ep_fifo_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 232 | u8 res[3]; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 233 | #endif |
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 234 | }; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 235 | |
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 236 | struct s3c24x0_usb_dev_dmas { |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 237 | #ifdef __BIG_ENDIAN |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 238 | u8 res1[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 239 | u8 ep_dma_con; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 240 | u8 res2[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 241 | u8 ep_dma_unit; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 242 | u8 res3[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 243 | u8 ep_dma_fifo; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 244 | u8 res4[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 245 | u8 ep_dma_ttc_l; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 246 | u8 res5[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 247 | u8 ep_dma_ttc_m; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 248 | u8 res6[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 249 | u8 ep_dma_ttc_h; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 250 | #else /* little endian */ |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 251 | u8 ep_dma_con; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 252 | u8 res1[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 253 | u8 ep_dma_unit; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 254 | u8 res2[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 255 | u8 ep_dma_fifo; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 256 | u8 res3[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 257 | u8 ep_dma_ttc_l; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 258 | u8 res4[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 259 | u8 ep_dma_ttc_m; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 260 | u8 res5[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 261 | u8 ep_dma_ttc_h; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 262 | u8 res6[3]; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 263 | #endif |
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 264 | }; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 265 | |
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 266 | struct s3c24x0_usb_device { |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 267 | #ifdef __BIG_ENDIAN |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 268 | u8 res1[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 269 | u8 func_addr_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 270 | u8 res2[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 271 | u8 pwr_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 272 | u8 res3[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 273 | u8 ep_int_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 274 | u8 res4[15]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 275 | u8 usb_int_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 276 | u8 res5[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 277 | u8 ep_int_en_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 278 | u8 res6[15]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 279 | u8 usb_int_en_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 280 | u8 res7[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 281 | u8 frame_num1_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 282 | u8 res8[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 283 | u8 frame_num2_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 284 | u8 res9[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 285 | u8 index_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 286 | u8 res10[7]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 287 | u8 maxp_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 288 | u8 res11[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 289 | u8 ep0_csr_in_csr1_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 290 | u8 res12[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 291 | u8 in_csr2_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 292 | u8 res13[7]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 293 | u8 out_csr1_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 294 | u8 res14[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 295 | u8 out_csr2_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 296 | u8 res15[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 297 | u8 out_fifo_cnt1_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 298 | u8 res16[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 299 | u8 out_fifo_cnt2_reg; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 300 | #else /* little endian */ |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 301 | u8 func_addr_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 302 | u8 res1[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 303 | u8 pwr_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 304 | u8 res2[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 305 | u8 ep_int_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 306 | u8 res3[15]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 307 | u8 usb_int_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 308 | u8 res4[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 309 | u8 ep_int_en_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 310 | u8 res5[15]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 311 | u8 usb_int_en_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 312 | u8 res6[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 313 | u8 frame_num1_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 314 | u8 res7[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 315 | u8 frame_num2_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 316 | u8 res8[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 317 | u8 index_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 318 | u8 res9[7]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 319 | u8 maxp_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 320 | u8 res10[7]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 321 | u8 ep0_csr_in_csr1_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 322 | u8 res11[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 323 | u8 in_csr2_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 324 | u8 res12[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 325 | u8 out_csr1_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 326 | u8 res13[7]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 327 | u8 out_csr2_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 328 | u8 res14[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 329 | u8 out_fifo_cnt1_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 330 | u8 res15[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 331 | u8 out_fifo_cnt2_reg; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 332 | u8 res16[3]; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 333 | #endif /* __BIG_ENDIAN */ |
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 334 | struct s3c24x0_usb_dev_fifos fifo[5]; |
335 | struct s3c24x0_usb_dev_dmas dma[5]; | ||||
336 | }; | ||||
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 337 | |
338 | |||||
339 | /* WATCH DOG TIMER (see manual chapter 18) */ | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 340 | struct s3c24x0_watchdog { |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 341 | u32 wtcon; |
342 | u32 wtdat; | ||||
343 | u32 wtcnt; | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 344 | }; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 345 | |
346 | |||||
347 | /* IIC (see manual chapter 20) */ | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 348 | struct s3c24x0_i2c { |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 349 | u32 iiccon; |
350 | u32 iicstat; | ||||
351 | u32 iicadd; | ||||
352 | u32 iicds; | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 353 | }; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 354 | |
355 | |||||
356 | /* IIS (see manual chapter 21) */ | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 357 | struct s3c24x0_i2s { |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 358 | #ifdef __BIG_ENDIAN |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 359 | u16 res1; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 360 | u16 iiscon; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 361 | u16 res2; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 362 | u16 iismod; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 363 | u16 res3; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 364 | u16 iispsr; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 365 | u16 res4; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 366 | u16 iisfcon; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 367 | u16 res5; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 368 | u16 iisfifo; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 369 | #else /* little endian */ |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 370 | u16 iiscon; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 371 | u16 res1; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 372 | u16 iismod; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 373 | u16 res2; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 374 | u16 iispsr; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 375 | u16 res3; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 376 | u16 iisfcon; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 377 | u16 res4; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 378 | u16 iisfifo; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 379 | u16 res5; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 380 | #endif |
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 381 | }; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 382 | |
383 | |||||
384 | /* I/O PORT (see manual chapter 9) */ | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 385 | struct s3c24x0_gpio { |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 386 | #ifdef CONFIG_S3C2400 |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 387 | u32 pacon; |
388 | u32 padat; | ||||
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 389 | |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 390 | u32 pbcon; |
391 | u32 pbdat; | ||||
392 | u32 pbup; | ||||
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 393 | |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 394 | u32 pccon; |
395 | u32 pcdat; | ||||
396 | u32 pcup; | ||||
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 397 | |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 398 | u32 pdcon; |
399 | u32 pddat; | ||||
400 | u32 pdup; | ||||
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 401 | |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 402 | u32 pecon; |
403 | u32 pedat; | ||||
404 | u32 peup; | ||||
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 405 | |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 406 | u32 pfcon; |
407 | u32 pfdat; | ||||
408 | u32 pfup; | ||||
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 409 | |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 410 | u32 pgcon; |
411 | u32 pgdat; | ||||
412 | u32 pgup; | ||||
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 413 | |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 414 | u32 opencr; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 415 | |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 416 | u32 misccr; |
417 | u32 extint; | ||||
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 418 | #endif |
419 | #ifdef CONFIG_S3C2410 | ||||
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 420 | u32 gpacon; |
421 | u32 gpadat; | ||||
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 422 | u32 res1[2]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 423 | u32 gpbcon; |
424 | u32 gpbdat; | ||||
425 | u32 gpbup; | ||||
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 426 | u32 res2; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 427 | u32 gpccon; |
428 | u32 gpcdat; | ||||
429 | u32 gpcup; | ||||
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 430 | u32 res3; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 431 | u32 gpdcon; |
432 | u32 gpddat; | ||||
433 | u32 gpdup; | ||||
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 434 | u32 res4; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 435 | u32 gpecon; |
436 | u32 gpedat; | ||||
437 | u32 gpeup; | ||||
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 438 | u32 res5; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 439 | u32 gpfcon; |
440 | u32 gpfdat; | ||||
441 | u32 gpfup; | ||||
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 442 | u32 res6; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 443 | u32 gpgcon; |
444 | u32 gpgdat; | ||||
445 | u32 gpgup; | ||||
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 446 | u32 res7; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 447 | u32 gphcon; |
448 | u32 gphdat; | ||||
449 | u32 gphup; | ||||
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 450 | u32 res8; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 451 | |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 452 | u32 misccr; |
453 | u32 dclkcon; | ||||
454 | u32 extint0; | ||||
455 | u32 extint1; | ||||
456 | u32 extint2; | ||||
457 | u32 eintflt0; | ||||
458 | u32 eintflt1; | ||||
459 | u32 eintflt2; | ||||
460 | u32 eintflt3; | ||||
461 | u32 eintmask; | ||||
462 | u32 eintpend; | ||||
463 | u32 gstatus0; | ||||
464 | u32 gstatus1; | ||||
465 | u32 gstatus2; | ||||
466 | u32 gstatus3; | ||||
467 | u32 gstatus4; | ||||
468 | #endif | ||||
469 | #if defined(CONFIG_S3C2440) | ||||
470 | u32 gpacon; | ||||
471 | u32 gpadat; | ||||
472 | u32 res1[2]; | ||||
473 | u32 gpbcon; | ||||
474 | u32 gpbdat; | ||||
475 | u32 gpbup; | ||||
476 | u32 res2; | ||||
477 | u32 gpccon; | ||||
478 | u32 gpcdat; | ||||
479 | u32 gpcup; | ||||
480 | u32 res3; | ||||
481 | u32 gpdcon; | ||||
482 | u32 gpddat; | ||||
483 | u32 gpdup; | ||||
484 | u32 res4; | ||||
485 | u32 gpecon; | ||||
486 | u32 gpedat; | ||||
487 | u32 gpeup; | ||||
488 | u32 res5; | ||||
489 | u32 gpfcon; | ||||
490 | u32 gpfdat; | ||||
491 | u32 gpfup; | ||||
492 | u32 res6; | ||||
493 | u32 gpgcon; | ||||
494 | u32 gpgdat; | ||||
495 | u32 gpgup; | ||||
496 | u32 res7; | ||||
497 | u32 gphcon; | ||||
498 | u32 gphdat; | ||||
499 | u32 gphup; | ||||
500 | u32 res8; | ||||
501 | |||||
502 | u32 misccr; | ||||
503 | u32 dclkcon; | ||||
504 | u32 extint0; | ||||
505 | u32 extint1; | ||||
506 | u32 extint2; | ||||
507 | u32 eintflt0; | ||||
508 | u32 eintflt1; | ||||
509 | u32 eintflt2; | ||||
510 | u32 eintflt3; | ||||
511 | u32 eintmask; | ||||
512 | u32 eintpend; | ||||
513 | u32 gstatus0; | ||||
514 | u32 gstatus1; | ||||
515 | u32 gstatus2; | ||||
516 | u32 gstatus3; | ||||
517 | u32 gstatus4; | ||||
518 | |||||
519 | u32 res9; | ||||
520 | u32 dsc0; | ||||
521 | u32 dsc1; | ||||
522 | u32 mslcon; | ||||
523 | u32 gpjcon; | ||||
524 | u32 gpjdat; | ||||
525 | u32 gpjup; | ||||
526 | u32 res10; | ||||
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 527 | #endif |
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 528 | }; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 529 | |
530 | |||||
531 | /* RTC (see manual chapter 17) */ | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 532 | struct s3c24x0_rtc { |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 533 | #ifdef __BIG_ENDIAN |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 534 | u8 res1[67]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 535 | u8 rtccon; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 536 | u8 res2[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 537 | u8 ticnt; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 538 | u8 res3[11]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 539 | u8 rtcalm; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 540 | u8 res4[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 541 | u8 almsec; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 542 | u8 res5[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 543 | u8 almmin; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 544 | u8 res6[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 545 | u8 almhour; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 546 | u8 res7[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 547 | u8 almdate; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 548 | u8 res8[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 549 | u8 almmon; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 550 | u8 res9[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 551 | u8 almyear; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 552 | u8 res10[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 553 | u8 rtcrst; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 554 | u8 res11[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 555 | u8 bcdsec; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 556 | u8 res12[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 557 | u8 bcdmin; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 558 | u8 res13[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 559 | u8 bcdhour; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 560 | u8 res14[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 561 | u8 bcddate; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 562 | u8 res15[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 563 | u8 bcdday; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 564 | u8 res16[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 565 | u8 bcdmon; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 566 | u8 res17[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 567 | u8 bcdyear; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 568 | #else /* little endian */ |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 569 | u8 res0[64]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 570 | u8 rtccon; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 571 | u8 res1[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 572 | u8 ticnt; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 573 | u8 res2[11]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 574 | u8 rtcalm; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 575 | u8 res3[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 576 | u8 almsec; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 577 | u8 res4[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 578 | u8 almmin; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 579 | u8 res5[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 580 | u8 almhour; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 581 | u8 res6[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 582 | u8 almdate; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 583 | u8 res7[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 584 | u8 almmon; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 585 | u8 res8[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 586 | u8 almyear; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 587 | u8 res9[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 588 | u8 rtcrst; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 589 | u8 res10[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 590 | u8 bcdsec; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 591 | u8 res11[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 592 | u8 bcdmin; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 593 | u8 res12[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 594 | u8 bcdhour; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 595 | u8 res13[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 596 | u8 bcddate; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 597 | u8 res14[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 598 | u8 bcdday; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 599 | u8 res15[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 600 | u8 bcdmon; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 601 | u8 res16[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 602 | u8 bcdyear; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 603 | u8 res17[3]; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 604 | #endif |
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 605 | }; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 606 | |
607 | |||||
608 | /* ADC (see manual chapter 16) */ | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 609 | struct s3c2400_adc { |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 610 | u32 adccon; |
611 | u32 adcdat; | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 612 | }; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 613 | |
614 | |||||
615 | /* ADC (see manual chapter 16) */ | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 616 | struct s3c2410_adc { |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 617 | u32 adccon; |
618 | u32 adctsc; | ||||
619 | u32 adcdly; | ||||
620 | u32 adcdat0; | ||||
621 | u32 adcdat1; | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 622 | }; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 623 | |
624 | |||||
625 | /* SPI (see manual chapter 22) */ | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 626 | struct s3c24x0_spi_channel { |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 627 | u8 spcon; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 628 | u8 res1[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 629 | u8 spsta; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 630 | u8 res2[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 631 | u8 sppin; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 632 | u8 res3[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 633 | u8 sppre; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 634 | u8 res4[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 635 | u8 sptdat; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 636 | u8 res5[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 637 | u8 sprdat; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 638 | u8 res6[3]; |
639 | u8 res7[16]; | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 640 | }; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 641 | |
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 642 | struct s3c24x0_spi { |
643 | struct s3c24x0_spi_channel ch[S3C24X0_SPI_CHANNELS]; | ||||
644 | }; | ||||
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 645 | |
646 | |||||
647 | /* MMC INTERFACE (see S3C2400 manual chapter 19) */ | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 648 | struct s3c2400_mmc { |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 649 | #ifdef __BIG_ENDIAN |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 650 | u8 res1[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 651 | u8 mmcon; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 652 | u8 res2[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 653 | u8 mmcrr; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 654 | u8 res3[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 655 | u8 mmfcon; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 656 | u8 res4[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 657 | u8 mmsta; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 658 | u16 res5; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 659 | u16 mmfsta; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 660 | u8 res6[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 661 | u8 mmpre; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 662 | u16 res7; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 663 | u16 mmlen; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 664 | u8 res8[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 665 | u8 mmcr7; |
666 | u32 mmrsp[4]; | ||||
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 667 | u8 res9[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 668 | u8 mmcmd0; |
669 | u32 mmcmd1; | ||||
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 670 | u16 res10; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 671 | u16 mmcr16; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 672 | u8 res11[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 673 | u8 mmdat; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 674 | #else |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 675 | u8 mmcon; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 676 | u8 res1[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 677 | u8 mmcrr; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 678 | u8 res2[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 679 | u8 mmfcon; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 680 | u8 res3[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 681 | u8 mmsta; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 682 | u8 res4[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 683 | u16 mmfsta; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 684 | u16 res5; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 685 | u8 mmpre; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 686 | u8 res6[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 687 | u16 mmlen; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 688 | u16 res7; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 689 | u8 mmcr7; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 690 | u8 res8[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 691 | u32 mmrsp[4]; |
692 | u8 mmcmd0; | ||||
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 693 | u8 res9[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 694 | u32 mmcmd1; |
695 | u16 mmcr16; | ||||
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 696 | u16 res10; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 697 | u8 mmdat; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 698 | u8 res11[3]; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 699 | #endif |
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 700 | }; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 701 | |
702 | |||||
703 | /* SD INTERFACE (see S3C2410 manual chapter 19) */ | ||||
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 704 | struct s3c2410_sdi { |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 705 | u32 sdicon; |
706 | u32 sdipre; | ||||
707 | u32 sdicarg; | ||||
708 | u32 sdiccon; | ||||
709 | u32 sdicsta; | ||||
710 | u32 sdirsp0; | ||||
711 | u32 sdirsp1; | ||||
712 | u32 sdirsp2; | ||||
713 | u32 sdirsp3; | ||||
714 | u32 sdidtimer; | ||||
715 | u32 sdibsize; | ||||
716 | u32 sdidcon; | ||||
717 | u32 sdidcnt; | ||||
718 | u32 sdidsta; | ||||
719 | u32 sdifsta; | ||||
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 720 | #ifdef __BIG_ENDIAN |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 721 | u8 res[3]; |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 722 | u8 sdidat; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 723 | #else |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 724 | u8 sdidat; |
kevin.morfitt@fearnside-systems.co.uk | 9ebfdc2 | 2009-11-04 17:49:31 +0900 | [diff] [blame] | 725 | u8 res[3]; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 726 | #endif |
C Nauman | d9abba8 | 2010-10-26 23:04:31 +0900 | [diff] [blame] | 727 | u32 sdiimsk; |
kevin.morfitt@fearnside-systems.co.uk | 8250d0b | 2009-10-10 13:32:01 +0900 | [diff] [blame] | 728 | }; |
wdenk | 48b4261 | 2003-06-19 23:01:32 +0000 | [diff] [blame] | 729 | |
730 | #endif /*__S3C24X0_H__*/ |