Go to the documentation of this file.
15 #ifndef AT91SAM9G45_MATRIX_H
16 #define AT91SAM9G45_MATRIX_H
18 #define AT91_MATRIX_MCFG0 0x00
19 #define AT91_MATRIX_MCFG1 0x04
20 #define AT91_MATRIX_MCFG2 0x08
21 #define AT91_MATRIX_MCFG3 0x0C
22 #define AT91_MATRIX_MCFG4 0x10
23 #define AT91_MATRIX_MCFG5 0x14
24 #define AT91_MATRIX_MCFG6 0x18
25 #define AT91_MATRIX_MCFG7 0x1C
26 #define AT91_MATRIX_MCFG8 0x20
27 #define AT91_MATRIX_MCFG9 0x24
28 #define AT91_MATRIX_MCFG10 0x28
29 #define AT91_MATRIX_MCFG11 0x2C
30 #define AT91_MATRIX_ULBT (7 << 0)
31 #define AT91_MATRIX_ULBT_INFINITE (0 << 0)
32 #define AT91_MATRIX_ULBT_SINGLE (1 << 0)
33 #define AT91_MATRIX_ULBT_FOUR (2 << 0)
34 #define AT91_MATRIX_ULBT_EIGHT (3 << 0)
35 #define AT91_MATRIX_ULBT_SIXTEEN (4 << 0)
36 #define AT91_MATRIX_ULBT_THIRTYTWO (5 << 0)
37 #define AT91_MATRIX_ULBT_SIXTYFOUR (6 << 0)
38 #define AT91_MATRIX_ULBT_128 (7 << 0)
40 #define AT91_MATRIX_SCFG0 0x40
41 #define AT91_MATRIX_SCFG1 0x44
42 #define AT91_MATRIX_SCFG2 0x48
43 #define AT91_MATRIX_SCFG3 0x4C
44 #define AT91_MATRIX_SCFG4 0x50
45 #define AT91_MATRIX_SCFG5 0x54
46 #define AT91_MATRIX_SCFG6 0x58
47 #define AT91_MATRIX_SCFG7 0x5C
48 #define AT91_MATRIX_SLOT_CYCLE (0x1ff << 0)
49 #define AT91_MATRIX_DEFMSTR_TYPE (3 << 16)
50 #define AT91_MATRIX_DEFMSTR_TYPE_NONE (0 << 16)
51 #define AT91_MATRIX_DEFMSTR_TYPE_LAST (1 << 16)
52 #define AT91_MATRIX_DEFMSTR_TYPE_FIXED (2 << 16)
53 #define AT91_MATRIX_FIXED_DEFMSTR (0xf << 18)
55 #define AT91_MATRIX_PRAS0 0x80
56 #define AT91_MATRIX_PRBS0 0x84
57 #define AT91_MATRIX_PRAS1 0x88
58 #define AT91_MATRIX_PRBS1 0x8C
59 #define AT91_MATRIX_PRAS2 0x90
60 #define AT91_MATRIX_PRBS2 0x94
61 #define AT91_MATRIX_PRAS3 0x98
62 #define AT91_MATRIX_PRBS3 0x9C
63 #define AT91_MATRIX_PRAS4 0xA0
64 #define AT91_MATRIX_PRBS4 0xA4
65 #define AT91_MATRIX_PRAS5 0xA8
66 #define AT91_MATRIX_PRBS5 0xAC
67 #define AT91_MATRIX_PRAS6 0xB0
68 #define AT91_MATRIX_PRBS6 0xB4
69 #define AT91_MATRIX_PRAS7 0xB8
70 #define AT91_MATRIX_PRBS7 0xBC
71 #define AT91_MATRIX_M0PR (3 << 0)
72 #define AT91_MATRIX_M1PR (3 << 4)
73 #define AT91_MATRIX_M2PR (3 << 8)
74 #define AT91_MATRIX_M3PR (3 << 12)
75 #define AT91_MATRIX_M4PR (3 << 16)
76 #define AT91_MATRIX_M5PR (3 << 20)
77 #define AT91_MATRIX_M6PR (3 << 24)
78 #define AT91_MATRIX_M7PR (3 << 28)
79 #define AT91_MATRIX_M8PR (3 << 0)
80 #define AT91_MATRIX_M9PR (3 << 4)
81 #define AT91_MATRIX_M10PR (3 << 8)
82 #define AT91_MATRIX_M11PR (3 << 12)
84 #define AT91_MATRIX_MRCR 0x100
85 #define AT91_MATRIX_RCB0 (1 << 0)
86 #define AT91_MATRIX_RCB1 (1 << 1)
87 #define AT91_MATRIX_RCB2 (1 << 2)
88 #define AT91_MATRIX_RCB3 (1 << 3)
89 #define AT91_MATRIX_RCB4 (1 << 4)
90 #define AT91_MATRIX_RCB5 (1 << 5)
91 #define AT91_MATRIX_RCB6 (1 << 6)
92 #define AT91_MATRIX_RCB7 (1 << 7)
93 #define AT91_MATRIX_RCB8 (1 << 8)
94 #define AT91_MATRIX_RCB9 (1 << 9)
95 #define AT91_MATRIX_RCB10 (1 << 10)
96 #define AT91_MATRIX_RCB11 (1 << 11)
98 #define AT91_MATRIX_TCMR 0x110
99 #define AT91_MATRIX_ITCM_SIZE (0xf << 0)
100 #define AT91_MATRIX_ITCM_0 (0 << 0)
101 #define AT91_MATRIX_ITCM_32 (6 << 0)
102 #define AT91_MATRIX_DTCM_SIZE (0xf << 4)
103 #define AT91_MATRIX_DTCM_0 (0 << 4)
104 #define AT91_MATRIX_DTCM_32 (6 << 4)
105 #define AT91_MATRIX_DTCM_64 (7 << 4)
106 #define AT91_MATRIX_TCM_NWS (0x1 << 11)
107 #define AT91_MATRIX_TCM_NO_WS (0x0 << 11)
108 #define AT91_MATRIX_TCM_ONE_WS (0x1 << 11)
110 #define AT91_MATRIX_VIDEO 0x118
111 #define AT91C_VDEC_SEL (0x1 << 0)
112 #define AT91C_VDEC_SEL_OFF (0 << 0)
113 #define AT91C_VDEC_SEL_ON (1 << 0)
115 #define AT91_MATRIX_EBICSA 0x128
116 #define AT91_MATRIX_EBI_CS1A (1 << 1)
117 #define AT91_MATRIX_EBI_CS1A_SMC (0 << 1)
118 #define AT91_MATRIX_EBI_CS1A_SDRAMC (1 << 1)
119 #define AT91_MATRIX_EBI_CS3A (1 << 3)
120 #define AT91_MATRIX_EBI_CS3A_SMC (0 << 3)
121 #define AT91_MATRIX_EBI_CS3A_SMC_SMARTMEDIA (1 << 3)
122 #define AT91_MATRIX_EBI_CS4A (1 << 4)
123 #define AT91_MATRIX_EBI_CS4A_SMC (0 << 4)
124 #define AT91_MATRIX_EBI_CS4A_SMC_CF0 (1 << 4)
125 #define AT91_MATRIX_EBI_CS5A (1 << 5)
126 #define AT91_MATRIX_EBI_CS5A_SMC (0 << 5)
127 #define AT91_MATRIX_EBI_CS5A_SMC_CF1 (1 << 5)
128 #define AT91_MATRIX_EBI_DBPUC (1 << 8)
129 #define AT91_MATRIX_EBI_DBPU_ON (0 << 8)
130 #define AT91_MATRIX_EBI_DBPU_OFF (1 << 8)
131 #define AT91_MATRIX_EBI_VDDIOMSEL (1 << 16)
132 #define AT91_MATRIX_EBI_VDDIOMSEL_1_8V (0 << 16)
133 #define AT91_MATRIX_EBI_VDDIOMSEL_3_3V (1 << 16)
134 #define AT91_MATRIX_EBI_EBI_IOSR (1 << 17)
135 #define AT91_MATRIX_EBI_EBI_IOSR_REDUCED (0 << 17)
136 #define AT91_MATRIX_EBI_EBI_IOSR_NORMAL (1 << 17)
137 #define AT91_MATRIX_EBI_DDR_IOSR (1 << 18)
138 #define AT91_MATRIX_EBI_DDR_IOSR_REDUCED (0 << 18)
139 #define AT91_MATRIX_EBI_DDR_IOSR_NORMAL (1 << 18)
141 #define AT91_MATRIX_WPMR 0x1E4
142 #define AT91_MATRIX_WPMR_WPEN (1 << 0)
143 #define AT91_MATRIX_WPMR_WP_WPDIS (0 << 0)
144 #define AT91_MATRIX_WPMR_WP_WPEN (1 << 0)
145 #define AT91_MATRIX_WPMR_WPKEY (0xFFFFFF << 8)
147 #define AT91_MATRIX_WPSR 0x1E8
148 #define AT91_MATRIX_WPSR_WPVS (1 << 0)
149 #define AT91_MATRIX_WPSR_NO_WPV (0 << 0)
150 #define AT91_MATRIX_WPSR_WPV (1 << 0)
151 #define AT91_MATRIX_WPSR_WPVSRC (0xFFFF << 8)