~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: 2629cd5eab80e0effc2e9ec5a6939f90f051e540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
#ifdef CONFIG_BAT0
#define CFG_SYS_IBAT0L (\
		(CONFIG_BAT0_BASE) |\
		(CONFIG_BAT0_PAGE_PROTECTION) |\
		(CONFIG_BAT0_WIMG_ICACHE) \
		)
#define CFG_SYS_IBAT0U (\
		(CONFIG_BAT0_BASE) |\
		(CONFIG_BAT0_LENGTH) |\
		(CONFIG_BAT0_VALID_BITS) \
		)
#define CFG_SYS_DBAT0L (\
		(CONFIG_BAT0_BASE) |\
		(CONFIG_BAT0_PAGE_PROTECTION) |\
		(CONFIG_BAT0_WIMG_DCACHE) \
		)
#define CFG_SYS_DBAT0U (\
		(CONFIG_BAT0_BASE) |\
		(CONFIG_BAT0_LENGTH) |\
		(CONFIG_BAT0_VALID_BITS) \
		)
#else
#define CFG_SYS_IBAT0L (0)
#define CFG_SYS_IBAT0U (0)
#define CFG_SYS_DBAT0L (0)
#define CFG_SYS_DBAT0U (0)
#endif /* CONFIG_BAT0 */

#ifdef CONFIG_BAT1
#define CFG_SYS_IBAT1L (\
		(CONFIG_BAT1_BASE) |\
		(CONFIG_BAT1_PAGE_PROTECTION) |\
		(CONFIG_BAT1_WIMG_ICACHE) \
		)
#define CFG_SYS_IBAT1U (\
		(CONFIG_BAT1_BASE) |\
		(CONFIG_BAT1_LENGTH) |\
		(CONFIG_BAT1_VALID_BITS) \
		)
#define CFG_SYS_DBAT1L (\
		(CONFIG_BAT1_BASE) |\
		(CONFIG_BAT1_PAGE_PROTECTION) |\
		(CONFIG_BAT1_WIMG_DCACHE) \
		)
#define CFG_SYS_DBAT1U (\
		(CONFIG_BAT1_BASE) |\
		(CONFIG_BAT1_LENGTH) |\
		(CONFIG_BAT1_VALID_BITS) \
		)
#else
#define CFG_SYS_IBAT1L (0)
#define CFG_SYS_IBAT1U (0)
#define CFG_SYS_DBAT1L (0)
#define CFG_SYS_DBAT1U (0)
#endif /* CONFIG_BAT1 */

#ifdef CONFIG_BAT2
#define CFG_SYS_IBAT2L (\
		(CONFIG_BAT2_BASE) |\
		(CONFIG_BAT2_PAGE_PROTECTION) |\
		(CONFIG_BAT2_WIMG_ICACHE) \
		)
#define CFG_SYS_IBAT2U (\
		(CONFIG_BAT2_BASE) |\
		(CONFIG_BAT2_LENGTH) |\
		(CONFIG_BAT2_VALID_BITS) \
		)
#define CFG_SYS_DBAT2L (\
		(CONFIG_BAT2_BASE) |\
		(CONFIG_BAT2_PAGE_PROTECTION) |\
		(CONFIG_BAT2_WIMG_DCACHE) \
		)
#define CFG_SYS_DBAT2U (\
		(CONFIG_BAT2_BASE) |\
		(CONFIG_BAT2_LENGTH) |\
		(CONFIG_BAT2_VALID_BITS) \
		)
#else
#define CFG_SYS_IBAT2L (0)
#define CFG_SYS_IBAT2U (0)
#define CFG_SYS_DBAT2L (0)
#define CFG_SYS_DBAT2U (0)
#endif /* CONFIG_BAT2 */

#ifdef CONFIG_BAT3
#define CFG_SYS_IBAT3L (\
		(CONFIG_BAT3_BASE) |\
		(CONFIG_BAT3_PAGE_PROTECTION) |\
		(CONFIG_BAT3_WIMG_ICACHE) \
		)
#define CFG_SYS_IBAT3U (\
		(CONFIG_BAT3_BASE) |\
		(CONFIG_BAT3_LENGTH) |\
		(CONFIG_BAT3_VALID_BITS) \
		)
#define CFG_SYS_DBAT3L (\
		(CONFIG_BAT3_BASE) |\
		(CONFIG_BAT3_PAGE_PROTECTION) |\
		(CONFIG_BAT3_WIMG_DCACHE) \
		)
#define CFG_SYS_DBAT3U (\
		(CONFIG_BAT3_BASE) |\
		(CONFIG_BAT3_LENGTH) |\
		(CONFIG_BAT3_VALID_BITS) \
		)
#else
#define CFG_SYS_IBAT3L (0)
#define CFG_SYS_IBAT3U (0)
#define CFG_SYS_DBAT3L (0)
#define CFG_SYS_DBAT3U (0)
#endif /* CONFIG_BAT3 */

