EZ-USB FX3 Technical Reference Manual, Document Number: 001-76074 Rev. *F 10
Contents
9.4.1 SD/MMC Interface Overview.....................................................................................201
9.4.2 SDIO Interface Overview ..........................................................................................203
9.5 FX3S S-Port Operations Overview .......................................................................................203
9.5.1 S-port Initialization and Configuration .......................................................................204
9.5.1.1 Configuring the FX3S I/O Matrix................................................................204
9.5.1.2 Setting S-Port Interface Parameters..........................................................204
9.5.1.3 Starting the Storage Driver ........................................................................205
9.5.1.4 Setting the S-Port Clock ............................................................................206
9.5.1.5 Sending SD/MMC/SDIO Commands.........................................................206
9.5.1.6 Handling SIB Events..................................................................................208
9.5.2 Reads and Writes to SD/ MMC Using DMA Transfers ..............................................210
9.5.2.1 Sending Vendor Commands to SD/ MMC.................................................212
9.5.2.2 Setting the Granularity of Write Operations...............................................212
9.5.2.3 Checking Card Status................................................................................212
9.5.2.4 Aborting Ongoing Transaction to S-Port....................................................212
9.5.3 Working with SDIO Cards .........................................................................................213
9.5.3.1 Configuration and Initialization ..................................................................213
9.5.3.2 Reads and Writes from SDIO Card Registers ...........................................213
9.5.3.3 IO_RW_DIRECT Command (CMD52) ......................................................213
9.5.3.4 Setting Function Block Size.......................................................................218
9.5.3.5 Initialization and Operation of SDIO Functions..........................................218
9.5.3.6 SDIO Interrupts..........................................................................................218
9.5.3.7 Enabling and Disabling SDIO Interrupts....................................................219
9.5.3.8 Handling SDIO Interrupts ..........................................................................219
9.6 FX3S-Specific Features........................................................................................................220
9.6.1 Card Insertion and Removal Detection Mechanism..................................................220
9.6.2 Handling Card Detection in Software ........................................................................221
9.6.3 Write Protection.........................................................................................................222
9.6.4 SD/MMC CLOCK STOP ...........................................................................................222
9.6.5 SD_CLK Output Clock Stop ......................................................................................222
9.6.6 SDIO Read-Wait/ Suspend-Resume Feature ...........................................................222
9.6.6.1 Read-Wait..................................................................................................222
9.6.6.2 Suspend-Resume Feature ........................................................................223
9.6.6.3 SD3.0 Host Tuning Feature.......................................................................223
9.6.6.4 Normal and Alternate eMMC4.4 Boot........................................................224
10. Registers 228
10.1 Introduction ...........................................................................................................................228
10.2 Register Conventions ...........................................................................................................229
10.3 Vectored Interrupt Controller (VIC) Registers.......................................................................230
10.3.1 VIC_IRQ_STATUS ...............................................................................................230
10.3.2 VIC_FIQ_STATUS ...............................................................................................231
10.3.3 VIC_RAW_STATUS .............................................................................................232
10.3.4 VIC_INT_SELECT ...............................................................................................233
10.3.5 VIC_INT_ENABLE ...............................................................................................234
10.3.6 VIC_INT_CLEAR .................................................................................................235
10.3.7 VIC_PRIORITY_MASK ........................................................................................236
10.3.8 VIC_VEC_ADDRESS ..........................................................................................237
10.3.9 VIC_VECT_PRIORITY .........................................................................................238
10.3.10 VIC_ADDRESS ....................................................................................................239