Go to the documentation of this file.
30 #ifndef _SAME54_SDHC_COMPONENT_
31 #define _SAME54_SDHC_COMPONENT_
40 #define REV_SDHC 0x183
43 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
55 #define SDHC_SSAR_OFFSET 0x000
56 #define SDHC_SSAR_RESETVALUE _U_(0x00000000)
59 #define SDHC_SSAR_CMD23_ARG2_Pos 0
60 #define SDHC_SSAR_CMD23_ARG2_Msk (_U_(0xFFFFFFFF) << SDHC_SSAR_CMD23_ARG2_Pos)
61 #define SDHC_SSAR_CMD23_ARG2(value) (SDHC_SSAR_CMD23_ARG2_Msk & ((value) << SDHC_SSAR_CMD23_ARG2_Pos))
62 #define SDHC_SSAR_CMD23_MASK _U_(0xFFFFFFFF)
64 #define SDHC_SSAR_ADDR_Pos 0
65 #define SDHC_SSAR_ADDR_Msk (_U_(0xFFFFFFFF) << SDHC_SSAR_ADDR_Pos)
66 #define SDHC_SSAR_ADDR(value) (SDHC_SSAR_ADDR_Msk & ((value) << SDHC_SSAR_ADDR_Pos))
67 #define SDHC_SSAR_MASK _U_(0xFFFFFFFF)
70 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
82 #define SDHC_BSR_OFFSET 0x004
83 #define SDHC_BSR_RESETVALUE _U_(0x0000)
85 #define SDHC_BSR_BLOCKSIZE_Pos 0
86 #define SDHC_BSR_BLOCKSIZE_Msk (_U_(0x3FF) << SDHC_BSR_BLOCKSIZE_Pos)
87 #define SDHC_BSR_BLOCKSIZE(value) (SDHC_BSR_BLOCKSIZE_Msk & ((value) << SDHC_BSR_BLOCKSIZE_Pos))
88 #define SDHC_BSR_BOUNDARY_Pos 12
89 #define SDHC_BSR_BOUNDARY_Msk (_U_(0x7) << SDHC_BSR_BOUNDARY_Pos)
90 #define SDHC_BSR_BOUNDARY(value) (SDHC_BSR_BOUNDARY_Msk & ((value) << SDHC_BSR_BOUNDARY_Pos))
91 #define SDHC_BSR_BOUNDARY_4K_Val _U_(0x0)
92 #define SDHC_BSR_BOUNDARY_8K_Val _U_(0x1)
93 #define SDHC_BSR_BOUNDARY_16K_Val _U_(0x2)
94 #define SDHC_BSR_BOUNDARY_32K_Val _U_(0x3)
95 #define SDHC_BSR_BOUNDARY_64K_Val _U_(0x4)
96 #define SDHC_BSR_BOUNDARY_128K_Val _U_(0x5)
97 #define SDHC_BSR_BOUNDARY_256K_Val _U_(0x6)
98 #define SDHC_BSR_BOUNDARY_512K_Val _U_(0x7)
99 #define SDHC_BSR_BOUNDARY_4K (SDHC_BSR_BOUNDARY_4K_Val << SDHC_BSR_BOUNDARY_Pos)
100 #define SDHC_BSR_BOUNDARY_8K (SDHC_BSR_BOUNDARY_8K_Val << SDHC_BSR_BOUNDARY_Pos)
101 #define SDHC_BSR_BOUNDARY_16K (SDHC_BSR_BOUNDARY_16K_Val << SDHC_BSR_BOUNDARY_Pos)
102 #define SDHC_BSR_BOUNDARY_32K (SDHC_BSR_BOUNDARY_32K_Val << SDHC_BSR_BOUNDARY_Pos)
103 #define SDHC_BSR_BOUNDARY_64K (SDHC_BSR_BOUNDARY_64K_Val << SDHC_BSR_BOUNDARY_Pos)
104 #define SDHC_BSR_BOUNDARY_128K (SDHC_BSR_BOUNDARY_128K_Val << SDHC_BSR_BOUNDARY_Pos)
105 #define SDHC_BSR_BOUNDARY_256K (SDHC_BSR_BOUNDARY_256K_Val << SDHC_BSR_BOUNDARY_Pos)
106 #define SDHC_BSR_BOUNDARY_512K (SDHC_BSR_BOUNDARY_512K_Val << SDHC_BSR_BOUNDARY_Pos)
107 #define SDHC_BSR_MASK _U_(0x73FF)
110 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
119 #define SDHC_BCR_OFFSET 0x006
120 #define SDHC_BCR_RESETVALUE _U_(0x0000)
122 #define SDHC_BCR_BCNT_Pos 0
123 #define SDHC_BCR_BCNT_Msk (_U_(0xFFFF) << SDHC_BCR_BCNT_Pos)
124 #define SDHC_BCR_BCNT(value) (SDHC_BCR_BCNT_Msk & ((value) << SDHC_BCR_BCNT_Pos))
125 #define SDHC_BCR_MASK _U_(0xFFFF)
128 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
137 #define SDHC_ARG1R_OFFSET 0x008
138 #define SDHC_ARG1R_RESETVALUE _U_(0x00000000)
140 #define SDHC_ARG1R_ARG_Pos 0
141 #define SDHC_ARG1R_ARG_Msk (_U_(0xFFFFFFFF) << SDHC_ARG1R_ARG_Pos)
142 #define SDHC_ARG1R_ARG(value) (SDHC_ARG1R_ARG_Msk & ((value) << SDHC_ARG1R_ARG_Pos))
143 #define SDHC_ARG1R_MASK _U_(0xFFFFFFFF)
146 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
160 #define SDHC_TMR_OFFSET 0x00C
161 #define SDHC_TMR_RESETVALUE _U_(0x0000)
163 #define SDHC_TMR_DMAEN_Pos 0
164 #define SDHC_TMR_DMAEN (_U_(0x1) << SDHC_TMR_DMAEN_Pos)
165 #define SDHC_TMR_DMAEN_DISABLE_Val _U_(0x0)
166 #define SDHC_TMR_DMAEN_ENABLE_Val _U_(0x1)
167 #define SDHC_TMR_DMAEN_DISABLE (SDHC_TMR_DMAEN_DISABLE_Val << SDHC_TMR_DMAEN_Pos)
168 #define SDHC_TMR_DMAEN_ENABLE (SDHC_TMR_DMAEN_ENABLE_Val << SDHC_TMR_DMAEN_Pos)
169 #define SDHC_TMR_BCEN_Pos 1
170 #define SDHC_TMR_BCEN (_U_(0x1) << SDHC_TMR_BCEN_Pos)
171 #define SDHC_TMR_BCEN_DISABLE_Val _U_(0x0)
172 #define SDHC_TMR_BCEN_ENABLE_Val _U_(0x1)
173 #define SDHC_TMR_BCEN_DISABLE (SDHC_TMR_BCEN_DISABLE_Val << SDHC_TMR_BCEN_Pos)
174 #define SDHC_TMR_BCEN_ENABLE (SDHC_TMR_BCEN_ENABLE_Val << SDHC_TMR_BCEN_Pos)
175 #define SDHC_TMR_ACMDEN_Pos 2
176 #define SDHC_TMR_ACMDEN_Msk (_U_(0x3) << SDHC_TMR_ACMDEN_Pos)
177 #define SDHC_TMR_ACMDEN(value) (SDHC_TMR_ACMDEN_Msk & ((value) << SDHC_TMR_ACMDEN_Pos))
178 #define SDHC_TMR_ACMDEN_DISABLED_Val _U_(0x0)
179 #define SDHC_TMR_ACMDEN_CMD12_Val _U_(0x1)
180 #define SDHC_TMR_ACMDEN_CMD23_Val _U_(0x2)
181 #define SDHC_TMR_ACMDEN_3_Val _U_(0x3)
182 #define SDHC_TMR_ACMDEN_DISABLED (SDHC_TMR_ACMDEN_DISABLED_Val << SDHC_TMR_ACMDEN_Pos)
183 #define SDHC_TMR_ACMDEN_CMD12 (SDHC_TMR_ACMDEN_CMD12_Val << SDHC_TMR_ACMDEN_Pos)
184 #define SDHC_TMR_ACMDEN_CMD23 (SDHC_TMR_ACMDEN_CMD23_Val << SDHC_TMR_ACMDEN_Pos)
185 #define SDHC_TMR_ACMDEN_3 (SDHC_TMR_ACMDEN_3_Val << SDHC_TMR_ACMDEN_Pos)
186 #define SDHC_TMR_DTDSEL_Pos 4
187 #define SDHC_TMR_DTDSEL (_U_(0x1) << SDHC_TMR_DTDSEL_Pos)
188 #define SDHC_TMR_DTDSEL_WRITE_Val _U_(0x0)
189 #define SDHC_TMR_DTDSEL_READ_Val _U_(0x1)
190 #define SDHC_TMR_DTDSEL_WRITE (SDHC_TMR_DTDSEL_WRITE_Val << SDHC_TMR_DTDSEL_Pos)
191 #define SDHC_TMR_DTDSEL_READ (SDHC_TMR_DTDSEL_READ_Val << SDHC_TMR_DTDSEL_Pos)
192 #define SDHC_TMR_MSBSEL_Pos 5
193 #define SDHC_TMR_MSBSEL (_U_(0x1) << SDHC_TMR_MSBSEL_Pos)
194 #define SDHC_TMR_MSBSEL_SINGLE_Val _U_(0x0)
195 #define SDHC_TMR_MSBSEL_MULTIPLE_Val _U_(0x1)
196 #define SDHC_TMR_MSBSEL_SINGLE (SDHC_TMR_MSBSEL_SINGLE_Val << SDHC_TMR_MSBSEL_Pos)
197 #define SDHC_TMR_MSBSEL_MULTIPLE (SDHC_TMR_MSBSEL_MULTIPLE_Val << SDHC_TMR_MSBSEL_Pos)
198 #define SDHC_TMR_MASK _U_(0x003F)
201 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
217 #define SDHC_CR_OFFSET 0x00E
218 #define SDHC_CR_RESETVALUE _U_(0x0000)
220 #define SDHC_CR_RESPTYP_Pos 0
221 #define SDHC_CR_RESPTYP_Msk (_U_(0x3) << SDHC_CR_RESPTYP_Pos)
222 #define SDHC_CR_RESPTYP(value) (SDHC_CR_RESPTYP_Msk & ((value) << SDHC_CR_RESPTYP_Pos))
223 #define SDHC_CR_RESPTYP_NONE_Val _U_(0x0)
224 #define SDHC_CR_RESPTYP_136_BIT_Val _U_(0x1)
225 #define SDHC_CR_RESPTYP_48_BIT_Val _U_(0x2)
226 #define SDHC_CR_RESPTYP_48_BIT_BUSY_Val _U_(0x3)
227 #define SDHC_CR_RESPTYP_NONE (SDHC_CR_RESPTYP_NONE_Val << SDHC_CR_RESPTYP_Pos)
228 #define SDHC_CR_RESPTYP_136_BIT (SDHC_CR_RESPTYP_136_BIT_Val << SDHC_CR_RESPTYP_Pos)
229 #define SDHC_CR_RESPTYP_48_BIT (SDHC_CR_RESPTYP_48_BIT_Val << SDHC_CR_RESPTYP_Pos)
230 #define SDHC_CR_RESPTYP_48_BIT_BUSY (SDHC_CR_RESPTYP_48_BIT_BUSY_Val << SDHC_CR_RESPTYP_Pos)
231 #define SDHC_CR_CMDCCEN_Pos 3
232 #define SDHC_CR_CMDCCEN (_U_(0x1) << SDHC_CR_CMDCCEN_Pos)
233 #define SDHC_CR_CMDCCEN_DISABLE_Val _U_(0x0)
234 #define SDHC_CR_CMDCCEN_ENABLE_Val _U_(0x1)
235 #define SDHC_CR_CMDCCEN_DISABLE (SDHC_CR_CMDCCEN_DISABLE_Val << SDHC_CR_CMDCCEN_Pos)
236 #define SDHC_CR_CMDCCEN_ENABLE (SDHC_CR_CMDCCEN_ENABLE_Val << SDHC_CR_CMDCCEN_Pos)
237 #define SDHC_CR_CMDICEN_Pos 4
238 #define SDHC_CR_CMDICEN (_U_(0x1) << SDHC_CR_CMDICEN_Pos)
239 #define SDHC_CR_CMDICEN_DISABLE_Val _U_(0x0)
240 #define SDHC_CR_CMDICEN_ENABLE_Val _U_(0x1)
241 #define SDHC_CR_CMDICEN_DISABLE (SDHC_CR_CMDICEN_DISABLE_Val << SDHC_CR_CMDICEN_Pos)
242 #define SDHC_CR_CMDICEN_ENABLE (SDHC_CR_CMDICEN_ENABLE_Val << SDHC_CR_CMDICEN_Pos)
243 #define SDHC_CR_DPSEL_Pos 5
244 #define SDHC_CR_DPSEL (_U_(0x1) << SDHC_CR_DPSEL_Pos)
245 #define SDHC_CR_DPSEL_NO_DATA_Val _U_(0x0)
246 #define SDHC_CR_DPSEL_DATA_Val _U_(0x1)
247 #define SDHC_CR_DPSEL_NO_DATA (SDHC_CR_DPSEL_NO_DATA_Val << SDHC_CR_DPSEL_Pos)
248 #define SDHC_CR_DPSEL_DATA (SDHC_CR_DPSEL_DATA_Val << SDHC_CR_DPSEL_Pos)
249 #define SDHC_CR_CMDTYP_Pos 6
250 #define SDHC_CR_CMDTYP_Msk (_U_(0x3) << SDHC_CR_CMDTYP_Pos)
251 #define SDHC_CR_CMDTYP(value) (SDHC_CR_CMDTYP_Msk & ((value) << SDHC_CR_CMDTYP_Pos))
252 #define SDHC_CR_CMDTYP_NORMAL_Val _U_(0x0)
253 #define SDHC_CR_CMDTYP_SUSPEND_Val _U_(0x1)
254 #define SDHC_CR_CMDTYP_RESUME_Val _U_(0x2)
255 #define SDHC_CR_CMDTYP_ABORT_Val _U_(0x3)
256 #define SDHC_CR_CMDTYP_NORMAL (SDHC_CR_CMDTYP_NORMAL_Val << SDHC_CR_CMDTYP_Pos)
257 #define SDHC_CR_CMDTYP_SUSPEND (SDHC_CR_CMDTYP_SUSPEND_Val << SDHC_CR_CMDTYP_Pos)
258 #define SDHC_CR_CMDTYP_RESUME (SDHC_CR_CMDTYP_RESUME_Val << SDHC_CR_CMDTYP_Pos)
259 #define SDHC_CR_CMDTYP_ABORT (SDHC_CR_CMDTYP_ABORT_Val << SDHC_CR_CMDTYP_Pos)
260 #define SDHC_CR_CMDIDX_Pos 8
261 #define SDHC_CR_CMDIDX_Msk (_U_(0x3F) << SDHC_CR_CMDIDX_Pos)
262 #define SDHC_CR_CMDIDX(value) (SDHC_CR_CMDIDX_Msk & ((value) << SDHC_CR_CMDIDX_Pos))
263 #define SDHC_CR_MASK _U_(0x3FFB)
266 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
275 #define SDHC_RR_OFFSET 0x010
276 #define SDHC_RR_RESETVALUE _U_(0x00000000)
278 #define SDHC_RR_CMDRESP_Pos 0
279 #define SDHC_RR_CMDRESP_Msk (_U_(0xFFFFFFFF) << SDHC_RR_CMDRESP_Pos)
280 #define SDHC_RR_CMDRESP(value) (SDHC_RR_CMDRESP_Msk & ((value) << SDHC_RR_CMDRESP_Pos))
281 #define SDHC_RR_MASK _U_(0xFFFFFFFF)
284 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
293 #define SDHC_BDPR_OFFSET 0x020
294 #define SDHC_BDPR_RESETVALUE _U_(0x00000000)
296 #define SDHC_BDPR_BUFDATA_Pos 0
297 #define SDHC_BDPR_BUFDATA_Msk (_U_(0xFFFFFFFF) << SDHC_BDPR_BUFDATA_Pos)
298 #define SDHC_BDPR_BUFDATA(value) (SDHC_BDPR_BUFDATA_Msk & ((value) << SDHC_BDPR_BUFDATA_Pos))
299 #define SDHC_BDPR_MASK _U_(0xFFFFFFFF)
302 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
327 #define SDHC_PSR_OFFSET 0x024
328 #define SDHC_PSR_RESETVALUE _U_(0x00F80000)
330 #define SDHC_PSR_CMDINHC_Pos 0
331 #define SDHC_PSR_CMDINHC (_U_(0x1) << SDHC_PSR_CMDINHC_Pos)
332 #define SDHC_PSR_CMDINHC_CAN_Val _U_(0x0)
333 #define SDHC_PSR_CMDINHC_CANNOT_Val _U_(0x1)
334 #define SDHC_PSR_CMDINHC_CAN (SDHC_PSR_CMDINHC_CAN_Val << SDHC_PSR_CMDINHC_Pos)
335 #define SDHC_PSR_CMDINHC_CANNOT (SDHC_PSR_CMDINHC_CANNOT_Val << SDHC_PSR_CMDINHC_Pos)
336 #define SDHC_PSR_CMDINHD_Pos 1
337 #define SDHC_PSR_CMDINHD (_U_(0x1) << SDHC_PSR_CMDINHD_Pos)
338 #define SDHC_PSR_CMDINHD_CAN_Val _U_(0x0)
339 #define SDHC_PSR_CMDINHD_CANNOT_Val _U_(0x1)
340 #define SDHC_PSR_CMDINHD_CAN (SDHC_PSR_CMDINHD_CAN_Val << SDHC_PSR_CMDINHD_Pos)
341 #define SDHC_PSR_CMDINHD_CANNOT (SDHC_PSR_CMDINHD_CANNOT_Val << SDHC_PSR_CMDINHD_Pos)
342 #define SDHC_PSR_DLACT_Pos 2
343 #define SDHC_PSR_DLACT (_U_(0x1) << SDHC_PSR_DLACT_Pos)
344 #define SDHC_PSR_DLACT_INACTIVE_Val _U_(0x0)
345 #define SDHC_PSR_DLACT_ACTIVE_Val _U_(0x1)
346 #define SDHC_PSR_DLACT_INACTIVE (SDHC_PSR_DLACT_INACTIVE_Val << SDHC_PSR_DLACT_Pos)
347 #define SDHC_PSR_DLACT_ACTIVE (SDHC_PSR_DLACT_ACTIVE_Val << SDHC_PSR_DLACT_Pos)
348 #define SDHC_PSR_RTREQ_Pos 3
349 #define SDHC_PSR_RTREQ (_U_(0x1) << SDHC_PSR_RTREQ_Pos)
350 #define SDHC_PSR_RTREQ_OK_Val _U_(0x0)
351 #define SDHC_PSR_RTREQ_REQUIRED_Val _U_(0x1)
352 #define SDHC_PSR_RTREQ_OK (SDHC_PSR_RTREQ_OK_Val << SDHC_PSR_RTREQ_Pos)
353 #define SDHC_PSR_RTREQ_REQUIRED (SDHC_PSR_RTREQ_REQUIRED_Val << SDHC_PSR_RTREQ_Pos)
354 #define SDHC_PSR_WTACT_Pos 8
355 #define SDHC_PSR_WTACT (_U_(0x1) << SDHC_PSR_WTACT_Pos)
356 #define SDHC_PSR_WTACT_NO_Val _U_(0x0)
357 #define SDHC_PSR_WTACT_YES_Val _U_(0x1)
358 #define SDHC_PSR_WTACT_NO (SDHC_PSR_WTACT_NO_Val << SDHC_PSR_WTACT_Pos)
359 #define SDHC_PSR_WTACT_YES (SDHC_PSR_WTACT_YES_Val << SDHC_PSR_WTACT_Pos)
360 #define SDHC_PSR_RTACT_Pos 9
361 #define SDHC_PSR_RTACT (_U_(0x1) << SDHC_PSR_RTACT_Pos)
362 #define SDHC_PSR_RTACT_NO_Val _U_(0x0)
363 #define SDHC_PSR_RTACT_YES_Val _U_(0x1)
364 #define SDHC_PSR_RTACT_NO (SDHC_PSR_RTACT_NO_Val << SDHC_PSR_RTACT_Pos)
365 #define SDHC_PSR_RTACT_YES (SDHC_PSR_RTACT_YES_Val << SDHC_PSR_RTACT_Pos)
366 #define SDHC_PSR_BUFWREN_Pos 10
367 #define SDHC_PSR_BUFWREN (_U_(0x1) << SDHC_PSR_BUFWREN_Pos)
368 #define SDHC_PSR_BUFWREN_DISABLE_Val _U_(0x0)
369 #define SDHC_PSR_BUFWREN_ENABLE_Val _U_(0x1)
370 #define SDHC_PSR_BUFWREN_DISABLE (SDHC_PSR_BUFWREN_DISABLE_Val << SDHC_PSR_BUFWREN_Pos)
371 #define SDHC_PSR_BUFWREN_ENABLE (SDHC_PSR_BUFWREN_ENABLE_Val << SDHC_PSR_BUFWREN_Pos)
372 #define SDHC_PSR_BUFRDEN_Pos 11
373 #define SDHC_PSR_BUFRDEN (_U_(0x1) << SDHC_PSR_BUFRDEN_Pos)
374 #define SDHC_PSR_BUFRDEN_DISABLE_Val _U_(0x0)
375 #define SDHC_PSR_BUFRDEN_ENABLE_Val _U_(0x1)
376 #define SDHC_PSR_BUFRDEN_DISABLE (SDHC_PSR_BUFRDEN_DISABLE_Val << SDHC_PSR_BUFRDEN_Pos)
377 #define SDHC_PSR_BUFRDEN_ENABLE (SDHC_PSR_BUFRDEN_ENABLE_Val << SDHC_PSR_BUFRDEN_Pos)
378 #define SDHC_PSR_CARDINS_Pos 16
379 #define SDHC_PSR_CARDINS (_U_(0x1) << SDHC_PSR_CARDINS_Pos)
380 #define SDHC_PSR_CARDINS_NO_Val _U_(0x0)
381 #define SDHC_PSR_CARDINS_YES_Val _U_(0x1)
382 #define SDHC_PSR_CARDINS_NO (SDHC_PSR_CARDINS_NO_Val << SDHC_PSR_CARDINS_Pos)
383 #define SDHC_PSR_CARDINS_YES (SDHC_PSR_CARDINS_YES_Val << SDHC_PSR_CARDINS_Pos)
384 #define SDHC_PSR_CARDSS_Pos 17
385 #define SDHC_PSR_CARDSS (_U_(0x1) << SDHC_PSR_CARDSS_Pos)
386 #define SDHC_PSR_CARDSS_NO_Val _U_(0x0)
387 #define SDHC_PSR_CARDSS_YES_Val _U_(0x1)
388 #define SDHC_PSR_CARDSS_NO (SDHC_PSR_CARDSS_NO_Val << SDHC_PSR_CARDSS_Pos)
389 #define SDHC_PSR_CARDSS_YES (SDHC_PSR_CARDSS_YES_Val << SDHC_PSR_CARDSS_Pos)
390 #define SDHC_PSR_CARDDPL_Pos 18
391 #define SDHC_PSR_CARDDPL (_U_(0x1) << SDHC_PSR_CARDDPL_Pos)
392 #define SDHC_PSR_CARDDPL_NO_Val _U_(0x0)
393 #define SDHC_PSR_CARDDPL_YES_Val _U_(0x1)
394 #define SDHC_PSR_CARDDPL_NO (SDHC_PSR_CARDDPL_NO_Val << SDHC_PSR_CARDDPL_Pos)
395 #define SDHC_PSR_CARDDPL_YES (SDHC_PSR_CARDDPL_YES_Val << SDHC_PSR_CARDDPL_Pos)
396 #define SDHC_PSR_WRPPL_Pos 19
397 #define SDHC_PSR_WRPPL (_U_(0x1) << SDHC_PSR_WRPPL_Pos)
398 #define SDHC_PSR_WRPPL_PROTECTED_Val _U_(0x0)
399 #define SDHC_PSR_WRPPL_ENABLED_Val _U_(0x1)
400 #define SDHC_PSR_WRPPL_PROTECTED (SDHC_PSR_WRPPL_PROTECTED_Val << SDHC_PSR_WRPPL_Pos)
401 #define SDHC_PSR_WRPPL_ENABLED (SDHC_PSR_WRPPL_ENABLED_Val << SDHC_PSR_WRPPL_Pos)
402 #define SDHC_PSR_DATLL_Pos 20
403 #define SDHC_PSR_DATLL_Msk (_U_(0xF) << SDHC_PSR_DATLL_Pos)
404 #define SDHC_PSR_DATLL(value) (SDHC_PSR_DATLL_Msk & ((value) << SDHC_PSR_DATLL_Pos))
405 #define SDHC_PSR_CMDLL_Pos 24
406 #define SDHC_PSR_CMDLL (_U_(0x1) << SDHC_PSR_CMDLL_Pos)
407 #define SDHC_PSR_MASK _U_(0x01FF0F0F)
410 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
432 #define SDHC_HC1R_OFFSET 0x028
433 #define SDHC_HC1R_RESETVALUE _U_(0xE00)
435 #define SDHC_HC1R_LEDCTRL_Pos 0
436 #define SDHC_HC1R_LEDCTRL (_U_(0x1) << SDHC_HC1R_LEDCTRL_Pos)
437 #define SDHC_HC1R_LEDCTRL_OFF_Val _U_(0x0)
438 #define SDHC_HC1R_LEDCTRL_ON_Val _U_(0x1)
439 #define SDHC_HC1R_LEDCTRL_OFF (SDHC_HC1R_LEDCTRL_OFF_Val << SDHC_HC1R_LEDCTRL_Pos)
440 #define SDHC_HC1R_LEDCTRL_ON (SDHC_HC1R_LEDCTRL_ON_Val << SDHC_HC1R_LEDCTRL_Pos)
441 #define SDHC_HC1R_DW_Pos 1
442 #define SDHC_HC1R_DW (_U_(0x1) << SDHC_HC1R_DW_Pos)
443 #define SDHC_HC1R_DW_1BIT_Val _U_(0x0)
444 #define SDHC_HC1R_DW_4BIT_Val _U_(0x1)
445 #define SDHC_HC1R_DW_1BIT (SDHC_HC1R_DW_1BIT_Val << SDHC_HC1R_DW_Pos)
446 #define SDHC_HC1R_DW_4BIT (SDHC_HC1R_DW_4BIT_Val << SDHC_HC1R_DW_Pos)
447 #define SDHC_HC1R_HSEN_Pos 2
448 #define SDHC_HC1R_HSEN (_U_(0x1) << SDHC_HC1R_HSEN_Pos)
449 #define SDHC_HC1R_HSEN_NORMAL_Val _U_(0x0)
450 #define SDHC_HC1R_HSEN_HIGH_Val _U_(0x1)
451 #define SDHC_HC1R_HSEN_NORMAL (SDHC_HC1R_HSEN_NORMAL_Val << SDHC_HC1R_HSEN_Pos)
452 #define SDHC_HC1R_HSEN_HIGH (SDHC_HC1R_HSEN_HIGH_Val << SDHC_HC1R_HSEN_Pos)
453 #define SDHC_HC1R_DMASEL_Pos 3
454 #define SDHC_HC1R_DMASEL_Msk (_U_(0x3) << SDHC_HC1R_DMASEL_Pos)
455 #define SDHC_HC1R_DMASEL(value) (SDHC_HC1R_DMASEL_Msk & ((value) << SDHC_HC1R_DMASEL_Pos))
456 #define SDHC_HC1R_DMASEL_SDMA_Val _U_(0x0)
457 #define SDHC_HC1R_DMASEL_1_Val _U_(0x1)
458 #define SDHC_HC1R_DMASEL_32BIT_Val _U_(0x2)
459 #define SDHC_HC1R_DMASEL_SDMA (SDHC_HC1R_DMASEL_SDMA_Val << SDHC_HC1R_DMASEL_Pos)
460 #define SDHC_HC1R_DMASEL_1 (SDHC_HC1R_DMASEL_1_Val << SDHC_HC1R_DMASEL_Pos)
461 #define SDHC_HC1R_DMASEL_32BIT (SDHC_HC1R_DMASEL_32BIT_Val << SDHC_HC1R_DMASEL_Pos)
462 #define SDHC_HC1R_CARDDTL_Pos 6
463 #define SDHC_HC1R_CARDDTL (_U_(0x1) << SDHC_HC1R_CARDDTL_Pos)
464 #define SDHC_HC1R_CARDDTL_NO_Val _U_(0x0)
465 #define SDHC_HC1R_CARDDTL_YES_Val _U_(0x1)
466 #define SDHC_HC1R_CARDDTL_NO (SDHC_HC1R_CARDDTL_NO_Val << SDHC_HC1R_CARDDTL_Pos)
467 #define SDHC_HC1R_CARDDTL_YES (SDHC_HC1R_CARDDTL_YES_Val << SDHC_HC1R_CARDDTL_Pos)
468 #define SDHC_HC1R_CARDDSEL_Pos 7
469 #define SDHC_HC1R_CARDDSEL (_U_(0x1) << SDHC_HC1R_CARDDSEL_Pos)
470 #define SDHC_HC1R_CARDDSEL_NORMAL_Val _U_(0x0)
471 #define SDHC_HC1R_CARDDSEL_TEST_Val _U_(0x1)
472 #define SDHC_HC1R_CARDDSEL_NORMAL (SDHC_HC1R_CARDDSEL_NORMAL_Val << SDHC_HC1R_CARDDSEL_Pos)
473 #define SDHC_HC1R_CARDDSEL_TEST (SDHC_HC1R_CARDDSEL_TEST_Val << SDHC_HC1R_CARDDSEL_Pos)
474 #define SDHC_HC1R_MASK _U_(0xDF)
477 #define SDHC_HC1R_EMMC_DW_Pos 1
478 #define SDHC_HC1R_EMMC_DW (_U_(0x1) << SDHC_HC1R_EMMC_DW_Pos)
479 #define SDHC_HC1R_EMMC_DW_1BIT_Val _U_(0x0)
480 #define SDHC_HC1R_EMMC_DW_4BIT_Val _U_(0x1)
481 #define SDHC_HC1R_EMMC_DW_1BIT (SDHC_HC1R_EMMC_DW_1BIT_Val << SDHC_HC1R_EMMC_DW_Pos)
482 #define SDHC_HC1R_EMMC_DW_4BIT (SDHC_HC1R_EMMC_DW_4BIT_Val << SDHC_HC1R_EMMC_DW_Pos)
483 #define SDHC_HC1R_EMMC_HSEN_Pos 2
484 #define SDHC_HC1R_EMMC_HSEN (_U_(0x1) << SDHC_HC1R_EMMC_HSEN_Pos)
485 #define SDHC_HC1R_EMMC_HSEN_NORMAL_Val _U_(0x0)
486 #define SDHC_HC1R_EMMC_HSEN_HIGH_Val _U_(0x1)
487 #define SDHC_HC1R_EMMC_HSEN_NORMAL (SDHC_HC1R_EMMC_HSEN_NORMAL_Val << SDHC_HC1R_EMMC_HSEN_Pos)
488 #define SDHC_HC1R_EMMC_HSEN_HIGH (SDHC_HC1R_EMMC_HSEN_HIGH_Val << SDHC_HC1R_EMMC_HSEN_Pos)
489 #define SDHC_HC1R_EMMC_DMASEL_Pos 3
490 #define SDHC_HC1R_EMMC_DMASEL_Msk (_U_(0x3) << SDHC_HC1R_EMMC_DMASEL_Pos)
491 #define SDHC_HC1R_EMMC_DMASEL(value) (SDHC_HC1R_EMMC_DMASEL_Msk & ((value) << SDHC_HC1R_EMMC_DMASEL_Pos))
492 #define SDHC_HC1R_EMMC_DMASEL_SDMA_Val _U_(0x0)
493 #define SDHC_HC1R_EMMC_DMASEL_1_Val _U_(0x1)
494 #define SDHC_HC1R_EMMC_DMASEL_32BIT_Val _U_(0x2)
495 #define SDHC_HC1R_EMMC_DMASEL_SDMA (SDHC_HC1R_EMMC_DMASEL_SDMA_Val << SDHC_HC1R_EMMC_DMASEL_Pos)
496 #define SDHC_HC1R_EMMC_DMASEL_1 (SDHC_HC1R_EMMC_DMASEL_1_Val << SDHC_HC1R_EMMC_DMASEL_Pos)
497 #define SDHC_HC1R_EMMC_DMASEL_32BIT (SDHC_HC1R_EMMC_DMASEL_32BIT_Val << SDHC_HC1R_EMMC_DMASEL_Pos)
498 #define SDHC_HC1R_EMMC_MASK _U_(0x1E)
501 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
512 #define SDHC_PCR_OFFSET 0x029
513 #define SDHC_PCR_RESETVALUE _U_(0x0E)
515 #define SDHC_PCR_SDBPWR_Pos 0
516 #define SDHC_PCR_SDBPWR (_U_(0x1) << SDHC_PCR_SDBPWR_Pos)
517 #define SDHC_PCR_SDBPWR_OFF_Val _U_(0x0)
518 #define SDHC_PCR_SDBPWR_ON_Val _U_(0x1)
519 #define SDHC_PCR_SDBPWR_OFF (SDHC_PCR_SDBPWR_OFF_Val << SDHC_PCR_SDBPWR_Pos)
520 #define SDHC_PCR_SDBPWR_ON (SDHC_PCR_SDBPWR_ON_Val << SDHC_PCR_SDBPWR_Pos)
521 #define SDHC_PCR_SDBVSEL_Pos 1
522 #define SDHC_PCR_SDBVSEL_Msk (_U_(0x7) << SDHC_PCR_SDBVSEL_Pos)
523 #define SDHC_PCR_SDBVSEL(value) (SDHC_PCR_SDBVSEL_Msk & ((value) << SDHC_PCR_SDBVSEL_Pos))
524 #define SDHC_PCR_SDBVSEL_1V8_Val _U_(0x5)
525 #define SDHC_PCR_SDBVSEL_3V0_Val _U_(0x6)
526 #define SDHC_PCR_SDBVSEL_3V3_Val _U_(0x7)
527 #define SDHC_PCR_SDBVSEL_1V8 (SDHC_PCR_SDBVSEL_1V8_Val << SDHC_PCR_SDBVSEL_Pos)
528 #define SDHC_PCR_SDBVSEL_3V0 (SDHC_PCR_SDBVSEL_3V0_Val << SDHC_PCR_SDBVSEL_Pos)
529 #define SDHC_PCR_SDBVSEL_3V3 (SDHC_PCR_SDBVSEL_3V3_Val << SDHC_PCR_SDBVSEL_Pos)
530 #define SDHC_PCR_MASK _U_(0x0F)
533 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
551 #define SDHC_BGCR_OFFSET 0x02A
552 #define SDHC_BGCR_RESETVALUE _U_(0x00)
554 #define SDHC_BGCR_STPBGR_Pos 0
555 #define SDHC_BGCR_STPBGR (_U_(0x1) << SDHC_BGCR_STPBGR_Pos)
556 #define SDHC_BGCR_STPBGR_TRANSFER_Val _U_(0x0)
557 #define SDHC_BGCR_STPBGR_STOP_Val _U_(0x1)
558 #define SDHC_BGCR_STPBGR_TRANSFER (SDHC_BGCR_STPBGR_TRANSFER_Val << SDHC_BGCR_STPBGR_Pos)
559 #define SDHC_BGCR_STPBGR_STOP (SDHC_BGCR_STPBGR_STOP_Val << SDHC_BGCR_STPBGR_Pos)
560 #define SDHC_BGCR_CONTR_Pos 1
561 #define SDHC_BGCR_CONTR (_U_(0x1) << SDHC_BGCR_CONTR_Pos)
562 #define SDHC_BGCR_CONTR_GO_ON_Val _U_(0x0)
563 #define SDHC_BGCR_CONTR_RESTART_Val _U_(0x1)
564 #define SDHC_BGCR_CONTR_GO_ON (SDHC_BGCR_CONTR_GO_ON_Val << SDHC_BGCR_CONTR_Pos)
565 #define SDHC_BGCR_CONTR_RESTART (SDHC_BGCR_CONTR_RESTART_Val << SDHC_BGCR_CONTR_Pos)
566 #define SDHC_BGCR_RWCTRL_Pos 2
567 #define SDHC_BGCR_RWCTRL (_U_(0x1) << SDHC_BGCR_RWCTRL_Pos)
568 #define SDHC_BGCR_RWCTRL_DISABLE_Val _U_(0x0)
569 #define SDHC_BGCR_RWCTRL_ENABLE_Val _U_(0x1)
570 #define SDHC_BGCR_RWCTRL_DISABLE (SDHC_BGCR_RWCTRL_DISABLE_Val << SDHC_BGCR_RWCTRL_Pos)
571 #define SDHC_BGCR_RWCTRL_ENABLE (SDHC_BGCR_RWCTRL_ENABLE_Val << SDHC_BGCR_RWCTRL_Pos)
572 #define SDHC_BGCR_INTBG_Pos 3
573 #define SDHC_BGCR_INTBG (_U_(0x1) << SDHC_BGCR_INTBG_Pos)
574 #define SDHC_BGCR_INTBG_DISABLED_Val _U_(0x0)
575 #define SDHC_BGCR_INTBG_ENABLED_Val _U_(0x1)
576 #define SDHC_BGCR_INTBG_DISABLED (SDHC_BGCR_INTBG_DISABLED_Val << SDHC_BGCR_INTBG_Pos)
577 #define SDHC_BGCR_INTBG_ENABLED (SDHC_BGCR_INTBG_ENABLED_Val << SDHC_BGCR_INTBG_Pos)
578 #define SDHC_BGCR_MASK _U_(0x0F)
581 #define SDHC_BGCR_EMMC_STPBGR_Pos 0
582 #define SDHC_BGCR_EMMC_STPBGR (_U_(0x1) << SDHC_BGCR_EMMC_STPBGR_Pos)
583 #define SDHC_BGCR_EMMC_STPBGR_TRANSFER_Val _U_(0x0)
584 #define SDHC_BGCR_EMMC_STPBGR_STOP_Val _U_(0x1)
585 #define SDHC_BGCR_EMMC_STPBGR_TRANSFER (SDHC_BGCR_EMMC_STPBGR_TRANSFER_Val << SDHC_BGCR_EMMC_STPBGR_Pos)
586 #define SDHC_BGCR_EMMC_STPBGR_STOP (SDHC_BGCR_EMMC_STPBGR_STOP_Val << SDHC_BGCR_EMMC_STPBGR_Pos)
587 #define SDHC_BGCR_EMMC_CONTR_Pos 1
588 #define SDHC_BGCR_EMMC_CONTR (_U_(0x1) << SDHC_BGCR_EMMC_CONTR_Pos)
589 #define SDHC_BGCR_EMMC_CONTR_GO_ON_Val _U_(0x0)
590 #define SDHC_BGCR_EMMC_CONTR_RESTART_Val _U_(0x1)
591 #define SDHC_BGCR_EMMC_CONTR_GO_ON (SDHC_BGCR_EMMC_CONTR_GO_ON_Val << SDHC_BGCR_EMMC_CONTR_Pos)
592 #define SDHC_BGCR_EMMC_CONTR_RESTART (SDHC_BGCR_EMMC_CONTR_RESTART_Val << SDHC_BGCR_EMMC_CONTR_Pos)
593 #define SDHC_BGCR_EMMC_MASK _U_(0x03)
596 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
608 #define SDHC_WCR_OFFSET 0x02B
609 #define SDHC_WCR_RESETVALUE _U_(0x00)
611 #define SDHC_WCR_WKENCINT_Pos 0
612 #define SDHC_WCR_WKENCINT (_U_(0x1) << SDHC_WCR_WKENCINT_Pos)
613 #define SDHC_WCR_WKENCINT_DISABLE_Val _U_(0x0)
614 #define SDHC_WCR_WKENCINT_ENABLE_Val _U_(0x1)
615 #define SDHC_WCR_WKENCINT_DISABLE (SDHC_WCR_WKENCINT_DISABLE_Val << SDHC_WCR_WKENCINT_Pos)
616 #define SDHC_WCR_WKENCINT_ENABLE (SDHC_WCR_WKENCINT_ENABLE_Val << SDHC_WCR_WKENCINT_Pos)
617 #define SDHC_WCR_WKENCINS_Pos 1
618 #define SDHC_WCR_WKENCINS (_U_(0x1) << SDHC_WCR_WKENCINS_Pos)
619 #define SDHC_WCR_WKENCINS_DISABLE_Val _U_(0x0)
620 #define SDHC_WCR_WKENCINS_ENABLE_Val _U_(0x1)
621 #define SDHC_WCR_WKENCINS_DISABLE (SDHC_WCR_WKENCINS_DISABLE_Val << SDHC_WCR_WKENCINS_Pos)
622 #define SDHC_WCR_WKENCINS_ENABLE (SDHC_WCR_WKENCINS_ENABLE_Val << SDHC_WCR_WKENCINS_Pos)
623 #define SDHC_WCR_WKENCREM_Pos 2
624 #define SDHC_WCR_WKENCREM (_U_(0x1) << SDHC_WCR_WKENCREM_Pos)
625 #define SDHC_WCR_WKENCREM_DISABLE_Val _U_(0x0)
626 #define SDHC_WCR_WKENCREM_ENABLE_Val _U_(0x1)
627 #define SDHC_WCR_WKENCREM_DISABLE (SDHC_WCR_WKENCREM_DISABLE_Val << SDHC_WCR_WKENCREM_Pos)
628 #define SDHC_WCR_WKENCREM_ENABLE (SDHC_WCR_WKENCREM_ENABLE_Val << SDHC_WCR_WKENCREM_Pos)
629 #define SDHC_WCR_MASK _U_(0x07)
632 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
647 #define SDHC_CCR_OFFSET 0x02C
648 #define SDHC_CCR_RESETVALUE _U_(0x0000)
650 #define SDHC_CCR_INTCLKEN_Pos 0
651 #define SDHC_CCR_INTCLKEN (_U_(0x1) << SDHC_CCR_INTCLKEN_Pos)
652 #define SDHC_CCR_INTCLKEN_OFF_Val _U_(0x0)
653 #define SDHC_CCR_INTCLKEN_ON_Val _U_(0x1)
654 #define SDHC_CCR_INTCLKEN_OFF (SDHC_CCR_INTCLKEN_OFF_Val << SDHC_CCR_INTCLKEN_Pos)
655 #define SDHC_CCR_INTCLKEN_ON (SDHC_CCR_INTCLKEN_ON_Val << SDHC_CCR_INTCLKEN_Pos)
656 #define SDHC_CCR_INTCLKS_Pos 1
657 #define SDHC_CCR_INTCLKS (_U_(0x1) << SDHC_CCR_INTCLKS_Pos)
658 #define SDHC_CCR_INTCLKS_NOT_READY_Val _U_(0x0)
659 #define SDHC_CCR_INTCLKS_READY_Val _U_(0x1)
660 #define SDHC_CCR_INTCLKS_NOT_READY (SDHC_CCR_INTCLKS_NOT_READY_Val << SDHC_CCR_INTCLKS_Pos)
661 #define SDHC_CCR_INTCLKS_READY (SDHC_CCR_INTCLKS_READY_Val << SDHC_CCR_INTCLKS_Pos)
662 #define SDHC_CCR_SDCLKEN_Pos 2
663 #define SDHC_CCR_SDCLKEN (_U_(0x1) << SDHC_CCR_SDCLKEN_Pos)
664 #define SDHC_CCR_SDCLKEN_DISABLE_Val _U_(0x0)
665 #define SDHC_CCR_SDCLKEN_ENABLE_Val _U_(0x1)
666 #define SDHC_CCR_SDCLKEN_DISABLE (SDHC_CCR_SDCLKEN_DISABLE_Val << SDHC_CCR_SDCLKEN_Pos)
667 #define SDHC_CCR_SDCLKEN_ENABLE (SDHC_CCR_SDCLKEN_ENABLE_Val << SDHC_CCR_SDCLKEN_Pos)
668 #define SDHC_CCR_CLKGSEL_Pos 5
669 #define SDHC_CCR_CLKGSEL (_U_(0x1) << SDHC_CCR_CLKGSEL_Pos)
670 #define SDHC_CCR_CLKGSEL_DIV_Val _U_(0x0)
671 #define SDHC_CCR_CLKGSEL_PROG_Val _U_(0x1)
672 #define SDHC_CCR_CLKGSEL_DIV (SDHC_CCR_CLKGSEL_DIV_Val << SDHC_CCR_CLKGSEL_Pos)
673 #define SDHC_CCR_CLKGSEL_PROG (SDHC_CCR_CLKGSEL_PROG_Val << SDHC_CCR_CLKGSEL_Pos)
674 #define SDHC_CCR_USDCLKFSEL_Pos 6
675 #define SDHC_CCR_USDCLKFSEL_Msk (_U_(0x3) << SDHC_CCR_USDCLKFSEL_Pos)
676 #define SDHC_CCR_USDCLKFSEL(value) (SDHC_CCR_USDCLKFSEL_Msk & ((value) << SDHC_CCR_USDCLKFSEL_Pos))
677 #define SDHC_CCR_SDCLKFSEL_Pos 8
678 #define SDHC_CCR_SDCLKFSEL_Msk (_U_(0xFF) << SDHC_CCR_SDCLKFSEL_Pos)
679 #define SDHC_CCR_SDCLKFSEL(value) (SDHC_CCR_SDCLKFSEL_Msk & ((value) << SDHC_CCR_SDCLKFSEL_Pos))
680 #define SDHC_CCR_MASK _U_(0xFFE7)
683 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
693 #define SDHC_TCR_OFFSET 0x02E
694 #define SDHC_TCR_RESETVALUE _U_(0x00)
696 #define SDHC_TCR_DTCVAL_Pos 0
697 #define SDHC_TCR_DTCVAL_Msk (_U_(0xF) << SDHC_TCR_DTCVAL_Pos)
698 #define SDHC_TCR_DTCVAL(value) (SDHC_TCR_DTCVAL_Msk & ((value) << SDHC_TCR_DTCVAL_Pos))
699 #define SDHC_TCR_MASK _U_(0x0F)
702 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
714 #define SDHC_SRR_OFFSET 0x02F
715 #define SDHC_SRR_RESETVALUE _U_(0x00)
717 #define SDHC_SRR_SWRSTALL_Pos 0
718 #define SDHC_SRR_SWRSTALL (_U_(0x1) << SDHC_SRR_SWRSTALL_Pos)
719 #define SDHC_SRR_SWRSTALL_WORK_Val _U_(0x0)
720 #define SDHC_SRR_SWRSTALL_RESET_Val _U_(0x1)
721 #define SDHC_SRR_SWRSTALL_WORK (SDHC_SRR_SWRSTALL_WORK_Val << SDHC_SRR_SWRSTALL_Pos)
722 #define SDHC_SRR_SWRSTALL_RESET (SDHC_SRR_SWRSTALL_RESET_Val << SDHC_SRR_SWRSTALL_Pos)
723 #define SDHC_SRR_SWRSTCMD_Pos 1
724 #define SDHC_SRR_SWRSTCMD (_U_(0x1) << SDHC_SRR_SWRSTCMD_Pos)
725 #define SDHC_SRR_SWRSTCMD_WORK_Val _U_(0x0)
726 #define SDHC_SRR_SWRSTCMD_RESET_Val _U_(0x1)
727 #define SDHC_SRR_SWRSTCMD_WORK (SDHC_SRR_SWRSTCMD_WORK_Val << SDHC_SRR_SWRSTCMD_Pos)
728 #define SDHC_SRR_SWRSTCMD_RESET (SDHC_SRR_SWRSTCMD_RESET_Val << SDHC_SRR_SWRSTCMD_Pos)
729 #define SDHC_SRR_SWRSTDAT_Pos 2
730 #define SDHC_SRR_SWRSTDAT (_U_(0x1) << SDHC_SRR_SWRSTDAT_Pos)
731 #define SDHC_SRR_SWRSTDAT_WORK_Val _U_(0x0)
732 #define SDHC_SRR_SWRSTDAT_RESET_Val _U_(0x1)
733 #define SDHC_SRR_SWRSTDAT_WORK (SDHC_SRR_SWRSTDAT_WORK_Val << SDHC_SRR_SWRSTDAT_Pos)
734 #define SDHC_SRR_SWRSTDAT_RESET (SDHC_SRR_SWRSTDAT_RESET_Val << SDHC_SRR_SWRSTDAT_Pos)
735 #define SDHC_SRR_MASK _U_(0x07)
738 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
768 #define SDHC_NISTR_OFFSET 0x030
769 #define SDHC_NISTR_RESETVALUE _U_(0x0000)
771 #define SDHC_NISTR_CMDC_Pos 0
772 #define SDHC_NISTR_CMDC (_U_(0x1) << SDHC_NISTR_CMDC_Pos)
773 #define SDHC_NISTR_CMDC_NO_Val _U_(0x0)
774 #define SDHC_NISTR_CMDC_YES_Val _U_(0x1)
775 #define SDHC_NISTR_CMDC_NO (SDHC_NISTR_CMDC_NO_Val << SDHC_NISTR_CMDC_Pos)
776 #define SDHC_NISTR_CMDC_YES (SDHC_NISTR_CMDC_YES_Val << SDHC_NISTR_CMDC_Pos)
777 #define SDHC_NISTR_TRFC_Pos 1
778 #define SDHC_NISTR_TRFC (_U_(0x1) << SDHC_NISTR_TRFC_Pos)
779 #define SDHC_NISTR_TRFC_NO_Val _U_(0x0)
780 #define SDHC_NISTR_TRFC_YES_Val _U_(0x1)
781 #define SDHC_NISTR_TRFC_NO (SDHC_NISTR_TRFC_NO_Val << SDHC_NISTR_TRFC_Pos)
782 #define SDHC_NISTR_TRFC_YES (SDHC_NISTR_TRFC_YES_Val << SDHC_NISTR_TRFC_Pos)
783 #define SDHC_NISTR_BLKGE_Pos 2
784 #define SDHC_NISTR_BLKGE (_U_(0x1) << SDHC_NISTR_BLKGE_Pos)
785 #define SDHC_NISTR_BLKGE_NO_Val _U_(0x0)
786 #define SDHC_NISTR_BLKGE_STOP_Val _U_(0x1)
787 #define SDHC_NISTR_BLKGE_NO (SDHC_NISTR_BLKGE_NO_Val << SDHC_NISTR_BLKGE_Pos)
788 #define SDHC_NISTR_BLKGE_STOP (SDHC_NISTR_BLKGE_STOP_Val << SDHC_NISTR_BLKGE_Pos)
789 #define SDHC_NISTR_DMAINT_Pos 3
790 #define SDHC_NISTR_DMAINT (_U_(0x1) << SDHC_NISTR_DMAINT_Pos)
791 #define SDHC_NISTR_DMAINT_NO_Val _U_(0x0)
792 #define SDHC_NISTR_DMAINT_YES_Val _U_(0x1)
793 #define SDHC_NISTR_DMAINT_NO (SDHC_NISTR_DMAINT_NO_Val << SDHC_NISTR_DMAINT_Pos)
794 #define SDHC_NISTR_DMAINT_YES (SDHC_NISTR_DMAINT_YES_Val << SDHC_NISTR_DMAINT_Pos)
795 #define SDHC_NISTR_BWRRDY_Pos 4
796 #define SDHC_NISTR_BWRRDY (_U_(0x1) << SDHC_NISTR_BWRRDY_Pos)
797 #define SDHC_NISTR_BWRRDY_NO_Val _U_(0x0)
798 #define SDHC_NISTR_BWRRDY_YES_Val _U_(0x1)
799 #define SDHC_NISTR_BWRRDY_NO (SDHC_NISTR_BWRRDY_NO_Val << SDHC_NISTR_BWRRDY_Pos)
800 #define SDHC_NISTR_BWRRDY_YES (SDHC_NISTR_BWRRDY_YES_Val << SDHC_NISTR_BWRRDY_Pos)
801 #define SDHC_NISTR_BRDRDY_Pos 5
802 #define SDHC_NISTR_BRDRDY (_U_(0x1) << SDHC_NISTR_BRDRDY_Pos)
803 #define SDHC_NISTR_BRDRDY_NO_Val _U_(0x0)
804 #define SDHC_NISTR_BRDRDY_YES_Val _U_(0x1)
805 #define SDHC_NISTR_BRDRDY_NO (SDHC_NISTR_BRDRDY_NO_Val << SDHC_NISTR_BRDRDY_Pos)
806 #define SDHC_NISTR_BRDRDY_YES (SDHC_NISTR_BRDRDY_YES_Val << SDHC_NISTR_BRDRDY_Pos)
807 #define SDHC_NISTR_CINS_Pos 6
808 #define SDHC_NISTR_CINS (_U_(0x1) << SDHC_NISTR_CINS_Pos)
809 #define SDHC_NISTR_CINS_NO_Val _U_(0x0)
810 #define SDHC_NISTR_CINS_YES_Val _U_(0x1)
811 #define SDHC_NISTR_CINS_NO (SDHC_NISTR_CINS_NO_Val << SDHC_NISTR_CINS_Pos)
812 #define SDHC_NISTR_CINS_YES (SDHC_NISTR_CINS_YES_Val << SDHC_NISTR_CINS_Pos)
813 #define SDHC_NISTR_CREM_Pos 7
814 #define SDHC_NISTR_CREM (_U_(0x1) << SDHC_NISTR_CREM_Pos)
815 #define SDHC_NISTR_CREM_NO_Val _U_(0x0)
816 #define SDHC_NISTR_CREM_YES_Val _U_(0x1)
817 #define SDHC_NISTR_CREM_NO (SDHC_NISTR_CREM_NO_Val << SDHC_NISTR_CREM_Pos)
818 #define SDHC_NISTR_CREM_YES (SDHC_NISTR_CREM_YES_Val << SDHC_NISTR_CREM_Pos)
819 #define SDHC_NISTR_CINT_Pos 8
820 #define SDHC_NISTR_CINT (_U_(0x1) << SDHC_NISTR_CINT_Pos)
821 #define SDHC_NISTR_CINT_NO_Val _U_(0x0)
822 #define SDHC_NISTR_CINT_YES_Val _U_(0x1)
823 #define SDHC_NISTR_CINT_NO (SDHC_NISTR_CINT_NO_Val << SDHC_NISTR_CINT_Pos)
824 #define SDHC_NISTR_CINT_YES (SDHC_NISTR_CINT_YES_Val << SDHC_NISTR_CINT_Pos)
825 #define SDHC_NISTR_ERRINT_Pos 15
826 #define SDHC_NISTR_ERRINT (_U_(0x1) << SDHC_NISTR_ERRINT_Pos)
827 #define SDHC_NISTR_ERRINT_NO_Val _U_(0x0)
828 #define SDHC_NISTR_ERRINT_YES_Val _U_(0x1)
829 #define SDHC_NISTR_ERRINT_NO (SDHC_NISTR_ERRINT_NO_Val << SDHC_NISTR_ERRINT_Pos)
830 #define SDHC_NISTR_ERRINT_YES (SDHC_NISTR_ERRINT_YES_Val << SDHC_NISTR_ERRINT_Pos)
831 #define SDHC_NISTR_MASK _U_(0x81FF)
834 #define SDHC_NISTR_EMMC_CMDC_Pos 0
835 #define SDHC_NISTR_EMMC_CMDC (_U_(0x1) << SDHC_NISTR_EMMC_CMDC_Pos)
836 #define SDHC_NISTR_EMMC_CMDC_NO_Val _U_(0x0)
837 #define SDHC_NISTR_EMMC_CMDC_YES_Val _U_(0x1)
838 #define SDHC_NISTR_EMMC_CMDC_NO (SDHC_NISTR_EMMC_CMDC_NO_Val << SDHC_NISTR_EMMC_CMDC_Pos)
839 #define SDHC_NISTR_EMMC_CMDC_YES (SDHC_NISTR_EMMC_CMDC_YES_Val << SDHC_NISTR_EMMC_CMDC_Pos)
840 #define SDHC_NISTR_EMMC_TRFC_Pos 1
841 #define SDHC_NISTR_EMMC_TRFC (_U_(0x1) << SDHC_NISTR_EMMC_TRFC_Pos)
842 #define SDHC_NISTR_EMMC_TRFC_NO_Val _U_(0x0)
843 #define SDHC_NISTR_EMMC_TRFC_YES_Val _U_(0x1)
844 #define SDHC_NISTR_EMMC_TRFC_NO (SDHC_NISTR_EMMC_TRFC_NO_Val << SDHC_NISTR_EMMC_TRFC_Pos)
845 #define SDHC_NISTR_EMMC_TRFC_YES (SDHC_NISTR_EMMC_TRFC_YES_Val << SDHC_NISTR_EMMC_TRFC_Pos)
846 #define SDHC_NISTR_EMMC_BLKGE_Pos 2
847 #define SDHC_NISTR_EMMC_BLKGE (_U_(0x1) << SDHC_NISTR_EMMC_BLKGE_Pos)
848 #define SDHC_NISTR_EMMC_BLKGE_NO_Val _U_(0x0)
849 #define SDHC_NISTR_EMMC_BLKGE_STOP_Val _U_(0x1)
850 #define SDHC_NISTR_EMMC_BLKGE_NO (SDHC_NISTR_EMMC_BLKGE_NO_Val << SDHC_NISTR_EMMC_BLKGE_Pos)
851 #define SDHC_NISTR_EMMC_BLKGE_STOP (SDHC_NISTR_EMMC_BLKGE_STOP_Val << SDHC_NISTR_EMMC_BLKGE_Pos)
852 #define SDHC_NISTR_EMMC_DMAINT_Pos 3
853 #define SDHC_NISTR_EMMC_DMAINT (_U_(0x1) << SDHC_NISTR_EMMC_DMAINT_Pos)
854 #define SDHC_NISTR_EMMC_DMAINT_NO_Val _U_(0x0)
855 #define SDHC_NISTR_EMMC_DMAINT_YES_Val _U_(0x1)
856 #define SDHC_NISTR_EMMC_DMAINT_NO (SDHC_NISTR_EMMC_DMAINT_NO_Val << SDHC_NISTR_EMMC_DMAINT_Pos)
857 #define SDHC_NISTR_EMMC_DMAINT_YES (SDHC_NISTR_EMMC_DMAINT_YES_Val << SDHC_NISTR_EMMC_DMAINT_Pos)
858 #define SDHC_NISTR_EMMC_BWRRDY_Pos 4
859 #define SDHC_NISTR_EMMC_BWRRDY (_U_(0x1) << SDHC_NISTR_EMMC_BWRRDY_Pos)
860 #define SDHC_NISTR_EMMC_BWRRDY_NO_Val _U_(0x0)
861 #define SDHC_NISTR_EMMC_BWRRDY_YES_Val _U_(0x1)
862 #define SDHC_NISTR_EMMC_BWRRDY_NO (SDHC_NISTR_EMMC_BWRRDY_NO_Val << SDHC_NISTR_EMMC_BWRRDY_Pos)
863 #define SDHC_NISTR_EMMC_BWRRDY_YES (SDHC_NISTR_EMMC_BWRRDY_YES_Val << SDHC_NISTR_EMMC_BWRRDY_Pos)
864 #define SDHC_NISTR_EMMC_BRDRDY_Pos 5
865 #define SDHC_NISTR_EMMC_BRDRDY (_U_(0x1) << SDHC_NISTR_EMMC_BRDRDY_Pos)
866 #define SDHC_NISTR_EMMC_BRDRDY_NO_Val _U_(0x0)
867 #define SDHC_NISTR_EMMC_BRDRDY_YES_Val _U_(0x1)
868 #define SDHC_NISTR_EMMC_BRDRDY_NO (SDHC_NISTR_EMMC_BRDRDY_NO_Val << SDHC_NISTR_EMMC_BRDRDY_Pos)
869 #define SDHC_NISTR_EMMC_BRDRDY_YES (SDHC_NISTR_EMMC_BRDRDY_YES_Val << SDHC_NISTR_EMMC_BRDRDY_Pos)
870 #define SDHC_NISTR_EMMC_BOOTAR_Pos 14
871 #define SDHC_NISTR_EMMC_BOOTAR (_U_(0x1) << SDHC_NISTR_EMMC_BOOTAR_Pos)
872 #define SDHC_NISTR_EMMC_ERRINT_Pos 15
873 #define SDHC_NISTR_EMMC_ERRINT (_U_(0x1) << SDHC_NISTR_EMMC_ERRINT_Pos)
874 #define SDHC_NISTR_EMMC_ERRINT_NO_Val _U_(0x0)
875 #define SDHC_NISTR_EMMC_ERRINT_YES_Val _U_(0x1)
876 #define SDHC_NISTR_EMMC_ERRINT_NO (SDHC_NISTR_EMMC_ERRINT_NO_Val << SDHC_NISTR_EMMC_ERRINT_Pos)
877 #define SDHC_NISTR_EMMC_ERRINT_YES (SDHC_NISTR_EMMC_ERRINT_YES_Val << SDHC_NISTR_EMMC_ERRINT_Pos)
878 #define SDHC_NISTR_EMMC_MASK _U_(0xC03F)
881 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
915 #define SDHC_EISTR_OFFSET 0x032
916 #define SDHC_EISTR_RESETVALUE _U_(0x0000)
918 #define SDHC_EISTR_CMDTEO_Pos 0
919 #define SDHC_EISTR_CMDTEO (_U_(0x1) << SDHC_EISTR_CMDTEO_Pos)
920 #define SDHC_EISTR_CMDTEO_NO_Val _U_(0x0)
921 #define SDHC_EISTR_CMDTEO_YES_Val _U_(0x1)
922 #define SDHC_EISTR_CMDTEO_NO (SDHC_EISTR_CMDTEO_NO_Val << SDHC_EISTR_CMDTEO_Pos)
923 #define SDHC_EISTR_CMDTEO_YES (SDHC_EISTR_CMDTEO_YES_Val << SDHC_EISTR_CMDTEO_Pos)
924 #define SDHC_EISTR_CMDCRC_Pos 1
925 #define SDHC_EISTR_CMDCRC (_U_(0x1) << SDHC_EISTR_CMDCRC_Pos)
926 #define SDHC_EISTR_CMDCRC_NO_Val _U_(0x0)
927 #define SDHC_EISTR_CMDCRC_YES_Val _U_(0x1)
928 #define SDHC_EISTR_CMDCRC_NO (SDHC_EISTR_CMDCRC_NO_Val << SDHC_EISTR_CMDCRC_Pos)
929 #define SDHC_EISTR_CMDCRC_YES (SDHC_EISTR_CMDCRC_YES_Val << SDHC_EISTR_CMDCRC_Pos)
930 #define SDHC_EISTR_CMDEND_Pos 2
931 #define SDHC_EISTR_CMDEND (_U_(0x1) << SDHC_EISTR_CMDEND_Pos)
932 #define SDHC_EISTR_CMDEND_NO_Val _U_(0x0)
933 #define SDHC_EISTR_CMDEND_YES_Val _U_(0x1)
934 #define SDHC_EISTR_CMDEND_NO (SDHC_EISTR_CMDEND_NO_Val << SDHC_EISTR_CMDEND_Pos)
935 #define SDHC_EISTR_CMDEND_YES (SDHC_EISTR_CMDEND_YES_Val << SDHC_EISTR_CMDEND_Pos)
936 #define SDHC_EISTR_CMDIDX_Pos 3
937 #define SDHC_EISTR_CMDIDX (_U_(0x1) << SDHC_EISTR_CMDIDX_Pos)
938 #define SDHC_EISTR_CMDIDX_NO_Val _U_(0x0)
939 #define SDHC_EISTR_CMDIDX_YES_Val _U_(0x1)
940 #define SDHC_EISTR_CMDIDX_NO (SDHC_EISTR_CMDIDX_NO_Val << SDHC_EISTR_CMDIDX_Pos)
941 #define SDHC_EISTR_CMDIDX_YES (SDHC_EISTR_CMDIDX_YES_Val << SDHC_EISTR_CMDIDX_Pos)
942 #define SDHC_EISTR_DATTEO_Pos 4
943 #define SDHC_EISTR_DATTEO (_U_(0x1) << SDHC_EISTR_DATTEO_Pos)
944 #define SDHC_EISTR_DATTEO_NO_Val _U_(0x0)
945 #define SDHC_EISTR_DATTEO_YES_Val _U_(0x1)
946 #define SDHC_EISTR_DATTEO_NO (SDHC_EISTR_DATTEO_NO_Val << SDHC_EISTR_DATTEO_Pos)
947 #define SDHC_EISTR_DATTEO_YES (SDHC_EISTR_DATTEO_YES_Val << SDHC_EISTR_DATTEO_Pos)
948 #define SDHC_EISTR_DATCRC_Pos 5
949 #define SDHC_EISTR_DATCRC (_U_(0x1) << SDHC_EISTR_DATCRC_Pos)
950 #define SDHC_EISTR_DATCRC_NO_Val _U_(0x0)
951 #define SDHC_EISTR_DATCRC_YES_Val _U_(0x1)
952 #define SDHC_EISTR_DATCRC_NO (SDHC_EISTR_DATCRC_NO_Val << SDHC_EISTR_DATCRC_Pos)
953 #define SDHC_EISTR_DATCRC_YES (SDHC_EISTR_DATCRC_YES_Val << SDHC_EISTR_DATCRC_Pos)
954 #define SDHC_EISTR_DATEND_Pos 6
955 #define SDHC_EISTR_DATEND (_U_(0x1) << SDHC_EISTR_DATEND_Pos)
956 #define SDHC_EISTR_DATEND_NO_Val _U_(0x0)
957 #define SDHC_EISTR_DATEND_YES_Val _U_(0x1)
958 #define SDHC_EISTR_DATEND_NO (SDHC_EISTR_DATEND_NO_Val << SDHC_EISTR_DATEND_Pos)
959 #define SDHC_EISTR_DATEND_YES (SDHC_EISTR_DATEND_YES_Val << SDHC_EISTR_DATEND_Pos)
960 #define SDHC_EISTR_CURLIM_Pos 7
961 #define SDHC_EISTR_CURLIM (_U_(0x1) << SDHC_EISTR_CURLIM_Pos)
962 #define SDHC_EISTR_CURLIM_NO_Val _U_(0x0)
963 #define SDHC_EISTR_CURLIM_YES_Val _U_(0x1)
964 #define SDHC_EISTR_CURLIM_NO (SDHC_EISTR_CURLIM_NO_Val << SDHC_EISTR_CURLIM_Pos)
965 #define SDHC_EISTR_CURLIM_YES (SDHC_EISTR_CURLIM_YES_Val << SDHC_EISTR_CURLIM_Pos)
966 #define SDHC_EISTR_ACMD_Pos 8
967 #define SDHC_EISTR_ACMD (_U_(0x1) << SDHC_EISTR_ACMD_Pos)
968 #define SDHC_EISTR_ACMD_NO_Val _U_(0x0)
969 #define SDHC_EISTR_ACMD_YES_Val _U_(0x1)
970 #define SDHC_EISTR_ACMD_NO (SDHC_EISTR_ACMD_NO_Val << SDHC_EISTR_ACMD_Pos)
971 #define SDHC_EISTR_ACMD_YES (SDHC_EISTR_ACMD_YES_Val << SDHC_EISTR_ACMD_Pos)
972 #define SDHC_EISTR_ADMA_Pos 9
973 #define SDHC_EISTR_ADMA (_U_(0x1) << SDHC_EISTR_ADMA_Pos)
974 #define SDHC_EISTR_ADMA_NO_Val _U_(0x0)
975 #define SDHC_EISTR_ADMA_YES_Val _U_(0x1)
976 #define SDHC_EISTR_ADMA_NO (SDHC_EISTR_ADMA_NO_Val << SDHC_EISTR_ADMA_Pos)
977 #define SDHC_EISTR_ADMA_YES (SDHC_EISTR_ADMA_YES_Val << SDHC_EISTR_ADMA_Pos)
978 #define SDHC_EISTR_MASK _U_(0x03FF)
981 #define SDHC_EISTR_EMMC_CMDTEO_Pos 0
982 #define SDHC_EISTR_EMMC_CMDTEO (_U_(0x1) << SDHC_EISTR_EMMC_CMDTEO_Pos)
983 #define SDHC_EISTR_EMMC_CMDTEO_NO_Val _U_(0x0)
984 #define SDHC_EISTR_EMMC_CMDTEO_YES_Val _U_(0x1)
985 #define SDHC_EISTR_EMMC_CMDTEO_NO (SDHC_EISTR_EMMC_CMDTEO_NO_Val << SDHC_EISTR_EMMC_CMDTEO_Pos)
986 #define SDHC_EISTR_EMMC_CMDTEO_YES (SDHC_EISTR_EMMC_CMDTEO_YES_Val << SDHC_EISTR_EMMC_CMDTEO_Pos)
987 #define SDHC_EISTR_EMMC_CMDCRC_Pos 1
988 #define SDHC_EISTR_EMMC_CMDCRC (_U_(0x1) << SDHC_EISTR_EMMC_CMDCRC_Pos)
989 #define SDHC_EISTR_EMMC_CMDCRC_NO_Val _U_(0x0)
990 #define SDHC_EISTR_EMMC_CMDCRC_YES_Val _U_(0x1)
991 #define SDHC_EISTR_EMMC_CMDCRC_NO (SDHC_EISTR_EMMC_CMDCRC_NO_Val << SDHC_EISTR_EMMC_CMDCRC_Pos)
992 #define SDHC_EISTR_EMMC_CMDCRC_YES (SDHC_EISTR_EMMC_CMDCRC_YES_Val << SDHC_EISTR_EMMC_CMDCRC_Pos)
993 #define SDHC_EISTR_EMMC_CMDEND_Pos 2
994 #define SDHC_EISTR_EMMC_CMDEND (_U_(0x1) << SDHC_EISTR_EMMC_CMDEND_Pos)
995 #define SDHC_EISTR_EMMC_CMDEND_NO_Val _U_(0x0)
996 #define SDHC_EISTR_EMMC_CMDEND_YES_Val _U_(0x1)
997 #define SDHC_EISTR_EMMC_CMDEND_NO (SDHC_EISTR_EMMC_CMDEND_NO_Val << SDHC_EISTR_EMMC_CMDEND_Pos)
998 #define SDHC_EISTR_EMMC_CMDEND_YES (SDHC_EISTR_EMMC_CMDEND_YES_Val << SDHC_EISTR_EMMC_CMDEND_Pos)
999 #define SDHC_EISTR_EMMC_CMDIDX_Pos 3
1000 #define SDHC_EISTR_EMMC_CMDIDX (_U_(0x1) << SDHC_EISTR_EMMC_CMDIDX_Pos)
1001 #define SDHC_EISTR_EMMC_CMDIDX_NO_Val _U_(0x0)
1002 #define SDHC_EISTR_EMMC_CMDIDX_YES_Val _U_(0x1)
1003 #define SDHC_EISTR_EMMC_CMDIDX_NO (SDHC_EISTR_EMMC_CMDIDX_NO_Val << SDHC_EISTR_EMMC_CMDIDX_Pos)
1004 #define SDHC_EISTR_EMMC_CMDIDX_YES (SDHC_EISTR_EMMC_CMDIDX_YES_Val << SDHC_EISTR_EMMC_CMDIDX_Pos)
1005 #define SDHC_EISTR_EMMC_DATTEO_Pos 4
1006 #define SDHC_EISTR_EMMC_DATTEO (_U_(0x1) << SDHC_EISTR_EMMC_DATTEO_Pos)
1007 #define SDHC_EISTR_EMMC_DATTEO_NO_Val _U_(0x0)
1008 #define SDHC_EISTR_EMMC_DATTEO_YES_Val _U_(0x1)
1009 #define SDHC_EISTR_EMMC_DATTEO_NO (SDHC_EISTR_EMMC_DATTEO_NO_Val << SDHC_EISTR_EMMC_DATTEO_Pos)
1010 #define SDHC_EISTR_EMMC_DATTEO_YES (SDHC_EISTR_EMMC_DATTEO_YES_Val << SDHC_EISTR_EMMC_DATTEO_Pos)
1011 #define SDHC_EISTR_EMMC_DATCRC_Pos 5
1012 #define SDHC_EISTR_EMMC_DATCRC (_U_(0x1) << SDHC_EISTR_EMMC_DATCRC_Pos)
1013 #define SDHC_EISTR_EMMC_DATCRC_NO_Val _U_(0x0)
1014 #define SDHC_EISTR_EMMC_DATCRC_YES_Val _U_(0x1)
1015 #define SDHC_EISTR_EMMC_DATCRC_NO (SDHC_EISTR_EMMC_DATCRC_NO_Val << SDHC_EISTR_EMMC_DATCRC_Pos)
1016 #define SDHC_EISTR_EMMC_DATCRC_YES (SDHC_EISTR_EMMC_DATCRC_YES_Val << SDHC_EISTR_EMMC_DATCRC_Pos)
1017 #define SDHC_EISTR_EMMC_DATEND_Pos 6
1018 #define SDHC_EISTR_EMMC_DATEND (_U_(0x1) << SDHC_EISTR_EMMC_DATEND_Pos)
1019 #define SDHC_EISTR_EMMC_DATEND_NO_Val _U_(0x0)
1020 #define SDHC_EISTR_EMMC_DATEND_YES_Val _U_(0x1)
1021 #define SDHC_EISTR_EMMC_DATEND_NO (SDHC_EISTR_EMMC_DATEND_NO_Val << SDHC_EISTR_EMMC_DATEND_Pos)
1022 #define SDHC_EISTR_EMMC_DATEND_YES (SDHC_EISTR_EMMC_DATEND_YES_Val << SDHC_EISTR_EMMC_DATEND_Pos)
1023 #define SDHC_EISTR_EMMC_CURLIM_Pos 7
1024 #define SDHC_EISTR_EMMC_CURLIM (_U_(0x1) << SDHC_EISTR_EMMC_CURLIM_Pos)
1025 #define SDHC_EISTR_EMMC_CURLIM_NO_Val _U_(0x0)
1026 #define SDHC_EISTR_EMMC_CURLIM_YES_Val _U_(0x1)
1027 #define SDHC_EISTR_EMMC_CURLIM_NO (SDHC_EISTR_EMMC_CURLIM_NO_Val << SDHC_EISTR_EMMC_CURLIM_Pos)
1028 #define SDHC_EISTR_EMMC_CURLIM_YES (SDHC_EISTR_EMMC_CURLIM_YES_Val << SDHC_EISTR_EMMC_CURLIM_Pos)
1029 #define SDHC_EISTR_EMMC_ACMD_Pos 8
1030 #define SDHC_EISTR_EMMC_ACMD (_U_(0x1) << SDHC_EISTR_EMMC_ACMD_Pos)
1031 #define SDHC_EISTR_EMMC_ACMD_NO_Val _U_(0x0)
1032 #define SDHC_EISTR_EMMC_ACMD_YES_Val _U_(0x1)
1033 #define SDHC_EISTR_EMMC_ACMD_NO (SDHC_EISTR_EMMC_ACMD_NO_Val << SDHC_EISTR_EMMC_ACMD_Pos)
1034 #define SDHC_EISTR_EMMC_ACMD_YES (SDHC_EISTR_EMMC_ACMD_YES_Val << SDHC_EISTR_EMMC_ACMD_Pos)
1035 #define SDHC_EISTR_EMMC_ADMA_Pos 9
1036 #define SDHC_EISTR_EMMC_ADMA (_U_(0x1) << SDHC_EISTR_EMMC_ADMA_Pos)
1037 #define SDHC_EISTR_EMMC_ADMA_NO_Val _U_(0x0)
1038 #define SDHC_EISTR_EMMC_ADMA_YES_Val _U_(0x1)
1039 #define SDHC_EISTR_EMMC_ADMA_NO (SDHC_EISTR_EMMC_ADMA_NO_Val << SDHC_EISTR_EMMC_ADMA_Pos)
1040 #define SDHC_EISTR_EMMC_ADMA_YES (SDHC_EISTR_EMMC_ADMA_YES_Val << SDHC_EISTR_EMMC_ADMA_Pos)
1041 #define SDHC_EISTR_EMMC_BOOTAE_Pos 12
1042 #define SDHC_EISTR_EMMC_BOOTAE (_U_(0x1) << SDHC_EISTR_EMMC_BOOTAE_Pos)
1043 #define SDHC_EISTR_EMMC_BOOTAE_0_Val _U_(0x0)
1044 #define SDHC_EISTR_EMMC_BOOTAE_1_Val _U_(0x1)
1045 #define SDHC_EISTR_EMMC_BOOTAE_0 (SDHC_EISTR_EMMC_BOOTAE_0_Val << SDHC_EISTR_EMMC_BOOTAE_Pos)
1046 #define SDHC_EISTR_EMMC_BOOTAE_1 (SDHC_EISTR_EMMC_BOOTAE_1_Val << SDHC_EISTR_EMMC_BOOTAE_Pos)
1047 #define SDHC_EISTR_EMMC_MASK _U_(0x13FF)
1050 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1079 #define SDHC_NISTER_OFFSET 0x034
1080 #define SDHC_NISTER_RESETVALUE _U_(0x0000)
1082 #define SDHC_NISTER_CMDC_Pos 0
1083 #define SDHC_NISTER_CMDC (_U_(0x1) << SDHC_NISTER_CMDC_Pos)
1084 #define SDHC_NISTER_CMDC_MASKED_Val _U_(0x0)
1085 #define SDHC_NISTER_CMDC_ENABLED_Val _U_(0x1)
1086 #define SDHC_NISTER_CMDC_MASKED (SDHC_NISTER_CMDC_MASKED_Val << SDHC_NISTER_CMDC_Pos)
1087 #define SDHC_NISTER_CMDC_ENABLED (SDHC_NISTER_CMDC_ENABLED_Val << SDHC_NISTER_CMDC_Pos)
1088 #define SDHC_NISTER_TRFC_Pos 1
1089 #define SDHC_NISTER_TRFC (_U_(0x1) << SDHC_NISTER_TRFC_Pos)
1090 #define SDHC_NISTER_TRFC_MASKED_Val _U_(0x0)
1091 #define SDHC_NISTER_TRFC_ENABLED_Val _U_(0x1)
1092 #define SDHC_NISTER_TRFC_MASKED (SDHC_NISTER_TRFC_MASKED_Val << SDHC_NISTER_TRFC_Pos)
1093 #define SDHC_NISTER_TRFC_ENABLED (SDHC_NISTER_TRFC_ENABLED_Val << SDHC_NISTER_TRFC_Pos)
1094 #define SDHC_NISTER_BLKGE_Pos 2
1095 #define SDHC_NISTER_BLKGE (_U_(0x1) << SDHC_NISTER_BLKGE_Pos)
1096 #define SDHC_NISTER_BLKGE_MASKED_Val _U_(0x0)
1097 #define SDHC_NISTER_BLKGE_ENABLED_Val _U_(0x1)
1098 #define SDHC_NISTER_BLKGE_MASKED (SDHC_NISTER_BLKGE_MASKED_Val << SDHC_NISTER_BLKGE_Pos)
1099 #define SDHC_NISTER_BLKGE_ENABLED (SDHC_NISTER_BLKGE_ENABLED_Val << SDHC_NISTER_BLKGE_Pos)
1100 #define SDHC_NISTER_DMAINT_Pos 3
1101 #define SDHC_NISTER_DMAINT (_U_(0x1) << SDHC_NISTER_DMAINT_Pos)
1102 #define SDHC_NISTER_DMAINT_MASKED_Val _U_(0x0)
1103 #define SDHC_NISTER_DMAINT_ENABLED_Val _U_(0x1)
1104 #define SDHC_NISTER_DMAINT_MASKED (SDHC_NISTER_DMAINT_MASKED_Val << SDHC_NISTER_DMAINT_Pos)
1105 #define SDHC_NISTER_DMAINT_ENABLED (SDHC_NISTER_DMAINT_ENABLED_Val << SDHC_NISTER_DMAINT_Pos)
1106 #define SDHC_NISTER_BWRRDY_Pos 4
1107 #define SDHC_NISTER_BWRRDY (_U_(0x1) << SDHC_NISTER_BWRRDY_Pos)
1108 #define SDHC_NISTER_BWRRDY_MASKED_Val _U_(0x0)
1109 #define SDHC_NISTER_BWRRDY_ENABLED_Val _U_(0x1)
1110 #define SDHC_NISTER_BWRRDY_MASKED (SDHC_NISTER_BWRRDY_MASKED_Val << SDHC_NISTER_BWRRDY_Pos)
1111 #define SDHC_NISTER_BWRRDY_ENABLED (SDHC_NISTER_BWRRDY_ENABLED_Val << SDHC_NISTER_BWRRDY_Pos)
1112 #define SDHC_NISTER_BRDRDY_Pos 5
1113 #define SDHC_NISTER_BRDRDY (_U_(0x1) << SDHC_NISTER_BRDRDY_Pos)
1114 #define SDHC_NISTER_BRDRDY_MASKED_Val _U_(0x0)
1115 #define SDHC_NISTER_BRDRDY_ENABLED_Val _U_(0x1)
1116 #define SDHC_NISTER_BRDRDY_MASKED (SDHC_NISTER_BRDRDY_MASKED_Val << SDHC_NISTER_BRDRDY_Pos)
1117 #define SDHC_NISTER_BRDRDY_ENABLED (SDHC_NISTER_BRDRDY_ENABLED_Val << SDHC_NISTER_BRDRDY_Pos)
1118 #define SDHC_NISTER_CINS_Pos 6
1119 #define SDHC_NISTER_CINS (_U_(0x1) << SDHC_NISTER_CINS_Pos)
1120 #define SDHC_NISTER_CINS_MASKED_Val _U_(0x0)
1121 #define SDHC_NISTER_CINS_ENABLED_Val _U_(0x1)
1122 #define SDHC_NISTER_CINS_MASKED (SDHC_NISTER_CINS_MASKED_Val << SDHC_NISTER_CINS_Pos)
1123 #define SDHC_NISTER_CINS_ENABLED (SDHC_NISTER_CINS_ENABLED_Val << SDHC_NISTER_CINS_Pos)
1124 #define SDHC_NISTER_CREM_Pos 7
1125 #define SDHC_NISTER_CREM (_U_(0x1) << SDHC_NISTER_CREM_Pos)
1126 #define SDHC_NISTER_CREM_MASKED_Val _U_(0x0)
1127 #define SDHC_NISTER_CREM_ENABLED_Val _U_(0x1)
1128 #define SDHC_NISTER_CREM_MASKED (SDHC_NISTER_CREM_MASKED_Val << SDHC_NISTER_CREM_Pos)
1129 #define SDHC_NISTER_CREM_ENABLED (SDHC_NISTER_CREM_ENABLED_Val << SDHC_NISTER_CREM_Pos)
1130 #define SDHC_NISTER_CINT_Pos 8
1131 #define SDHC_NISTER_CINT (_U_(0x1) << SDHC_NISTER_CINT_Pos)
1132 #define SDHC_NISTER_CINT_MASKED_Val _U_(0x0)
1133 #define SDHC_NISTER_CINT_ENABLED_Val _U_(0x1)
1134 #define SDHC_NISTER_CINT_MASKED (SDHC_NISTER_CINT_MASKED_Val << SDHC_NISTER_CINT_Pos)
1135 #define SDHC_NISTER_CINT_ENABLED (SDHC_NISTER_CINT_ENABLED_Val << SDHC_NISTER_CINT_Pos)
1136 #define SDHC_NISTER_MASK _U_(0x01FF)
1139 #define SDHC_NISTER_EMMC_CMDC_Pos 0
1140 #define SDHC_NISTER_EMMC_CMDC (_U_(0x1) << SDHC_NISTER_EMMC_CMDC_Pos)
1141 #define SDHC_NISTER_EMMC_CMDC_MASKED_Val _U_(0x0)
1142 #define SDHC_NISTER_EMMC_CMDC_ENABLED_Val _U_(0x1)
1143 #define SDHC_NISTER_EMMC_CMDC_MASKED (SDHC_NISTER_EMMC_CMDC_MASKED_Val << SDHC_NISTER_EMMC_CMDC_Pos)
1144 #define SDHC_NISTER_EMMC_CMDC_ENABLED (SDHC_NISTER_EMMC_CMDC_ENABLED_Val << SDHC_NISTER_EMMC_CMDC_Pos)
1145 #define SDHC_NISTER_EMMC_TRFC_Pos 1
1146 #define SDHC_NISTER_EMMC_TRFC (_U_(0x1) << SDHC_NISTER_EMMC_TRFC_Pos)
1147 #define SDHC_NISTER_EMMC_TRFC_MASKED_Val _U_(0x0)
1148 #define SDHC_NISTER_EMMC_TRFC_ENABLED_Val _U_(0x1)
1149 #define SDHC_NISTER_EMMC_TRFC_MASKED (SDHC_NISTER_EMMC_TRFC_MASKED_Val << SDHC_NISTER_EMMC_TRFC_Pos)
1150 #define SDHC_NISTER_EMMC_TRFC_ENABLED (SDHC_NISTER_EMMC_TRFC_ENABLED_Val << SDHC_NISTER_EMMC_TRFC_Pos)
1151 #define SDHC_NISTER_EMMC_BLKGE_Pos 2
1152 #define SDHC_NISTER_EMMC_BLKGE (_U_(0x1) << SDHC_NISTER_EMMC_BLKGE_Pos)
1153 #define SDHC_NISTER_EMMC_BLKGE_MASKED_Val _U_(0x0)
1154 #define SDHC_NISTER_EMMC_BLKGE_ENABLED_Val _U_(0x1)
1155 #define SDHC_NISTER_EMMC_BLKGE_MASKED (SDHC_NISTER_EMMC_BLKGE_MASKED_Val << SDHC_NISTER_EMMC_BLKGE_Pos)
1156 #define SDHC_NISTER_EMMC_BLKGE_ENABLED (SDHC_NISTER_EMMC_BLKGE_ENABLED_Val << SDHC_NISTER_EMMC_BLKGE_Pos)
1157 #define SDHC_NISTER_EMMC_DMAINT_Pos 3
1158 #define SDHC_NISTER_EMMC_DMAINT (_U_(0x1) << SDHC_NISTER_EMMC_DMAINT_Pos)
1159 #define SDHC_NISTER_EMMC_DMAINT_MASKED_Val _U_(0x0)
1160 #define SDHC_NISTER_EMMC_DMAINT_ENABLED_Val _U_(0x1)
1161 #define SDHC_NISTER_EMMC_DMAINT_MASKED (SDHC_NISTER_EMMC_DMAINT_MASKED_Val << SDHC_NISTER_EMMC_DMAINT_Pos)
1162 #define SDHC_NISTER_EMMC_DMAINT_ENABLED (SDHC_NISTER_EMMC_DMAINT_ENABLED_Val << SDHC_NISTER_EMMC_DMAINT_Pos)
1163 #define SDHC_NISTER_EMMC_BWRRDY_Pos 4
1164 #define SDHC_NISTER_EMMC_BWRRDY (_U_(0x1) << SDHC_NISTER_EMMC_BWRRDY_Pos)
1165 #define SDHC_NISTER_EMMC_BWRRDY_MASKED_Val _U_(0x0)
1166 #define SDHC_NISTER_EMMC_BWRRDY_ENABLED_Val _U_(0x1)
1167 #define SDHC_NISTER_EMMC_BWRRDY_MASKED (SDHC_NISTER_EMMC_BWRRDY_MASKED_Val << SDHC_NISTER_EMMC_BWRRDY_Pos)
1168 #define SDHC_NISTER_EMMC_BWRRDY_ENABLED (SDHC_NISTER_EMMC_BWRRDY_ENABLED_Val << SDHC_NISTER_EMMC_BWRRDY_Pos)
1169 #define SDHC_NISTER_EMMC_BRDRDY_Pos 5
1170 #define SDHC_NISTER_EMMC_BRDRDY (_U_(0x1) << SDHC_NISTER_EMMC_BRDRDY_Pos)
1171 #define SDHC_NISTER_EMMC_BRDRDY_MASKED_Val _U_(0x0)
1172 #define SDHC_NISTER_EMMC_BRDRDY_ENABLED_Val _U_(0x1)
1173 #define SDHC_NISTER_EMMC_BRDRDY_MASKED (SDHC_NISTER_EMMC_BRDRDY_MASKED_Val << SDHC_NISTER_EMMC_BRDRDY_Pos)
1174 #define SDHC_NISTER_EMMC_BRDRDY_ENABLED (SDHC_NISTER_EMMC_BRDRDY_ENABLED_Val << SDHC_NISTER_EMMC_BRDRDY_Pos)
1175 #define SDHC_NISTER_EMMC_BOOTAR_Pos 14
1176 #define SDHC_NISTER_EMMC_BOOTAR (_U_(0x1) << SDHC_NISTER_EMMC_BOOTAR_Pos)
1177 #define SDHC_NISTER_EMMC_MASK _U_(0x403F)
1180 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1214 #define SDHC_EISTER_OFFSET 0x036
1215 #define SDHC_EISTER_RESETVALUE _U_(0x0000)
1217 #define SDHC_EISTER_CMDTEO_Pos 0
1218 #define SDHC_EISTER_CMDTEO (_U_(0x1) << SDHC_EISTER_CMDTEO_Pos)
1219 #define SDHC_EISTER_CMDTEO_MASKED_Val _U_(0x0)
1220 #define SDHC_EISTER_CMDTEO_ENABLED_Val _U_(0x1)
1221 #define SDHC_EISTER_CMDTEO_MASKED (SDHC_EISTER_CMDTEO_MASKED_Val << SDHC_EISTER_CMDTEO_Pos)
1222 #define SDHC_EISTER_CMDTEO_ENABLED (SDHC_EISTER_CMDTEO_ENABLED_Val << SDHC_EISTER_CMDTEO_Pos)
1223 #define SDHC_EISTER_CMDCRC_Pos 1
1224 #define SDHC_EISTER_CMDCRC (_U_(0x1) << SDHC_EISTER_CMDCRC_Pos)
1225 #define SDHC_EISTER_CMDCRC_MASKED_Val _U_(0x0)
1226 #define SDHC_EISTER_CMDCRC_ENABLED_Val _U_(0x1)
1227 #define SDHC_EISTER_CMDCRC_MASKED (SDHC_EISTER_CMDCRC_MASKED_Val << SDHC_EISTER_CMDCRC_Pos)
1228 #define SDHC_EISTER_CMDCRC_ENABLED (SDHC_EISTER_CMDCRC_ENABLED_Val << SDHC_EISTER_CMDCRC_Pos)
1229 #define SDHC_EISTER_CMDEND_Pos 2
1230 #define SDHC_EISTER_CMDEND (_U_(0x1) << SDHC_EISTER_CMDEND_Pos)
1231 #define SDHC_EISTER_CMDEND_MASKED_Val _U_(0x0)
1232 #define SDHC_EISTER_CMDEND_ENABLED_Val _U_(0x1)
1233 #define SDHC_EISTER_CMDEND_MASKED (SDHC_EISTER_CMDEND_MASKED_Val << SDHC_EISTER_CMDEND_Pos)
1234 #define SDHC_EISTER_CMDEND_ENABLED (SDHC_EISTER_CMDEND_ENABLED_Val << SDHC_EISTER_CMDEND_Pos)
1235 #define SDHC_EISTER_CMDIDX_Pos 3
1236 #define SDHC_EISTER_CMDIDX (_U_(0x1) << SDHC_EISTER_CMDIDX_Pos)
1237 #define SDHC_EISTER_CMDIDX_MASKED_Val _U_(0x0)
1238 #define SDHC_EISTER_CMDIDX_ENABLED_Val _U_(0x1)
1239 #define SDHC_EISTER_CMDIDX_MASKED (SDHC_EISTER_CMDIDX_MASKED_Val << SDHC_EISTER_CMDIDX_Pos)
1240 #define SDHC_EISTER_CMDIDX_ENABLED (SDHC_EISTER_CMDIDX_ENABLED_Val << SDHC_EISTER_CMDIDX_Pos)
1241 #define SDHC_EISTER_DATTEO_Pos 4
1242 #define SDHC_EISTER_DATTEO (_U_(0x1) << SDHC_EISTER_DATTEO_Pos)
1243 #define SDHC_EISTER_DATTEO_MASKED_Val _U_(0x0)
1244 #define SDHC_EISTER_DATTEO_ENABLED_Val _U_(0x1)
1245 #define SDHC_EISTER_DATTEO_MASKED (SDHC_EISTER_DATTEO_MASKED_Val << SDHC_EISTER_DATTEO_Pos)
1246 #define SDHC_EISTER_DATTEO_ENABLED (SDHC_EISTER_DATTEO_ENABLED_Val << SDHC_EISTER_DATTEO_Pos)
1247 #define SDHC_EISTER_DATCRC_Pos 5
1248 #define SDHC_EISTER_DATCRC (_U_(0x1) << SDHC_EISTER_DATCRC_Pos)
1249 #define SDHC_EISTER_DATCRC_MASKED_Val _U_(0x0)
1250 #define SDHC_EISTER_DATCRC_ENABLED_Val _U_(0x1)
1251 #define SDHC_EISTER_DATCRC_MASKED (SDHC_EISTER_DATCRC_MASKED_Val << SDHC_EISTER_DATCRC_Pos)
1252 #define SDHC_EISTER_DATCRC_ENABLED (SDHC_EISTER_DATCRC_ENABLED_Val << SDHC_EISTER_DATCRC_Pos)
1253 #define SDHC_EISTER_DATEND_Pos 6
1254 #define SDHC_EISTER_DATEND (_U_(0x1) << SDHC_EISTER_DATEND_Pos)
1255 #define SDHC_EISTER_DATEND_MASKED_Val _U_(0x0)
1256 #define SDHC_EISTER_DATEND_ENABLED_Val _U_(0x1)
1257 #define SDHC_EISTER_DATEND_MASKED (SDHC_EISTER_DATEND_MASKED_Val << SDHC_EISTER_DATEND_Pos)
1258 #define SDHC_EISTER_DATEND_ENABLED (SDHC_EISTER_DATEND_ENABLED_Val << SDHC_EISTER_DATEND_Pos)
1259 #define SDHC_EISTER_CURLIM_Pos 7
1260 #define SDHC_EISTER_CURLIM (_U_(0x1) << SDHC_EISTER_CURLIM_Pos)
1261 #define SDHC_EISTER_CURLIM_MASKED_Val _U_(0x0)
1262 #define SDHC_EISTER_CURLIM_ENABLED_Val _U_(0x1)
1263 #define SDHC_EISTER_CURLIM_MASKED (SDHC_EISTER_CURLIM_MASKED_Val << SDHC_EISTER_CURLIM_Pos)
1264 #define SDHC_EISTER_CURLIM_ENABLED (SDHC_EISTER_CURLIM_ENABLED_Val << SDHC_EISTER_CURLIM_Pos)
1265 #define SDHC_EISTER_ACMD_Pos 8
1266 #define SDHC_EISTER_ACMD (_U_(0x1) << SDHC_EISTER_ACMD_Pos)
1267 #define SDHC_EISTER_ACMD_MASKED_Val _U_(0x0)
1268 #define SDHC_EISTER_ACMD_ENABLED_Val _U_(0x1)
1269 #define SDHC_EISTER_ACMD_MASKED (SDHC_EISTER_ACMD_MASKED_Val << SDHC_EISTER_ACMD_Pos)
1270 #define SDHC_EISTER_ACMD_ENABLED (SDHC_EISTER_ACMD_ENABLED_Val << SDHC_EISTER_ACMD_Pos)
1271 #define SDHC_EISTER_ADMA_Pos 9
1272 #define SDHC_EISTER_ADMA (_U_(0x1) << SDHC_EISTER_ADMA_Pos)
1273 #define SDHC_EISTER_ADMA_MASKED_Val _U_(0x0)
1274 #define SDHC_EISTER_ADMA_ENABLED_Val _U_(0x1)
1275 #define SDHC_EISTER_ADMA_MASKED (SDHC_EISTER_ADMA_MASKED_Val << SDHC_EISTER_ADMA_Pos)
1276 #define SDHC_EISTER_ADMA_ENABLED (SDHC_EISTER_ADMA_ENABLED_Val << SDHC_EISTER_ADMA_Pos)
1277 #define SDHC_EISTER_MASK _U_(0x03FF)
1280 #define SDHC_EISTER_EMMC_CMDTEO_Pos 0
1281 #define SDHC_EISTER_EMMC_CMDTEO (_U_(0x1) << SDHC_EISTER_EMMC_CMDTEO_Pos)
1282 #define SDHC_EISTER_EMMC_CMDTEO_MASKED_Val _U_(0x0)
1283 #define SDHC_EISTER_EMMC_CMDTEO_ENABLED_Val _U_(0x1)
1284 #define SDHC_EISTER_EMMC_CMDTEO_MASKED (SDHC_EISTER_EMMC_CMDTEO_MASKED_Val << SDHC_EISTER_EMMC_CMDTEO_Pos)
1285 #define SDHC_EISTER_EMMC_CMDTEO_ENABLED (SDHC_EISTER_EMMC_CMDTEO_ENABLED_Val << SDHC_EISTER_EMMC_CMDTEO_Pos)
1286 #define SDHC_EISTER_EMMC_CMDCRC_Pos 1
1287 #define SDHC_EISTER_EMMC_CMDCRC (_U_(0x1) << SDHC_EISTER_EMMC_CMDCRC_Pos)
1288 #define SDHC_EISTER_EMMC_CMDCRC_MASKED_Val _U_(0x0)
1289 #define SDHC_EISTER_EMMC_CMDCRC_ENABLED_Val _U_(0x1)
1290 #define SDHC_EISTER_EMMC_CMDCRC_MASKED (SDHC_EISTER_EMMC_CMDCRC_MASKED_Val << SDHC_EISTER_EMMC_CMDCRC_Pos)
1291 #define SDHC_EISTER_EMMC_CMDCRC_ENABLED (SDHC_EISTER_EMMC_CMDCRC_ENABLED_Val << SDHC_EISTER_EMMC_CMDCRC_Pos)
1292 #define SDHC_EISTER_EMMC_CMDEND_Pos 2
1293 #define SDHC_EISTER_EMMC_CMDEND (_U_(0x1) << SDHC_EISTER_EMMC_CMDEND_Pos)
1294 #define SDHC_EISTER_EMMC_CMDEND_MASKED_Val _U_(0x0)
1295 #define SDHC_EISTER_EMMC_CMDEND_ENABLED_Val _U_(0x1)
1296 #define SDHC_EISTER_EMMC_CMDEND_MASKED (SDHC_EISTER_EMMC_CMDEND_MASKED_Val << SDHC_EISTER_EMMC_CMDEND_Pos)
1297 #define SDHC_EISTER_EMMC_CMDEND_ENABLED (SDHC_EISTER_EMMC_CMDEND_ENABLED_Val << SDHC_EISTER_EMMC_CMDEND_Pos)
1298 #define SDHC_EISTER_EMMC_CMDIDX_Pos 3
1299 #define SDHC_EISTER_EMMC_CMDIDX (_U_(0x1) << SDHC_EISTER_EMMC_CMDIDX_Pos)
1300 #define SDHC_EISTER_EMMC_CMDIDX_MASKED_Val _U_(0x0)
1301 #define SDHC_EISTER_EMMC_CMDIDX_ENABLED_Val _U_(0x1)
1302 #define SDHC_EISTER_EMMC_CMDIDX_MASKED (SDHC_EISTER_EMMC_CMDIDX_MASKED_Val << SDHC_EISTER_EMMC_CMDIDX_Pos)
1303 #define SDHC_EISTER_EMMC_CMDIDX_ENABLED (SDHC_EISTER_EMMC_CMDIDX_ENABLED_Val << SDHC_EISTER_EMMC_CMDIDX_Pos)
1304 #define SDHC_EISTER_EMMC_DATTEO_Pos 4
1305 #define SDHC_EISTER_EMMC_DATTEO (_U_(0x1) << SDHC_EISTER_EMMC_DATTEO_Pos)
1306 #define SDHC_EISTER_EMMC_DATTEO_MASKED_Val _U_(0x0)
1307 #define SDHC_EISTER_EMMC_DATTEO_ENABLED_Val _U_(0x1)
1308 #define SDHC_EISTER_EMMC_DATTEO_MASKED (SDHC_EISTER_EMMC_DATTEO_MASKED_Val << SDHC_EISTER_EMMC_DATTEO_Pos)
1309 #define SDHC_EISTER_EMMC_DATTEO_ENABLED (SDHC_EISTER_EMMC_DATTEO_ENABLED_Val << SDHC_EISTER_EMMC_DATTEO_Pos)
1310 #define SDHC_EISTER_EMMC_DATCRC_Pos 5
1311 #define SDHC_EISTER_EMMC_DATCRC (_U_(0x1) << SDHC_EISTER_EMMC_DATCRC_Pos)
1312 #define SDHC_EISTER_EMMC_DATCRC_MASKED_Val _U_(0x0)
1313 #define SDHC_EISTER_EMMC_DATCRC_ENABLED_Val _U_(0x1)
1314 #define SDHC_EISTER_EMMC_DATCRC_MASKED (SDHC_EISTER_EMMC_DATCRC_MASKED_Val << SDHC_EISTER_EMMC_DATCRC_Pos)
1315 #define SDHC_EISTER_EMMC_DATCRC_ENABLED (SDHC_EISTER_EMMC_DATCRC_ENABLED_Val << SDHC_EISTER_EMMC_DATCRC_Pos)
1316 #define SDHC_EISTER_EMMC_DATEND_Pos 6
1317 #define SDHC_EISTER_EMMC_DATEND (_U_(0x1) << SDHC_EISTER_EMMC_DATEND_Pos)
1318 #define SDHC_EISTER_EMMC_DATEND_MASKED_Val _U_(0x0)
1319 #define SDHC_EISTER_EMMC_DATEND_ENABLED_Val _U_(0x1)
1320 #define SDHC_EISTER_EMMC_DATEND_MASKED (SDHC_EISTER_EMMC_DATEND_MASKED_Val << SDHC_EISTER_EMMC_DATEND_Pos)
1321 #define SDHC_EISTER_EMMC_DATEND_ENABLED (SDHC_EISTER_EMMC_DATEND_ENABLED_Val << SDHC_EISTER_EMMC_DATEND_Pos)
1322 #define SDHC_EISTER_EMMC_CURLIM_Pos 7
1323 #define SDHC_EISTER_EMMC_CURLIM (_U_(0x1) << SDHC_EISTER_EMMC_CURLIM_Pos)
1324 #define SDHC_EISTER_EMMC_CURLIM_MASKED_Val _U_(0x0)
1325 #define SDHC_EISTER_EMMC_CURLIM_ENABLED_Val _U_(0x1)
1326 #define SDHC_EISTER_EMMC_CURLIM_MASKED (SDHC_EISTER_EMMC_CURLIM_MASKED_Val << SDHC_EISTER_EMMC_CURLIM_Pos)
1327 #define SDHC_EISTER_EMMC_CURLIM_ENABLED (SDHC_EISTER_EMMC_CURLIM_ENABLED_Val << SDHC_EISTER_EMMC_CURLIM_Pos)
1328 #define SDHC_EISTER_EMMC_ACMD_Pos 8
1329 #define SDHC_EISTER_EMMC_ACMD (_U_(0x1) << SDHC_EISTER_EMMC_ACMD_Pos)
1330 #define SDHC_EISTER_EMMC_ACMD_MASKED_Val _U_(0x0)
1331 #define SDHC_EISTER_EMMC_ACMD_ENABLED_Val _U_(0x1)
1332 #define SDHC_EISTER_EMMC_ACMD_MASKED (SDHC_EISTER_EMMC_ACMD_MASKED_Val << SDHC_EISTER_EMMC_ACMD_Pos)
1333 #define SDHC_EISTER_EMMC_ACMD_ENABLED (SDHC_EISTER_EMMC_ACMD_ENABLED_Val << SDHC_EISTER_EMMC_ACMD_Pos)
1334 #define SDHC_EISTER_EMMC_ADMA_Pos 9
1335 #define SDHC_EISTER_EMMC_ADMA (_U_(0x1) << SDHC_EISTER_EMMC_ADMA_Pos)
1336 #define SDHC_EISTER_EMMC_ADMA_MASKED_Val _U_(0x0)
1337 #define SDHC_EISTER_EMMC_ADMA_ENABLED_Val _U_(0x1)
1338 #define SDHC_EISTER_EMMC_ADMA_MASKED (SDHC_EISTER_EMMC_ADMA_MASKED_Val << SDHC_EISTER_EMMC_ADMA_Pos)
1339 #define SDHC_EISTER_EMMC_ADMA_ENABLED (SDHC_EISTER_EMMC_ADMA_ENABLED_Val << SDHC_EISTER_EMMC_ADMA_Pos)
1340 #define SDHC_EISTER_EMMC_BOOTAE_Pos 12
1341 #define SDHC_EISTER_EMMC_BOOTAE (_U_(0x1) << SDHC_EISTER_EMMC_BOOTAE_Pos)
1342 #define SDHC_EISTER_EMMC_MASK _U_(0x13FF)
1345 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1374 #define SDHC_NISIER_OFFSET 0x038
1375 #define SDHC_NISIER_RESETVALUE _U_(0x0000)
1377 #define SDHC_NISIER_CMDC_Pos 0
1378 #define SDHC_NISIER_CMDC (_U_(0x1) << SDHC_NISIER_CMDC_Pos)
1379 #define SDHC_NISIER_CMDC_MASKED_Val _U_(0x0)
1380 #define SDHC_NISIER_CMDC_ENABLED_Val _U_(0x1)
1381 #define SDHC_NISIER_CMDC_MASKED (SDHC_NISIER_CMDC_MASKED_Val << SDHC_NISIER_CMDC_Pos)
1382 #define SDHC_NISIER_CMDC_ENABLED (SDHC_NISIER_CMDC_ENABLED_Val << SDHC_NISIER_CMDC_Pos)
1383 #define SDHC_NISIER_TRFC_Pos 1
1384 #define SDHC_NISIER_TRFC (_U_(0x1) << SDHC_NISIER_TRFC_Pos)
1385 #define SDHC_NISIER_TRFC_MASKED_Val _U_(0x0)
1386 #define SDHC_NISIER_TRFC_ENABLED_Val _U_(0x1)
1387 #define SDHC_NISIER_TRFC_MASKED (SDHC_NISIER_TRFC_MASKED_Val << SDHC_NISIER_TRFC_Pos)
1388 #define SDHC_NISIER_TRFC_ENABLED (SDHC_NISIER_TRFC_ENABLED_Val << SDHC_NISIER_TRFC_Pos)
1389 #define SDHC_NISIER_BLKGE_Pos 2
1390 #define SDHC_NISIER_BLKGE (_U_(0x1) << SDHC_NISIER_BLKGE_Pos)
1391 #define SDHC_NISIER_BLKGE_MASKED_Val _U_(0x0)
1392 #define SDHC_NISIER_BLKGE_ENABLED_Val _U_(0x1)
1393 #define SDHC_NISIER_BLKGE_MASKED (SDHC_NISIER_BLKGE_MASKED_Val << SDHC_NISIER_BLKGE_Pos)
1394 #define SDHC_NISIER_BLKGE_ENABLED (SDHC_NISIER_BLKGE_ENABLED_Val << SDHC_NISIER_BLKGE_Pos)
1395 #define SDHC_NISIER_DMAINT_Pos 3
1396 #define SDHC_NISIER_DMAINT (_U_(0x1) << SDHC_NISIER_DMAINT_Pos)
1397 #define SDHC_NISIER_DMAINT_MASKED_Val _U_(0x0)
1398 #define SDHC_NISIER_DMAINT_ENABLED_Val _U_(0x1)
1399 #define SDHC_NISIER_DMAINT_MASKED (SDHC_NISIER_DMAINT_MASKED_Val << SDHC_NISIER_DMAINT_Pos)
1400 #define SDHC_NISIER_DMAINT_ENABLED (SDHC_NISIER_DMAINT_ENABLED_Val << SDHC_NISIER_DMAINT_Pos)
1401 #define SDHC_NISIER_BWRRDY_Pos 4
1402 #define SDHC_NISIER_BWRRDY (_U_(0x1) << SDHC_NISIER_BWRRDY_Pos)
1403 #define SDHC_NISIER_BWRRDY_MASKED_Val _U_(0x0)
1404 #define SDHC_NISIER_BWRRDY_ENABLED_Val _U_(0x1)
1405 #define SDHC_NISIER_BWRRDY_MASKED (SDHC_NISIER_BWRRDY_MASKED_Val << SDHC_NISIER_BWRRDY_Pos)
1406 #define SDHC_NISIER_BWRRDY_ENABLED (SDHC_NISIER_BWRRDY_ENABLED_Val << SDHC_NISIER_BWRRDY_Pos)
1407 #define SDHC_NISIER_BRDRDY_Pos 5
1408 #define SDHC_NISIER_BRDRDY (_U_(0x1) << SDHC_NISIER_BRDRDY_Pos)
1409 #define SDHC_NISIER_BRDRDY_MASKED_Val _U_(0x0)
1410 #define SDHC_NISIER_BRDRDY_ENABLED_Val _U_(0x1)
1411 #define SDHC_NISIER_BRDRDY_MASKED (SDHC_NISIER_BRDRDY_MASKED_Val << SDHC_NISIER_BRDRDY_Pos)
1412 #define SDHC_NISIER_BRDRDY_ENABLED (SDHC_NISIER_BRDRDY_ENABLED_Val << SDHC_NISIER_BRDRDY_Pos)
1413 #define SDHC_NISIER_CINS_Pos 6
1414 #define SDHC_NISIER_CINS (_U_(0x1) << SDHC_NISIER_CINS_Pos)
1415 #define SDHC_NISIER_CINS_MASKED_Val _U_(0x0)
1416 #define SDHC_NISIER_CINS_ENABLED_Val _U_(0x1)
1417 #define SDHC_NISIER_CINS_MASKED (SDHC_NISIER_CINS_MASKED_Val << SDHC_NISIER_CINS_Pos)
1418 #define SDHC_NISIER_CINS_ENABLED (SDHC_NISIER_CINS_ENABLED_Val << SDHC_NISIER_CINS_Pos)
1419 #define SDHC_NISIER_CREM_Pos 7
1420 #define SDHC_NISIER_CREM (_U_(0x1) << SDHC_NISIER_CREM_Pos)
1421 #define SDHC_NISIER_CREM_MASKED_Val _U_(0x0)
1422 #define SDHC_NISIER_CREM_ENABLED_Val _U_(0x1)
1423 #define SDHC_NISIER_CREM_MASKED (SDHC_NISIER_CREM_MASKED_Val << SDHC_NISIER_CREM_Pos)
1424 #define SDHC_NISIER_CREM_ENABLED (SDHC_NISIER_CREM_ENABLED_Val << SDHC_NISIER_CREM_Pos)
1425 #define SDHC_NISIER_CINT_Pos 8
1426 #define SDHC_NISIER_CINT (_U_(0x1) << SDHC_NISIER_CINT_Pos)
1427 #define SDHC_NISIER_CINT_MASKED_Val _U_(0x0)
1428 #define SDHC_NISIER_CINT_ENABLED_Val _U_(0x1)
1429 #define SDHC_NISIER_CINT_MASKED (SDHC_NISIER_CINT_MASKED_Val << SDHC_NISIER_CINT_Pos)
1430 #define SDHC_NISIER_CINT_ENABLED (SDHC_NISIER_CINT_ENABLED_Val << SDHC_NISIER_CINT_Pos)
1431 #define SDHC_NISIER_MASK _U_(0x01FF)
1434 #define SDHC_NISIER_EMMC_CMDC_Pos 0
1435 #define SDHC_NISIER_EMMC_CMDC (_U_(0x1) << SDHC_NISIER_EMMC_CMDC_Pos)
1436 #define SDHC_NISIER_EMMC_CMDC_MASKED_Val _U_(0x0)
1437 #define SDHC_NISIER_EMMC_CMDC_ENABLED_Val _U_(0x1)
1438 #define SDHC_NISIER_EMMC_CMDC_MASKED (SDHC_NISIER_EMMC_CMDC_MASKED_Val << SDHC_NISIER_EMMC_CMDC_Pos)
1439 #define SDHC_NISIER_EMMC_CMDC_ENABLED (SDHC_NISIER_EMMC_CMDC_ENABLED_Val << SDHC_NISIER_EMMC_CMDC_Pos)
1440 #define SDHC_NISIER_EMMC_TRFC_Pos 1
1441 #define SDHC_NISIER_EMMC_TRFC (_U_(0x1) << SDHC_NISIER_EMMC_TRFC_Pos)
1442 #define SDHC_NISIER_EMMC_TRFC_MASKED_Val _U_(0x0)
1443 #define SDHC_NISIER_EMMC_TRFC_ENABLED_Val _U_(0x1)
1444 #define SDHC_NISIER_EMMC_TRFC_MASKED (SDHC_NISIER_EMMC_TRFC_MASKED_Val << SDHC_NISIER_EMMC_TRFC_Pos)
1445 #define SDHC_NISIER_EMMC_TRFC_ENABLED (SDHC_NISIER_EMMC_TRFC_ENABLED_Val << SDHC_NISIER_EMMC_TRFC_Pos)
1446 #define SDHC_NISIER_EMMC_BLKGE_Pos 2
1447 #define SDHC_NISIER_EMMC_BLKGE (_U_(0x1) << SDHC_NISIER_EMMC_BLKGE_Pos)
1448 #define SDHC_NISIER_EMMC_BLKGE_MASKED_Val _U_(0x0)
1449 #define SDHC_NISIER_EMMC_BLKGE_ENABLED_Val _U_(0x1)
1450 #define SDHC_NISIER_EMMC_BLKGE_MASKED (SDHC_NISIER_EMMC_BLKGE_MASKED_Val << SDHC_NISIER_EMMC_BLKGE_Pos)
1451 #define SDHC_NISIER_EMMC_BLKGE_ENABLED (SDHC_NISIER_EMMC_BLKGE_ENABLED_Val << SDHC_NISIER_EMMC_BLKGE_Pos)
1452 #define SDHC_NISIER_EMMC_DMAINT_Pos 3
1453 #define SDHC_NISIER_EMMC_DMAINT (_U_(0x1) << SDHC_NISIER_EMMC_DMAINT_Pos)
1454 #define SDHC_NISIER_EMMC_DMAINT_MASKED_Val _U_(0x0)
1455 #define SDHC_NISIER_EMMC_DMAINT_ENABLED_Val _U_(0x1)
1456 #define SDHC_NISIER_EMMC_DMAINT_MASKED (SDHC_NISIER_EMMC_DMAINT_MASKED_Val << SDHC_NISIER_EMMC_DMAINT_Pos)
1457 #define SDHC_NISIER_EMMC_DMAINT_ENABLED (SDHC_NISIER_EMMC_DMAINT_ENABLED_Val << SDHC_NISIER_EMMC_DMAINT_Pos)
1458 #define SDHC_NISIER_EMMC_BWRRDY_Pos 4
1459 #define SDHC_NISIER_EMMC_BWRRDY (_U_(0x1) << SDHC_NISIER_EMMC_BWRRDY_Pos)
1460 #define SDHC_NISIER_EMMC_BWRRDY_MASKED_Val _U_(0x0)
1461 #define SDHC_NISIER_EMMC_BWRRDY_ENABLED_Val _U_(0x1)
1462 #define SDHC_NISIER_EMMC_BWRRDY_MASKED (SDHC_NISIER_EMMC_BWRRDY_MASKED_Val << SDHC_NISIER_EMMC_BWRRDY_Pos)
1463 #define SDHC_NISIER_EMMC_BWRRDY_ENABLED (SDHC_NISIER_EMMC_BWRRDY_ENABLED_Val << SDHC_NISIER_EMMC_BWRRDY_Pos)
1464 #define SDHC_NISIER_EMMC_BRDRDY_Pos 5
1465 #define SDHC_NISIER_EMMC_BRDRDY (_U_(0x1) << SDHC_NISIER_EMMC_BRDRDY_Pos)
1466 #define SDHC_NISIER_EMMC_BRDRDY_MASKED_Val _U_(0x0)
1467 #define SDHC_NISIER_EMMC_BRDRDY_ENABLED_Val _U_(0x1)
1468 #define SDHC_NISIER_EMMC_BRDRDY_MASKED (SDHC_NISIER_EMMC_BRDRDY_MASKED_Val << SDHC_NISIER_EMMC_BRDRDY_Pos)
1469 #define SDHC_NISIER_EMMC_BRDRDY_ENABLED (SDHC_NISIER_EMMC_BRDRDY_ENABLED_Val << SDHC_NISIER_EMMC_BRDRDY_Pos)
1470 #define SDHC_NISIER_EMMC_BOOTAR_Pos 14
1471 #define SDHC_NISIER_EMMC_BOOTAR (_U_(0x1) << SDHC_NISIER_EMMC_BOOTAR_Pos)
1472 #define SDHC_NISIER_EMMC_MASK _U_(0x403F)
1475 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1509 #define SDHC_EISIER_OFFSET 0x03A
1510 #define SDHC_EISIER_RESETVALUE _U_(0x0000)
1512 #define SDHC_EISIER_CMDTEO_Pos 0
1513 #define SDHC_EISIER_CMDTEO (_U_(0x1) << SDHC_EISIER_CMDTEO_Pos)
1514 #define SDHC_EISIER_CMDTEO_MASKED_Val _U_(0x0)
1515 #define SDHC_EISIER_CMDTEO_ENABLED_Val _U_(0x1)
1516 #define SDHC_EISIER_CMDTEO_MASKED (SDHC_EISIER_CMDTEO_MASKED_Val << SDHC_EISIER_CMDTEO_Pos)
1517 #define SDHC_EISIER_CMDTEO_ENABLED (SDHC_EISIER_CMDTEO_ENABLED_Val << SDHC_EISIER_CMDTEO_Pos)
1518 #define SDHC_EISIER_CMDCRC_Pos 1
1519 #define SDHC_EISIER_CMDCRC (_U_(0x1) << SDHC_EISIER_CMDCRC_Pos)
1520 #define SDHC_EISIER_CMDCRC_MASKED_Val _U_(0x0)
1521 #define SDHC_EISIER_CMDCRC_ENABLED_Val _U_(0x1)
1522 #define SDHC_EISIER_CMDCRC_MASKED (SDHC_EISIER_CMDCRC_MASKED_Val << SDHC_EISIER_CMDCRC_Pos)
1523 #define SDHC_EISIER_CMDCRC_ENABLED (SDHC_EISIER_CMDCRC_ENABLED_Val << SDHC_EISIER_CMDCRC_Pos)
1524 #define SDHC_EISIER_CMDEND_Pos 2
1525 #define SDHC_EISIER_CMDEND (_U_(0x1) << SDHC_EISIER_CMDEND_Pos)
1526 #define SDHC_EISIER_CMDEND_MASKED_Val _U_(0x0)
1527 #define SDHC_EISIER_CMDEND_ENABLED_Val _U_(0x1)
1528 #define SDHC_EISIER_CMDEND_MASKED (SDHC_EISIER_CMDEND_MASKED_Val << SDHC_EISIER_CMDEND_Pos)
1529 #define SDHC_EISIER_CMDEND_ENABLED (SDHC_EISIER_CMDEND_ENABLED_Val << SDHC_EISIER_CMDEND_Pos)
1530 #define SDHC_EISIER_CMDIDX_Pos 3
1531 #define SDHC_EISIER_CMDIDX (_U_(0x1) << SDHC_EISIER_CMDIDX_Pos)
1532 #define SDHC_EISIER_CMDIDX_MASKED_Val _U_(0x0)
1533 #define SDHC_EISIER_CMDIDX_ENABLED_Val _U_(0x1)
1534 #define SDHC_EISIER_CMDIDX_MASKED (SDHC_EISIER_CMDIDX_MASKED_Val << SDHC_EISIER_CMDIDX_Pos)
1535 #define SDHC_EISIER_CMDIDX_ENABLED (SDHC_EISIER_CMDIDX_ENABLED_Val << SDHC_EISIER_CMDIDX_Pos)
1536 #define SDHC_EISIER_DATTEO_Pos 4
1537 #define SDHC_EISIER_DATTEO (_U_(0x1) << SDHC_EISIER_DATTEO_Pos)
1538 #define SDHC_EISIER_DATTEO_MASKED_Val _U_(0x0)
1539 #define SDHC_EISIER_DATTEO_ENABLED_Val _U_(0x1)
1540 #define SDHC_EISIER_DATTEO_MASKED (SDHC_EISIER_DATTEO_MASKED_Val << SDHC_EISIER_DATTEO_Pos)
1541 #define SDHC_EISIER_DATTEO_ENABLED (SDHC_EISIER_DATTEO_ENABLED_Val << SDHC_EISIER_DATTEO_Pos)
1542 #define SDHC_EISIER_DATCRC_Pos 5
1543 #define SDHC_EISIER_DATCRC (_U_(0x1) << SDHC_EISIER_DATCRC_Pos)
1544 #define SDHC_EISIER_DATCRC_MASKED_Val _U_(0x0)
1545 #define SDHC_EISIER_DATCRC_ENABLED_Val _U_(0x1)
1546 #define SDHC_EISIER_DATCRC_MASKED (SDHC_EISIER_DATCRC_MASKED_Val << SDHC_EISIER_DATCRC_Pos)
1547 #define SDHC_EISIER_DATCRC_ENABLED (SDHC_EISIER_DATCRC_ENABLED_Val << SDHC_EISIER_DATCRC_Pos)
1548 #define SDHC_EISIER_DATEND_Pos 6
1549 #define SDHC_EISIER_DATEND (_U_(0x1) << SDHC_EISIER_DATEND_Pos)
1550 #define SDHC_EISIER_DATEND_MASKED_Val _U_(0x0)
1551 #define SDHC_EISIER_DATEND_ENABLED_Val _U_(0x1)
1552 #define SDHC_EISIER_DATEND_MASKED (SDHC_EISIER_DATEND_MASKED_Val << SDHC_EISIER_DATEND_Pos)
1553 #define SDHC_EISIER_DATEND_ENABLED (SDHC_EISIER_DATEND_ENABLED_Val << SDHC_EISIER_DATEND_Pos)
1554 #define SDHC_EISIER_CURLIM_Pos 7
1555 #define SDHC_EISIER_CURLIM (_U_(0x1) << SDHC_EISIER_CURLIM_Pos)
1556 #define SDHC_EISIER_CURLIM_MASKED_Val _U_(0x0)
1557 #define SDHC_EISIER_CURLIM_ENABLED_Val _U_(0x1)
1558 #define SDHC_EISIER_CURLIM_MASKED (SDHC_EISIER_CURLIM_MASKED_Val << SDHC_EISIER_CURLIM_Pos)
1559 #define SDHC_EISIER_CURLIM_ENABLED (SDHC_EISIER_CURLIM_ENABLED_Val << SDHC_EISIER_CURLIM_Pos)
1560 #define SDHC_EISIER_ACMD_Pos 8
1561 #define SDHC_EISIER_ACMD (_U_(0x1) << SDHC_EISIER_ACMD_Pos)
1562 #define SDHC_EISIER_ACMD_MASKED_Val _U_(0x0)
1563 #define SDHC_EISIER_ACMD_ENABLED_Val _U_(0x1)
1564 #define SDHC_EISIER_ACMD_MASKED (SDHC_EISIER_ACMD_MASKED_Val << SDHC_EISIER_ACMD_Pos)
1565 #define SDHC_EISIER_ACMD_ENABLED (SDHC_EISIER_ACMD_ENABLED_Val << SDHC_EISIER_ACMD_Pos)
1566 #define SDHC_EISIER_ADMA_Pos 9
1567 #define SDHC_EISIER_ADMA (_U_(0x1) << SDHC_EISIER_ADMA_Pos)
1568 #define SDHC_EISIER_ADMA_MASKED_Val _U_(0x0)
1569 #define SDHC_EISIER_ADMA_ENABLED_Val _U_(0x1)
1570 #define SDHC_EISIER_ADMA_MASKED (SDHC_EISIER_ADMA_MASKED_Val << SDHC_EISIER_ADMA_Pos)
1571 #define SDHC_EISIER_ADMA_ENABLED (SDHC_EISIER_ADMA_ENABLED_Val << SDHC_EISIER_ADMA_Pos)
1572 #define SDHC_EISIER_MASK _U_(0x03FF)
1575 #define SDHC_EISIER_EMMC_CMDTEO_Pos 0
1576 #define SDHC_EISIER_EMMC_CMDTEO (_U_(0x1) << SDHC_EISIER_EMMC_CMDTEO_Pos)
1577 #define SDHC_EISIER_EMMC_CMDTEO_MASKED_Val _U_(0x0)
1578 #define SDHC_EISIER_EMMC_CMDTEO_ENABLED_Val _U_(0x1)
1579 #define SDHC_EISIER_EMMC_CMDTEO_MASKED (SDHC_EISIER_EMMC_CMDTEO_MASKED_Val << SDHC_EISIER_EMMC_CMDTEO_Pos)
1580 #define SDHC_EISIER_EMMC_CMDTEO_ENABLED (SDHC_EISIER_EMMC_CMDTEO_ENABLED_Val << SDHC_EISIER_EMMC_CMDTEO_Pos)
1581 #define SDHC_EISIER_EMMC_CMDCRC_Pos 1
1582 #define SDHC_EISIER_EMMC_CMDCRC (_U_(0x1) << SDHC_EISIER_EMMC_CMDCRC_Pos)
1583 #define SDHC_EISIER_EMMC_CMDCRC_MASKED_Val _U_(0x0)
1584 #define SDHC_EISIER_EMMC_CMDCRC_ENABLED_Val _U_(0x1)
1585 #define SDHC_EISIER_EMMC_CMDCRC_MASKED (SDHC_EISIER_EMMC_CMDCRC_MASKED_Val << SDHC_EISIER_EMMC_CMDCRC_Pos)
1586 #define SDHC_EISIER_EMMC_CMDCRC_ENABLED (SDHC_EISIER_EMMC_CMDCRC_ENABLED_Val << SDHC_EISIER_EMMC_CMDCRC_Pos)
1587 #define SDHC_EISIER_EMMC_CMDEND_Pos 2
1588 #define SDHC_EISIER_EMMC_CMDEND (_U_(0x1) << SDHC_EISIER_EMMC_CMDEND_Pos)
1589 #define SDHC_EISIER_EMMC_CMDEND_MASKED_Val _U_(0x0)
1590 #define SDHC_EISIER_EMMC_CMDEND_ENABLED_Val _U_(0x1)
1591 #define SDHC_EISIER_EMMC_CMDEND_MASKED (SDHC_EISIER_EMMC_CMDEND_MASKED_Val << SDHC_EISIER_EMMC_CMDEND_Pos)
1592 #define SDHC_EISIER_EMMC_CMDEND_ENABLED (SDHC_EISIER_EMMC_CMDEND_ENABLED_Val << SDHC_EISIER_EMMC_CMDEND_Pos)
1593 #define SDHC_EISIER_EMMC_CMDIDX_Pos 3
1594 #define SDHC_EISIER_EMMC_CMDIDX (_U_(0x1) << SDHC_EISIER_EMMC_CMDIDX_Pos)
1595 #define SDHC_EISIER_EMMC_CMDIDX_MASKED_Val _U_(0x0)
1596 #define SDHC_EISIER_EMMC_CMDIDX_ENABLED_Val _U_(0x1)
1597 #define SDHC_EISIER_EMMC_CMDIDX_MASKED (SDHC_EISIER_EMMC_CMDIDX_MASKED_Val << SDHC_EISIER_EMMC_CMDIDX_Pos)
1598 #define SDHC_EISIER_EMMC_CMDIDX_ENABLED (SDHC_EISIER_EMMC_CMDIDX_ENABLED_Val << SDHC_EISIER_EMMC_CMDIDX_Pos)
1599 #define SDHC_EISIER_EMMC_DATTEO_Pos 4
1600 #define SDHC_EISIER_EMMC_DATTEO (_U_(0x1) << SDHC_EISIER_EMMC_DATTEO_Pos)
1601 #define SDHC_EISIER_EMMC_DATTEO_MASKED_Val _U_(0x0)
1602 #define SDHC_EISIER_EMMC_DATTEO_ENABLED_Val _U_(0x1)
1603 #define SDHC_EISIER_EMMC_DATTEO_MASKED (SDHC_EISIER_EMMC_DATTEO_MASKED_Val << SDHC_EISIER_EMMC_DATTEO_Pos)
1604 #define SDHC_EISIER_EMMC_DATTEO_ENABLED (SDHC_EISIER_EMMC_DATTEO_ENABLED_Val << SDHC_EISIER_EMMC_DATTEO_Pos)
1605 #define SDHC_EISIER_EMMC_DATCRC_Pos 5
1606 #define SDHC_EISIER_EMMC_DATCRC (_U_(0x1) << SDHC_EISIER_EMMC_DATCRC_Pos)
1607 #define SDHC_EISIER_EMMC_DATCRC_MASKED_Val _U_(0x0)
1608 #define SDHC_EISIER_EMMC_DATCRC_ENABLED_Val _U_(0x1)
1609 #define SDHC_EISIER_EMMC_DATCRC_MASKED (SDHC_EISIER_EMMC_DATCRC_MASKED_Val << SDHC_EISIER_EMMC_DATCRC_Pos)
1610 #define SDHC_EISIER_EMMC_DATCRC_ENABLED (SDHC_EISIER_EMMC_DATCRC_ENABLED_Val << SDHC_EISIER_EMMC_DATCRC_Pos)
1611 #define SDHC_EISIER_EMMC_DATEND_Pos 6
1612 #define SDHC_EISIER_EMMC_DATEND (_U_(0x1) << SDHC_EISIER_EMMC_DATEND_Pos)
1613 #define SDHC_EISIER_EMMC_DATEND_MASKED_Val _U_(0x0)
1614 #define SDHC_EISIER_EMMC_DATEND_ENABLED_Val _U_(0x1)
1615 #define SDHC_EISIER_EMMC_DATEND_MASKED (SDHC_EISIER_EMMC_DATEND_MASKED_Val << SDHC_EISIER_EMMC_DATEND_Pos)
1616 #define SDHC_EISIER_EMMC_DATEND_ENABLED (SDHC_EISIER_EMMC_DATEND_ENABLED_Val << SDHC_EISIER_EMMC_DATEND_Pos)
1617 #define SDHC_EISIER_EMMC_CURLIM_Pos 7
1618 #define SDHC_EISIER_EMMC_CURLIM (_U_(0x1) << SDHC_EISIER_EMMC_CURLIM_Pos)
1619 #define SDHC_EISIER_EMMC_CURLIM_MASKED_Val _U_(0x0)
1620 #define SDHC_EISIER_EMMC_CURLIM_ENABLED_Val _U_(0x1)
1621 #define SDHC_EISIER_EMMC_CURLIM_MASKED (SDHC_EISIER_EMMC_CURLIM_MASKED_Val << SDHC_EISIER_EMMC_CURLIM_Pos)
1622 #define SDHC_EISIER_EMMC_CURLIM_ENABLED (SDHC_EISIER_EMMC_CURLIM_ENABLED_Val << SDHC_EISIER_EMMC_CURLIM_Pos)
1623 #define SDHC_EISIER_EMMC_ACMD_Pos 8
1624 #define SDHC_EISIER_EMMC_ACMD (_U_(0x1) << SDHC_EISIER_EMMC_ACMD_Pos)
1625 #define SDHC_EISIER_EMMC_ACMD_MASKED_Val _U_(0x0)
1626 #define SDHC_EISIER_EMMC_ACMD_ENABLED_Val _U_(0x1)
1627 #define SDHC_EISIER_EMMC_ACMD_MASKED (SDHC_EISIER_EMMC_ACMD_MASKED_Val << SDHC_EISIER_EMMC_ACMD_Pos)
1628 #define SDHC_EISIER_EMMC_ACMD_ENABLED (SDHC_EISIER_EMMC_ACMD_ENABLED_Val << SDHC_EISIER_EMMC_ACMD_Pos)
1629 #define SDHC_EISIER_EMMC_ADMA_Pos 9
1630 #define SDHC_EISIER_EMMC_ADMA (_U_(0x1) << SDHC_EISIER_EMMC_ADMA_Pos)
1631 #define SDHC_EISIER_EMMC_ADMA_MASKED_Val _U_(0x0)
1632 #define SDHC_EISIER_EMMC_ADMA_ENABLED_Val _U_(0x1)
1633 #define SDHC_EISIER_EMMC_ADMA_MASKED (SDHC_EISIER_EMMC_ADMA_MASKED_Val << SDHC_EISIER_EMMC_ADMA_Pos)
1634 #define SDHC_EISIER_EMMC_ADMA_ENABLED (SDHC_EISIER_EMMC_ADMA_ENABLED_Val << SDHC_EISIER_EMMC_ADMA_Pos)
1635 #define SDHC_EISIER_EMMC_BOOTAE_Pos 12
1636 #define SDHC_EISIER_EMMC_BOOTAE (_U_(0x1) << SDHC_EISIER_EMMC_BOOTAE_Pos)
1637 #define SDHC_EISIER_EMMC_MASK _U_(0x13FF)
1640 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1656 #define SDHC_ACESR_OFFSET 0x03C
1657 #define SDHC_ACESR_RESETVALUE _U_(0x0000)
1659 #define SDHC_ACESR_ACMD12NE_Pos 0
1660 #define SDHC_ACESR_ACMD12NE (_U_(0x1) << SDHC_ACESR_ACMD12NE_Pos)
1661 #define SDHC_ACESR_ACMD12NE_EXEC_Val _U_(0x0)
1662 #define SDHC_ACESR_ACMD12NE_NOT_EXEC_Val _U_(0x1)
1663 #define SDHC_ACESR_ACMD12NE_EXEC (SDHC_ACESR_ACMD12NE_EXEC_Val << SDHC_ACESR_ACMD12NE_Pos)
1664 #define SDHC_ACESR_ACMD12NE_NOT_EXEC (SDHC_ACESR_ACMD12NE_NOT_EXEC_Val << SDHC_ACESR_ACMD12NE_Pos)
1665 #define SDHC_ACESR_ACMDTEO_Pos 1
1666 #define SDHC_ACESR_ACMDTEO (_U_(0x1) << SDHC_ACESR_ACMDTEO_Pos)
1667 #define SDHC_ACESR_ACMDTEO_NO_Val _U_(0x0)
1668 #define SDHC_ACESR_ACMDTEO_YES_Val _U_(0x1)
1669 #define SDHC_ACESR_ACMDTEO_NO (SDHC_ACESR_ACMDTEO_NO_Val << SDHC_ACESR_ACMDTEO_Pos)
1670 #define SDHC_ACESR_ACMDTEO_YES (SDHC_ACESR_ACMDTEO_YES_Val << SDHC_ACESR_ACMDTEO_Pos)
1671 #define SDHC_ACESR_ACMDCRC_Pos 2
1672 #define SDHC_ACESR_ACMDCRC (_U_(0x1) << SDHC_ACESR_ACMDCRC_Pos)
1673 #define SDHC_ACESR_ACMDCRC_NO_Val _U_(0x0)
1674 #define SDHC_ACESR_ACMDCRC_YES_Val _U_(0x1)
1675 #define SDHC_ACESR_ACMDCRC_NO (SDHC_ACESR_ACMDCRC_NO_Val << SDHC_ACESR_ACMDCRC_Pos)
1676 #define SDHC_ACESR_ACMDCRC_YES (SDHC_ACESR_ACMDCRC_YES_Val << SDHC_ACESR_ACMDCRC_Pos)
1677 #define SDHC_ACESR_ACMDEND_Pos 3
1678 #define SDHC_ACESR_ACMDEND (_U_(0x1) << SDHC_ACESR_ACMDEND_Pos)
1679 #define SDHC_ACESR_ACMDEND_NO_Val _U_(0x0)
1680 #define SDHC_ACESR_ACMDEND_YES_Val _U_(0x1)
1681 #define SDHC_ACESR_ACMDEND_NO (SDHC_ACESR_ACMDEND_NO_Val << SDHC_ACESR_ACMDEND_Pos)
1682 #define SDHC_ACESR_ACMDEND_YES (SDHC_ACESR_ACMDEND_YES_Val << SDHC_ACESR_ACMDEND_Pos)
1683 #define SDHC_ACESR_ACMDIDX_Pos 4
1684 #define SDHC_ACESR_ACMDIDX (_U_(0x1) << SDHC_ACESR_ACMDIDX_Pos)
1685 #define SDHC_ACESR_ACMDIDX_NO_Val _U_(0x0)
1686 #define SDHC_ACESR_ACMDIDX_YES_Val _U_(0x1)
1687 #define SDHC_ACESR_ACMDIDX_NO (SDHC_ACESR_ACMDIDX_NO_Val << SDHC_ACESR_ACMDIDX_Pos)
1688 #define SDHC_ACESR_ACMDIDX_YES (SDHC_ACESR_ACMDIDX_YES_Val << SDHC_ACESR_ACMDIDX_Pos)
1689 #define SDHC_ACESR_CMDNI_Pos 7
1690 #define SDHC_ACESR_CMDNI (_U_(0x1) << SDHC_ACESR_CMDNI_Pos)
1691 #define SDHC_ACESR_CMDNI_OK_Val _U_(0x0)
1692 #define SDHC_ACESR_CMDNI_NOT_ISSUED_Val _U_(0x1)
1693 #define SDHC_ACESR_CMDNI_OK (SDHC_ACESR_CMDNI_OK_Val << SDHC_ACESR_CMDNI_Pos)
1694 #define SDHC_ACESR_CMDNI_NOT_ISSUED (SDHC_ACESR_CMDNI_NOT_ISSUED_Val << SDHC_ACESR_CMDNI_Pos)
1695 #define SDHC_ACESR_MASK _U_(0x009F)
1698 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1722 #define SDHC_HC2R_OFFSET 0x03E
1723 #define SDHC_HC2R_RESETVALUE _U_(0x0000)
1725 #define SDHC_HC2R_UHSMS_Pos 0
1726 #define SDHC_HC2R_UHSMS_Msk (_U_(0x7) << SDHC_HC2R_UHSMS_Pos)
1727 #define SDHC_HC2R_UHSMS(value) (SDHC_HC2R_UHSMS_Msk & ((value) << SDHC_HC2R_UHSMS_Pos))
1728 #define SDHC_HC2R_UHSMS_SDR12_Val _U_(0x0)
1729 #define SDHC_HC2R_UHSMS_SDR25_Val _U_(0x1)
1730 #define SDHC_HC2R_UHSMS_SDR50_Val _U_(0x2)
1731 #define SDHC_HC2R_UHSMS_SDR104_Val _U_(0x3)
1732 #define SDHC_HC2R_UHSMS_DDR50_Val _U_(0x4)
1733 #define SDHC_HC2R_UHSMS_SDR12 (SDHC_HC2R_UHSMS_SDR12_Val << SDHC_HC2R_UHSMS_Pos)
1734 #define SDHC_HC2R_UHSMS_SDR25 (SDHC_HC2R_UHSMS_SDR25_Val << SDHC_HC2R_UHSMS_Pos)
1735 #define SDHC_HC2R_UHSMS_SDR50 (SDHC_HC2R_UHSMS_SDR50_Val << SDHC_HC2R_UHSMS_Pos)
1736 #define SDHC_HC2R_UHSMS_SDR104 (SDHC_HC2R_UHSMS_SDR104_Val << SDHC_HC2R_UHSMS_Pos)
1737 #define SDHC_HC2R_UHSMS_DDR50 (SDHC_HC2R_UHSMS_DDR50_Val << SDHC_HC2R_UHSMS_Pos)
1738 #define SDHC_HC2R_VS18EN_Pos 3
1739 #define SDHC_HC2R_VS18EN (_U_(0x1) << SDHC_HC2R_VS18EN_Pos)
1740 #define SDHC_HC2R_VS18EN_S33V_Val _U_(0x0)
1741 #define SDHC_HC2R_VS18EN_S18V_Val _U_(0x1)
1742 #define SDHC_HC2R_VS18EN_S33V (SDHC_HC2R_VS18EN_S33V_Val << SDHC_HC2R_VS18EN_Pos)
1743 #define SDHC_HC2R_VS18EN_S18V (SDHC_HC2R_VS18EN_S18V_Val << SDHC_HC2R_VS18EN_Pos)
1744 #define SDHC_HC2R_DRVSEL_Pos 4
1745 #define SDHC_HC2R_DRVSEL_Msk (_U_(0x3) << SDHC_HC2R_DRVSEL_Pos)
1746 #define SDHC_HC2R_DRVSEL(value) (SDHC_HC2R_DRVSEL_Msk & ((value) << SDHC_HC2R_DRVSEL_Pos))
1747 #define SDHC_HC2R_DRVSEL_B_Val _U_(0x0)
1748 #define SDHC_HC2R_DRVSEL_A_Val _U_(0x1)
1749 #define SDHC_HC2R_DRVSEL_C_Val _U_(0x2)
1750 #define SDHC_HC2R_DRVSEL_D_Val _U_(0x3)
1751 #define SDHC_HC2R_DRVSEL_B (SDHC_HC2R_DRVSEL_B_Val << SDHC_HC2R_DRVSEL_Pos)
1752 #define SDHC_HC2R_DRVSEL_A (SDHC_HC2R_DRVSEL_A_Val << SDHC_HC2R_DRVSEL_Pos)
1753 #define SDHC_HC2R_DRVSEL_C (SDHC_HC2R_DRVSEL_C_Val << SDHC_HC2R_DRVSEL_Pos)
1754 #define SDHC_HC2R_DRVSEL_D (SDHC_HC2R_DRVSEL_D_Val << SDHC_HC2R_DRVSEL_Pos)
1755 #define SDHC_HC2R_EXTUN_Pos 6
1756 #define SDHC_HC2R_EXTUN (_U_(0x1) << SDHC_HC2R_EXTUN_Pos)
1757 #define SDHC_HC2R_EXTUN_NO_Val _U_(0x0)
1758 #define SDHC_HC2R_EXTUN_REQUESTED_Val _U_(0x1)
1759 #define SDHC_HC2R_EXTUN_NO (SDHC_HC2R_EXTUN_NO_Val << SDHC_HC2R_EXTUN_Pos)
1760 #define SDHC_HC2R_EXTUN_REQUESTED (SDHC_HC2R_EXTUN_REQUESTED_Val << SDHC_HC2R_EXTUN_Pos)
1761 #define SDHC_HC2R_SLCKSEL_Pos 7
1762 #define SDHC_HC2R_SLCKSEL (_U_(0x1) << SDHC_HC2R_SLCKSEL_Pos)
1763 #define SDHC_HC2R_SLCKSEL_FIXED_Val _U_(0x0)
1764 #define SDHC_HC2R_SLCKSEL_TUNED_Val _U_(0x1)
1765 #define SDHC_HC2R_SLCKSEL_FIXED (SDHC_HC2R_SLCKSEL_FIXED_Val << SDHC_HC2R_SLCKSEL_Pos)
1766 #define SDHC_HC2R_SLCKSEL_TUNED (SDHC_HC2R_SLCKSEL_TUNED_Val << SDHC_HC2R_SLCKSEL_Pos)
1767 #define SDHC_HC2R_ASINTEN_Pos 14
1768 #define SDHC_HC2R_ASINTEN (_U_(0x1) << SDHC_HC2R_ASINTEN_Pos)
1769 #define SDHC_HC2R_ASINTEN_DISABLED_Val _U_(0x0)
1770 #define SDHC_HC2R_ASINTEN_ENABLED_Val _U_(0x1)
1771 #define SDHC_HC2R_ASINTEN_DISABLED (SDHC_HC2R_ASINTEN_DISABLED_Val << SDHC_HC2R_ASINTEN_Pos)
1772 #define SDHC_HC2R_ASINTEN_ENABLED (SDHC_HC2R_ASINTEN_ENABLED_Val << SDHC_HC2R_ASINTEN_Pos)
1773 #define SDHC_HC2R_PVALEN_Pos 15
1774 #define SDHC_HC2R_PVALEN (_U_(0x1) << SDHC_HC2R_PVALEN_Pos)
1775 #define SDHC_HC2R_PVALEN_HOST_Val _U_(0x0)
1776 #define SDHC_HC2R_PVALEN_AUTO_Val _U_(0x1)
1777 #define SDHC_HC2R_PVALEN_HOST (SDHC_HC2R_PVALEN_HOST_Val << SDHC_HC2R_PVALEN_Pos)
1778 #define SDHC_HC2R_PVALEN_AUTO (SDHC_HC2R_PVALEN_AUTO_Val << SDHC_HC2R_PVALEN_Pos)
1779 #define SDHC_HC2R_MASK _U_(0xC0FF)
1782 #define SDHC_HC2R_EMMC_HS200EN_Pos 0
1783 #define SDHC_HC2R_EMMC_HS200EN_Msk (_U_(0xF) << SDHC_HC2R_EMMC_HS200EN_Pos)
1784 #define SDHC_HC2R_EMMC_HS200EN(value) (SDHC_HC2R_EMMC_HS200EN_Msk & ((value) << SDHC_HC2R_EMMC_HS200EN_Pos))
1785 #define SDHC_HC2R_EMMC_HS200EN_SDR12_Val _U_(0x0)
1786 #define SDHC_HC2R_EMMC_HS200EN_SDR25_Val _U_(0x1)
1787 #define SDHC_HC2R_EMMC_HS200EN_SDR50_Val _U_(0x2)
1788 #define SDHC_HC2R_EMMC_HS200EN_SDR104_Val _U_(0x3)
1789 #define SDHC_HC2R_EMMC_HS200EN_DDR50_Val _U_(0x4)
1790 #define SDHC_HC2R_EMMC_HS200EN_SDR12 (SDHC_HC2R_EMMC_HS200EN_SDR12_Val << SDHC_HC2R_EMMC_HS200EN_Pos)
1791 #define SDHC_HC2R_EMMC_HS200EN_SDR25 (SDHC_HC2R_EMMC_HS200EN_SDR25_Val << SDHC_HC2R_EMMC_HS200EN_Pos)
1792 #define SDHC_HC2R_EMMC_HS200EN_SDR50 (SDHC_HC2R_EMMC_HS200EN_SDR50_Val << SDHC_HC2R_EMMC_HS200EN_Pos)
1793 #define SDHC_HC2R_EMMC_HS200EN_SDR104 (SDHC_HC2R_EMMC_HS200EN_SDR104_Val << SDHC_HC2R_EMMC_HS200EN_Pos)
1794 #define SDHC_HC2R_EMMC_HS200EN_DDR50 (SDHC_HC2R_EMMC_HS200EN_DDR50_Val << SDHC_HC2R_EMMC_HS200EN_Pos)
1795 #define SDHC_HC2R_EMMC_DRVSEL_Pos 4
1796 #define SDHC_HC2R_EMMC_DRVSEL_Msk (_U_(0x3) << SDHC_HC2R_EMMC_DRVSEL_Pos)
1797 #define SDHC_HC2R_EMMC_DRVSEL(value) (SDHC_HC2R_EMMC_DRVSEL_Msk & ((value) << SDHC_HC2R_EMMC_DRVSEL_Pos))
1798 #define SDHC_HC2R_EMMC_DRVSEL_B_Val _U_(0x0)
1799 #define SDHC_HC2R_EMMC_DRVSEL_A_Val _U_(0x1)
1800 #define SDHC_HC2R_EMMC_DRVSEL_C_Val _U_(0x2)
1801 #define SDHC_HC2R_EMMC_DRVSEL_D_Val _U_(0x3)
1802 #define SDHC_HC2R_EMMC_DRVSEL_B (SDHC_HC2R_EMMC_DRVSEL_B_Val << SDHC_HC2R_EMMC_DRVSEL_Pos)
1803 #define SDHC_HC2R_EMMC_DRVSEL_A (SDHC_HC2R_EMMC_DRVSEL_A_Val << SDHC_HC2R_EMMC_DRVSEL_Pos)
1804 #define SDHC_HC2R_EMMC_DRVSEL_C (SDHC_HC2R_EMMC_DRVSEL_C_Val << SDHC_HC2R_EMMC_DRVSEL_Pos)
1805 #define SDHC_HC2R_EMMC_DRVSEL_D (SDHC_HC2R_EMMC_DRVSEL_D_Val << SDHC_HC2R_EMMC_DRVSEL_Pos)
1806 #define SDHC_HC2R_EMMC_EXTUN_Pos 6
1807 #define SDHC_HC2R_EMMC_EXTUN (_U_(0x1) << SDHC_HC2R_EMMC_EXTUN_Pos)
1808 #define SDHC_HC2R_EMMC_EXTUN_NO_Val _U_(0x0)
1809 #define SDHC_HC2R_EMMC_EXTUN_REQUESTED_Val _U_(0x1)
1810 #define SDHC_HC2R_EMMC_EXTUN_NO (SDHC_HC2R_EMMC_EXTUN_NO_Val << SDHC_HC2R_EMMC_EXTUN_Pos)
1811 #define SDHC_HC2R_EMMC_EXTUN_REQUESTED (SDHC_HC2R_EMMC_EXTUN_REQUESTED_Val << SDHC_HC2R_EMMC_EXTUN_Pos)
1812 #define SDHC_HC2R_EMMC_SLCKSEL_Pos 7
1813 #define SDHC_HC2R_EMMC_SLCKSEL (_U_(0x1) << SDHC_HC2R_EMMC_SLCKSEL_Pos)
1814 #define SDHC_HC2R_EMMC_SLCKSEL_FIXED_Val _U_(0x0)
1815 #define SDHC_HC2R_EMMC_SLCKSEL_TUNED_Val _U_(0x1)
1816 #define SDHC_HC2R_EMMC_SLCKSEL_FIXED (SDHC_HC2R_EMMC_SLCKSEL_FIXED_Val << SDHC_HC2R_EMMC_SLCKSEL_Pos)
1817 #define SDHC_HC2R_EMMC_SLCKSEL_TUNED (SDHC_HC2R_EMMC_SLCKSEL_TUNED_Val << SDHC_HC2R_EMMC_SLCKSEL_Pos)
1818 #define SDHC_HC2R_EMMC_PVALEN_Pos 15
1819 #define SDHC_HC2R_EMMC_PVALEN (_U_(0x1) << SDHC_HC2R_EMMC_PVALEN_Pos)
1820 #define SDHC_HC2R_EMMC_PVALEN_HOST_Val _U_(0x0)
1821 #define SDHC_HC2R_EMMC_PVALEN_AUTO_Val _U_(0x1)
1822 #define SDHC_HC2R_EMMC_PVALEN_HOST (SDHC_HC2R_EMMC_PVALEN_HOST_Val << SDHC_HC2R_EMMC_PVALEN_Pos)
1823 #define SDHC_HC2R_EMMC_PVALEN_AUTO (SDHC_HC2R_EMMC_PVALEN_AUTO_Val << SDHC_HC2R_EMMC_PVALEN_Pos)
1824 #define SDHC_HC2R_EMMC_MASK _U_(0x80FF)
1827 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1853 #define SDHC_CA0R_OFFSET 0x040
1854 #define SDHC_CA0R_RESETVALUE _U_(0x27E80080)
1856 #define SDHC_CA0R_TEOCLKF_Pos 0
1857 #define SDHC_CA0R_TEOCLKF_Msk (_U_(0x3F) << SDHC_CA0R_TEOCLKF_Pos)
1858 #define SDHC_CA0R_TEOCLKF(value) (SDHC_CA0R_TEOCLKF_Msk & ((value) << SDHC_CA0R_TEOCLKF_Pos))
1859 #define SDHC_CA0R_TEOCLKF_OTHER_Val _U_(0x0)
1860 #define SDHC_CA0R_TEOCLKF_OTHER (SDHC_CA0R_TEOCLKF_OTHER_Val << SDHC_CA0R_TEOCLKF_Pos)
1861 #define SDHC_CA0R_TEOCLKU_Pos 7
1862 #define SDHC_CA0R_TEOCLKU (_U_(0x1) << SDHC_CA0R_TEOCLKU_Pos)
1863 #define SDHC_CA0R_TEOCLKU_KHZ_Val _U_(0x0)
1864 #define SDHC_CA0R_TEOCLKU_MHZ_Val _U_(0x1)
1865 #define SDHC_CA0R_TEOCLKU_KHZ (SDHC_CA0R_TEOCLKU_KHZ_Val << SDHC_CA0R_TEOCLKU_Pos)
1866 #define SDHC_CA0R_TEOCLKU_MHZ (SDHC_CA0R_TEOCLKU_MHZ_Val << SDHC_CA0R_TEOCLKU_Pos)
1867 #define SDHC_CA0R_BASECLKF_Pos 8
1868 #define SDHC_CA0R_BASECLKF_Msk (_U_(0xFF) << SDHC_CA0R_BASECLKF_Pos)
1869 #define SDHC_CA0R_BASECLKF(value) (SDHC_CA0R_BASECLKF_Msk & ((value) << SDHC_CA0R_BASECLKF_Pos))
1870 #define SDHC_CA0R_BASECLKF_OTHER_Val _U_(0x0)
1871 #define SDHC_CA0R_BASECLKF_OTHER (SDHC_CA0R_BASECLKF_OTHER_Val << SDHC_CA0R_BASECLKF_Pos)
1872 #define SDHC_CA0R_MAXBLKL_Pos 16
1873 #define SDHC_CA0R_MAXBLKL_Msk (_U_(0x3) << SDHC_CA0R_MAXBLKL_Pos)
1874 #define SDHC_CA0R_MAXBLKL(value) (SDHC_CA0R_MAXBLKL_Msk & ((value) << SDHC_CA0R_MAXBLKL_Pos))
1875 #define SDHC_CA0R_MAXBLKL_512_Val _U_(0x0)
1876 #define SDHC_CA0R_MAXBLKL_1024_Val _U_(0x1)
1877 #define SDHC_CA0R_MAXBLKL_2048_Val _U_(0x2)
1878 #define SDHC_CA0R_MAXBLKL_512 (SDHC_CA0R_MAXBLKL_512_Val << SDHC_CA0R_MAXBLKL_Pos)
1879 #define SDHC_CA0R_MAXBLKL_1024 (SDHC_CA0R_MAXBLKL_1024_Val << SDHC_CA0R_MAXBLKL_Pos)
1880 #define SDHC_CA0R_MAXBLKL_2048 (SDHC_CA0R_MAXBLKL_2048_Val << SDHC_CA0R_MAXBLKL_Pos)
1881 #define SDHC_CA0R_ED8SUP_Pos 18
1882 #define SDHC_CA0R_ED8SUP (_U_(0x1) << SDHC_CA0R_ED8SUP_Pos)
1883 #define SDHC_CA0R_ED8SUP_NO_Val _U_(0x0)
1884 #define SDHC_CA0R_ED8SUP_YES_Val _U_(0x1)
1885 #define SDHC_CA0R_ED8SUP_NO (SDHC_CA0R_ED8SUP_NO_Val << SDHC_CA0R_ED8SUP_Pos)
1886 #define SDHC_CA0R_ED8SUP_YES (SDHC_CA0R_ED8SUP_YES_Val << SDHC_CA0R_ED8SUP_Pos)
1887 #define SDHC_CA0R_ADMA2SUP_Pos 19
1888 #define SDHC_CA0R_ADMA2SUP (_U_(0x1) << SDHC_CA0R_ADMA2SUP_Pos)
1889 #define SDHC_CA0R_ADMA2SUP_NO_Val _U_(0x0)
1890 #define SDHC_CA0R_ADMA2SUP_YES_Val _U_(0x1)
1891 #define SDHC_CA0R_ADMA2SUP_NO (SDHC_CA0R_ADMA2SUP_NO_Val << SDHC_CA0R_ADMA2SUP_Pos)
1892 #define SDHC_CA0R_ADMA2SUP_YES (SDHC_CA0R_ADMA2SUP_YES_Val << SDHC_CA0R_ADMA2SUP_Pos)
1893 #define SDHC_CA0R_HSSUP_Pos 21
1894 #define SDHC_CA0R_HSSUP (_U_(0x1) << SDHC_CA0R_HSSUP_Pos)
1895 #define SDHC_CA0R_HSSUP_NO_Val _U_(0x0)
1896 #define SDHC_CA0R_HSSUP_YES_Val _U_(0x1)
1897 #define SDHC_CA0R_HSSUP_NO (SDHC_CA0R_HSSUP_NO_Val << SDHC_CA0R_HSSUP_Pos)
1898 #define SDHC_CA0R_HSSUP_YES (SDHC_CA0R_HSSUP_YES_Val << SDHC_CA0R_HSSUP_Pos)
1899 #define SDHC_CA0R_SDMASUP_Pos 22
1900 #define SDHC_CA0R_SDMASUP (_U_(0x1) << SDHC_CA0R_SDMASUP_Pos)
1901 #define SDHC_CA0R_SDMASUP_NO_Val _U_(0x0)
1902 #define SDHC_CA0R_SDMASUP_YES_Val _U_(0x1)
1903 #define SDHC_CA0R_SDMASUP_NO (SDHC_CA0R_SDMASUP_NO_Val << SDHC_CA0R_SDMASUP_Pos)
1904 #define SDHC_CA0R_SDMASUP_YES (SDHC_CA0R_SDMASUP_YES_Val << SDHC_CA0R_SDMASUP_Pos)
1905 #define SDHC_CA0R_SRSUP_Pos 23
1906 #define SDHC_CA0R_SRSUP (_U_(0x1) << SDHC_CA0R_SRSUP_Pos)
1907 #define SDHC_CA0R_SRSUP_NO_Val _U_(0x0)
1908 #define SDHC_CA0R_SRSUP_YES_Val _U_(0x1)
1909 #define SDHC_CA0R_SRSUP_NO (SDHC_CA0R_SRSUP_NO_Val << SDHC_CA0R_SRSUP_Pos)
1910 #define SDHC_CA0R_SRSUP_YES (SDHC_CA0R_SRSUP_YES_Val << SDHC_CA0R_SRSUP_Pos)
1911 #define SDHC_CA0R_V33VSUP_Pos 24
1912 #define SDHC_CA0R_V33VSUP (_U_(0x1) << SDHC_CA0R_V33VSUP_Pos)
1913 #define SDHC_CA0R_V33VSUP_NO_Val _U_(0x0)
1914 #define SDHC_CA0R_V33VSUP_YES_Val _U_(0x1)
1915 #define SDHC_CA0R_V33VSUP_NO (SDHC_CA0R_V33VSUP_NO_Val << SDHC_CA0R_V33VSUP_Pos)
1916 #define SDHC_CA0R_V33VSUP_YES (SDHC_CA0R_V33VSUP_YES_Val << SDHC_CA0R_V33VSUP_Pos)
1917 #define SDHC_CA0R_V30VSUP_Pos 25
1918 #define SDHC_CA0R_V30VSUP (_U_(0x1) << SDHC_CA0R_V30VSUP_Pos)
1919 #define SDHC_CA0R_V30VSUP_NO_Val _U_(0x0)
1920 #define SDHC_CA0R_V30VSUP_YES_Val _U_(0x1)
1921 #define SDHC_CA0R_V30VSUP_NO (SDHC_CA0R_V30VSUP_NO_Val << SDHC_CA0R_V30VSUP_Pos)
1922 #define SDHC_CA0R_V30VSUP_YES (SDHC_CA0R_V30VSUP_YES_Val << SDHC_CA0R_V30VSUP_Pos)
1923 #define SDHC_CA0R_V18VSUP_Pos 26
1924 #define SDHC_CA0R_V18VSUP (_U_(0x1) << SDHC_CA0R_V18VSUP_Pos)
1925 #define SDHC_CA0R_V18VSUP_NO_Val _U_(0x0)
1926 #define SDHC_CA0R_V18VSUP_YES_Val _U_(0x1)
1927 #define SDHC_CA0R_V18VSUP_NO (SDHC_CA0R_V18VSUP_NO_Val << SDHC_CA0R_V18VSUP_Pos)
1928 #define SDHC_CA0R_V18VSUP_YES (SDHC_CA0R_V18VSUP_YES_Val << SDHC_CA0R_V18VSUP_Pos)
1929 #define SDHC_CA0R_SB64SUP_Pos 28
1930 #define SDHC_CA0R_SB64SUP (_U_(0x1) << SDHC_CA0R_SB64SUP_Pos)
1931 #define SDHC_CA0R_SB64SUP_NO_Val _U_(0x0)
1932 #define SDHC_CA0R_SB64SUP_YES_Val _U_(0x1)
1933 #define SDHC_CA0R_SB64SUP_NO (SDHC_CA0R_SB64SUP_NO_Val << SDHC_CA0R_SB64SUP_Pos)
1934 #define SDHC_CA0R_SB64SUP_YES (SDHC_CA0R_SB64SUP_YES_Val << SDHC_CA0R_SB64SUP_Pos)
1935 #define SDHC_CA0R_ASINTSUP_Pos 29
1936 #define SDHC_CA0R_ASINTSUP (_U_(0x1) << SDHC_CA0R_ASINTSUP_Pos)
1937 #define SDHC_CA0R_ASINTSUP_NO_Val _U_(0x0)
1938 #define SDHC_CA0R_ASINTSUP_YES_Val _U_(0x1)
1939 #define SDHC_CA0R_ASINTSUP_NO (SDHC_CA0R_ASINTSUP_NO_Val << SDHC_CA0R_ASINTSUP_Pos)
1940 #define SDHC_CA0R_ASINTSUP_YES (SDHC_CA0R_ASINTSUP_YES_Val << SDHC_CA0R_ASINTSUP_Pos)
1941 #define SDHC_CA0R_SLTYPE_Pos 30
1942 #define SDHC_CA0R_SLTYPE_Msk (_U_(0x3) << SDHC_CA0R_SLTYPE_Pos)
1943 #define SDHC_CA0R_SLTYPE(value) (SDHC_CA0R_SLTYPE_Msk & ((value) << SDHC_CA0R_SLTYPE_Pos))
1944 #define SDHC_CA0R_SLTYPE_REMOVABLE_Val _U_(0x0)
1945 #define SDHC_CA0R_SLTYPE_EMBEDDED_Val _U_(0x1)
1946 #define SDHC_CA0R_SLTYPE_REMOVABLE (SDHC_CA0R_SLTYPE_REMOVABLE_Val << SDHC_CA0R_SLTYPE_Pos)
1947 #define SDHC_CA0R_SLTYPE_EMBEDDED (SDHC_CA0R_SLTYPE_EMBEDDED_Val << SDHC_CA0R_SLTYPE_Pos)
1948 #define SDHC_CA0R_MASK _U_(0xF7EFFFBF)
1951 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1973 #define SDHC_CA1R_OFFSET 0x044
1974 #define SDHC_CA1R_RESETVALUE _U_(0x00000070)
1976 #define SDHC_CA1R_SDR50SUP_Pos 0
1977 #define SDHC_CA1R_SDR50SUP (_U_(0x1) << SDHC_CA1R_SDR50SUP_Pos)
1978 #define SDHC_CA1R_SDR50SUP_NO_Val _U_(0x0)
1979 #define SDHC_CA1R_SDR50SUP_YES_Val _U_(0x1)
1980 #define SDHC_CA1R_SDR50SUP_NO (SDHC_CA1R_SDR50SUP_NO_Val << SDHC_CA1R_SDR50SUP_Pos)
1981 #define SDHC_CA1R_SDR50SUP_YES (SDHC_CA1R_SDR50SUP_YES_Val << SDHC_CA1R_SDR50SUP_Pos)
1982 #define SDHC_CA1R_SDR104SUP_Pos 1
1983 #define SDHC_CA1R_SDR104SUP (_U_(0x1) << SDHC_CA1R_SDR104SUP_Pos)
1984 #define SDHC_CA1R_SDR104SUP_NO_Val _U_(0x0)
1985 #define SDHC_CA1R_SDR104SUP_YES_Val _U_(0x1)
1986 #define SDHC_CA1R_SDR104SUP_NO (SDHC_CA1R_SDR104SUP_NO_Val << SDHC_CA1R_SDR104SUP_Pos)
1987 #define SDHC_CA1R_SDR104SUP_YES (SDHC_CA1R_SDR104SUP_YES_Val << SDHC_CA1R_SDR104SUP_Pos)
1988 #define SDHC_CA1R_DDR50SUP_Pos 2
1989 #define SDHC_CA1R_DDR50SUP (_U_(0x1) << SDHC_CA1R_DDR50SUP_Pos)
1990 #define SDHC_CA1R_DDR50SUP_NO_Val _U_(0x0)
1991 #define SDHC_CA1R_DDR50SUP_YES_Val _U_(0x1)
1992 #define SDHC_CA1R_DDR50SUP_NO (SDHC_CA1R_DDR50SUP_NO_Val << SDHC_CA1R_DDR50SUP_Pos)
1993 #define SDHC_CA1R_DDR50SUP_YES (SDHC_CA1R_DDR50SUP_YES_Val << SDHC_CA1R_DDR50SUP_Pos)
1994 #define SDHC_CA1R_DRVASUP_Pos 4
1995 #define SDHC_CA1R_DRVASUP (_U_(0x1) << SDHC_CA1R_DRVASUP_Pos)
1996 #define SDHC_CA1R_DRVASUP_NO_Val _U_(0x0)
1997 #define SDHC_CA1R_DRVASUP_YES_Val _U_(0x1)
1998 #define SDHC_CA1R_DRVASUP_NO (SDHC_CA1R_DRVASUP_NO_Val << SDHC_CA1R_DRVASUP_Pos)
1999 #define SDHC_CA1R_DRVASUP_YES (SDHC_CA1R_DRVASUP_YES_Val << SDHC_CA1R_DRVASUP_Pos)
2000 #define SDHC_CA1R_DRVCSUP_Pos 5
2001 #define SDHC_CA1R_DRVCSUP (_U_(0x1) << SDHC_CA1R_DRVCSUP_Pos)
2002 #define SDHC_CA1R_DRVCSUP_NO_Val _U_(0x0)
2003 #define SDHC_CA1R_DRVCSUP_YES_Val _U_(0x1)
2004 #define SDHC_CA1R_DRVCSUP_NO (SDHC_CA1R_DRVCSUP_NO_Val << SDHC_CA1R_DRVCSUP_Pos)
2005 #define SDHC_CA1R_DRVCSUP_YES (SDHC_CA1R_DRVCSUP_YES_Val << SDHC_CA1R_DRVCSUP_Pos)
2006 #define SDHC_CA1R_DRVDSUP_Pos 6
2007 #define SDHC_CA1R_DRVDSUP (_U_(0x1) << SDHC_CA1R_DRVDSUP_Pos)
2008 #define SDHC_CA1R_DRVDSUP_NO_Val _U_(0x0)
2009 #define SDHC_CA1R_DRVDSUP_YES_Val _U_(0x1)
2010 #define SDHC_CA1R_DRVDSUP_NO (SDHC_CA1R_DRVDSUP_NO_Val << SDHC_CA1R_DRVDSUP_Pos)
2011 #define SDHC_CA1R_DRVDSUP_YES (SDHC_CA1R_DRVDSUP_YES_Val << SDHC_CA1R_DRVDSUP_Pos)
2012 #define SDHC_CA1R_TCNTRT_Pos 8
2013 #define SDHC_CA1R_TCNTRT_Msk (_U_(0xF) << SDHC_CA1R_TCNTRT_Pos)
2014 #define SDHC_CA1R_TCNTRT(value) (SDHC_CA1R_TCNTRT_Msk & ((value) << SDHC_CA1R_TCNTRT_Pos))
2015 #define SDHC_CA1R_TCNTRT_DISABLED_Val _U_(0x0)
2016 #define SDHC_CA1R_TCNTRT_1S_Val _U_(0x1)
2017 #define SDHC_CA1R_TCNTRT_2S_Val _U_(0x2)
2018 #define SDHC_CA1R_TCNTRT_4S_Val _U_(0x3)
2019 #define SDHC_CA1R_TCNTRT_8S_Val _U_(0x4)
2020 #define SDHC_CA1R_TCNTRT_16S_Val _U_(0x5)
2021 #define SDHC_CA1R_TCNTRT_32S_Val _U_(0x6)
2022 #define SDHC_CA1R_TCNTRT_64S_Val _U_(0x7)
2023 #define SDHC_CA1R_TCNTRT_128S_Val _U_(0x8)
2024 #define SDHC_CA1R_TCNTRT_256S_Val _U_(0x9)
2025 #define SDHC_CA1R_TCNTRT_512S_Val _U_(0xA)
2026 #define SDHC_CA1R_TCNTRT_1024S_Val _U_(0xB)
2027 #define SDHC_CA1R_TCNTRT_OTHER_Val _U_(0xF)
2028 #define SDHC_CA1R_TCNTRT_DISABLED (SDHC_CA1R_TCNTRT_DISABLED_Val << SDHC_CA1R_TCNTRT_Pos)
2029 #define SDHC_CA1R_TCNTRT_1S (SDHC_CA1R_TCNTRT_1S_Val << SDHC_CA1R_TCNTRT_Pos)
2030 #define SDHC_CA1R_TCNTRT_2S (SDHC_CA1R_TCNTRT_2S_Val << SDHC_CA1R_TCNTRT_Pos)
2031 #define SDHC_CA1R_TCNTRT_4S (SDHC_CA1R_TCNTRT_4S_Val << SDHC_CA1R_TCNTRT_Pos)
2032 #define SDHC_CA1R_TCNTRT_8S (SDHC_CA1R_TCNTRT_8S_Val << SDHC_CA1R_TCNTRT_Pos)
2033 #define SDHC_CA1R_TCNTRT_16S (SDHC_CA1R_TCNTRT_16S_Val << SDHC_CA1R_TCNTRT_Pos)
2034 #define SDHC_CA1R_TCNTRT_32S (SDHC_CA1R_TCNTRT_32S_Val << SDHC_CA1R_TCNTRT_Pos)
2035 #define SDHC_CA1R_TCNTRT_64S (SDHC_CA1R_TCNTRT_64S_Val << SDHC_CA1R_TCNTRT_Pos)
2036 #define SDHC_CA1R_TCNTRT_128S (SDHC_CA1R_TCNTRT_128S_Val << SDHC_CA1R_TCNTRT_Pos)
2037 #define SDHC_CA1R_TCNTRT_256S (SDHC_CA1R_TCNTRT_256S_Val << SDHC_CA1R_TCNTRT_Pos)
2038 #define SDHC_CA1R_TCNTRT_512S (SDHC_CA1R_TCNTRT_512S_Val << SDHC_CA1R_TCNTRT_Pos)
2039 #define SDHC_CA1R_TCNTRT_1024S (SDHC_CA1R_TCNTRT_1024S_Val << SDHC_CA1R_TCNTRT_Pos)
2040 #define SDHC_CA1R_TCNTRT_OTHER (SDHC_CA1R_TCNTRT_OTHER_Val << SDHC_CA1R_TCNTRT_Pos)
2041 #define SDHC_CA1R_TSDR50_Pos 13
2042 #define SDHC_CA1R_TSDR50 (_U_(0x1) << SDHC_CA1R_TSDR50_Pos)
2043 #define SDHC_CA1R_TSDR50_NO_Val _U_(0x0)
2044 #define SDHC_CA1R_TSDR50_YES_Val _U_(0x1)
2045 #define SDHC_CA1R_TSDR50_NO (SDHC_CA1R_TSDR50_NO_Val << SDHC_CA1R_TSDR50_Pos)
2046 #define SDHC_CA1R_TSDR50_YES (SDHC_CA1R_TSDR50_YES_Val << SDHC_CA1R_TSDR50_Pos)
2047 #define SDHC_CA1R_CLKMULT_Pos 16
2048 #define SDHC_CA1R_CLKMULT_Msk (_U_(0xFF) << SDHC_CA1R_CLKMULT_Pos)
2049 #define SDHC_CA1R_CLKMULT(value) (SDHC_CA1R_CLKMULT_Msk & ((value) << SDHC_CA1R_CLKMULT_Pos))
2050 #define SDHC_CA1R_CLKMULT_NO_Val _U_(0x0)
2051 #define SDHC_CA1R_CLKMULT_NO (SDHC_CA1R_CLKMULT_NO_Val << SDHC_CA1R_CLKMULT_Pos)
2052 #define SDHC_CA1R_MASK _U_(0x00FF2F77)
2055 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
2067 #define SDHC_MCCAR_OFFSET 0x048
2068 #define SDHC_MCCAR_RESETVALUE _U_(0x00000000)
2070 #define SDHC_MCCAR_MAXCUR33V_Pos 0
2071 #define SDHC_MCCAR_MAXCUR33V_Msk (_U_(0xFF) << SDHC_MCCAR_MAXCUR33V_Pos)
2072 #define SDHC_MCCAR_MAXCUR33V(value) (SDHC_MCCAR_MAXCUR33V_Msk & ((value) << SDHC_MCCAR_MAXCUR33V_Pos))
2073 #define SDHC_MCCAR_MAXCUR33V_OTHER_Val _U_(0x0)
2074 #define SDHC_MCCAR_MAXCUR33V_4MA_Val _U_(0x1)
2075 #define SDHC_MCCAR_MAXCUR33V_8MA_Val _U_(0x2)
2076 #define SDHC_MCCAR_MAXCUR33V_12MA_Val _U_(0x3)
2077 #define SDHC_MCCAR_MAXCUR33V_OTHER (SDHC_MCCAR_MAXCUR33V_OTHER_Val << SDHC_MCCAR_MAXCUR33V_Pos)
2078 #define SDHC_MCCAR_MAXCUR33V_4MA (SDHC_MCCAR_MAXCUR33V_4MA_Val << SDHC_MCCAR_MAXCUR33V_Pos)
2079 #define SDHC_MCCAR_MAXCUR33V_8MA (SDHC_MCCAR_MAXCUR33V_8MA_Val << SDHC_MCCAR_MAXCUR33V_Pos)
2080 #define SDHC_MCCAR_MAXCUR33V_12MA (SDHC_MCCAR_MAXCUR33V_12MA_Val << SDHC_MCCAR_MAXCUR33V_Pos)
2081 #define SDHC_MCCAR_MAXCUR30V_Pos 8
2082 #define SDHC_MCCAR_MAXCUR30V_Msk (_U_(0xFF) << SDHC_MCCAR_MAXCUR30V_Pos)
2083 #define SDHC_MCCAR_MAXCUR30V(value) (SDHC_MCCAR_MAXCUR30V_Msk & ((value) << SDHC_MCCAR_MAXCUR30V_Pos))
2084 #define SDHC_MCCAR_MAXCUR30V_OTHER_Val _U_(0x0)
2085 #define SDHC_MCCAR_MAXCUR30V_4MA_Val _U_(0x1)
2086 #define SDHC_MCCAR_MAXCUR30V_8MA_Val _U_(0x2)
2087 #define SDHC_MCCAR_MAXCUR30V_12MA_Val _U_(0x3)
2088 #define SDHC_MCCAR_MAXCUR30V_OTHER (SDHC_MCCAR_MAXCUR30V_OTHER_Val << SDHC_MCCAR_MAXCUR30V_Pos)
2089 #define SDHC_MCCAR_MAXCUR30V_4MA (SDHC_MCCAR_MAXCUR30V_4MA_Val << SDHC_MCCAR_MAXCUR30V_Pos)
2090 #define SDHC_MCCAR_MAXCUR30V_8MA (SDHC_MCCAR_MAXCUR30V_8MA_Val << SDHC_MCCAR_MAXCUR30V_Pos)
2091 #define SDHC_MCCAR_MAXCUR30V_12MA (SDHC_MCCAR_MAXCUR30V_12MA_Val << SDHC_MCCAR_MAXCUR30V_Pos)
2092 #define SDHC_MCCAR_MAXCUR18V_Pos 16
2093 #define SDHC_MCCAR_MAXCUR18V_Msk (_U_(0xFF) << SDHC_MCCAR_MAXCUR18V_Pos)
2094 #define SDHC_MCCAR_MAXCUR18V(value) (SDHC_MCCAR_MAXCUR18V_Msk & ((value) << SDHC_MCCAR_MAXCUR18V_Pos))
2095 #define SDHC_MCCAR_MAXCUR18V_OTHER_Val _U_(0x0)
2096 #define SDHC_MCCAR_MAXCUR18V_4MA_Val _U_(0x1)
2097 #define SDHC_MCCAR_MAXCUR18V_8MA_Val _U_(0x2)
2098 #define SDHC_MCCAR_MAXCUR18V_12MA_Val _U_(0x3)
2099 #define SDHC_MCCAR_MAXCUR18V_OTHER (SDHC_MCCAR_MAXCUR18V_OTHER_Val << SDHC_MCCAR_MAXCUR18V_Pos)
2100 #define SDHC_MCCAR_MAXCUR18V_4MA (SDHC_MCCAR_MAXCUR18V_4MA_Val << SDHC_MCCAR_MAXCUR18V_Pos)
2101 #define SDHC_MCCAR_MAXCUR18V_8MA (SDHC_MCCAR_MAXCUR18V_8MA_Val << SDHC_MCCAR_MAXCUR18V_Pos)
2102 #define SDHC_MCCAR_MAXCUR18V_12MA (SDHC_MCCAR_MAXCUR18V_12MA_Val << SDHC_MCCAR_MAXCUR18V_Pos)
2103 #define SDHC_MCCAR_MASK _U_(0x00FFFFFF)
2106 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
2122 #define SDHC_FERACES_OFFSET 0x050
2123 #define SDHC_FERACES_RESETVALUE _U_(0x0000)
2125 #define SDHC_FERACES_ACMD12NE_Pos 0
2126 #define SDHC_FERACES_ACMD12NE (_U_(0x1) << SDHC_FERACES_ACMD12NE_Pos)
2127 #define SDHC_FERACES_ACMD12NE_NO_Val _U_(0x0)
2128 #define SDHC_FERACES_ACMD12NE_YES_Val _U_(0x1)
2129 #define SDHC_FERACES_ACMD12NE_NO (SDHC_FERACES_ACMD12NE_NO_Val << SDHC_FERACES_ACMD12NE_Pos)
2130 #define SDHC_FERACES_ACMD12NE_YES (SDHC_FERACES_ACMD12NE_YES_Val << SDHC_FERACES_ACMD12NE_Pos)
2131 #define SDHC_FERACES_ACMDTEO_Pos 1
2132 #define SDHC_FERACES_ACMDTEO (_U_(0x1) << SDHC_FERACES_ACMDTEO_Pos)
2133 #define SDHC_FERACES_ACMDTEO_NO_Val _U_(0x0)
2134 #define SDHC_FERACES_ACMDTEO_YES_Val _U_(0x1)
2135 #define SDHC_FERACES_ACMDTEO_NO (SDHC_FERACES_ACMDTEO_NO_Val << SDHC_FERACES_ACMDTEO_Pos)
2136 #define SDHC_FERACES_ACMDTEO_YES (SDHC_FERACES_ACMDTEO_YES_Val << SDHC_FERACES_ACMDTEO_Pos)
2137 #define SDHC_FERACES_ACMDCRC_Pos 2
2138 #define SDHC_FERACES_ACMDCRC (_U_(0x1) << SDHC_FERACES_ACMDCRC_Pos)
2139 #define SDHC_FERACES_ACMDCRC_NO_Val _U_(0x0)
2140 #define SDHC_FERACES_ACMDCRC_YES_Val _U_(0x1)
2141 #define SDHC_FERACES_ACMDCRC_NO (SDHC_FERACES_ACMDCRC_NO_Val << SDHC_FERACES_ACMDCRC_Pos)
2142 #define SDHC_FERACES_ACMDCRC_YES (SDHC_FERACES_ACMDCRC_YES_Val << SDHC_FERACES_ACMDCRC_Pos)
2143 #define SDHC_FERACES_ACMDEND_Pos 3
2144 #define SDHC_FERACES_ACMDEND (_U_(0x1) << SDHC_FERACES_ACMDEND_Pos)
2145 #define SDHC_FERACES_ACMDEND_NO_Val _U_(0x0)
2146 #define SDHC_FERACES_ACMDEND_YES_Val _U_(0x1)
2147 #define SDHC_FERACES_ACMDEND_NO (SDHC_FERACES_ACMDEND_NO_Val << SDHC_FERACES_ACMDEND_Pos)
2148 #define SDHC_FERACES_ACMDEND_YES (SDHC_FERACES_ACMDEND_YES_Val << SDHC_FERACES_ACMDEND_Pos)
2149 #define SDHC_FERACES_ACMDIDX_Pos 4
2150 #define SDHC_FERACES_ACMDIDX (_U_(0x1) << SDHC_FERACES_ACMDIDX_Pos)
2151 #define SDHC_FERACES_ACMDIDX_NO_Val _U_(0x0)
2152 #define SDHC_FERACES_ACMDIDX_YES_Val _U_(0x1)
2153 #define SDHC_FERACES_ACMDIDX_NO (SDHC_FERACES_ACMDIDX_NO_Val << SDHC_FERACES_ACMDIDX_Pos)
2154 #define SDHC_FERACES_ACMDIDX_YES (SDHC_FERACES_ACMDIDX_YES_Val << SDHC_FERACES_ACMDIDX_Pos)
2155 #define SDHC_FERACES_CMDNI_Pos 7
2156 #define SDHC_FERACES_CMDNI (_U_(0x1) << SDHC_FERACES_CMDNI_Pos)
2157 #define SDHC_FERACES_CMDNI_NO_Val _U_(0x0)
2158 #define SDHC_FERACES_CMDNI_YES_Val _U_(0x1)
2159 #define SDHC_FERACES_CMDNI_NO (SDHC_FERACES_CMDNI_NO_Val << SDHC_FERACES_CMDNI_Pos)
2160 #define SDHC_FERACES_CMDNI_YES (SDHC_FERACES_CMDNI_YES_Val << SDHC_FERACES_CMDNI_Pos)
2161 #define SDHC_FERACES_MASK _U_(0x009F)
2164 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
2185 #define SDHC_FEREIS_OFFSET 0x052
2186 #define SDHC_FEREIS_RESETVALUE _U_(0x0000)
2188 #define SDHC_FEREIS_CMDTEO_Pos 0
2189 #define SDHC_FEREIS_CMDTEO (_U_(0x1) << SDHC_FEREIS_CMDTEO_Pos)
2190 #define SDHC_FEREIS_CMDTEO_NO_Val _U_(0x0)
2191 #define SDHC_FEREIS_CMDTEO_YES_Val _U_(0x1)
2192 #define SDHC_FEREIS_CMDTEO_NO (SDHC_FEREIS_CMDTEO_NO_Val << SDHC_FEREIS_CMDTEO_Pos)
2193 #define SDHC_FEREIS_CMDTEO_YES (SDHC_FEREIS_CMDTEO_YES_Val << SDHC_FEREIS_CMDTEO_Pos)
2194 #define SDHC_FEREIS_CMDCRC_Pos 1
2195 #define SDHC_FEREIS_CMDCRC (_U_(0x1) << SDHC_FEREIS_CMDCRC_Pos)
2196 #define SDHC_FEREIS_CMDCRC_NO_Val _U_(0x0)
2197 #define SDHC_FEREIS_CMDCRC_YES_Val _U_(0x1)
2198 #define SDHC_FEREIS_CMDCRC_NO (SDHC_FEREIS_CMDCRC_NO_Val << SDHC_FEREIS_CMDCRC_Pos)
2199 #define SDHC_FEREIS_CMDCRC_YES (SDHC_FEREIS_CMDCRC_YES_Val << SDHC_FEREIS_CMDCRC_Pos)
2200 #define SDHC_FEREIS_CMDEND_Pos 2
2201 #define SDHC_FEREIS_CMDEND (_U_(0x1) << SDHC_FEREIS_CMDEND_Pos)
2202 #define SDHC_FEREIS_CMDEND_NO_Val _U_(0x0)
2203 #define SDHC_FEREIS_CMDEND_YES_Val _U_(0x1)
2204 #define SDHC_FEREIS_CMDEND_NO (SDHC_FEREIS_CMDEND_NO_Val << SDHC_FEREIS_CMDEND_Pos)
2205 #define SDHC_FEREIS_CMDEND_YES (SDHC_FEREIS_CMDEND_YES_Val << SDHC_FEREIS_CMDEND_Pos)
2206 #define SDHC_FEREIS_CMDIDX_Pos 3
2207 #define SDHC_FEREIS_CMDIDX (_U_(0x1) << SDHC_FEREIS_CMDIDX_Pos)
2208 #define SDHC_FEREIS_CMDIDX_NO_Val _U_(0x0)
2209 #define SDHC_FEREIS_CMDIDX_YES_Val _U_(0x1)
2210 #define SDHC_FEREIS_CMDIDX_NO (SDHC_FEREIS_CMDIDX_NO_Val << SDHC_FEREIS_CMDIDX_Pos)
2211 #define SDHC_FEREIS_CMDIDX_YES (SDHC_FEREIS_CMDIDX_YES_Val << SDHC_FEREIS_CMDIDX_Pos)
2212 #define SDHC_FEREIS_DATTEO_Pos 4
2213 #define SDHC_FEREIS_DATTEO (_U_(0x1) << SDHC_FEREIS_DATTEO_Pos)
2214 #define SDHC_FEREIS_DATTEO_NO_Val _U_(0x0)
2215 #define SDHC_FEREIS_DATTEO_YES_Val _U_(0x1)
2216 #define SDHC_FEREIS_DATTEO_NO (SDHC_FEREIS_DATTEO_NO_Val << SDHC_FEREIS_DATTEO_Pos)
2217 #define SDHC_FEREIS_DATTEO_YES (SDHC_FEREIS_DATTEO_YES_Val << SDHC_FEREIS_DATTEO_Pos)
2218 #define SDHC_FEREIS_DATCRC_Pos 5
2219 #define SDHC_FEREIS_DATCRC (_U_(0x1) << SDHC_FEREIS_DATCRC_Pos)
2220 #define SDHC_FEREIS_DATCRC_NO_Val _U_(0x0)
2221 #define SDHC_FEREIS_DATCRC_YES_Val _U_(0x1)
2222 #define SDHC_FEREIS_DATCRC_NO (SDHC_FEREIS_DATCRC_NO_Val << SDHC_FEREIS_DATCRC_Pos)
2223 #define SDHC_FEREIS_DATCRC_YES (SDHC_FEREIS_DATCRC_YES_Val << SDHC_FEREIS_DATCRC_Pos)
2224 #define SDHC_FEREIS_DATEND_Pos 6
2225 #define SDHC_FEREIS_DATEND (_U_(0x1) << SDHC_FEREIS_DATEND_Pos)
2226 #define SDHC_FEREIS_DATEND_NO_Val _U_(0x0)
2227 #define SDHC_FEREIS_DATEND_YES_Val _U_(0x1)
2228 #define SDHC_FEREIS_DATEND_NO (SDHC_FEREIS_DATEND_NO_Val << SDHC_FEREIS_DATEND_Pos)
2229 #define SDHC_FEREIS_DATEND_YES (SDHC_FEREIS_DATEND_YES_Val << SDHC_FEREIS_DATEND_Pos)
2230 #define SDHC_FEREIS_CURLIM_Pos 7
2231 #define SDHC_FEREIS_CURLIM (_U_(0x1) << SDHC_FEREIS_CURLIM_Pos)
2232 #define SDHC_FEREIS_CURLIM_NO_Val _U_(0x0)
2233 #define SDHC_FEREIS_CURLIM_YES_Val _U_(0x1)
2234 #define SDHC_FEREIS_CURLIM_NO (SDHC_FEREIS_CURLIM_NO_Val << SDHC_FEREIS_CURLIM_Pos)
2235 #define SDHC_FEREIS_CURLIM_YES (SDHC_FEREIS_CURLIM_YES_Val << SDHC_FEREIS_CURLIM_Pos)
2236 #define SDHC_FEREIS_ACMD_Pos 8
2237 #define SDHC_FEREIS_ACMD (_U_(0x1) << SDHC_FEREIS_ACMD_Pos)
2238 #define SDHC_FEREIS_ACMD_NO_Val _U_(0x0)
2239 #define SDHC_FEREIS_ACMD_YES_Val _U_(0x1)
2240 #define SDHC_FEREIS_ACMD_NO (SDHC_FEREIS_ACMD_NO_Val << SDHC_FEREIS_ACMD_Pos)
2241 #define SDHC_FEREIS_ACMD_YES (SDHC_FEREIS_ACMD_YES_Val << SDHC_FEREIS_ACMD_Pos)
2242 #define SDHC_FEREIS_ADMA_Pos 9
2243 #define SDHC_FEREIS_ADMA (_U_(0x1) << SDHC_FEREIS_ADMA_Pos)
2244 #define SDHC_FEREIS_ADMA_NO_Val _U_(0x0)
2245 #define SDHC_FEREIS_ADMA_YES_Val _U_(0x1)
2246 #define SDHC_FEREIS_ADMA_NO (SDHC_FEREIS_ADMA_NO_Val << SDHC_FEREIS_ADMA_Pos)
2247 #define SDHC_FEREIS_ADMA_YES (SDHC_FEREIS_ADMA_YES_Val << SDHC_FEREIS_ADMA_Pos)
2248 #define SDHC_FEREIS_BOOTAE_Pos 12
2249 #define SDHC_FEREIS_BOOTAE (_U_(0x1) << SDHC_FEREIS_BOOTAE_Pos)
2250 #define SDHC_FEREIS_BOOTAE_NO_Val _U_(0x0)
2251 #define SDHC_FEREIS_BOOTAE_YES_Val _U_(0x1)
2252 #define SDHC_FEREIS_BOOTAE_NO (SDHC_FEREIS_BOOTAE_NO_Val << SDHC_FEREIS_BOOTAE_Pos)
2253 #define SDHC_FEREIS_BOOTAE_YES (SDHC_FEREIS_BOOTAE_YES_Val << SDHC_FEREIS_BOOTAE_Pos)
2254 #define SDHC_FEREIS_MASK _U_(0x13FF)
2257 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
2268 #define SDHC_AESR_OFFSET 0x054
2269 #define SDHC_AESR_RESETVALUE _U_(0x00)
2271 #define SDHC_AESR_ERRST_Pos 0
2272 #define SDHC_AESR_ERRST_Msk (_U_(0x3) << SDHC_AESR_ERRST_Pos)
2273 #define SDHC_AESR_ERRST(value) (SDHC_AESR_ERRST_Msk & ((value) << SDHC_AESR_ERRST_Pos))
2274 #define SDHC_AESR_ERRST_STOP_Val _U_(0x0)
2275 #define SDHC_AESR_ERRST_FDS_Val _U_(0x1)
2276 #define SDHC_AESR_ERRST_2_Val _U_(0x2)
2277 #define SDHC_AESR_ERRST_TFR_Val _U_(0x3)
2278 #define SDHC_AESR_ERRST_STOP (SDHC_AESR_ERRST_STOP_Val << SDHC_AESR_ERRST_Pos)
2279 #define SDHC_AESR_ERRST_FDS (SDHC_AESR_ERRST_FDS_Val << SDHC_AESR_ERRST_Pos)
2280 #define SDHC_AESR_ERRST_2 (SDHC_AESR_ERRST_2_Val << SDHC_AESR_ERRST_Pos)
2281 #define SDHC_AESR_ERRST_TFR (SDHC_AESR_ERRST_TFR_Val << SDHC_AESR_ERRST_Pos)
2282 #define SDHC_AESR_LMIS_Pos 2
2283 #define SDHC_AESR_LMIS (_U_(0x1) << SDHC_AESR_LMIS_Pos)
2284 #define SDHC_AESR_LMIS_NO_Val _U_(0x0)
2285 #define SDHC_AESR_LMIS_YES_Val _U_(0x1)
2286 #define SDHC_AESR_LMIS_NO (SDHC_AESR_LMIS_NO_Val << SDHC_AESR_LMIS_Pos)
2287 #define SDHC_AESR_LMIS_YES (SDHC_AESR_LMIS_YES_Val << SDHC_AESR_LMIS_Pos)
2288 #define SDHC_AESR_MASK _U_(0x07)
2291 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
2300 #define SDHC_ASAR_OFFSET 0x058
2301 #define SDHC_ASAR_RESETVALUE _U_(0x00000000)
2303 #define SDHC_ASAR_ADMASA_Pos 0
2304 #define SDHC_ASAR_ADMASA_Msk (_U_(0xFFFFFFFF) << SDHC_ASAR_ADMASA_Pos)
2305 #define SDHC_ASAR_ADMASA(value) (SDHC_ASAR_ADMASA_Msk & ((value) << SDHC_ASAR_ADMASA_Pos))
2306 #define SDHC_ASAR_MASK _U_(0xFFFFFFFF)
2309 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
2321 #define SDHC_PVR_OFFSET 0x060
2322 #define SDHC_PVR_RESETVALUE _U_(0x0000)
2324 #define SDHC_PVR_SDCLKFSEL_Pos 0
2325 #define SDHC_PVR_SDCLKFSEL_Msk (_U_(0x3FF) << SDHC_PVR_SDCLKFSEL_Pos)
2326 #define SDHC_PVR_SDCLKFSEL(value) (SDHC_PVR_SDCLKFSEL_Msk & ((value) << SDHC_PVR_SDCLKFSEL_Pos))
2327 #define SDHC_PVR_CLKGSEL_Pos 10
2328 #define SDHC_PVR_CLKGSEL (_U_(0x1) << SDHC_PVR_CLKGSEL_Pos)
2329 #define SDHC_PVR_CLKGSEL_DIV_Val _U_(0x0)
2330 #define SDHC_PVR_CLKGSEL_PROG_Val _U_(0x1)
2331 #define SDHC_PVR_CLKGSEL_DIV (SDHC_PVR_CLKGSEL_DIV_Val << SDHC_PVR_CLKGSEL_Pos)
2332 #define SDHC_PVR_CLKGSEL_PROG (SDHC_PVR_CLKGSEL_PROG_Val << SDHC_PVR_CLKGSEL_Pos)
2333 #define SDHC_PVR_DRVSEL_Pos 14
2334 #define SDHC_PVR_DRVSEL_Msk (_U_(0x3) << SDHC_PVR_DRVSEL_Pos)
2335 #define SDHC_PVR_DRVSEL(value) (SDHC_PVR_DRVSEL_Msk & ((value) << SDHC_PVR_DRVSEL_Pos))
2336 #define SDHC_PVR_DRVSEL_B_Val _U_(0x0)
2337 #define SDHC_PVR_DRVSEL_A_Val _U_(0x1)
2338 #define SDHC_PVR_DRVSEL_C_Val _U_(0x2)
2339 #define SDHC_PVR_DRVSEL_D_Val _U_(0x3)
2340 #define SDHC_PVR_DRVSEL_B (SDHC_PVR_DRVSEL_B_Val << SDHC_PVR_DRVSEL_Pos)
2341 #define SDHC_PVR_DRVSEL_A (SDHC_PVR_DRVSEL_A_Val << SDHC_PVR_DRVSEL_Pos)
2342 #define SDHC_PVR_DRVSEL_C (SDHC_PVR_DRVSEL_C_Val << SDHC_PVR_DRVSEL_Pos)
2343 #define SDHC_PVR_DRVSEL_D (SDHC_PVR_DRVSEL_D_Val << SDHC_PVR_DRVSEL_Pos)
2344 #define SDHC_PVR_MASK _U_(0xC7FF)
2347 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
2357 #define SDHC_SISR_OFFSET 0x0FC
2358 #define SDHC_SISR_RESETVALUE _U_(0x20000)
2360 #define SDHC_SISR_INTSSL_Pos 0
2361 #define SDHC_SISR_INTSSL_Msk (_U_(0x1) << SDHC_SISR_INTSSL_Pos)
2362 #define SDHC_SISR_INTSSL(value) (SDHC_SISR_INTSSL_Msk & ((value) << SDHC_SISR_INTSSL_Pos))
2363 #define SDHC_SISR_MASK _U_(0x0001)
2366 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
2376 #define SDHC_HCVR_OFFSET 0x0FE
2377 #define SDHC_HCVR_RESETVALUE _U_(0x1802)
2379 #define SDHC_HCVR_SVER_Pos 0
2380 #define SDHC_HCVR_SVER_Msk (_U_(0xFF) << SDHC_HCVR_SVER_Pos)
2381 #define SDHC_HCVR_SVER(value) (SDHC_HCVR_SVER_Msk & ((value) << SDHC_HCVR_SVER_Pos))
2382 #define SDHC_HCVR_VVER_Pos 8
2383 #define SDHC_HCVR_VVER_Msk (_U_(0xFF) << SDHC_HCVR_VVER_Pos)
2384 #define SDHC_HCVR_VVER(value) (SDHC_HCVR_VVER_Msk & ((value) << SDHC_HCVR_VVER_Pos))
2385 #define SDHC_HCVR_MASK _U_(0xFFFF)
2388 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
2403 #define SDHC_MC1R_OFFSET 0x204
2404 #define SDHC_MC1R_RESETVALUE _U_(0x00)
2406 #define SDHC_MC1R_CMDTYP_Pos 0
2407 #define SDHC_MC1R_CMDTYP_Msk (_U_(0x3) << SDHC_MC1R_CMDTYP_Pos)
2408 #define SDHC_MC1R_CMDTYP(value) (SDHC_MC1R_CMDTYP_Msk & ((value) << SDHC_MC1R_CMDTYP_Pos))
2409 #define SDHC_MC1R_CMDTYP_NORMAL_Val _U_(0x0)
2410 #define SDHC_MC1R_CMDTYP_WAITIRQ_Val _U_(0x1)
2411 #define SDHC_MC1R_CMDTYP_STREAM_Val _U_(0x2)
2412 #define SDHC_MC1R_CMDTYP_BOOT_Val _U_(0x3)
2413 #define SDHC_MC1R_CMDTYP_NORMAL (SDHC_MC1R_CMDTYP_NORMAL_Val << SDHC_MC1R_CMDTYP_Pos)
2414 #define SDHC_MC1R_CMDTYP_WAITIRQ (SDHC_MC1R_CMDTYP_WAITIRQ_Val << SDHC_MC1R_CMDTYP_Pos)
2415 #define SDHC_MC1R_CMDTYP_STREAM (SDHC_MC1R_CMDTYP_STREAM_Val << SDHC_MC1R_CMDTYP_Pos)
2416 #define SDHC_MC1R_CMDTYP_BOOT (SDHC_MC1R_CMDTYP_BOOT_Val << SDHC_MC1R_CMDTYP_Pos)
2417 #define SDHC_MC1R_DDR_Pos 3
2418 #define SDHC_MC1R_DDR (_U_(0x1) << SDHC_MC1R_DDR_Pos)
2419 #define SDHC_MC1R_OPD_Pos 4
2420 #define SDHC_MC1R_OPD (_U_(0x1) << SDHC_MC1R_OPD_Pos)
2421 #define SDHC_MC1R_BOOTA_Pos 5
2422 #define SDHC_MC1R_BOOTA (_U_(0x1) << SDHC_MC1R_BOOTA_Pos)
2423 #define SDHC_MC1R_RSTN_Pos 6
2424 #define SDHC_MC1R_RSTN (_U_(0x1) << SDHC_MC1R_RSTN_Pos)
2425 #define SDHC_MC1R_FCD_Pos 7
2426 #define SDHC_MC1R_FCD (_U_(0x1) << SDHC_MC1R_FCD_Pos)
2427 #define SDHC_MC1R_MASK _U_(0xFB)
2430 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
2441 #define SDHC_MC2R_OFFSET 0x205
2442 #define SDHC_MC2R_RESETVALUE _U_(0x00)
2444 #define SDHC_MC2R_SRESP_Pos 0
2445 #define SDHC_MC2R_SRESP (_U_(0x1) << SDHC_MC2R_SRESP_Pos)
2446 #define SDHC_MC2R_ABOOT_Pos 1
2447 #define SDHC_MC2R_ABOOT (_U_(0x1) << SDHC_MC2R_ABOOT_Pos)
2448 #define SDHC_MC2R_MASK _U_(0x03)
2451 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
2461 #define SDHC_ACR_OFFSET 0x208
2462 #define SDHC_ACR_RESETVALUE _U_(0x00000000)
2464 #define SDHC_ACR_BMAX_Pos 0
2465 #define SDHC_ACR_BMAX_Msk (_U_(0x3) << SDHC_ACR_BMAX_Pos)
2466 #define SDHC_ACR_BMAX(value) (SDHC_ACR_BMAX_Msk & ((value) << SDHC_ACR_BMAX_Pos))
2467 #define SDHC_ACR_BMAX_INCR16_Val _U_(0x0)
2468 #define SDHC_ACR_BMAX_INCR8_Val _U_(0x1)
2469 #define SDHC_ACR_BMAX_INCR4_Val _U_(0x2)
2470 #define SDHC_ACR_BMAX_SINGLE_Val _U_(0x3)
2471 #define SDHC_ACR_BMAX_INCR16 (SDHC_ACR_BMAX_INCR16_Val << SDHC_ACR_BMAX_Pos)
2472 #define SDHC_ACR_BMAX_INCR8 (SDHC_ACR_BMAX_INCR8_Val << SDHC_ACR_BMAX_Pos)
2473 #define SDHC_ACR_BMAX_INCR4 (SDHC_ACR_BMAX_INCR4_Val << SDHC_ACR_BMAX_Pos)
2474 #define SDHC_ACR_BMAX_SINGLE (SDHC_ACR_BMAX_SINGLE_Val << SDHC_ACR_BMAX_Pos)
2475 #define SDHC_ACR_MASK _U_(0x00000003)
2478 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
2488 #define SDHC_CC2R_OFFSET 0x20C
2489 #define SDHC_CC2R_RESETVALUE _U_(0x00000000)
2491 #define SDHC_CC2R_FSDCLKD_Pos 0
2492 #define SDHC_CC2R_FSDCLKD (_U_(0x1) << SDHC_CC2R_FSDCLKD_Pos)
2493 #define SDHC_CC2R_FSDCLKD_NOEFFECT_Val _U_(0x0)
2494 #define SDHC_CC2R_FSDCLKD_DISABLE_Val _U_(0x1)
2495 #define SDHC_CC2R_FSDCLKD_NOEFFECT (SDHC_CC2R_FSDCLKD_NOEFFECT_Val << SDHC_CC2R_FSDCLKD_Pos)
2496 #define SDHC_CC2R_FSDCLKD_DISABLE (SDHC_CC2R_FSDCLKD_DISABLE_Val << SDHC_CC2R_FSDCLKD_Pos)
2497 #define SDHC_CC2R_MASK _U_(0x00000001)
2500 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
2512 #define SDHC_CACR_OFFSET 0x230
2513 #define SDHC_CACR_RESETVALUE _U_(0x00000000)
2515 #define SDHC_CACR_CAPWREN_Pos 0
2516 #define SDHC_CACR_CAPWREN (_U_(0x1) << SDHC_CACR_CAPWREN_Pos)
2517 #define SDHC_CACR_KEY_Pos 8
2518 #define SDHC_CACR_KEY_Msk (_U_(0xFF) << SDHC_CACR_KEY_Pos)
2519 #define SDHC_CACR_KEY(value) (SDHC_CACR_KEY_Msk & ((value) << SDHC_CACR_KEY_Pos))
2520 #define SDHC_CACR_MASK _U_(0x0000FF01)
2523 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
2533 #define SDHC_DBGR_OFFSET 0x234
2534 #define SDHC_DBGR_RESETVALUE _U_(0x00)
2536 #define SDHC_DBGR_NIDBG_Pos 0
2537 #define SDHC_DBGR_NIDBG (_U_(0x1) << SDHC_DBGR_NIDBG_Pos)
2538 #define SDHC_DBGR_NIDBG_IDBG_Val _U_(0x0)
2539 #define SDHC_DBGR_NIDBG_NIDBG_Val _U_(0x1)
2540 #define SDHC_DBGR_NIDBG_IDBG (SDHC_DBGR_NIDBG_IDBG_Val << SDHC_DBGR_NIDBG_Pos)
2541 #define SDHC_DBGR_NIDBG_NIDBG (SDHC_DBGR_NIDBG_NIDBG_Val << SDHC_DBGR_NIDBG_Pos)
2542 #define SDHC_DBGR_MASK _U_(0x01)
2545 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
__O SDHC_FERACES_Type FERACES
Offset: 0x050 ( /W 16) Force Event for Auto CMD Error Status.
__I SDHC_PSR_Type PSR
Offset: 0x024 (R/ 32) Present State.
__IO SDHC_EISTR_Type EISTR
Offset: 0x032 (R/W 16) Error Interrupt Status.
__IO SDHC_PCR_Type PCR
Offset: 0x029 (R/W 8) Power Control.
__I SDHC_ACESR_Type ACESR
Offset: 0x03C (R/ 16) Auto CMD Error Status.
__IO SDHC_TMR_Type TMR
Offset: 0x00C (R/W 16) Transfer Mode.
__IO SDHC_NISTER_Type NISTER
Offset: 0x034 (R/W 16) Normal Interrupt Status Enable.
__IO SDHC_BDPR_Type BDPR
Offset: 0x020 (R/W 32) Buffer Data Port.
__IO SDHC_SSAR_Type SSAR
Offset: 0x000 (R/W 32) SDMA System Address / Argument 2.
__IO SDHC_CCR_Type CCR
Offset: 0x02C (R/W 16) Clock Control.
__IO SDHC_ACR_Type ACR
Offset: 0x208 (R/W 32) AHB Control.
__IO SDHC_TCR_Type TCR
Offset: 0x02E (R/W 8) Timeout Control.
__O SDHC_MC2R_Type MC2R
Offset: 0x205 ( /W 8) MMC Control 2.
__IO SDHC_MC1R_Type MC1R
Offset: 0x204 (R/W 8) MMC Control 1.
__IO SDHC_WCR_Type WCR
Offset: 0x02B (R/W 8) Wakeup Control.
__IO SDHC_NISIER_Type NISIER
Offset: 0x038 (R/W 16) Normal Interrupt Signal Enable.
__I SDHC_AESR_Type AESR
Offset: 0x054 (R/ 8) ADMA Error Status.
__IO SDHC_CR_Type CR
Offset: 0x00E (R/W 16) Command.
__IO SDHC_NISTR_Type NISTR
Offset: 0x030 (R/W 16) Normal Interrupt Status.
__IO SDHC_CACR_Type CACR
Offset: 0x230 (R/W 32) Capabilities Control.
__IO SDHC_DBGR_Type DBGR
Offset: 0x234 (R/W 8) Debug.
__IO SDHC_BCR_Type BCR
Offset: 0x006 (R/W 16) Block Count.
__IO SDHC_BSR_Type BSR
Offset: 0x004 (R/W 16) Block Size.
__IO SDHC_EISTER_Type EISTER
Offset: 0x036 (R/W 16) Error Interrupt Status Enable.
__I SDHC_SISR_Type SISR
Offset: 0x0FC (R/ 16) Slot Interrupt Status.
__IO SDHC_HC1R_Type HC1R
Offset: 0x028 (R/W 8) Host Control 1.
__IO SDHC_ARG1R_Type ARG1R
Offset: 0x008 (R/W 32) Argument 1.
__IO SDHC_CC2R_Type CC2R
Offset: 0x20C (R/W 32) Clock Control 2.
__I SDHC_CA0R_Type CA0R
Offset: 0x040 (R/ 32) Capabilities 0.
__IO SDHC_HC2R_Type HC2R
Offset: 0x03E (R/W 16) Host Control 2.
__O SDHC_FEREIS_Type FEREIS
Offset: 0x052 ( /W 16) Force Event for Error Interrupt Status.
__IO SDHC_EISIER_Type EISIER
Offset: 0x03A (R/W 16) Error Interrupt Signal Enable.
__IO SDHC_BGCR_Type BGCR
Offset: 0x02A (R/W 8) Block Gap Control.
__I SDHC_MCCAR_Type MCCAR
Offset: 0x048 (R/ 32) Maximum Current Capabilities.
volatile const uint8_t RoReg8
__I SDHC_CA1R_Type CA1R
Offset: 0x044 (R/ 32) Capabilities 1.
__I SDHC_HCVR_Type HCVR
Offset: 0x0FE (R/ 16) Host Controller Version.
__IO SDHC_SRR_Type SRR
Offset: 0x02F (R/W 8) Software Reset.