Go to the documentation of this file.
23 #ifndef __CX25821_REGISTERS__
24 #define __CX25821_REGISTERS__
27 #define RISC_CNT_INC 0x00010000
28 #define RISC_CNT_RESET 0x00030000
29 #define RISC_IRQ1 0x01000000
30 #define RISC_IRQ2 0x02000000
31 #define RISC_EOL 0x04000000
32 #define RISC_SOL 0x08000000
33 #define RISC_WRITE 0x10000000
34 #define RISC_SKIP 0x20000000
35 #define RISC_JUMP 0x70000000
36 #define RISC_SYNC 0x80000000
37 #define RISC_RESYNC 0x80008000
38 #define RISC_READ 0x90000000
39 #define RISC_WRITERM 0xB0000000
40 #define RISC_WRITECM 0xC0000000
41 #define RISC_WRITECR 0xD0000000
42 #define RISC_WRITEC 0x50000000
43 #define RISC_READC 0xA0000000
45 #define RISC_SYNC_ODD 0x00000000
46 #define RISC_SYNC_EVEN 0x00000200
47 #define RISC_SYNC_ODD_VBI 0x00000006
48 #define RISC_SYNC_EVEN_VBI 0x00000207
49 #define RISC_NOOP 0xF0000000
54 #define TX_SRAM 0x000000
57 #define RX_RAM 0x010000
62 #define DEV_CNTRL2 0x040000
63 #define FLD_RUN_RISC 0x00000020
66 #define PCI_INT_MSK 0x040010
67 #define PCI_INT_STAT 0x040014
68 #define PCI_INT_MSTAT 0x040018
69 #define FLD_HAMMERHEAD_INT (1 << 27)
70 #define FLD_UART_INT (1 << 26)
71 #define FLD_IRQN_INT (1 << 25)
72 #define FLD_TM_INT (1 << 28)
73 #define FLD_I2C_3_RACK (1 << 27)
74 #define FLD_I2C_3_INT (1 << 26)
75 #define FLD_I2C_2_RACK (1 << 25)
76 #define FLD_I2C_2_INT (1 << 24)
77 #define FLD_I2C_1_RACK (1 << 23)
78 #define FLD_I2C_1_INT (1 << 22)
80 #define FLD_APB_DMA_BERR_INT (1 << 21)
81 #define FLD_AL_WR_BERR_INT (1 << 20)
82 #define FLD_AL_RD_BERR_INT (1 << 19)
83 #define FLD_RISC_WR_BERR_INT (1 << 18)
84 #define FLD_RISC_RD_BERR_INT (1 << 17)
86 #define FLD_VID_I_INT (1 << 8)
87 #define FLD_VID_H_INT (1 << 7)
88 #define FLD_VID_G_INT (1 << 6)
89 #define FLD_VID_F_INT (1 << 5)
90 #define FLD_VID_E_INT (1 << 4)
91 #define FLD_VID_D_INT (1 << 3)
92 #define FLD_VID_C_INT (1 << 2)
93 #define FLD_VID_B_INT (1 << 1)
94 #define FLD_VID_A_INT (1 << 0)
97 #define VID_A_INT_MSK 0x040020
98 #define VID_A_INT_STAT 0x040024
99 #define VID_A_INT_MSTAT 0x040028
100 #define VID_A_INT_SSTAT 0x04002C
103 #define VID_B_INT_MSK 0x040030
104 #define VID_B_INT_STAT 0x040034
105 #define VID_B_INT_MSTAT 0x040038
106 #define VID_B_INT_SSTAT 0x04003C
109 #define VID_C_INT_MSK 0x040040
110 #define VID_C_INT_STAT 0x040044
111 #define VID_C_INT_MSTAT 0x040048
112 #define VID_C_INT_SSTAT 0x04004C
115 #define VID_D_INT_MSK 0x040050
116 #define VID_D_INT_STAT 0x040054
117 #define VID_D_INT_MSTAT 0x040058
118 #define VID_D_INT_SSTAT 0x04005C
121 #define VID_E_INT_MSK 0x040060
122 #define VID_E_INT_STAT 0x040064
123 #define VID_E_INT_MSTAT 0x040068
124 #define VID_E_INT_SSTAT 0x04006C
127 #define VID_F_INT_MSK 0x040070
128 #define VID_F_INT_STAT 0x040074
129 #define VID_F_INT_MSTAT 0x040078
130 #define VID_F_INT_SSTAT 0x04007C
133 #define VID_G_INT_MSK 0x040080
134 #define VID_G_INT_STAT 0x040084
135 #define VID_G_INT_MSTAT 0x040088
136 #define VID_G_INT_SSTAT 0x04008C
139 #define VID_H_INT_MSK 0x040090
140 #define VID_H_INT_STAT 0x040094
141 #define VID_H_INT_MSTAT 0x040098
142 #define VID_H_INT_SSTAT 0x04009C
145 #define VID_I_INT_MSK 0x0400A0
146 #define VID_I_INT_STAT 0x0400A4
147 #define VID_I_INT_MSTAT 0x0400A8
148 #define VID_I_INT_SSTAT 0x0400AC
151 #define VID_J_INT_MSK 0x0400B0
152 #define VID_J_INT_STAT 0x0400B4
153 #define VID_J_INT_MSTAT 0x0400B8
154 #define VID_J_INT_SSTAT 0x0400BC
156 #define FLD_VID_SRC_OPC_ERR 0x00020000
157 #define FLD_VID_DST_OPC_ERR 0x00010000
158 #define FLD_VID_SRC_SYNC 0x00002000
159 #define FLD_VID_DST_SYNC 0x00001000
160 #define FLD_VID_SRC_UF 0x00000200
161 #define FLD_VID_DST_OF 0x00000100
162 #define FLD_VID_SRC_RISC2 0x00000020
163 #define FLD_VID_DST_RISC2 0x00000010
164 #define FLD_VID_SRC_RISC1 0x00000002
165 #define FLD_VID_DST_RISC1 0x00000001
166 #define FLD_VID_SRC_ERRORS (FLD_VID_SRC_OPC_ERR | FLD_VID_SRC_SYNC | FLD_VID_SRC_UF)
167 #define FLD_VID_DST_ERRORS (FLD_VID_DST_OPC_ERR | FLD_VID_DST_SYNC | FLD_VID_DST_OF)
170 #define AUD_A_INT_MSK 0x0400C0
171 #define AUD_A_INT_STAT 0x0400C4
172 #define AUD_A_INT_MSTAT 0x0400C8
173 #define AUD_A_INT_SSTAT 0x0400CC
176 #define AUD_B_INT_MSK 0x0400D0
177 #define AUD_B_INT_STAT 0x0400D4
178 #define AUD_B_INT_MSTAT 0x0400D8
179 #define AUD_B_INT_SSTAT 0x0400DC
182 #define AUD_C_INT_MSK 0x0400E0
183 #define AUD_C_INT_STAT 0x0400E4
184 #define AUD_C_INT_MSTAT 0x0400E8
185 #define AUD_C_INT_SSTAT 0x0400EC
188 #define AUD_D_INT_MSK 0x0400F0
189 #define AUD_D_INT_STAT 0x0400F4
190 #define AUD_D_INT_MSTAT 0x0400F8
191 #define AUD_D_INT_SSTAT 0x0400FC
194 #define AUD_E_INT_MSK 0x040100
195 #define AUD_E_INT_STAT 0x040104
196 #define AUD_E_INT_MSTAT 0x040108
197 #define AUD_E_INT_SSTAT 0x04010C
199 #define FLD_AUD_SRC_OPC_ERR 0x00020000
200 #define FLD_AUD_DST_OPC_ERR 0x00010000
201 #define FLD_AUD_SRC_SYNC 0x00002000
202 #define FLD_AUD_DST_SYNC 0x00001000
203 #define FLD_AUD_SRC_OF 0x00000200
204 #define FLD_AUD_DST_OF 0x00000100
205 #define FLD_AUD_SRC_RISCI2 0x00000020
206 #define FLD_AUD_DST_RISCI2 0x00000010
207 #define FLD_AUD_SRC_RISCI1 0x00000002
208 #define FLD_AUD_DST_RISCI1 0x00000001
211 #define MBIF_A_INT_MSK 0x040110
212 #define MBIF_A_INT_STAT 0x040114
213 #define MBIF_A_INT_MSTAT 0x040118
214 #define MBIF_A_INT_SSTAT 0x04011C
217 #define MBIF_B_INT_MSK 0x040120
218 #define MBIF_B_INT_STAT 0x040124
219 #define MBIF_B_INT_MSTAT 0x040128
220 #define MBIF_B_INT_SSTAT 0x04012C
222 #define FLD_MBIF_DST_OPC_ERR 0x00010000
223 #define FLD_MBIF_DST_SYNC 0x00001000
224 #define FLD_MBIF_DST_OF 0x00000100
225 #define FLD_MBIF_DST_RISCI2 0x00000010
226 #define FLD_MBIF_DST_RISCI1 0x00000001
229 #define AUD_EXT_INT_MSK 0x040060
230 #define AUD_EXT_INT_STAT 0x040064
231 #define AUD_EXT_INT_MSTAT 0x040068
232 #define AUD_EXT_INT_SSTAT 0x04006C
233 #define FLD_AUD_EXT_OPC_ERR 0x00010000
234 #define FLD_AUD_EXT_SYNC 0x00001000
235 #define FLD_AUD_EXT_OF 0x00000100
236 #define FLD_AUD_EXT_RISCI2 0x00000010
237 #define FLD_AUD_EXT_RISCI1 0x00000001
240 #define GPIO_LO 0x110010
241 #define GPIO_HI 0x110014
243 #define GPIO_LO_OE 0x110018
244 #define GPIO_HI_OE 0x11001C
246 #define GPIO_LO_INT_MSK 0x11003C
247 #define GPIO_LO_INT_STAT 0x110044
248 #define GPIO_LO_INT_MSTAT 0x11004C
249 #define GPIO_LO_ISM_SNS 0x110054
250 #define GPIO_LO_ISM_POL 0x11005C
252 #define GPIO_HI_INT_MSK 0x110040
253 #define GPIO_HI_INT_STAT 0x110048
254 #define GPIO_HI_INT_MSTAT 0x110050
255 #define GPIO_HI_ISM_SNS 0x110058
256 #define GPIO_HI_ISM_POL 0x110060
258 #define FLD_GPIO43_INT (1 << 11)
259 #define FLD_GPIO42_INT (1 << 10)
260 #define FLD_GPIO41_INT (1 << 9)
261 #define FLD_GPIO40_INT (1 << 8)
263 #define FLD_GPIO9_INT (1 << 9)
264 #define FLD_GPIO8_INT (1 << 8)
265 #define FLD_GPIO7_INT (1 << 7)
266 #define FLD_GPIO6_INT (1 << 6)
267 #define FLD_GPIO5_INT (1 << 5)
268 #define FLD_GPIO4_INT (1 << 4)
269 #define FLD_GPIO3_INT (1 << 3)
270 #define FLD_GPIO2_INT (1 << 2)
271 #define FLD_GPIO1_INT (1 << 1)
272 #define FLD_GPIO0_INT (1 << 0)
275 #define TC_REQ 0x040090
278 #define TC_REQ_SET 0x040094
286 #define RDR_CFG0 0x050000
287 #define RDR_VENDOR_DEVICE_ID_CFG 0x050000
290 #define RDR_CFG1 0x050004
293 #define RDR_CFG2 0x050008
296 #define RDR_CFG3 0x05000C
299 #define RDR_CFG4 0x050010
302 #define RDR_CFG5 0x050014
305 #define RDR_CFG6 0x050018
308 #define RDR_CFG7 0x05001C
311 #define RDR_CFG8 0x050020
314 #define RDR_CFG9 0x050024
317 #define RDR_CFGA 0x050028
320 #define RDR_CFGB 0x05002C
321 #define RDR_SUSSYSTEM_ID_CFG 0x05002C
324 #define RDR_CFGC 0x050030
327 #define RDR_CFGD 0x050034
330 #define RDR_CFGE 0x050038
333 #define RDR_CFGF 0x05003C
338 #define RDR_PECAP 0x050040
341 #define RDR_PEDEVCAP 0x050044
344 #define RDR_PEDEVSC 0x050048
347 #define RDR_PELINKCAP 0x05004C
350 #define RDR_PELINKSC 0x050050
353 #define RDR_PMICAP 0x050080
356 #define RDR_PMCSR 0x050084
359 #define RDR_VPDCAP 0x050090
362 #define RDR_VPDDATA 0x050094
365 #define RDR_MSICAP 0x0500A0
368 #define RDR_MSIARL 0x0500A4
371 #define RDR_MSIARU 0x0500A8
374 #define RDR_MSIDATA 0x0500AC
379 #define RDR_AERXCAP 0x050100
382 #define RDR_AERUESTA 0x050104
385 #define RDR_AERUEMSK 0x050108
388 #define RDR_AERUESEV 0x05010C
391 #define RDR_AERCESTA 0x050110
394 #define RDR_AERCEMSK 0x050114
397 #define RDR_AERCC 0x050118
400 #define RDR_AERHL0 0x05011C
403 #define RDR_AERHL1 0x050120
406 #define RDR_AERHL2 0x050124
409 #define RDR_AERHL3 0x050128
412 #define RDR_VCXCAP 0x050200
415 #define RDR_VCCAP1 0x050204
418 #define RDR_VCCAP2 0x050208
421 #define RDR_VCSC 0x05020C
424 #define RDR_VCR0_CAP 0x050210
427 #define RDR_VCR0_CTRL 0x050214
430 #define RDR_VCR0_STAT 0x050218
433 #define RDR_VCR1_CAP 0x05021C
436 #define RDR_VCR1_CTRL 0x050220
439 #define RDR_VCR1_STAT 0x050224
442 #define RDR_VCR2_CAP 0x050228
445 #define RDR_VCR2_CTRL 0x05022C
448 #define RDR_VCR2_STAT 0x050230
451 #define RDR_VCR3_CAP 0x050234
454 #define RDR_VCR3_CTRL 0x050238
457 #define RDR_VCR3_STAT 0x05023C
460 #define RDR_VCARB0 0x050240
463 #define RDR_VCARB1 0x050244
466 #define RDR_VCARB2 0x050248
469 #define RDR_VCARB3 0x05024C
472 #define RDR_VCARB4 0x050250
475 #define RDR_VCARB5 0x050254
478 #define RDR_VCARB6 0x050258
481 #define RDR_VCARB7 0x05025C
484 #define RDR_RDRSTAT0 0x050300
487 #define RDR_RDRSTAT1 0x050304
490 #define RDR_RDRCTL0 0x050308
493 #define RDR_RDRCTL1 0x05030C
498 #define RDR_TLSTAT0 0x050310
501 #define RDR_TLSTAT1 0x050314
504 #define RDR_TLCTL0 0x050318
505 #define FLD_CFG_UR_CPL_MODE 0x00000040
506 #define FLD_CFG_CORR_ERR_QUITE 0x00000020
507 #define FLD_CFG_RCB_CK_EN 0x00000010
508 #define FLD_CFG_BNDRY_CK_EN 0x00000008
509 #define FLD_CFG_BYTE_EN_CK_EN 0x00000004
510 #define FLD_CFG_RELAX_ORDER_MSK 0x00000002
511 #define FLD_CFG_TAG_ORDER_EN 0x00000001
514 #define RDR_TLCTL1 0x05031C
517 #define RDR_REQRCAL 0x050320
520 #define RDR_REQRCAU 0x050324
523 #define RDR_REQEPA 0x050328
526 #define RDR_REQCTRL 0x05032C
529 #define RDR_REQSTAT 0x050330
532 #define RDR_TL_TEST 0x050334
535 #define RDR_VCR01_CTL 0x050348
538 #define RDR_VCR23_CTL 0x05034C
541 #define RDR_RX_VCR0_FC 0x050350
544 #define RDR_RX_VCR1_FC 0x050354
547 #define RDR_RX_VCR2_FC 0x050358
550 #define RDR_RX_VCR3_FC 0x05035C
555 #define RDR_DLLSTAT 0x050360
558 #define RDR_DLLCTRL 0x050364
561 #define RDR_REPLAYTO 0x050368
564 #define RDR_ACKLATTO 0x05036C
569 #define RDR_MACSTAT0 0x050380
572 #define RDR_MACSTAT1 0x050384
575 #define RDR_MACCTRL0 0x050388
578 #define RDR_MACCTRL1 0x05038C
581 #define RDR_MACCTRL2 0x050390
584 #define RDR_MAC_LB_DATA 0x050394
587 #define RDR_L0S_EXIT_LAT 0x050398
592 #define DMA1_PTR1 0x100000
595 #define DMA2_PTR1 0x100004
598 #define DMA3_PTR1 0x100008
601 #define DMA4_PTR1 0x10000C
604 #define DMA5_PTR1 0x100010
607 #define DMA6_PTR1 0x100014
610 #define DMA7_PTR1 0x100018
613 #define DMA8_PTR1 0x10001C
616 #define DMA9_PTR1 0x100020
619 #define DMA10_PTR1 0x100024
622 #define DMA11_PTR1 0x100028
625 #define DMA12_PTR1 0x10002C
628 #define DMA13_PTR1 0x100030
631 #define DMA14_PTR1 0x100034
634 #define DMA15_PTR1 0x100038
637 #define DMA16_PTR1 0x10003C
640 #define DMA17_PTR1 0x100040
643 #define DMA18_PTR1 0x100044
646 #define DMA19_PTR1 0x100048
649 #define DMA20_PTR1 0x10004C
652 #define DMA21_PTR1 0x100050
655 #define DMA22_PTR1 0x100054
658 #define DMA23_PTR1 0x100058
661 #define DMA24_PTR1 0x10005C
664 #define DMA25_PTR1 0x100060
667 #define DMA26_PTR1 0x100064
670 #define DMA1_PTR2 0x100080
673 #define DMA2_PTR2 0x100084
676 #define DMA3_PTR2 0x100088
679 #define DMA4_PTR2 0x10008C
682 #define DMA5_PTR2 0x100090
685 #define DMA6_PTR2 0x100094
688 #define DMA7_PTR2 0x100098
691 #define DMA8_PTR2 0x10009C
694 #define DMA9_PTR2 0x1000A0
697 #define DMA10_PTR2 0x1000A4
700 #define DMA11_PTR2 0x1000A8
703 #define DMA12_PTR2 0x1000AC
706 #define DMA13_PTR2 0x1000B0
709 #define DMA14_PTR2 0x1000B4
712 #define DMA15_PTR2 0x1000B8
715 #define DMA16_PTR2 0x1000BC
718 #define DMA17_PTR2 0x1000C0
721 #define DMA18_PTR2 0x1000C4
724 #define DMA19_PTR2 0x1000C8
727 #define DMA20_PTR2 0x1000CC
730 #define DMA21_PTR2 0x1000D0
733 #define DMA22_PTR2 0x1000D4
736 #define DMA23_PTR2 0x1000D8
739 #define DMA24_PTR2 0x1000DC
742 #define DMA25_PTR2 0x1000E0
745 #define DMA26_PTR2 0x1000E4
748 #define DMA1_CNT1 0x100100
751 #define DMA2_CNT1 0x100104
754 #define DMA3_CNT1 0x100108
757 #define DMA4_CNT1 0x10010C
760 #define DMA5_CNT1 0x100110
763 #define DMA6_CNT1 0x100114
766 #define DMA7_CNT1 0x100118
769 #define DMA8_CNT1 0x10011C
772 #define DMA9_CNT1 0x100120
775 #define DMA10_CNT1 0x100124
778 #define DMA11_CNT1 0x100128
781 #define DMA12_CNT1 0x10012C
784 #define DMA13_CNT1 0x100130
787 #define DMA14_CNT1 0x100134
790 #define DMA15_CNT1 0x100138
793 #define DMA16_CNT1 0x10013C
796 #define DMA17_CNT1 0x100140
799 #define DMA18_CNT1 0x100144
802 #define DMA19_CNT1 0x100148
805 #define DMA20_CNT1 0x10014C
808 #define DMA21_CNT1 0x100150
811 #define DMA22_CNT1 0x100154
814 #define DMA23_CNT1 0x100158
817 #define DMA24_CNT1 0x10015C
820 #define DMA25_CNT1 0x100160
823 #define DMA26_CNT1 0x100164
826 #define DMA1_CNT2 0x100180
829 #define DMA2_CNT2 0x100184
832 #define DMA3_CNT2 0x100188
835 #define DMA4_CNT2 0x10018C
838 #define DMA5_CNT2 0x100190
841 #define DMA6_CNT2 0x100194
844 #define DMA7_CNT2 0x100198
847 #define DMA8_CNT2 0x10019C
850 #define DMA9_CNT2 0x1001A0
853 #define DMA10_CNT2 0x1001A4
856 #define DMA11_CNT2 0x1001A8
859 #define DMA12_CNT2 0x1001AC
862 #define DMA13_CNT2 0x1001B0
865 #define DMA14_CNT2 0x1001B4
868 #define DMA15_CNT2 0x1001B8
871 #define DMA16_CNT2 0x1001BC
874 #define DMA17_CNT2 0x1001C0
877 #define DMA18_CNT2 0x1001C4
880 #define DMA19_CNT2 0x1001C8
883 #define DMA20_CNT2 0x1001CC
886 #define DMA21_CNT2 0x1001D0
889 #define DMA22_CNT2 0x1001D4
892 #define DMA23_CNT2 0x1001D8
895 #define DMA24_CNT2 0x1001DC
898 #define DMA25_CNT2 0x1001E0
901 #define DMA26_CNT2 0x1001E4
906 #define TM_CNT_LDW 0x110000
909 #define TM_CNT_UW 0x110004
912 #define TM_LMT_LDW 0x110008
915 #define TM_LMT_UW 0x11000C
918 #define GP0_IO 0x110010
919 #define FLD_GP_OE 0x00FF0000
920 #define FLD_GP_IN 0x0000FF00
921 #define FLD_GP_OUT 0x000000FF
924 #define GPIO_ISM 0x110014
925 #define FLD_GP_ISM_SNS 0x00000070
926 #define FLD_GP_ISM_POL 0x00000007
929 #define SOFT_RESET 0x11001C
930 #define FLD_PECOS_SOFT_RESET 0x00000001
933 #define MC416_RWD 0x110020
934 #define MC416_OEN 0x110024
935 #define MC416_CTL 0x110028
938 #define ALT_PIN_OUT_SEL 0x11002C
940 #define FLD_ALT_GPIO_OUT_SEL 0xF0000000
951 #define FLD_AUX_PLL_CLK_ALT_SEL 0x0F000000
961 #define FLD_IR_TX_ALT_SEL 0x00F00000
971 #define FLD_IR_RX_ALT_SEL 0x000F0000
981 #define FLD_GPIO10_ALT_SEL 0x0000F000
991 #define FLD_GPIO2_ALT_SEL 0x00000F00
1001 #define FLD_GPIO1_ALT_SEL 0x000000F0
1011 #define FLD_GPIO0_ALT_SEL 0x0000000F
1021 #define ALT_PIN_IN_SEL 0x110030
1023 #define FLD_GPIO10_ALT_IN_SEL 0x0000F000
1033 #define FLD_GPIO2_ALT_IN_SEL 0x00000F00
1040 #define FLD_GPIO1_ALT_IN_SEL 0x000000F0
1047 #define FLD_GPIO0_ALT_IN_SEL 0x0000000F
1055 #define TEST_BUS_CTL1 0x110040
1058 #define TEST_BUS_CTL2 0x110044
1061 #define CLK_DELAY 0x110048
1062 #define FLD_MOE_CLK_DIS 0x80000000
1065 #define PAD_CTRL 0x110068
1068 #define MBIST_CTRL 0x110050
1071 #define MBIST_STAT 0x110054
1076 #define PLL_A_INT_FRAC 0x110088
1077 #define PLL_A_POST_STAT_BIST 0x11008C
1078 #define PLL_B_INT_FRAC 0x110090
1079 #define PLL_B_POST_STAT_BIST 0x110094
1080 #define PLL_C_INT_FRAC 0x110098
1081 #define PLL_C_POST_STAT_BIST 0x11009C
1082 #define PLL_D_INT_FRAC 0x1100A0
1083 #define PLL_D_POST_STAT_BIST 0x1100A4
1085 #define CLK_RST 0x11002C
1086 #define FLD_VID_I_CLK_NOE 0x00001000
1087 #define FLD_VID_J_CLK_NOE 0x00002000
1088 #define FLD_USE_ALT_PLL_REF 0x00004000
1090 #define VID_CH_MODE_SEL 0x110078
1091 #define VID_CH_CLK_SEL 0x11007C
1094 #define VBI_A_DMA 0x130008
1097 #define VID_A_VIP_CTL 0x130080
1098 #define FLD_VIP_MODE 0x00000001
1101 #define VID_A_PIXEL_FRMT 0x130084
1102 #define FLD_VID_A_GAMMA_DIS 0x00000008
1103 #define FLD_VID_A_FORMAT 0x00000007
1104 #define FLD_VID_A_GAMMA_FACTOR 0x00000010
1107 #define VID_A_VBI_CTL 0x130088
1108 #define FLD_VID_A_VIP_EXT 0x00000003
1111 #define VID_B_DMA 0x130100
1114 #define VBI_B_DMA 0x130108
1117 #define VID_B_SRC_SEL 0x130144
1118 #define FLD_VID_B_SRC_SEL 0x00000000
1121 #define VID_B_LNGTH 0x130150
1122 #define FLD_VID_B_LN_LNGTH 0x00000FFF
1125 #define VID_B_VIP_CTL 0x130180
1128 #define VID_B_PIXEL_FRMT 0x130184
1129 #define FLD_VID_B_GAMMA_DIS 0x00000008
1130 #define FLD_VID_B_FORMAT 0x00000007
1131 #define FLD_VID_B_GAMMA_FACTOR 0x00000010
1134 #define VID_C_DMA 0x130200
1137 #define VID_C_LNGTH 0x130250
1138 #define FLD_VID_C_LN_LNGTH 0x00000FFF
1144 #define VID_DST_A_GPCNT 0x130020
1145 #define VID_DST_B_GPCNT 0x130120
1146 #define VID_DST_C_GPCNT 0x130220
1147 #define VID_DST_D_GPCNT 0x130320
1148 #define VID_DST_E_GPCNT 0x130420
1149 #define VID_DST_F_GPCNT 0x130520
1150 #define VID_DST_G_GPCNT 0x130620
1151 #define VID_DST_H_GPCNT 0x130720
1155 #define VID_DST_A_GPCNT_CTL 0x130030
1156 #define VID_DST_B_GPCNT_CTL 0x130130
1157 #define VID_DST_C_GPCNT_CTL 0x130230
1158 #define VID_DST_D_GPCNT_CTL 0x130330
1159 #define VID_DST_E_GPCNT_CTL 0x130430
1160 #define VID_DST_F_GPCNT_CTL 0x130530
1161 #define VID_DST_G_GPCNT_CTL 0x130630
1162 #define VID_DST_H_GPCNT_CTL 0x130730
1166 #define VID_DST_A_DMA_CTL 0x130040
1167 #define VID_DST_B_DMA_CTL 0x130140
1168 #define VID_DST_C_DMA_CTL 0x130240
1169 #define VID_DST_D_DMA_CTL 0x130340
1170 #define VID_DST_E_DMA_CTL 0x130440
1171 #define VID_DST_F_DMA_CTL 0x130540
1172 #define VID_DST_G_DMA_CTL 0x130640
1173 #define VID_DST_H_DMA_CTL 0x130740
1175 #define FLD_VID_RISC_EN 0x00000010
1176 #define FLD_VID_FIFO_EN 0x00000001
1180 #define VID_DST_A_VIP_CTL 0x130080
1181 #define VID_DST_B_VIP_CTL 0x130180
1182 #define VID_DST_C_VIP_CTL 0x130280
1183 #define VID_DST_D_VIP_CTL 0x130380
1184 #define VID_DST_E_VIP_CTL 0x130480
1185 #define VID_DST_F_VIP_CTL 0x130580
1186 #define VID_DST_G_VIP_CTL 0x130680
1187 #define VID_DST_H_VIP_CTL 0x130780
1191 #define VID_DST_A_PIX_FRMT 0x130084
1192 #define VID_DST_B_PIX_FRMT 0x130184
1193 #define VID_DST_C_PIX_FRMT 0x130284
1194 #define VID_DST_D_PIX_FRMT 0x130384
1195 #define VID_DST_E_PIX_FRMT 0x130484
1196 #define VID_DST_F_PIX_FRMT 0x130584
1197 #define VID_DST_G_PIX_FRMT 0x130684
1198 #define VID_DST_H_PIX_FRMT 0x130784
1204 #define VID_SRC_A_GPCNT_CTL 0x130804
1205 #define VID_SRC_B_GPCNT_CTL 0x130904
1206 #define VID_SRC_C_GPCNT_CTL 0x130A04
1207 #define VID_SRC_D_GPCNT_CTL 0x130B04
1208 #define VID_SRC_E_GPCNT_CTL 0x130C04
1209 #define VID_SRC_F_GPCNT_CTL 0x130D04
1210 #define VID_SRC_I_GPCNT_CTL 0x130E04
1211 #define VID_SRC_J_GPCNT_CTL 0x130F04
1215 #define VID_SRC_A_GPCNT 0x130808
1216 #define VID_SRC_B_GPCNT 0x130908
1217 #define VID_SRC_C_GPCNT 0x130A08
1218 #define VID_SRC_D_GPCNT 0x130B08
1219 #define VID_SRC_E_GPCNT 0x130C08
1220 #define VID_SRC_F_GPCNT 0x130D08
1221 #define VID_SRC_I_GPCNT 0x130E08
1222 #define VID_SRC_J_GPCNT 0x130F08
1226 #define VID_SRC_A_DMA_CTL 0x13080C
1227 #define VID_SRC_B_DMA_CTL 0x13090C
1228 #define VID_SRC_C_DMA_CTL 0x130A0C
1229 #define VID_SRC_D_DMA_CTL 0x130B0C
1230 #define VID_SRC_E_DMA_CTL 0x130C0C
1231 #define VID_SRC_F_DMA_CTL 0x130D0C
1232 #define VID_SRC_I_DMA_CTL 0x130E0C
1233 #define VID_SRC_J_DMA_CTL 0x130F0C
1235 #define FLD_APB_RISC_EN 0x00000010
1236 #define FLD_APB_FIFO_EN 0x00000001
1240 #define VID_SRC_A_FMT_CTL 0x130810
1241 #define VID_SRC_B_FMT_CTL 0x130910
1242 #define VID_SRC_C_FMT_CTL 0x130A10
1243 #define VID_SRC_D_FMT_CTL 0x130B10
1244 #define VID_SRC_E_FMT_CTL 0x130C10
1245 #define VID_SRC_F_FMT_CTL 0x130D10
1246 #define VID_SRC_I_FMT_CTL 0x130E10
1247 #define VID_SRC_J_FMT_CTL 0x130F10
1251 #define VID_SRC_A_ACTIVE_CTL1 0x130814
1252 #define VID_SRC_B_ACTIVE_CTL1 0x130914
1253 #define VID_SRC_C_ACTIVE_CTL1 0x130A14
1254 #define VID_SRC_D_ACTIVE_CTL1 0x130B14
1255 #define VID_SRC_E_ACTIVE_CTL1 0x130C14
1256 #define VID_SRC_F_ACTIVE_CTL1 0x130D14
1257 #define VID_SRC_I_ACTIVE_CTL1 0x130E14
1258 #define VID_SRC_J_ACTIVE_CTL1 0x130F14
1262 #define VID_SRC_A_ACTIVE_CTL2 0x130818
1263 #define VID_SRC_B_ACTIVE_CTL2 0x130918
1264 #define VID_SRC_C_ACTIVE_CTL2 0x130A18
1265 #define VID_SRC_D_ACTIVE_CTL2 0x130B18
1266 #define VID_SRC_E_ACTIVE_CTL2 0x130C18
1267 #define VID_SRC_F_ACTIVE_CTL2 0x130D18
1268 #define VID_SRC_I_ACTIVE_CTL2 0x130E18
1269 #define VID_SRC_J_ACTIVE_CTL2 0x130F18
1273 #define VID_SRC_A_CDT_SZ 0x13081C
1274 #define VID_SRC_B_CDT_SZ 0x13091C
1275 #define VID_SRC_C_CDT_SZ 0x130A1C
1276 #define VID_SRC_D_CDT_SZ 0x130B1C
1277 #define VID_SRC_E_CDT_SZ 0x130C1C
1278 #define VID_SRC_F_CDT_SZ 0x130D1C
1279 #define VID_SRC_I_CDT_SZ 0x130E1C
1280 #define VID_SRC_J_CDT_SZ 0x130F1C
1285 #define AUD_DST_A_DMA 0x140000
1286 #define AUD_SRC_A_DMA 0x140008
1288 #define AUD_A_GPCNT 0x140010
1289 #define FLD_AUD_A_GP_CNT 0x0000FFFF
1291 #define AUD_A_GPCNT_CTL 0x140014
1293 #define AUD_A_LNGTH 0x140018
1295 #define AUD_A_CFG 0x14001C
1298 #define AUD_DST_B_DMA 0x140100
1299 #define AUD_SRC_B_DMA 0x140108
1301 #define AUD_B_GPCNT 0x140110
1302 #define FLD_AUD_B_GP_CNT 0x0000FFFF
1304 #define AUD_B_GPCNT_CTL 0x140114
1306 #define AUD_B_LNGTH 0x140118
1308 #define AUD_B_CFG 0x14011C
1311 #define AUD_DST_C_DMA 0x140200
1312 #define AUD_SRC_C_DMA 0x140208
1314 #define AUD_C_GPCNT 0x140210
1315 #define FLD_AUD_C_GP_CNT 0x0000FFFF
1317 #define AUD_C_GPCNT_CTL 0x140214
1319 #define AUD_C_LNGTH 0x140218
1321 #define AUD_C_CFG 0x14021C
1324 #define AUD_DST_D_DMA 0x140300
1325 #define AUD_SRC_D_DMA 0x140308
1327 #define AUD_D_GPCNT 0x140310
1328 #define FLD_AUD_D_GP_CNT 0x0000FFFF
1330 #define AUD_D_GPCNT_CTL 0x140314
1332 #define AUD_D_LNGTH 0x140318
1334 #define AUD_D_CFG 0x14031C
1337 #define AUD_SRC_E_DMA 0x140400
1339 #define AUD_E_GPCNT 0x140410
1340 #define FLD_AUD_E_GP_CNT 0x0000FFFF
1342 #define AUD_E_GPCNT_CTL 0x140414
1344 #define AUD_E_CFG 0x14041C
1348 #define FLD_AUD_DST_LN_LNGTH 0x00000FFF
1350 #define FLD_AUD_DST_PK_MODE 0x00004000
1352 #define FLD_AUD_CLK_ENABLE 0x00000200
1354 #define FLD_AUD_MASTER_MODE 0x00000002
1356 #define FLD_AUD_SONY_MODE 0x00000001
1358 #define FLD_AUD_CLK_SELECT_PLL_D 0x00001800
1360 #define FLD_AUD_DST_ENABLE 0x00020000
1362 #define FLD_AUD_SRC_ENABLE 0x00010000
1365 #define AUD_INT_DMA_CTL 0x140500
1367 #define FLD_AUD_SRC_E_RISC_EN 0x00008000
1368 #define FLD_AUD_SRC_C_RISC_EN 0x00004000
1369 #define FLD_AUD_SRC_B_RISC_EN 0x00002000
1370 #define FLD_AUD_SRC_A_RISC_EN 0x00001000
1372 #define FLD_AUD_DST_D_RISC_EN 0x00000800
1373 #define FLD_AUD_DST_C_RISC_EN 0x00000400
1374 #define FLD_AUD_DST_B_RISC_EN 0x00000200
1375 #define FLD_AUD_DST_A_RISC_EN 0x00000100
1377 #define FLD_AUD_SRC_E_FIFO_EN 0x00000080
1378 #define FLD_AUD_SRC_C_FIFO_EN 0x00000040
1379 #define FLD_AUD_SRC_B_FIFO_EN 0x00000020
1380 #define FLD_AUD_SRC_A_FIFO_EN 0x00000010
1382 #define FLD_AUD_DST_D_FIFO_EN 0x00000008
1383 #define FLD_AUD_DST_C_FIFO_EN 0x00000004
1384 #define FLD_AUD_DST_B_FIFO_EN 0x00000002
1385 #define FLD_AUD_DST_A_FIFO_EN 0x00000001
1394 #define MB_IF_A_DMA 0x150000
1395 #define MB_IF_A_GPCN 0x150008
1396 #define MB_IF_A_GPCN_CTRL 0x15000C
1397 #define MB_IF_A_DMA_CTRL 0x150010
1398 #define MB_IF_A_LENGTH 0x150014
1399 #define MB_IF_A_HDMA_XFER_SZ 0x150018
1400 #define MB_IF_A_HCMD 0x15001C
1401 #define MB_IF_A_HCONFIG 0x150020
1402 #define MB_IF_A_DATA_STRUCT_0 0x150024
1403 #define MB_IF_A_DATA_STRUCT_1 0x150028
1404 #define MB_IF_A_DATA_STRUCT_2 0x15002C
1405 #define MB_IF_A_DATA_STRUCT_3 0x150030
1406 #define MB_IF_A_DATA_STRUCT_4 0x150034
1407 #define MB_IF_A_DATA_STRUCT_5 0x150038
1408 #define MB_IF_A_DATA_STRUCT_6 0x15003C
1409 #define MB_IF_A_DATA_STRUCT_7 0x150040
1410 #define MB_IF_A_DATA_STRUCT_8 0x150044
1411 #define MB_IF_A_DATA_STRUCT_9 0x150048
1412 #define MB_IF_A_DATA_STRUCT_A 0x15004C
1413 #define MB_IF_A_DATA_STRUCT_B 0x150050
1414 #define MB_IF_A_DATA_STRUCT_C 0x150054
1415 #define MB_IF_A_DATA_STRUCT_D 0x150058
1416 #define MB_IF_A_DATA_STRUCT_E 0x15005C
1417 #define MB_IF_A_DATA_STRUCT_F 0x150060
1421 #define MB_IF_B_DMA 0x160000
1422 #define MB_IF_B_GPCN 0x160008
1423 #define MB_IF_B_GPCN_CTRL 0x16000C
1424 #define MB_IF_B_DMA_CTRL 0x160010
1425 #define MB_IF_B_LENGTH 0x160014
1426 #define MB_IF_B_HDMA_XFER_SZ 0x160018
1427 #define MB_IF_B_HCMD 0x16001C
1428 #define MB_IF_B_HCONFIG 0x160020
1429 #define MB_IF_B_DATA_STRUCT_0 0x160024
1430 #define MB_IF_B_DATA_STRUCT_1 0x160028
1431 #define MB_IF_B_DATA_STRUCT_2 0x16002C
1432 #define MB_IF_B_DATA_STRUCT_3 0x160030
1433 #define MB_IF_B_DATA_STRUCT_4 0x160034
1434 #define MB_IF_B_DATA_STRUCT_5 0x160038
1435 #define MB_IF_B_DATA_STRUCT_6 0x16003C
1436 #define MB_IF_B_DATA_STRUCT_7 0x160040
1437 #define MB_IF_B_DATA_STRUCT_8 0x160044
1438 #define MB_IF_B_DATA_STRUCT_9 0x160048
1439 #define MB_IF_B_DATA_STRUCT_A 0x16004C
1440 #define MB_IF_B_DATA_STRUCT_B 0x160050
1441 #define MB_IF_B_DATA_STRUCT_C 0x160054
1442 #define MB_IF_B_DATA_STRUCT_D 0x160058
1443 #define MB_IF_B_DATA_STRUCT_E 0x16005C
1444 #define MB_IF_B_DATA_STRUCT_F 0x160060
1447 #define FLD_MB_IF_RISC_EN 0x00000010
1448 #define FLD_MB_IF_FIFO_EN 0x00000001
1451 #define FLD_MB_IF_LN_LNGTH 0x00000FFF
1454 #define FLD_MB_HCMD_H_GO 0x80000000
1455 #define FLD_MB_HCMD_H_BUSY 0x40000000
1456 #define FLD_MB_HCMD_H_DMA_HOLD 0x10000000
1457 #define FLD_MB_HCMD_H_DMA_BUSY 0x08000000
1458 #define FLD_MB_HCMD_H_DMA_TYPE 0x04000000
1459 #define FLD_MB_HCMD_H_DMA_XACT 0x02000000
1460 #define FLD_MB_HCMD_H_RW_N 0x01000000
1461 #define FLD_MB_HCMD_H_ADDR 0x00FF0000
1462 #define FLD_MB_HCMD_H_DATA 0x0000FFFF
1467 #define I2C1_ADDR 0x180000
1468 #define FLD_I2C_DADDR 0xfe000000
1471 #define FLD_I2C_SADDR 0x00FFFFFF
1474 #define I2C1_WDATA 0x180004
1475 #define FLD_I2C_WDATA 0xFFFFFFFF
1478 #define I2C1_CTRL 0x180008
1479 #define FLD_I2C_PERIOD 0xFF000000
1480 #define FLD_I2C_SCL_IN 0x00200000
1481 #define FLD_I2C_SDA_IN 0x00100000
1483 #define FLD_I2C_SCL_OUT 0x00020000
1484 #define FLD_I2C_SDA_OUT 0x00010000
1486 #define FLD_I2C_DATA_LEN 0x00007000
1487 #define FLD_I2C_SADDR_INC 0x00000800
1489 #define FLD_I2C_SADDR_LEN 0x00000300
1491 #define FLD_I2C_SOFT 0x00000020
1492 #define FLD_I2C_NOSTOP 0x00000010
1493 #define FLD_I2C_EXTEND 0x00000008
1494 #define FLD_I2C_SYNC 0x00000004
1495 #define FLD_I2C_READ_SA 0x00000002
1496 #define FLD_I2C_READ_WRN 0x00000001
1499 #define I2C1_RDATA 0x18000C
1500 #define FLD_I2C_RDATA 0xFFFFFFFF
1503 #define I2C1_STAT 0x180010
1504 #define FLD_I2C_XFER_IN_PROG 0x00000002
1505 #define FLD_I2C_RACK 0x00000001
1510 #define I2C2_ADDR 0x190000
1513 #define I2C2_WDATA 0x190004
1516 #define I2C2_CTRL 0x190008
1519 #define I2C2_RDATA 0x19000C
1522 #define I2C2_STAT 0x190010
1527 #define I2C3_ADDR 0x1A0000
1530 #define I2C3_WDATA 0x1A0004
1533 #define I2C3_CTRL 0x1A0008
1536 #define I2C3_RDATA 0x1A000C
1539 #define I2C3_STAT 0x1A0010
1544 #define UART_CTL 0x1B0000
1545 #define FLD_LOOP_BACK_EN (1 << 7)
1546 #define FLD_RX_TRG_SZ (3 << 2)
1547 #define FLD_RX_EN (1 << 1)
1548 #define FLD_TX_EN (1 << 0)
1551 #define UART_BRD 0x1B0004
1552 #define FLD_BRD 0x0000FFFF
1555 #define UART_DBUF 0x1B0008
1556 #define FLD_DB 0xFFFFFFFF
1559 #define UART_ISR 0x1B000C
1560 #define FLD_RXD_TIMEOUT_EN (1 << 7)
1561 #define FLD_FRM_ERR_EN (1 << 6)
1562 #define FLD_RXD_RDY_EN (1 << 5)
1563 #define FLD_TXD_EMPTY_EN (1 << 4)
1564 #define FLD_RXD_OVERFLOW (1 << 3)
1565 #define FLD_FRM_ERR (1 << 2)
1566 #define FLD_RXD_RDY (1 << 1)
1567 #define FLD_TXD_EMPTY (1 << 0)
1570 #define UART_CNT 0x1B0010
1571 #define FLD_TXD_CNT (0x1F << 8)
1572 #define FLD_RXD_CNT (0x1F << 0)
1576 #define MD_CH0_GRID_BLOCK_YCNT 0x170014
1577 #define MD_CH1_GRID_BLOCK_YCNT 0x170094
1578 #define MD_CH2_GRID_BLOCK_YCNT 0x170114
1579 #define MD_CH3_GRID_BLOCK_YCNT 0x170194
1580 #define MD_CH4_GRID_BLOCK_YCNT 0x170214
1581 #define MD_CH5_GRID_BLOCK_YCNT 0x170294
1582 #define MD_CH6_GRID_BLOCK_YCNT 0x170314
1583 #define MD_CH7_GRID_BLOCK_YCNT 0x170394
1585 #define PIXEL_FRMT_422 4
1586 #define PIXEL_FRMT_411 5
1587 #define PIXEL_FRMT_Y8 6
1589 #define PIXEL_ENGINE_VIP1 0
1590 #define PIXEL_ENGINE_VIP2 1