#ifdef CONFIG_BAT4
#define CFG_SYS_IBAT4L (\
		(CONFIG_BAT4_BASE) |\
		(CONFIG_BAT4_PAGE_PROTECTION) |\
		(CONFIG_BAT4_WIMG_ICACHE) \
		)
#define CFG_SYS_IBAT4U (\
		(CONFIG_BAT4_BASE) |\
		(CONFIG_BAT4_LENGTH) |\
		(CONFIG_BAT4_VALID_BITS) \
		)
#define CFG_SYS_DBAT4L (\
		(CONFIG_BAT4_BASE) |\
		(CONFIG_BAT4_PAGE_PROTECTION) |\
		(CONFIG_BAT4_WIMG_DCACHE) \
		)
#define CFG_SYS_DBAT4U (\
		(CONFIG_BAT4_BASE) |\
		(CONFIG_BAT4_LENGTH) |\
		(CONFIG_BAT4_VALID_BITS) \
		)
#else
#define CFG_SYS_IBAT4L (0)
#define CFG_SYS_IBAT4U (0)
#define CFG_SYS_DBAT4L (0)
#define CFG_SYS_DBAT4U (0)
#endif /* CONFIG_BAT4 */

#ifdef CONFIG_BAT5
#define CFG_SYS_IBAT5L (\
		(CONFIG_BAT5_BASE) |\
		(CONFIG_BAT5_PAGE_PROTECTION) |\
		(CONFIG_BAT5_WIMG_ICACHE) \
		)
#define CFG_SYS_IBAT5U (\
		(CONFIG_BAT5_BASE) |\
		(CONFIG_BAT5_LENGTH) |\
		(CONFIG_BAT5_VALID_BITS) \
		)
#define CFG_SYS_DBAT5L (\
		(CONFIG_BAT5_BASE) |\
		(CONFIG_BAT5_PAGE_PROTECTION) |\
		(CONFIG_BAT5_WIMG_DCACHE) \
		)
#define CFG_SYS_DBAT5U (\
		(CONFIG_BAT5_BASE) |\
		(CONFIG_BAT5_LENGTH) |\
		(CONFIG_BAT5_VALID_BITS) \
		)
#else
#define CFG_SYS_IBAT5L (0)
#define CFG_SYS_IBAT5U (0)
#define CFG_SYS_DBAT5L (0)
#define CFG_SYS_DBAT5U (0)
#endif /* CONFIG_BAT5 */

#ifdef CONFIG_BAT6
#define CFG_SYS_IBAT6L (\
		(CONFIG_BAT6_BASE) |\
		(CONFIG_BAT6_PAGE_PROTECTION) |\
		(CONFIG_BAT6_WIMG_ICACHE) \
		)
#define CFG_SYS_IBAT6U (\
		(CONFIG_BAT6_BASE) |\
		(CONFIG_BAT6_LENGTH) |\
		(CONFIG_BAT6_VALID_BITS) \
		)
#define CFG_SYS_DBAT6L (\
		(CONFIG_BAT6_BASE) |\
		(CONFIG_BAT6_PAGE_PROTECTION) |\
		(CONFIG_BAT6_WIMG_DCACHE) \
		)
#define CFG_SYS_DBAT6U (\
		(CONFIG_BAT6_BASE) |\
		(CONFIG_BAT6_LENGTH) |\
		(CONFIG_BAT6_VALID_BITS) \
		)
#else
#define CFG_SYS_IBAT6L (0)
#define CFG_SYS_IBAT6U (0)
#define CFG_SYS_DBAT6L (0)
#define CFG_SYS_DBAT6U (0)
#endif /* CONFIG_BAT6 */

#ifdef CONFIG_BAT7
#define CFG_SYS_IBAT7L (\
		(CONFIG_BAT7_BASE) |\
		(CONFIG_BAT7_PAGE_PROTECTION) |\
		(CONFIG_BAT7_WIMG_ICACHE) \
		)
#define CFG_SYS_IBAT7U (\
		(CONFIG_BAT7_BASE) |\
		(CONFIG_BAT7_LENGTH) |\
		(CONFIG_BAT7_VALID_BITS) \
		)
#define CFG_SYS_DBAT7L (\
		(CONFIG_BAT7_BASE) |\
		(CONFIG_BAT7_PAGE_PROTECTION) |\
		(CONFIG_BAT7_WIMG_DCACHE) \
		)
#define CFG_SYS_DBAT7U (\
		(CONFIG_BAT7_BASE) |\
		(CONFIG_BAT7_LENGTH) |\
		(CONFIG_BAT7_VALID_BITS) \
		)
#else
#define CFG_SYS_IBAT7L (0)
#define CFG_SYS_IBAT7U (0)
#define CFG_SYS_DBAT7L (0)
#define CFG_SYS_DBAT7U (0)
#endif /* CONFIG_BAT7 */