30 #ifndef _SAM3XA_HSMCI_COMPONENT_ 31 #define _SAM3XA_HSMCI_COMPONENT_ 39 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 64 RwReg HSMCI_FIFO[256];
68 #define HSMCI_CR_MCIEN (0x1u << 0) 69 #define HSMCI_CR_MCIDIS (0x1u << 1) 70 #define HSMCI_CR_PWSEN (0x1u << 2) 71 #define HSMCI_CR_PWSDIS (0x1u << 3) 72 #define HSMCI_CR_SWRST (0x1u << 7) 74 #define HSMCI_MR_CLKDIV_Pos 0 75 #define HSMCI_MR_CLKDIV_Msk (0xffu << HSMCI_MR_CLKDIV_Pos) 76 #define HSMCI_MR_CLKDIV(value) ((HSMCI_MR_CLKDIV_Msk & ((value) << HSMCI_MR_CLKDIV_Pos))) 77 #define HSMCI_MR_PWSDIV_Pos 8 78 #define HSMCI_MR_PWSDIV_Msk (0x7u << HSMCI_MR_PWSDIV_Pos) 79 #define HSMCI_MR_PWSDIV(value) ((HSMCI_MR_PWSDIV_Msk & ((value) << HSMCI_MR_PWSDIV_Pos))) 80 #define HSMCI_MR_RDPROOF (0x1u << 11) 81 #define HSMCI_MR_WRPROOF (0x1u << 12) 82 #define HSMCI_MR_FBYTE (0x1u << 13) 83 #define HSMCI_MR_PADV (0x1u << 14) 85 #define HSMCI_DTOR_DTOCYC_Pos 0 86 #define HSMCI_DTOR_DTOCYC_Msk (0xfu << HSMCI_DTOR_DTOCYC_Pos) 87 #define HSMCI_DTOR_DTOCYC(value) ((HSMCI_DTOR_DTOCYC_Msk & ((value) << HSMCI_DTOR_DTOCYC_Pos))) 88 #define HSMCI_DTOR_DTOMUL_Pos 4 89 #define HSMCI_DTOR_DTOMUL_Msk (0x7u << HSMCI_DTOR_DTOMUL_Pos) 90 #define HSMCI_DTOR_DTOMUL_1 (0x0u << 4) 91 #define HSMCI_DTOR_DTOMUL_16 (0x1u << 4) 92 #define HSMCI_DTOR_DTOMUL_128 (0x2u << 4) 93 #define HSMCI_DTOR_DTOMUL_256 (0x3u << 4) 94 #define HSMCI_DTOR_DTOMUL_1024 (0x4u << 4) 95 #define HSMCI_DTOR_DTOMUL_4096 (0x5u << 4) 96 #define HSMCI_DTOR_DTOMUL_65536 (0x6u << 4) 97 #define HSMCI_DTOR_DTOMUL_1048576 (0x7u << 4) 99 #define HSMCI_SDCR_SDCSEL_Pos 0 100 #define HSMCI_SDCR_SDCSEL_Msk (0x3u << HSMCI_SDCR_SDCSEL_Pos) 101 #define HSMCI_SDCR_SDCSEL_SLOTA (0x0u << 0) 102 #define HSMCI_SDCR_SDCSEL_SLOTB (0x1u << 0) 103 #define HSMCI_SDCR_SDCSEL_SLOTC (0x2u << 0) 104 #define HSMCI_SDCR_SDCSEL_SLOTD (0x3u << 0) 105 #define HSMCI_SDCR_SDCBUS_Pos 6 106 #define HSMCI_SDCR_SDCBUS_Msk (0x3u << HSMCI_SDCR_SDCBUS_Pos) 107 #define HSMCI_SDCR_SDCBUS_1 (0x0u << 6) 108 #define HSMCI_SDCR_SDCBUS_4 (0x2u << 6) 109 #define HSMCI_SDCR_SDCBUS_8 (0x3u << 6) 111 #define HSMCI_ARGR_ARG_Pos 0 112 #define HSMCI_ARGR_ARG_Msk (0xffffffffu << HSMCI_ARGR_ARG_Pos) 113 #define HSMCI_ARGR_ARG(value) ((HSMCI_ARGR_ARG_Msk & ((value) << HSMCI_ARGR_ARG_Pos))) 115 #define HSMCI_CMDR_CMDNB_Pos 0 116 #define HSMCI_CMDR_CMDNB_Msk (0x3fu << HSMCI_CMDR_CMDNB_Pos) 117 #define HSMCI_CMDR_CMDNB(value) ((HSMCI_CMDR_CMDNB_Msk & ((value) << HSMCI_CMDR_CMDNB_Pos))) 118 #define HSMCI_CMDR_RSPTYP_Pos 6 119 #define HSMCI_CMDR_RSPTYP_Msk (0x3u << HSMCI_CMDR_RSPTYP_Pos) 120 #define HSMCI_CMDR_RSPTYP_NORESP (0x0u << 6) 121 #define HSMCI_CMDR_RSPTYP_48_BIT (0x1u << 6) 122 #define HSMCI_CMDR_RSPTYP_136_BIT (0x2u << 6) 123 #define HSMCI_CMDR_RSPTYP_R1B (0x3u << 6) 124 #define HSMCI_CMDR_SPCMD_Pos 8 125 #define HSMCI_CMDR_SPCMD_Msk (0x7u << HSMCI_CMDR_SPCMD_Pos) 126 #define HSMCI_CMDR_SPCMD_STD (0x0u << 8) 127 #define HSMCI_CMDR_SPCMD_INIT (0x1u << 8) 128 #define HSMCI_CMDR_SPCMD_SYNC (0x2u << 8) 129 #define HSMCI_CMDR_SPCMD_CE_ATA (0x3u << 8) 130 #define HSMCI_CMDR_SPCMD_IT_CMD (0x4u << 8) 131 #define HSMCI_CMDR_SPCMD_IT_RESP (0x5u << 8) 132 #define HSMCI_CMDR_SPCMD_BOR (0x6u << 8) 133 #define HSMCI_CMDR_SPCMD_EBO (0x7u << 8) 134 #define HSMCI_CMDR_OPDCMD (0x1u << 11) 135 #define HSMCI_CMDR_OPDCMD_PUSHPULL (0x0u << 11) 136 #define HSMCI_CMDR_OPDCMD_OPENDRAIN (0x1u << 11) 137 #define HSMCI_CMDR_MAXLAT (0x1u << 12) 138 #define HSMCI_CMDR_MAXLAT_5 (0x0u << 12) 139 #define HSMCI_CMDR_MAXLAT_64 (0x1u << 12) 140 #define HSMCI_CMDR_TRCMD_Pos 16 141 #define HSMCI_CMDR_TRCMD_Msk (0x3u << HSMCI_CMDR_TRCMD_Pos) 142 #define HSMCI_CMDR_TRCMD_NO_DATA (0x0u << 16) 143 #define HSMCI_CMDR_TRCMD_START_DATA (0x1u << 16) 144 #define HSMCI_CMDR_TRCMD_STOP_DATA (0x2u << 16) 145 #define HSMCI_CMDR_TRDIR (0x1u << 18) 146 #define HSMCI_CMDR_TRDIR_WRITE (0x0u << 18) 147 #define HSMCI_CMDR_TRDIR_READ (0x1u << 18) 148 #define HSMCI_CMDR_TRTYP_Pos 19 149 #define HSMCI_CMDR_TRTYP_Msk (0x7u << HSMCI_CMDR_TRTYP_Pos) 150 #define HSMCI_CMDR_TRTYP_SINGLE (0x0u << 19) 151 #define HSMCI_CMDR_TRTYP_MULTIPLE (0x1u << 19) 152 #define HSMCI_CMDR_TRTYP_STREAM (0x2u << 19) 153 #define HSMCI_CMDR_TRTYP_BYTE (0x4u << 19) 154 #define HSMCI_CMDR_TRTYP_BLOCK (0x5u << 19) 155 #define HSMCI_CMDR_IOSPCMD_Pos 24 156 #define HSMCI_CMDR_IOSPCMD_Msk (0x3u << HSMCI_CMDR_IOSPCMD_Pos) 157 #define HSMCI_CMDR_IOSPCMD_STD (0x0u << 24) 158 #define HSMCI_CMDR_IOSPCMD_SUSPEND (0x1u << 24) 159 #define HSMCI_CMDR_IOSPCMD_RESUME (0x2u << 24) 160 #define HSMCI_CMDR_ATACS (0x1u << 26) 161 #define HSMCI_CMDR_ATACS_NORMAL (0x0u << 26) 162 #define HSMCI_CMDR_ATACS_COMPLETION (0x1u << 26) 163 #define HSMCI_CMDR_BOOT_ACK (0x1u << 27) 165 #define HSMCI_BLKR_BCNT_Pos 0 166 #define HSMCI_BLKR_BCNT_Msk (0xffffu << HSMCI_BLKR_BCNT_Pos) 167 #define HSMCI_BLKR_BCNT_MULTIPLE (0x0u << 0) 168 #define HSMCI_BLKR_BCNT_BYTE (0x4u << 0) 169 #define HSMCI_BLKR_BCNT_BLOCK (0x5u << 0) 170 #define HSMCI_BLKR_BLKLEN_Pos 16 171 #define HSMCI_BLKR_BLKLEN_Msk (0xffffu << HSMCI_BLKR_BLKLEN_Pos) 172 #define HSMCI_BLKR_BLKLEN(value) ((HSMCI_BLKR_BLKLEN_Msk & ((value) << HSMCI_BLKR_BLKLEN_Pos))) 174 #define HSMCI_CSTOR_CSTOCYC_Pos 0 175 #define HSMCI_CSTOR_CSTOCYC_Msk (0xfu << HSMCI_CSTOR_CSTOCYC_Pos) 176 #define HSMCI_CSTOR_CSTOCYC(value) ((HSMCI_CSTOR_CSTOCYC_Msk & ((value) << HSMCI_CSTOR_CSTOCYC_Pos))) 177 #define HSMCI_CSTOR_CSTOMUL_Pos 4 178 #define HSMCI_CSTOR_CSTOMUL_Msk (0x7u << HSMCI_CSTOR_CSTOMUL_Pos) 179 #define HSMCI_CSTOR_CSTOMUL_1 (0x0u << 4) 180 #define HSMCI_CSTOR_CSTOMUL_16 (0x1u << 4) 181 #define HSMCI_CSTOR_CSTOMUL_128 (0x2u << 4) 182 #define HSMCI_CSTOR_CSTOMUL_256 (0x3u << 4) 183 #define HSMCI_CSTOR_CSTOMUL_1024 (0x4u << 4) 184 #define HSMCI_CSTOR_CSTOMUL_4096 (0x5u << 4) 185 #define HSMCI_CSTOR_CSTOMUL_65536 (0x6u << 4) 186 #define HSMCI_CSTOR_CSTOMUL_1048576 (0x7u << 4) 188 #define HSMCI_RSPR_RSP_Pos 0 189 #define HSMCI_RSPR_RSP_Msk (0xffffffffu << HSMCI_RSPR_RSP_Pos) 191 #define HSMCI_RDR_DATA_Pos 0 192 #define HSMCI_RDR_DATA_Msk (0xffffffffu << HSMCI_RDR_DATA_Pos) 194 #define HSMCI_TDR_DATA_Pos 0 195 #define HSMCI_TDR_DATA_Msk (0xffffffffu << HSMCI_TDR_DATA_Pos) 196 #define HSMCI_TDR_DATA(value) ((HSMCI_TDR_DATA_Msk & ((value) << HSMCI_TDR_DATA_Pos))) 198 #define HSMCI_SR_CMDRDY (0x1u << 0) 199 #define HSMCI_SR_RXRDY (0x1u << 1) 200 #define HSMCI_SR_TXRDY (0x1u << 2) 201 #define HSMCI_SR_BLKE (0x1u << 3) 202 #define HSMCI_SR_DTIP (0x1u << 4) 203 #define HSMCI_SR_NOTBUSY (0x1u << 5) 204 #define HSMCI_SR_SDIOIRQforSlotA (0x1u << 8) 205 #define HSMCI_SR_SDIOIRQforSlotB (0x1u << 9) 206 #define HSMCI_SR_SDIOWAIT (0x1u << 12) 207 #define HSMCI_SR_CSRCV (0x1u << 13) 208 #define HSMCI_SR_RINDE (0x1u << 16) 209 #define HSMCI_SR_RDIRE (0x1u << 17) 210 #define HSMCI_SR_RCRCE (0x1u << 18) 211 #define HSMCI_SR_RENDE (0x1u << 19) 212 #define HSMCI_SR_RTOE (0x1u << 20) 213 #define HSMCI_SR_DCRCE (0x1u << 21) 214 #define HSMCI_SR_DTOE (0x1u << 22) 215 #define HSMCI_SR_CSTOE (0x1u << 23) 216 #define HSMCI_SR_BLKOVRE (0x1u << 24) 217 #define HSMCI_SR_DMADONE (0x1u << 25) 218 #define HSMCI_SR_FIFOEMPTY (0x1u << 26) 219 #define HSMCI_SR_XFRDONE (0x1u << 27) 220 #define HSMCI_SR_ACKRCV (0x1u << 28) 221 #define HSMCI_SR_ACKRCVE (0x1u << 29) 222 #define HSMCI_SR_OVRE (0x1u << 30) 223 #define HSMCI_SR_UNRE (0x1u << 31) 225 #define HSMCI_IER_CMDRDY (0x1u << 0) 226 #define HSMCI_IER_RXRDY (0x1u << 1) 227 #define HSMCI_IER_TXRDY (0x1u << 2) 228 #define HSMCI_IER_BLKE (0x1u << 3) 229 #define HSMCI_IER_DTIP (0x1u << 4) 230 #define HSMCI_IER_NOTBUSY (0x1u << 5) 231 #define HSMCI_IER_SDIOIRQforSlotA (0x1u << 8) 232 #define HSMCI_IER_SDIOIRQforSlotB (0x1u << 9) 233 #define HSMCI_IER_SDIOWAIT (0x1u << 12) 234 #define HSMCI_IER_CSRCV (0x1u << 13) 235 #define HSMCI_IER_RINDE (0x1u << 16) 236 #define HSMCI_IER_RDIRE (0x1u << 17) 237 #define HSMCI_IER_RCRCE (0x1u << 18) 238 #define HSMCI_IER_RENDE (0x1u << 19) 239 #define HSMCI_IER_RTOE (0x1u << 20) 240 #define HSMCI_IER_DCRCE (0x1u << 21) 241 #define HSMCI_IER_DTOE (0x1u << 22) 242 #define HSMCI_IER_CSTOE (0x1u << 23) 243 #define HSMCI_IER_BLKOVRE (0x1u << 24) 244 #define HSMCI_IER_DMADONE (0x1u << 25) 245 #define HSMCI_IER_FIFOEMPTY (0x1u << 26) 246 #define HSMCI_IER_XFRDONE (0x1u << 27) 247 #define HSMCI_IER_ACKRCV (0x1u << 28) 248 #define HSMCI_IER_ACKRCVE (0x1u << 29) 249 #define HSMCI_IER_OVRE (0x1u << 30) 250 #define HSMCI_IER_UNRE (0x1u << 31) 252 #define HSMCI_IDR_CMDRDY (0x1u << 0) 253 #define HSMCI_IDR_RXRDY (0x1u << 1) 254 #define HSMCI_IDR_TXRDY (0x1u << 2) 255 #define HSMCI_IDR_BLKE (0x1u << 3) 256 #define HSMCI_IDR_DTIP (0x1u << 4) 257 #define HSMCI_IDR_NOTBUSY (0x1u << 5) 258 #define HSMCI_IDR_SDIOIRQforSlotA (0x1u << 8) 259 #define HSMCI_IDR_SDIOIRQforSlotB (0x1u << 9) 260 #define HSMCI_IDR_SDIOWAIT (0x1u << 12) 261 #define HSMCI_IDR_CSRCV (0x1u << 13) 262 #define HSMCI_IDR_RINDE (0x1u << 16) 263 #define HSMCI_IDR_RDIRE (0x1u << 17) 264 #define HSMCI_IDR_RCRCE (0x1u << 18) 265 #define HSMCI_IDR_RENDE (0x1u << 19) 266 #define HSMCI_IDR_RTOE (0x1u << 20) 267 #define HSMCI_IDR_DCRCE (0x1u << 21) 268 #define HSMCI_IDR_DTOE (0x1u << 22) 269 #define HSMCI_IDR_CSTOE (0x1u << 23) 270 #define HSMCI_IDR_BLKOVRE (0x1u << 24) 271 #define HSMCI_IDR_DMADONE (0x1u << 25) 272 #define HSMCI_IDR_FIFOEMPTY (0x1u << 26) 273 #define HSMCI_IDR_XFRDONE (0x1u << 27) 274 #define HSMCI_IDR_ACKRCV (0x1u << 28) 275 #define HSMCI_IDR_ACKRCVE (0x1u << 29) 276 #define HSMCI_IDR_OVRE (0x1u << 30) 277 #define HSMCI_IDR_UNRE (0x1u << 31) 279 #define HSMCI_IMR_CMDRDY (0x1u << 0) 280 #define HSMCI_IMR_RXRDY (0x1u << 1) 281 #define HSMCI_IMR_TXRDY (0x1u << 2) 282 #define HSMCI_IMR_BLKE (0x1u << 3) 283 #define HSMCI_IMR_DTIP (0x1u << 4) 284 #define HSMCI_IMR_NOTBUSY (0x1u << 5) 285 #define HSMCI_IMR_SDIOIRQforSlotA (0x1u << 8) 286 #define HSMCI_IMR_SDIOIRQforSlotB (0x1u << 9) 287 #define HSMCI_IMR_SDIOWAIT (0x1u << 12) 288 #define HSMCI_IMR_CSRCV (0x1u << 13) 289 #define HSMCI_IMR_RINDE (0x1u << 16) 290 #define HSMCI_IMR_RDIRE (0x1u << 17) 291 #define HSMCI_IMR_RCRCE (0x1u << 18) 292 #define HSMCI_IMR_RENDE (0x1u << 19) 293 #define HSMCI_IMR_RTOE (0x1u << 20) 294 #define HSMCI_IMR_DCRCE (0x1u << 21) 295 #define HSMCI_IMR_DTOE (0x1u << 22) 296 #define HSMCI_IMR_CSTOE (0x1u << 23) 297 #define HSMCI_IMR_BLKOVRE (0x1u << 24) 298 #define HSMCI_IMR_DMADONE (0x1u << 25) 299 #define HSMCI_IMR_FIFOEMPTY (0x1u << 26) 300 #define HSMCI_IMR_XFRDONE (0x1u << 27) 301 #define HSMCI_IMR_ACKRCV (0x1u << 28) 302 #define HSMCI_IMR_ACKRCVE (0x1u << 29) 303 #define HSMCI_IMR_OVRE (0x1u << 30) 304 #define HSMCI_IMR_UNRE (0x1u << 31) 306 #define HSMCI_DMA_OFFSET_Pos 0 307 #define HSMCI_DMA_OFFSET_Msk (0x3u << HSMCI_DMA_OFFSET_Pos) 308 #define HSMCI_DMA_OFFSET(value) ((HSMCI_DMA_OFFSET_Msk & ((value) << HSMCI_DMA_OFFSET_Pos))) 309 #define HSMCI_DMA_CHKSIZE (0x1u << 4) 310 #define HSMCI_DMA_CHKSIZE_1 (0x0u << 4) 311 #define HSMCI_DMA_CHKSIZE_4 (0x1u << 4) 312 #define HSMCI_DMA_DMAEN (0x1u << 8) 313 #define HSMCI_DMA_ROPT (0x1u << 12) 315 #define HSMCI_CFG_FIFOMODE (0x1u << 0) 316 #define HSMCI_CFG_FERRCTRL (0x1u << 4) 317 #define HSMCI_CFG_HSMODE (0x1u << 8) 318 #define HSMCI_CFG_LSYNC (0x1u << 12) 320 #define HSMCI_WPMR_WP_EN (0x1u << 0) 321 #define HSMCI_WPMR_WP_KEY_Pos 8 322 #define HSMCI_WPMR_WP_KEY_Msk (0xffffffu << HSMCI_WPMR_WP_KEY_Pos) 323 #define HSMCI_WPMR_WP_KEY(value) ((HSMCI_WPMR_WP_KEY_Msk & ((value) << HSMCI_WPMR_WP_KEY_Pos))) 325 #define HSMCI_WPSR_WP_VS_Pos 0 326 #define HSMCI_WPSR_WP_VS_Msk (0xfu << HSMCI_WPSR_WP_VS_Pos) 327 #define HSMCI_WPSR_WP_VS_NONE (0x0u << 0) 328 #define HSMCI_WPSR_WP_VS_WRITE (0x1u << 0) 329 #define HSMCI_WPSR_WP_VS_RESET (0x2u << 0) 330 #define HSMCI_WPSR_WP_VS_BOTH (0x3u << 0) 331 #define HSMCI_WPSR_WP_VSRC_Pos 8 332 #define HSMCI_WPSR_WP_VSRC_Msk (0xffffu << HSMCI_WPSR_WP_VSRC_Pos) 334 #define HSMCI_FIFO_DATA_Pos 0 335 #define HSMCI_FIFO_DATA_Msk (0xffffffffu << HSMCI_FIFO_DATA_Pos) 336 #define HSMCI_FIFO_DATA(value) ((HSMCI_FIFO_DATA_Msk & ((value) << HSMCI_FIFO_DATA_Pos))) volatile uint32_t RwReg
Definition: sam3n00a.h:54
volatile uint32_t WoReg
Definition: sam3n00a.h:53
Hsmci hardware registers.
Definition: component_hsmci.h:41
volatile const uint32_t RoReg
Definition: sam3n00a.h:49