diff options
Diffstat (limited to 'firmware/export/dm320.h')
-rw-r--r-- | firmware/export/dm320.h | 704 |
1 files changed, 704 insertions, 0 deletions
diff --git a/firmware/export/dm320.h b/firmware/export/dm320.h new file mode 100644 index 0000000000..5e164cff57 --- /dev/null +++ b/firmware/export/dm320.h | |||
@@ -0,0 +1,704 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id: $ | ||
9 | * | ||
10 | * Copyright (C) 2007 by Karl Kurbjun | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | /** All register offset definitions for the TI DM320 | ||
21 | * Taken from: http://svn.neurostechnology.com/filedetails.php?repname=neuros-bsp&path=%2Ftrunk%2Fkernels%2Flinux-2.6.15%2Finclude%2Fasm-arm%2Farch-ntosd-dm320%2Fio_registers.h&rev=0&sc=0 | ||
22 | */ | ||
23 | |||
24 | #ifndef __DM320_H__ | ||
25 | #define __DM320_H__ | ||
26 | |||
27 | #define FRAME ((short *) (0x4470000)) | ||
28 | |||
29 | #define PHY_IO_BASE 0x00030000 | ||
30 | |||
31 | /* Timer 0-3 */ | ||
32 | #define IO_TIMER0_TMMD 0x0000 | ||
33 | #define IO_TIMER0_TMRSV0 0x0002 | ||
34 | #define IO_TIMER0_TMPRSCL 0x0004 | ||
35 | #define IO_TIMER0_TMDIV 0x0006 | ||
36 | #define IO_TIMER0_TMTRG 0x0008 | ||
37 | #define IO_TIMER0_TMCNT 0x000A | ||
38 | |||
39 | #define IO_TIMER1_TMMD 0x0080 | ||
40 | #define IO_TIMER1_TMRSV0 0x0082 | ||
41 | #define IO_TIMER1_TMPRSCL 0x0084 | ||
42 | #define IO_TIMER1_TMDIV 0x0086 | ||
43 | #define IO_TIMER1_TMTRG 0x0088 | ||
44 | #define IO_TIMER1_TMCNT 0x008A | ||
45 | |||
46 | #define IO_TIMER2_TMMD 0x0100 | ||
47 | #define IO_TIMER2_TMVDCLR 0x0102 | ||
48 | #define IO_TIMER2_TMPRSCL 0x0104 | ||
49 | #define IO_TIMER2_TMDIV 0x0106 | ||
50 | #define IO_TIMER2_TMTRG 0x0108 | ||
51 | #define IO_TIMER2_TMCNT 0x010A | ||
52 | |||
53 | #define IO_TIMER3_TMMD 0x0180 | ||
54 | #define IO_TIMER3_TMVDCLR 0x0182 | ||
55 | #define IO_TIMER3_TMPRSCL 0x0184 | ||
56 | #define IO_TIMER3_TMDIV 0x0186 | ||
57 | #define IO_TIMER3_TMTRG 0x0188 | ||
58 | #define IO_TIMER3_TMCNT 0x018A | ||
59 | |||
60 | /* Serial 0/1 */ | ||
61 | #define IO_SERIAL0_TX_DATA 0x0200 | ||
62 | #define IO_SERIAL0_RX_DATA 0x0202 | ||
63 | #define IO_SERIAL0_TX_ENABLE 0x0204 | ||
64 | #define IO_SERIAL0_MODE 0x0206 | ||
65 | #define IO_SERIAL0_DMA_TRIGGER 0x0208 | ||
66 | #define IO_SERIAL0_DMA_MODE 0x020A | ||
67 | #define IO_SERIAL0_DMA_SDRAM_LOW 0x020C | ||
68 | #define IO_SERIAL0_DMA_SDRAM_HI 0x020E | ||
69 | #define IO_SERIAL0_DMA_STATUS 0x0210 | ||
70 | |||
71 | #define IO_SERIAL1_TX_DATA 0x0280 | ||
72 | #define IO_SERIAL1_RX_DATA 0x0282 | ||
73 | #define IO_SERIAL1_TX_ENABLE 0x0284 | ||
74 | #define IO_SERIAL1_MODE 0x0286 | ||
75 | |||
76 | /* UART 0/1 */ | ||
77 | #define IO_UART0_DTRR 0x0300 | ||
78 | #define IO_UART0_BRSR 0x0302 | ||
79 | #define IO_UART0_MSR 0x0304 | ||
80 | #define IO_UART0_RFCR 0x0306 | ||
81 | #define IO_UART0_TFCR 0x0308 | ||
82 | #define IO_UART0_LCR 0x030A | ||
83 | #define IO_UART0_SR 0x030C | ||
84 | |||
85 | #define IO_UART1_DTRR 0x0380 | ||
86 | #define IO_UART1_BRSR 0x0382 | ||
87 | #define IO_UART1_MSR 0x0384 | ||
88 | #define IO_UART1_RFCR 0x0386 | ||
89 | #define IO_UART1_TFCR 0x0388 | ||
90 | #define IO_UART1_LCR 0x038A | ||
91 | #define IO_UART1_SR 0x038C | ||
92 | |||
93 | /* Watchdog Timer */ | ||
94 | #define IO_WATCHDOG_MODE 0x0400 | ||
95 | #define IO_WATCHDOG_RESET 0x0402 | ||
96 | #define IO_WATCHDOG_PRESCALAR 0x0404 | ||
97 | #define IO_WATCHDOG_DIVISOR 0x0406 | ||
98 | #define IO_WATCHDOG_EXT_RESET 0x0408 | ||
99 | |||
100 | /* MMC/SD Controller */ | ||
101 | #define IO_MMC_CONTROL 0x0480 | ||
102 | #define IO_MMC_MEM_CLK_CONTROL 0x0482 | ||
103 | #define IO_MMC_STATUS0 0x0484 | ||
104 | #define IO_MMC_STATUS1 0x0486 | ||
105 | #define IO_MMC_INT_ENABLE 0x0488 | ||
106 | #define IO_MMC_RESPONSE_TIMEOUT 0x048A | ||
107 | #define IO_MMC_READ_TIMEOUT 0x048C | ||
108 | #define IO_MMC_BLOCK_LENGTH 0x048E | ||
109 | #define IO_MMC_NR_BLOCKS 0x0490 | ||
110 | #define IO_MMC_NR_BLOCKS_COUNT 0x0492 | ||
111 | #define IO_MMC_RX_DATA 0x0494 | ||
112 | #define IO_MMC_TX_DATA 0x0496 | ||
113 | #define IO_MMC_COMMAND 0x0498 | ||
114 | #define IO_MMC_ARG_LOW 0x049A | ||
115 | #define IO_MMC_ARG_HI 0x049C | ||
116 | #define IO_MMC_RESPONSE0 0x049E | ||
117 | #define IO_MMC_RESPONSE1 0x04A0 | ||
118 | #define IO_MMC_RESPONSE2 0x04A2 | ||
119 | #define IO_MMC_RESPONSE3 0x04A4 | ||
120 | #define IO_MMC_RESPONSE4 0x04A6 | ||
121 | #define IO_MMC_RESPONSE5 0x04A8 | ||
122 | #define IO_MMC_RESPONSE6 0x04AA | ||
123 | #define IO_MMC_RESPONSE7 0x04AC | ||
124 | #define IO_MMC_SPI_DATA 0x04AE | ||
125 | #define IO_MMC_SPI_ERR 0x04B0 | ||
126 | #define IO_MMC_COMMAND_INDEX 0x04B2 | ||
127 | #define IO_MMC_CLK_START_PHASE 0x04B4 | ||
128 | #define IO_MMC_RESPONSE_TOUT_CNT 0x04B6 | ||
129 | #define IO_MMC_READ_TOUT_CNT 0x04B8 | ||
130 | #define IO_MMC_BLOCK_LENGTH_CNT 0x04BA | ||
131 | |||
132 | #define IO_MMC_SD_DMA_TRIGGER 0x04BC | ||
133 | #define IO_MMC_SD_DMA_MODE 0x04BE | ||
134 | #define IO_MMC_SD_DMA_ADDR_LOW 0x04C0 | ||
135 | #define IO_MMC_SD_DMA_ADDR_HI 0x04C2 | ||
136 | #define IO_MMC_SD_DMA_STATUS0 0x04C4 | ||
137 | #define IO_MMC_SD_DMA_STATUS1 0x04C6 | ||
138 | #define IO_MMC_SD_DMA_TIMEOUT 0x04C8 | ||
139 | |||
140 | #define IO_SDIO_CONTROL 0x04CA | ||
141 | #define IO_SDIO_STATUS0 0x04CC | ||
142 | #define IO_SDIO_INT_ENABLE 0x04CE | ||
143 | #define IO_SDIO_INT_STATUS 0x04D0 | ||
144 | |||
145 | /* Interrupt Controller */ | ||
146 | #define IO_INTC_FIQ0 0x0500 | ||
147 | #define IO_INTC_FIQ1 0x0502 | ||
148 | #define IO_INTC_FIQ2 0x0504 | ||
149 | #define IO_INTC_IRQ0 0x0508 | ||
150 | #define IO_INTC_IRQ1 0x050A | ||
151 | #define IO_INTC_IRQ2 0x050C | ||
152 | #define IO_INTC_FIQENTRY0 0x0510 | ||
153 | #define IO_INTC_FIQENTRY1 0x0512 | ||
154 | #define IO_INTC_FIQ_LOCK_ADDR0 0x0514 | ||
155 | #define IO_INTC_FIQ_LOCK_ADDR1 0x0516 | ||
156 | #define IO_INTC_IRQENTRY0 0x0518 | ||
157 | #define IO_INTC_IRQENTRY1 0x051A | ||
158 | #define IO_INTC_IRQ_LOCK_ADDR0 0x051C | ||
159 | #define IO_INTC_IRQ_LOCK_ADDR1 0x051E | ||
160 | #define IO_INTC_FISEL0 0x0520 | ||
161 | #define IO_INTC_FISEL1 0x0522 | ||
162 | #define IO_INTC_FISEL2 0x0524 | ||
163 | #define IO_INTC_EINT0 0x0528 | ||
164 | #define IO_INTC_EINT1 0x052A | ||
165 | #define IO_INTC_EINT2 0x052C | ||
166 | #define IO_INTC_RAW 0x0530 | ||
167 | #define IO_INTC_ENTRY_TBA0 0x0538 | ||
168 | #define IO_INTC_ENTRY_TBA1 0x053A | ||
169 | #define IO_INTC_PRIORITY0 0x0540 | ||
170 | #define IO_INTC_PRIORITY1 0x0542 | ||
171 | #define IO_INTC_PRIORITY2 0x0544 | ||
172 | #define IO_INTC_PRIORITY3 0x0546 | ||
173 | #define IO_INTC_PRIORITY4 0x0548 | ||
174 | #define IO_INTC_PRIORITY5 0x054A | ||
175 | #define IO_INTC_PRIORITY6 0x054C | ||
176 | #define IO_INTC_PRIORITY7 0x054E | ||
177 | #define IO_INTC_PRIORITY8 0x0550 | ||
178 | #define IO_INTC_PRIORITY9 0x0552 | ||
179 | #define IO_INTC_PRIORITY10 0x0554 | ||
180 | #define IO_INTC_PRIORITY11 0x0556 | ||
181 | #define IO_INTC_PRIORITY12 0x0558 | ||
182 | #define IO_INTC_PRIORITY13 0x055A | ||
183 | #define IO_INTC_PRIORITY14 0x055C | ||
184 | #define IO_INTC_PRIORITY15 0x055E | ||
185 | #define IO_INTC_PRIORITY16 0x0560 | ||
186 | #define IO_INTC_PRIORITY17 0x0562 | ||
187 | #define IO_INTC_PRIORITY18 0x0564 | ||
188 | #define IO_INTC_PRIORITY19 0x0566 | ||
189 | #define IO_INTC_PRIORITY20 0x0568 | ||
190 | #define IO_INTC_PRIORITY21 0x056A | ||
191 | #define IO_INTC_PRIORITY22 0x056C | ||
192 | |||
193 | /* GIO Controller */ | ||
194 | #define IO_GIO_DIR0 0x0580 | ||
195 | #define IO_GIO_DIR1 0x0582 | ||
196 | #define IO_GIO_DIR2 0x0584 | ||
197 | #define IO_GIO_INV0 0x0586 | ||
198 | #define IO_GIO_INV1 0x0588 | ||
199 | #define IO_GIO_INV2 0x058A | ||
200 | #define IO_GIO_BITSET0 0x058C | ||
201 | #define IO_GIO_BITSET1 0x058E | ||
202 | #define IO_GIO_BITSET2 0x0590 | ||
203 | #define IO_GIO_BITCLR0 0x0592 | ||
204 | #define IO_GIO_BITCLR1 0x0594 | ||
205 | #define IO_GIO_BITCLR2 0x0596 | ||
206 | #define IO_GIO_IRQPORT 0x0598 | ||
207 | #define IO_GIO_IRQEDGE 0x059A | ||
208 | #define IO_GIO_CHAT0 0x059C | ||
209 | #define IO_GIO_CHAT1 0x059E | ||
210 | #define IO_GIO_CHAT2 0x05A0 | ||
211 | #define IO_GIO_NCHAT 0x05A2 | ||
212 | #define IO_GIO_FSEL0 0x05A4 | ||
213 | #define IO_GIO_FSEL1 0x05A6 | ||
214 | #define IO_GIO_FSEL2 0x05A8 | ||
215 | #define IO_GIO_FSEL3 0x05AA | ||
216 | #define IO_GIO_FSEL4 0x05AC | ||
217 | #define IO_GIO_CARD_SET 0x05AE | ||
218 | #define IO_GIO_CARD_ST 0x05B0 | ||
219 | |||
220 | /* DSP Controller */ | ||
221 | #define IO_DSPC_HPIB_CONTROL 0x0600 | ||
222 | #define IO_DSPC_HPIB_STATUS 0x0602 | ||
223 | |||
224 | /* OSD Controller */ | ||
225 | #define IO_OSD_MODE 0x0680 | ||
226 | #define IO_OSD_VIDWINMD 0x0682 | ||
227 | #define IO_OSD_OSDWINMD0 0x0684 | ||
228 | #define IO_OSD_OSDWINMD1 0x0686 | ||
229 | #define IO_OSD_ATRMD 0x0688 | ||
230 | #define IO_OSD_RECTCUR 0x0688 | ||
231 | #define IO_OSD_RESERVED 0x068A | ||
232 | #define IO_OSD_VIDWIN0OFST 0x068C | ||
233 | #define IO_OSD_VIDWIN1OFST 0x068E | ||
234 | #define IO_OSD_OSDWIN0OFST 0x0690 | ||
235 | #define IO_OSD_OSDWIN1OFST 0x0692 | ||
236 | #define IO_OSD_VIDWINADH 0x0694 | ||
237 | #define IO_OSD_VIDWIN0ADL 0x0696 | ||
238 | #define IO_OSD_VIDWIN1ADL 0x0698 | ||
239 | #define IO_OSD_OSDWINADH 0x069A | ||
240 | #define IO_OSD_OSDWIN0ADL 0x069C | ||
241 | #define IO_OSD_OSDWIN1ADL 0x069E | ||
242 | #define IO_OSD_BASEPX 0x06A0 | ||
243 | #define IO_OSD_BASEPY 0x06A2 | ||
244 | #define IO_OSD_VIDWIN0XP 0x06A4 | ||
245 | #define IO_OSD_VIDWIN0YP 0x06A6 | ||
246 | #define IO_OSD_VIDWIN0XL 0x06A8 | ||
247 | #define IO_OSD_VIDWIN0YL 0x06AA | ||
248 | #define IO_OSD_VIDWIN1XP 0x06AC | ||
249 | #define IO_OSD_VIDWIN1YP 0x06AE | ||
250 | #define IO_OSD_VIDWIN1XL 0x06B0 | ||
251 | #define IO_OSD_VIDWIN1YL 0x06B2 | ||
252 | |||
253 | #define IO_OSD_OSDWIN0XP 0x06B4 | ||
254 | #define IO_OSD_OSDWIN0YP 0x06B6 | ||
255 | #define IO_OSD_OSDWIN0XL 0x06B8 | ||
256 | #define IO_OSD_OSDWIN0YL 0x06BA | ||
257 | #define IO_OSD_OSDWIN1XP 0x06BC | ||
258 | #define IO_OSD_OSDWIN1YP 0x06BE | ||
259 | #define IO_OSD_OSDWIN1XL 0x06C0 | ||
260 | #define IO_OSD_OSDWIN1YL 0x06C2 | ||
261 | #define IO_OSD_CURXP 0x06C4 | ||
262 | #define IO_OSD_CURYP 0x06C6 | ||
263 | #define IO_OSD_CURXL 0x06C8 | ||
264 | #define IO_OSD_CURYL 0x06CA | ||
265 | |||
266 | #define IO_OSD_W0BMP01 0x06D0 | ||
267 | #define IO_OSD_W0BMP23 0x06D2 | ||
268 | #define IO_OSD_W0BMP45 0x06D4 | ||
269 | #define IO_OSD_W0BMP67 0x06D6 | ||
270 | #define IO_OSD_W0BMP89 0x06D8 | ||
271 | #define IO_OSD_W0BMPAB 0x06DA | ||
272 | #define IO_OSD_W0BMPCD 0x06DC | ||
273 | #define IO_OSD_W0BMPEF 0x06DE | ||
274 | |||
275 | #define IO_OSD_W1BMP01 0x06E0 | ||
276 | #define IO_OSD_W1BMP23 0x06E2 | ||
277 | #define IO_OSD_W1BMP45 0x06E4 | ||
278 | #define IO_OSD_W1BMP67 0x06E6 | ||
279 | #define IO_OSD_W1BMP89 0x06E8 | ||
280 | #define IO_OSD_W1BMPAB 0x06EA | ||
281 | #define IO_OSD_W1BMPCD 0x06EC | ||
282 | #define IO_OSD_W1BMPEF 0x06EE | ||
283 | |||
284 | #define IO_OSD_MISCCTL 0x06F4 | ||
285 | #define IO_OSD_CLUTRAMYCB 0x06F6 | ||
286 | #define IO_OSD_CLUTRAMCR 0x06F8 | ||
287 | |||
288 | #define IO_OSD_PPWIN0ADH 0x06FC | ||
289 | #define IO_OSD_PPWIN0ADL 0x06FE | ||
290 | |||
291 | |||
292 | /* CCD Controller */ | ||
293 | #define IO_CCD_SYNCEN 0x0700 | ||
294 | #define IO_CCD_MODESET 0x0702 | ||
295 | #define IO_CCD_HDWIDTH 0x0704 | ||
296 | #define IO_CCD_VDWIDTH 0x0706 | ||
297 | #define IO_CCD_PPLN 0x0708 | ||
298 | #define IO_CCD_LPFR 0x070A | ||
299 | #define IO_CCD_SPH 0x070C | ||
300 | #define IO_CCD_NPH 0x070E | ||
301 | #define IO_CCD_SLV0 0x0710 | ||
302 | #define IO_CCD_SLV1 0x0712 | ||
303 | #define IO_CCD_NLV 0x0714 | ||
304 | #define IO_CCD_CULH 0x0716 | ||
305 | #define IO_CCD_CULV 0x0718 | ||
306 | #define IO_CCD_HSIZE 0x071A | ||
307 | #define IO_CCD_SDOFST 0x071C | ||
308 | #define IO_CCD_STADRH 0x071E | ||
309 | #define IO_CCD_STADRL 0x0720 | ||
310 | #define IO_CCD_CLAMP 0x0722 | ||
311 | #define IO_CCD_DCSUB 0x0724 | ||
312 | #define IO_CCD_COLPTN 0x0726 | ||
313 | #define IO_CCD_BLKCMP0 0x0728 | ||
314 | #define IO_CCD_BLKCMP1 0x072A | ||
315 | #define IO_CCD_MEDFILT 0x072C | ||
316 | #define IO_CCD_RYEGAN 0x072E /* this is kept on the odd chance that some code is using the misspelled reg */ | ||
317 | #define IO_CCD_RYEGAIN 0x072E | ||
318 | #define IO_CCD_GRCYGAIN 0x0730 | ||
319 | #define IO_CCD_GBGGAIN 0x0732 | ||
320 | #define IO_CCD_BMGGAIN 0x0734 | ||
321 | #define IO_CCD_OFFSET 0x0736 | ||
322 | #define IO_CCD_OUTCLP 0x0738 | ||
323 | #define IO_CCD_VDINT0 0x073A | ||
324 | #define IO_CCD_VDINT1 0x073C | ||
325 | #define IO_CCD_RSV0 0x073E | ||
326 | #define IO_CCD_GAMMAWD 0x0740 | ||
327 | #define IO_CCD_REC656IF 0x0742 | ||
328 | #define IO_CCD_CCDFG 0x0744 | ||
329 | #define IO_CCD_FMTCFG 0x0746 | ||
330 | #define IO_CCD_FMTSPH 0x0748 | ||
331 | #define IO_CCD_FMTLNH 0x074A | ||
332 | #define IO_CCD_FMTSLV 0x074C | ||
333 | #define IO_CCD_FMTSNV 0x074E | ||
334 | #define IO_CCD_FMTOFST 0x0750 | ||
335 | #define IO_CCD_FMTRLEN 0x0752 | ||
336 | #define IO_CCD_FMTHCNT 0x0754 | ||
337 | #define IO_CCD_FMTPTNA 0x0756 | ||
338 | #define IO_CCD_FMTPTNB 0x0758 | ||
339 | |||
340 | /* NTSC/PAL Encoder */ | ||
341 | #define IO_VID_ENC_VMOD 0x0800 | ||
342 | #define IO_VID_ENC_VDCTL 0x0802 | ||
343 | #define IO_VID_ENC_VDPRO 0x0804 | ||
344 | #define IO_VID_ENC_SYNCCTL 0x0806 | ||
345 | #define IO_VID_ENC_HSPLS 0x0808 | ||
346 | #define IO_VID_ENC_VSPLS 0x080A | ||
347 | #define IO_VID_ENC_HINT 0x080C | ||
348 | #define IO_VID_ENC_HSTART 0x080E | ||
349 | #define IO_VID_ENC_HVALID 0x0810 | ||
350 | #define IO_VID_ENC_VINT 0x0812 | ||
351 | #define IO_VID_ENC_VSTART 0x0814 | ||
352 | #define IO_VID_ENC_VVALID 0x0816 | ||
353 | #define IO_VID_ENC_HSDLY 0x0818 | ||
354 | #define IO_VID_ENC_VSDLY 0x081A | ||
355 | #define IO_VID_ENC_YCCTL 0x081C | ||
356 | #define IO_VID_ENC_RGBCTL 0x081E | ||
357 | #define IO_VID_ENC_RGBCLP 0x0820 | ||
358 | #define IO_VID_ENC_LNECTL 0x0822 | ||
359 | #define IO_VID_ENC_CULLLNE 0x0824 | ||
360 | #define IO_VID_ENC_LCDOUT 0x0826 | ||
361 | #define IO_VID_ENC_BRTS 0x0828 | ||
362 | #define IO_VID_ENC_BRTW 0x082A | ||
363 | #define IO_VID_ENC_ACCTL 0x082C | ||
364 | #define IO_VID_ENC_PWMP 0x082E | ||
365 | #define IO_VID_ENC_PWMW 0x0830 | ||
366 | #define IO_VID_ENC_DCLKCTL 0x0832 | ||
367 | #define IO_VID_ENC_DCLKPTN0 0x0834 | ||
368 | #define IO_VID_ENC_DCLKPTN1 0x0836 | ||
369 | #define IO_VID_ENC_DCLKPTN2 0x0838 | ||
370 | #define IO_VID_ENC_DCLKPTN3 0x083A | ||
371 | #define IO_VID_ENC_DCLKPTN0A 0x083C | ||
372 | #define IO_VID_ENC_DCLKPTN1A 0x083E | ||
373 | #define IO_VID_ENC_DCLKPTN2A 0x0840 | ||
374 | #define IO_VID_ENC_DCLKPTN3A 0x0842 | ||
375 | #define IO_VID_ENC_DCLKHS 0x0844 | ||
376 | #define IO_VID_ENC_DCLKHSA 0x0846 | ||
377 | #define IO_VID_ENC_DCLKHR 0x0848 | ||
378 | #define IO_VID_ENC_DCLKVS 0x084A | ||
379 | #define IO_VID_ENC_DCLKVR 0x084C | ||
380 | #define IO_VID_ENC_CAPCTL 0x084E | ||
381 | #define IO_VID_ENC_CAPDO 0x0850 | ||
382 | #define IO_VID_ENC_CAPDE 0x0852 | ||
383 | #define IO_VID_ENC_ATR0 0x0854 | ||
384 | |||
385 | /* Clock Controller */ | ||
386 | #define IO_CLK_PLLA 0x0880 | ||
387 | #define IO_CLK_PLLB 0x0882 | ||
388 | #define IO_CLK_SEL0 0x0884 | ||
389 | #define IO_CLK_SEL1 0x0886 | ||
390 | #define IO_CLK_SEL2 0x0888 | ||
391 | #define IO_CLK_DIV0 0x088A | ||
392 | #define IO_CLK_DIV1 0x088C | ||
393 | #define IO_CLK_DIV2 0x088E | ||
394 | #define IO_CLK_DIV3 0x0890 | ||
395 | #define IO_CLK_DIV4 0x0892 | ||
396 | #define IO_CLK_BYP 0x0894 | ||
397 | #define IO_CLK_INV 0x0896 | ||
398 | #define IO_CLK_MOD0 0x0898 | ||
399 | #define IO_CLK_MOD1 0x089A | ||
400 | #define IO_CLK_MOD2 0x089C | ||
401 | #define IO_CLK_LPCTL0 0x089E | ||
402 | #define IO_CLK_LPCTL1 0x08A0 | ||
403 | #define IO_CLK_OSEL 0x08A2 | ||
404 | #define IO_CLK_00DIV 0x08A4 | ||
405 | #define IO_CLK_O1DIV 0x08A6 | ||
406 | #define IO_CLK_02DIV 0x08A8 | ||
407 | #define IO_CLK_PWM0C 0x08AA | ||
408 | #define IO_CLK_PWM0H 0x08AC | ||
409 | #define IO_CLK_PWM1C 0x08AE | ||
410 | #define IO_CLK_PWM1H 0x08B0 | ||
411 | |||
412 | /* Bus Controller */ | ||
413 | #define IO_BUSC_ECR 0x0900 | ||
414 | #define IO_BUSC_EBYTER 0x0902 | ||
415 | #define IO_BUSC_EBITR 0x0904 | ||
416 | #define IO_BUSC_REVR 0x0906 | ||
417 | |||
418 | /* SDRAM Controller */ | ||
419 | #define IO_SDRAM_SDBUFD0L 0x0980 | ||
420 | #define IO_SDRAM_SDBUFD0H 0x0982 | ||
421 | #define IO_SDRAM_SDBUFD1L 0x0984 | ||
422 | #define IO_SDRAM_SDBUFD1H 0x0986 | ||
423 | #define IO_SDRAM_SDBUFD2L 0x0988 | ||
424 | #define IO_SDRAM_SDBUFD2H 0x098A | ||
425 | #define IO_SDRAM_SDBUFD3L 0x098C | ||
426 | #define IO_SDRAM_SDBUFD3H 0x098E | ||
427 | #define IO_SDRAM_SDBUFD4L 0x0990 | ||
428 | #define IO_SDRAM_SDBUFD4H 0x0992 | ||
429 | #define IO_SDRAM_SDBUFD5L 0x0994 | ||
430 | #define IO_SDRAM_SDBUFD5H 0x0996 | ||
431 | #define IO_SDRAM_SDBUFD6L 0x0998 | ||
432 | #define IO_SDRAM_SDBUFD6H 0x099A | ||
433 | #define IO_SDRAM_SDBUFD7L 0x099C | ||
434 | #define IO_SDRAM_SDBUFD7H 0x099E | ||
435 | #define IO_SDRAM_SDBUFAD1 0x09A0 | ||
436 | #define IO_SDRAM_SDBUFAD2 0x09A2 | ||
437 | #define IO_SDRAM_SDBUFCTL 0x09A4 | ||
438 | #define IO_SDRAM_SDMODE 0x09A6 | ||
439 | #define IO_SDRAM_REFCTL 0x09A8 | ||
440 | #define IO_SDRAM_SDPRTY1 0x09AA | ||
441 | #define IO_SDRAM_SDPRTY2 0x09AC | ||
442 | #define IO_SDRAM_SDPRTY3 0x09AE | ||
443 | #define IO_SDRAM_SDPRTY4 0x09B0 | ||
444 | #define IO_SDRAM_SDPRTY5 0x09B2 | ||
445 | #define IO_SDRAM_SDPRTY6 0x09B4 | ||
446 | #define IO_SDRAM_SDPRTY7 0x09B6 | ||
447 | #define IO_SDRAM_SDPRTY8 0x09B8 | ||
448 | #define IO_SDRAM_SDPRTY9 0x09BA | ||
449 | #define IO_SDRAM_SDPRTY10 0x09BC | ||
450 | #define IO_SDRAM_SDPRTY11 0x09BE | ||
451 | #define IO_SDRAM_SDPRTY12 0x09C0 | ||
452 | #define IO_SDRAM_RSV 0x09C2 | ||
453 | #define IO_SDRAM_SDPRTYON 0x09C4 | ||
454 | #define IO_SDRAM_SDDMASEL 0x09C6 | ||
455 | |||
456 | /* EMIF Controller */ | ||
457 | #define IO_EMIF_CS0CTRL1 0x0A00 | ||
458 | #define IO_EMIF_CS0CTRL2 0x0A02 | ||
459 | #define IO_EMIF_CS0CTRL3 0x0A04 | ||
460 | #define IO_EMIF_CS1CTRL1A 0x0A06 | ||
461 | #define IO_EMIF_CS1CTRL1B 0x0A08 | ||
462 | #define IO_EMIF_CS1CTRL2 0x0A0A | ||
463 | #define IO_EMIF_CS2CTRL1 0x0A0C | ||
464 | #define IO_EMIF_CS2CTRL2 0x0A0E | ||
465 | #define IO_EMIF_CS3CTRL1 0x0A10 | ||
466 | #define IO_EMIF_CS3CTRL2 0x0A12 | ||
467 | #define IO_EMIF_CS4CTRL1 0x0A14 | ||
468 | #define IO_EMIF_CS4CTRL2 0x0A16 | ||
469 | #define IO_EMIF_BUSCTRL 0x0A18 | ||
470 | #define IO_EMIF_BUSRLS 0x0A1A | ||
471 | #define IO_EMIF_CFCTRL1 0x0A1C | ||
472 | #define IO_EMIF_CFCTRL2 0x0A1E | ||
473 | #define IO_EMIF_SMCTRL 0x0A20 | ||
474 | #define IO_EMIF_BUSINTEN 0x0A22 | ||
475 | #define IO_EMIF_BUSSTS 0x0A24 | ||
476 | #define IO_EMIF_BUSWAITMD 0x0A26 | ||
477 | #define IO_EMIF_ECC1CP 0x0A28 | ||
478 | #define IO_EMIF_ECC1LP 0x0A2A | ||
479 | #define IO_EMIF_ECC2CP 0x0A2C | ||
480 | #define IO_EMIF_ECC2LP 0x0A2E | ||
481 | #define IO_EMIF_ECC3CP 0x0A30 | ||
482 | #define IO_EMIF_ECC3LP 0x0A32 | ||
483 | #define IO_EMIF_ECC4CP 0x0A34 | ||
484 | #define IO_EMIF_ECC4LP 0x0A36 | ||
485 | #define IO_EMIF_ECC5CP 0x0A38 | ||
486 | #define IO_EMIF_ECC5LP 0x0A3A | ||
487 | #define IO_EMIF_ECC6CP 0x0A3C | ||
488 | #define IO_EMIF_ECC6LP 0x0A3E | ||
489 | #define IO_EMIF_ECC7CP 0x0A40 | ||
490 | #define IO_EMIF_ECC7LP 0x0A42 | ||
491 | #define IO_EMIF_ECC8CP 0x0A44 | ||
492 | #define IO_EMIF_ECC8LP 0x0A46 | ||
493 | #define IO_EMIF_ECCCLR 0x0A48 | ||
494 | #define IO_EMIF_PAGESZ 0x0A4A | ||
495 | #define IO_EMIF_PRIORCTL 0x0A4C | ||
496 | #define IO_EMIF_MGDSPDEST 0x0A4E | ||
497 | #define IO_EMIF_MGDSPADDH 0x0A50 | ||
498 | #define IO_EMIF_MGDSPADDL 0x0A52 | ||
499 | #define IO_EMIF_AHBADDH 0x0A54 | ||
500 | #define IO_EMIF_AHBADDL 0x0A56 | ||
501 | #define IO_EMIF_MTCADDH 0x0A58 | ||
502 | #define IO_EMIF_MTCADDL 0x0A5A | ||
503 | #define IO_EMIF_DMASIZE 0x0A5C | ||
504 | #define IO_EMIF_DMAMTCSEL 0x0A5E | ||
505 | #define IO_EMIF_DMACTL 0x0A60 | ||
506 | |||
507 | /* Preivew Engine */ | ||
508 | #define IO_PREV_ENG_PVEN 0x0A80 | ||
509 | #define IO_PREV_ENG_PVSET1 0x0A82 | ||
510 | #define IO_PREV_ENG_RADRH 0x0A84 | ||
511 | #define IO_PREV_ENG_RADRL 0x0A86 | ||
512 | #define IO_PREV_ENG_WADRH 0x0A88 | ||
513 | #define IO_PREV_ENG_WADRL 0x0A8A | ||
514 | #define IO_PREV_ENG_HSTART 0x0A8C | ||
515 | #define IO_PREV_ENG_HSIZE 0x0A8E | ||
516 | #define IO_PREV_ENG_VSTART 0x0A90 | ||
517 | #define IO_PREV_ENG_VSIZE 0x0A92 | ||
518 | #define IO_PREV_ENG_PVSET2 0x0A94 | ||
519 | #define IO_PREV_ENG_NFILT 0x0A96 | ||
520 | #define IO_PREV_ENG_DGAIN 0x0A98 | ||
521 | #define IO_PREV_ENG_WBGAIN0 0x0A9A | ||
522 | #define IO_PREV_ENG_WBGAIN1 0x0A9C | ||
523 | #define IO_PREV_ENG_SMTH 0x0A9E | ||
524 | #define IO_PREV_ENG_HRSZ 0x0AA0 | ||
525 | #define IO_PREV_ENG_VRSZ 0x0AA2 | ||
526 | #define IO_PREV_ENG_BLOFST0 0x0AA4 | ||
527 | #define IO_PREV_ENG_BLOFST1 0x0AA6 | ||
528 | #define IO_PREV_ENG_MTXGAIN0 0x0AA8 | ||
529 | #define IO_PREV_ENG_MTXGAIN1 0x0AAA | ||
530 | #define IO_PREV_ENG_MTXGAIN2 0x0AAC | ||
531 | #define IO_PREV_ENG_MTXGAIN3 0x0AAE | ||
532 | #define IO_PREV_ENG_MTXGAIN4 0x0AB0 | ||
533 | #define IO_PREV_ENG_MTXGAIN5 0x0AB2 | ||
534 | #define IO_PREV_ENG_MTXGAIN6 0x0AB4 | ||
535 | #define IO_PREV_ENG_MTXGAIN7 0x0AB6 | ||
536 | #define IO_PREV_ENG_MTXGAIN8 0x0AB8 | ||
537 | #define IO_PREV_ENG_MTXOFST0 0x0ABA | ||
538 | #define IO_PREV_ENG_MTXOFST1 0x0ABC | ||
539 | #define IO_PREV_ENG_MTXOFST2 0x0ABE | ||
540 | #define IO_PREV_ENG_GAMTBYP 0x0AC0 | ||
541 | #define IO_PREV_ENG_CSC0 0x0AC2 | ||
542 | #define IO_PREV_ENG_CSC1 0x0AC4 | ||
543 | #define IO_PREV_ENG_CSC2 0x0AC6 | ||
544 | #define IO_PREV_ENG_CSC3 0x0AC8 | ||
545 | #define IO_PREV_ENG_CSC4 0x0ACA | ||
546 | #define IO_PREV_ENG_YOFST 0x0ACC | ||
547 | #define IO_PREV_ENG_COFST 0x0ACE | ||
548 | #define IO_PREV_ENG_CNTBRT 0x0AD0 | ||
549 | #define IO_PREV_ENG_CSUP0 0x0AD2 | ||
550 | #define IO_PREV_ENG_CSUP1 0x0AD4 | ||
551 | #define IO_PREV_ENG_SETUPY 0x0AD4 | ||
552 | #define IO_PREV_ENG_SETUPC 0x0AD8 | ||
553 | #define IO_PREV_ENG_TABLE_ADDR 0x0ADA | ||
554 | #define IO_PREV_ENG_TABLE_DATA 0x0ADC | ||
555 | #define IO_PREV_ENG_HG_CTL 0x0ADE | ||
556 | #define IO_PREV_ENG_HG_R0_HSTART 0x0AE0 | ||
557 | #define IO_PREV_ENG_HG_R0_HSIZE 0x0AE2 | ||
558 | #define IO_PREV_ENG_HG_R0_VSTART 0x0AE4 | ||
559 | #define IO_PREV_ENG_HR_R0_VSIZE 0x0AE6 | ||
560 | #define IO_PREV_ENG_HG_R1_HSTART 0x0AE8 | ||
561 | #define IO_PREV_ENG_HG_R1_HSIZE 0x0AEA | ||
562 | #define IO_PREV_ENG_HG_R1_VSTART 0x0AEC | ||
563 | #define IO_PREV_ENG_HG_R1_VSIZE 0x0AEE | ||
564 | #define IO_PREV_ENG_HG_R2_HSTART 0x0AF0 | ||
565 | #define IO_PREV_ENG_HG_R2_HSIZE 0x0AF2 | ||
566 | #define IO_PREV_ENG_HG_R2_VSTART 0x0AF4 | ||
567 | #define IO_PREV_ENG_HG_R2_VSIZE 0x0AF6 | ||
568 | #define IO_PREV_ENG_HG_R3_HSTART 0x0AF8 | ||
569 | #define IO_PREV_ENG_HG_R3_HSIZE 0x0AFA | ||
570 | #define IO_PREV_ENG_HG_R3_VSTART 0x0AFC | ||
571 | #define IO_PREV_ENG_HG_R3_VSIZE 0x0AFE | ||
572 | #define IO_PREV_ENG_HG_ADDR 0x0B00 | ||
573 | #define IO_PREV_ENG_HG_DATA 0x0B02 | ||
574 | |||
575 | /* H3A Hardware */ | ||
576 | #define IO_H3A_H3ACTRL 0x0B80 | ||
577 | #define IO_H3A_AFCTRL 0x0B82 | ||
578 | #define IO_H3A_AFPAX1 0x0B84 | ||
579 | #define IO_H3A_AFPAX2 0x0B86 | ||
580 | #define IO_H3A_AFPAX3 0x0B88 | ||
581 | #define IO_H3A_AFPAX4 0x0B8A | ||
582 | #define IO_H3A_AFIRSH 0x0B8C | ||
583 | #define IO_H3A_AFPAX5 0x0B8E | ||
584 | #define IO_H3A_AFSDRA1 0x0B90 | ||
585 | #define IO_H3A_AFSDRA2 0x0B92 | ||
586 | #define IO_H3A_AFSDRFLG 0x0B94 | ||
587 | #define IO_H3A_AFCOEFF10 0x0B96 | ||
588 | #define IO_H3A_AFCOEFF11 0x0B98 | ||
589 | #define IO_H3A_AFCOEFF12 0x0B9A | ||
590 | #define IO_H3A_AFCOEFF13 0x0B9C | ||
591 | #define IO_H3A_AFCOEFF14 0x0B9E | ||
592 | #define IO_H3A_AFCOEFF15 0x0BA0 | ||
593 | #define IO_H3A_AFCOEFF16 0x0BA2 | ||
594 | #define IO_H3A_AFCOEFF17 0x0BA4 | ||
595 | #define IO_H3A_AFCOEFF18 0x0BA6 | ||
596 | #define IO_H3A_AFCOEFF19 0x0BA8 | ||
597 | #define IO_H3A_AFCOEFF110 0x0BAA | ||
598 | #define IO_H3A_AFCOEFF20 0x0BAC | ||
599 | #define IO_H3A_AFCOEFF21 0x0BAE | ||
600 | #define IO_H3A_AFCOEFF22 0x0BB0 | ||
601 | #define IO_H3A_AFCOEFF23 0x0BB2 | ||
602 | #define IO_H3A_AFCOEFF24 0x0BB4 | ||
603 | #define IO_H3A_AFCOEFF25 0x0BB6 | ||
604 | #define IO_H3A_AFCOEFF26 0x0BB8 | ||
605 | #define IO_H3A_AFCOEFF27 0x0BBA | ||
606 | #define IO_H3A_AFCOEFF28 0x0BBC | ||
607 | #define IO_H3A_AFCOEFF29 0x0BBE | ||
608 | #define IO_H3A_AFCOEFF210 0x0BC0 | ||
609 | #define IO_H3A_AEWCTRL 0x0BC2 | ||
610 | #define IO_H3A_AEWWIN1 0x0BC4 | ||
611 | #define IO_H3A_AEWWIN2 0x0BC6 | ||
612 | #define IO_H3A_AEWWIN3 0x0BC8 | ||
613 | #define IO_H3A_AEWWIN4 0x0BCA | ||
614 | #define IO_H3A_AEWWIN5 0x0BCC | ||
615 | #define IO_H3A_AEWSDRA1 0x0BCE | ||
616 | #define IO_H3A_AEWSDRA2 0x0BD0 | ||
617 | #define IO_H3A_AEWSDRFLG 0x0BD2 | ||
618 | |||
619 | /* Reserved 0x0C00 - 0x0CCFF */ | ||
620 | |||
621 | /* Memory Stick Controller : */ | ||
622 | #define IO_MEM_STICK_MODE 0x0C80 | ||
623 | #define IO_MEM_STICK_CMD 0x0C82 | ||
624 | #define IO_MEM_STICK_DATA 0x0C84 | ||
625 | #define IO_MEM_STICK_STATUS 0x0C86 | ||
626 | #define IO_MEM_STICK_SYS 0x0C88 | ||
627 | #define IO_MEM_STICK_ENDIAN 0x0C8A | ||
628 | #define IO_MEM_STICK_INT_STATUS 0x0C8C | ||
629 | #define IO_MEM_STICK_DMA_TRG 0x0C8E | ||
630 | #define IO_MEM_STICK_DMA_MODE 0x0C90 | ||
631 | #define IO_MEM_STICK_SDRAM_ADDL 0x0C92 | ||
632 | #define IO_MEM_STICK_SDRAM_ADDH 0x0C94 | ||
633 | #define IO_MEM_STICK_DMA_STATUS 0x0C96 | ||
634 | |||
635 | /* ATM : WBB Need to find these Register values */ | ||
636 | #define IO_ATM_ 0x0D00 | ||
637 | |||
638 | /* I2C */ | ||
639 | #define IO_I2C_TXDATA 0x0D80 | ||
640 | #define IO_I2C_RXDATA 0x0D82 | ||
641 | #define IO_I2C_SCS 0x0D84 | ||
642 | |||
643 | /* Taken from linux/include/asm-arm/arch-itdm320/irqs.h | ||
644 | * | ||
645 | * Copyright (C) 1999 ARM Limited | ||
646 | * Copyright (C) 2004 Ingenient Technologies | ||
647 | */ | ||
648 | |||
649 | /* | ||
650 | * Interrupt numbers | ||
651 | */ | ||
652 | #define IRQ_TIMER0 0 | ||
653 | #define IRQ_TIMER1 1 | ||
654 | #define IRQ_TIMER2 2 | ||
655 | #define IRQ_TIMER3 3 | ||
656 | #define IRQ_CCD_VD0 4 | ||
657 | #define IRQ_CCD_VD1 5 | ||
658 | #define IRQ_CCD_WEN 6 | ||
659 | #define IRQ_VENC 7 | ||
660 | #define IRQ_SERIAL0 8 | ||
661 | #define IRQ_SERIAL1 9 | ||
662 | #define IRQ_EXT_HOST 10 | ||
663 | #define IRQ_DSPHINT 11 | ||
664 | #define IRQ_UART0 12 | ||
665 | #define IRQ_UART1 13 | ||
666 | #define IRQ_USB_DMA 14 | ||
667 | #define IRQ_USB_CORE 15 | ||
668 | #define IRQ_VLYNQ 16 | ||
669 | #define IRQ_MTC0 17 | ||
670 | #define IRQ_MTC1 18 | ||
671 | #define IRQ_SD_MMC 19 | ||
672 | #define IRQ_SDIO_MS 20 | ||
673 | #define IRQ_GIO0 21 | ||
674 | #define IRQ_GIO1 22 | ||
675 | #define IRQ_GIO2 23 | ||
676 | #define IRQ_GIO3 24 | ||
677 | #define IRQ_GIO4 25 | ||
678 | #define IRQ_GIO5 26 | ||
679 | #define IRQ_GIO6 27 | ||
680 | #define IRQ_GIO7 28 | ||
681 | #define IRQ_GIO8 29 | ||
682 | #define IRQ_GIO9 30 | ||
683 | #define IRQ_GIO10 31 | ||
684 | #define IRQ_GIO11 32 | ||
685 | #define IRQ_GIO12 33 | ||
686 | #define IRQ_GIO13 34 | ||
687 | #define IRQ_GIO14 35 | ||
688 | #define IRQ_GIO15 36 | ||
689 | #define IRQ_PREVIEW0 37 | ||
690 | #define IRQ_PREVIEW1 38 | ||
691 | #define IRQ_WATCHDOG 39 | ||
692 | #define IRQ_I2C 40 | ||
693 | #define IRQ_CLKC 41 | ||
694 | |||
695 | /* Embedded Debugging Interrupts */ | ||
696 | #define IRQ_ICE 42 | ||
697 | #define IRQ_ARMCOM_RX 43 | ||
698 | #define IRQ_ARMCOM_TX 44 | ||
699 | |||
700 | #define IRQ_RESERVED 45 | ||
701 | |||
702 | #define NR_IRQS 46 | ||
703 | |||
704 | #endif | ||