...
Field Name | Bit | Access | Description |
Reserved | 31:16 | RO | RESERVED |
Reserved | 15:11 | RO | RESERVED |
dmadst | 10:8 | RW | DMA Destination Selection others: reserved |
Reserved | 7 | RO | RESERVED |
dmasrc | 6:4 | RW | DMA Source Selection others: reserved |
Reserved | 3 | RO | RESERVED |
MediaType | 2:0 | RW | The Storage Media Type Selection others : reserved |
...
Field Name | Bit | Access | Description |
Reserved | 31:16 | RO | RESERVED |
CARD CTL PAGE CNT | 15:0 | RO | Page Number that CARD CTL is Reading/Writing Currently |
118.2 Length of SDRAM Sector 0 (sdram sector 0 size)
Address: 0x9C003B08
Reset: 0x0000 FFFF
Field Name | Bit | Access | Description |
Reserved | 31:16 | RO | RESERVED |
SDRAM SECTOR 0 SIZE | 15:0 | RW | The Length of Sector 0 in SDRAM The actual size equals SDRAM SECTOR 0 SIZE + 1, the unit is page(512 bytes) Note: this sector register can only used in HW DMA mode default is '0xffff' |
...
Field Name | Bit | Access | Description |
HWSD CMD13 RCA | 31:16 | RW | The Relative Card Address This register is used for the argument of cmd13 when HW DMA EN & HW SD CMD13 EN equals '1' |
Reserved | 15:14 | RO | RESERVED |
HW BLOCK NUM | 13:12 | RW | HW DMA Block Number The actual Blcok number is (HW BLOCK NUM+1). |
dmastart | 11 | WO | HW DMA Start HW DMA EN=1, write 1 to this bit will trigger a hardware speedup multi page DMA data transfer cycle. |
dmaidle | 10 | RW | DMA Idle 0: Normal state(default) 1: Idle state (reset the DMA operation) |
HW DMA RST | 9 | WO | HW DMA Rst Write 1 to this field will reset the HW DMA(HW State Ma- chine) function |
STOP DMA FLAG | 8 | RUW | HW DMA Stop Write 1 to this field will trigger Stop HW DMA function, and this bit will be cleared when sdrst ,HW DMA RST or dmacmpsclr reg |
Reserved | 7 | RO | RESERVED |
HW SD CMD13 EN | 6 | RW | Multi Block Transfer CMD13 Enable High active,it is suggested that setting this bit to 1, default is '0', only multi block transfer use |
HW SD DMA TYPE | 5:4 | RW | SD Hardware Type of DMA Mode |
HW SD HCSD EN | 3 | RW | High Capacity Card enable |
Reserved | 2 | RO | RESERVED |
HW DMA EN | 1 | RW | HW DMA Function Enable |
Reserved | 0 | RO | RESERVED |
118.5 Clock Gated Disable (CARD GCLK DISABLE)
Address: 0x9C003B14
Reset: 0x0
Field Name | Bit | Access | Description |
Reserved | 31:16 | RO | RESERVED |
Reserved | 15:12 | RO | RESERVED |
REG CARD REG FREE | 11 | RW | GCLKDIVCARD CARD REG Free run set this bit to 1 will make GCLKDIVCARD CARD REG clock free run,no longer clock gating |
REG DMA REG FREE | 10 | RW | GCLKDIVCARD DMA REG Free run have the same usage with GCLKDIVCARD CARD REG |
Reserved | 9 | RO | RESERVED |
REG SD HWDMA FREE | 8 | RW | GCLKDIVCARD SD HWDMA Free run have the same usage with GCLKDIVCARD CARD REG |
REG HW DMA FREE | 7 | RW | GCLKDIVCARD HW DMA Free run have the same usage with GCLKDIVCARD CARD REG |
REG HWDMA PAGE FREE | 6 | RW | GCLKDIVCARD HWDMA PAGE Free run have the same usage with GCLKDIVCARD CARD REG |
REG DMA CTL FREE | 5 | RW | GCLKDIVCARD DMA CTL Free run have the same usage with GCLKDIVCARD CARD REG |
REG DMA FIFO FREE | 4 | RW | GCLKDIVCARD DMA FIFO Free run |
Reserved | 3 | RO | RESERVED |
Reserved | 2 | RO | RESERVED |
REG SD FREE | 1 | RW | GCLKDIVCARD SD Free run |
REG SD CTL FREE | 0 | RW | GCLKDIVCARD SD CTL Free run |
...
Field Name | Bit | Access | Description |
Reserved | 31:16 | RO | RESERVED |
SDRAM SECTOR 1 SIZE | 15:0 | RW | Length of Sector 1 in SDRAM The actual size equals SECTOR 1 SIZE + 1, the unit is page(512 bytes) Note: this sector register can only used in HW DMA mode,and when Ring Buffer disable. |
...
Field Name | Bit | Access | Description |
Reserved | 31:16 | RO | RESERVED |
SDRAM SECTOR 2 SIZE | 15:0 | RW | Length of Sector 2 in SDRAM The usage of this register is same as SDRAM SECTOR 1 SIZE |
...
Field Name | Bit | Access | Description |
Reserved | 31:16 | RO | RESERVED |
SDRAM SECTOR 3 SIZE | 15:0 | RW | Length of Sector 3 in SDRAM The usage of this register is same as SDRAM SECTOR 1 SIZE |
...
Field Name | Bit | Access | Description |
Reserved | 31:16 | RO | RESERVED |
SDRAM SECTOR 4 SIZE | 15:0 | RW | Length of Sector 4 in SDRAM The usage of this register is same as SDRAM SECTOR 1 SIZE |
...
Field Name | Bit | Access | Description |
Reserved | 31:16 | RO | RESERVED |
SDRAM SECTOR 5 SIZE | 15:0 | RW | Length of Sector 5 in SDRAM The usage of this register is same as SDRAM SECTOR 1 SIZE |
...
Field Name | Bit | Access | Description |
Reserved | 31:16 | RO | RESERVED |
SDRAM SECTOR 6 SIZE | 15:0 | RW | Length of Sector 6 in SDRAM The usage of this register is same as SDRAM SECTOR 1 SIZE |
...
Field Name | Bit | Access | Description |
Reserved | 31:16 | RO | RESERVED |
SDRAM SECTOR 7 SIZE | 15:0 | RW | Length of Sector 7 in SDRAM The usage of this register is same as SDRAM SECTOR 1 SIZE |
...
Field Name | Bit | Access | Description |
HW PAGE CNT | 31:16 | RO | HW DMA Page Count Indicate which page is being read or written, used in HW DMA mode. |
Reserved | 15:5 | RO | RESERVED |
HW BLOCK CNT | 4:3 | RO | HW DMA Block Counter for wait handshake signal from Flash Memory |
SDRAM SECTOR CNT | 2:0 | RO | SDRAM Sector Count |
...
Field Name | Bit | Access | Description |
Reserved | 31:16 | RO | RESERVED |
HW PAGE NUM0 | 15:0 | RW | Declear Declare how many pages will be read or write start from the start page address of block0 The actual operation page number is (HW PAGE NUM0+1) |
...
Field Name | Bit | Access | Description |
Reserved | 31:16 | RO | RESERVED |
HW PAGE NUM1 | 15:0 | RW | Declear Declare how many pages will be read or write start from the start page address of block1 The actual page number is (HW PAGE NUM1 +1) |
...
Field Name | Bit | Access | Description |
Reserved | 31:16 | RO | RESERVED |
HW PAGE NUM2 | 15:0 | RW | Declear Declare how many pages will be read or write start from the start page address of block2 The actual page number is (HW PAGE NUM2 +1) |
...
Field Name | Bit | Access | Description |
Reserved | 31:16 | RO | RESERVED |
HW PAGE NUM3 | 15:0 | RW | Declear Declare how many pages will be read or write start from the start page address of block3 The actual page number is (HW PAGE NUM3 +1) |
...
Field Name | Bit | Access | Description |
Reserved | 31:16 | RO | RESERVED |
HW DELAY NUM | 15:0 | RW | HW Delay Number Delay cyclesnumber cycles number in thehardware the hardware speedup DMA(HWDMA mode). |
118.31 Debug signals for dma mode (dma debug)
Address: 0x9C003B7C
Reset: 0x0
這個 debug register 需要嗎 ?
Field Name | Bit | Access | Description |
Reserved | 31:25 | RO | RESERVED |
DMA SM | 24:22 | RO | AXI bus state machine 0x0: Idle state(default) 0x1: Write command and address state 0x2: Read command and address state 0x3: Write Data state 0x4: Read Data state |
outcnt | 21:11 | RO | data out counter Account how many byte data has been transfer out to SDRAM or device |
incnt | 10:0 | RO | data in counter Account how many byte data has been transfer into device or SDRAM |
...
Field Name | Bit | Access | Description |
Reserved | 31:8 | RO | RESERVED |
bootack | 7:5 | RO | Boot Ack Value |
boot mode | 4 | RUW | EMMC Have Boot Operation |
fast boot | 3 | RW | Use Fast Boot Start Boot Operation |
boot data tmr | 2 | RW | Boot Data Timeout For 1s |
boot ack tmr | 1 | RW | Boot Ack Timeout For 50ms |
boot ack en | 0 | RW | Boot Ack In Boot Mode |
...
Field Name | Bit | Access | Description |
Reserved | 31:6 | RO | RESERVED |
vol result | 5:4 | RO | HW Switch Voltage Sequence Result |
hw set vol | 3 | RW | HW set Voltage to 1.8v |
sw set vol | 2 | RW | Software set Voltage to 1.8v |
vol tmr | 1:0 | RW | Timeout for 1ms(hw set vol) |
...
Field Name | Bit | Access | Description |
Reserved | 31:12 | RO | RESERVED |
hw dma cmp clr | 11 | WU | Write 1 to this bit clear HW DMA interrupt flag |
HW DMA CMP | 10 | RO | HW DAM Complete interrupt flag |
hw dma cmp en | 9 | RW | HW DMA Data Transfer Complete Interrupt Enable 0: Disable the HW DMA data transfer complete interrupt(default) |
DETECT INT CLR | 8 | WU | Clear card detect interrupt |
DETECT INT | 7 | RO | Card plug-in or pull-out interrupt |
DETECT INT EN | 6 | RW | Card plug-in or pull-out interrupt enable |
sdio int clr | 5 | WU | Clear SDIO interrupt register in SDIO host |
sdio int | 4 | RO | SDIO interrupt from SDIO card |
sdio int en | 3 | RW | Enable SDIO Interrupt |
sd cmp clr | 2 | WO | Clear SD cmp Interrupt |
sd cmp | 1 | RO | SD Operation Complete Interrupt |
sdcmpen | 0 | RW | Enable SD Interrupt |
...
Field Name | Bit | Access | Description |
Reserved | 31:16 | RO | RESERVED |
sd page num | 15:0 | RUW | The total Tx/Rx page number in the cmd(only for normal DMA and PIO mode). When config, it indicate how many pages will be read or write. The actual operation page number is ( PAGE NUM+ 1 ) When read, it indicate which page is being read or written, from page*(PAGE NUM) to page*0 default is '0' |
...
Field Name | Bit | Access | Description |
Reserved | 31:7 | RO | RESERVED |
INT MULTI TRIG | 6 | RW | SDIO Interrupt Trigger Multiple time 0:When SDIO device send interrupt to controller,every interrupt only send one time(default) |
SUS DATA FLAG | 5 | WO | Write 1 to Suspend SD state machine |
CON REQ | 4 | WO | write 1 to trigger SD state machine continue, and SDIO |
SUS REQ | 3 | WO | write 1 to trigger SD state machine end |
RESU | 2 | WO | write 1 to trigger SD state machine to restore and also resume SDIO interrupt period generation rightly |
S4MI | 1 | RW | trigger interrupt period generation between 4-bit read blocks |
RWC | 0 | RW | Read Wait Control signal |
...
Field Name | Bit | Access | Description |
Reserved | 31:3 | RO | RESERVED |
sdiorst | 2 | WO | SDIO Controller Interrupt Register Reset |
sdcrcrst | 1 | WO | SD Controller CRC Reset |
sdrst | 0 | WO | SD Controller Software Reset |
...
Field Name | Bit | Access | Description |
Reserved | 31:4 | RO | RESERVED |
emmcctrl | 3 | WO | Start Boot Operation Trigger Signal Writting 1 to this bit will generate trigger signal for start boot operation (emmc use only) |
sdioctrl | 2 | WO | Dummy clock Trigger Signal Writting 1 to this bit will generate trigger signal for trans- mitting dummy clock in IDLE state (sdio use only) |
sdctrl[1] | 1 | WO | Dummy clock Trigger Signal Writting 1 to this bit will generate trigger signal for trans- mitting dummy clock The dummy cycle number config in sd tx dummy num register |
sdctrl[0] | 0 | WO | New Command Trigger Signal Writting 1 to this bit will generate trigger signal for starting transaction |
...
Field Name | Bit | Access | Description |
Reserved | 31:19 | RO | RESERVED |
sdstatus | 18:0 | RO | SD Controller Status bit0 : Dummy ready bit1 : Response buffer full, high active bit2 : Transmitted data buffer empty, high active bit3 : Receive data buffer full, high active bit4 : Status of pin cmd bit5 : Status of pin SD data0 bit6 : Timeout flag of waiting response, high active bit7 : Timeout flag of waiting card's CRC check result, high active bit8 : Wait STB(start bit) timeout, when read data from card bit9 : Rsp crc7 error bit10: CRC Token Check error bit11: Rdata CRC16 error(all CRC16) bit12: Suspend state ready bit13: Busy cycle bit14: Status of pin SD data1 bit15: Status of SD SENSE bit16: Timeout flag of waiting boot ack, high active bit17: Timeout flag of waiting boot data, high active bit18: EMMC boot ack error, high active |
...
Field Name | Bit | Access | Description |
Reserved | 31:15 | RO | RESERVED |
sdstate new | 14:8 | RO | New SD state machine of SD Controller bit14 : 0: Transaction have no finish or idle 1: Transaction finish or idle(default) bit13 : 0: Transaction have no error or timeout(default) 1: Transaction error or timeout bit12:8 : represent the state machine other states,don't care |
Reserved | 7 | RO | RESERVED |
sdcrdcrc | 6:4 | RO | The CRC Token Check Result 0x0 : reserved(default) 0x2 : CRC check correct 0x5 : CRC check incorrect others: reserved |
Reserved | 3 | RO | RESERVED |
sdstate | 2:0 | RO | State Machine of SD Controller 0x0 : Idle(default) 0x1 : Transmit Dummy Clock 0x2 : Transmit SD Command 0x3 : Receiveing SD Response 0x4 : Transmitting Data 0x5 : Receiving CRC Token 0x6 : Receiving Data 0x7 : reserved |
...
Field Name | Bit | Access | Description |
Reserved | 31:10 | RO | RESERVED |
HWSD SM | 9:0 | RO | The Hardware SD State bit6: SD HW DMA Error bit7: SD HW DMA Done Note: when this register equals '0', it means sd controller in idle state. |
...
Field Name | Bit | Access | Description |
Reserved | 31:11 | RO | RESERVED |
sd data len | 10:0 | RW | Data Length of One Block The actual length equals (sddatalen + 1) 0x0 : 1 byte 0x1 : 2 byte ... 0x1ff : 512 byte(default) ... 0x7ff : 2048 byte |
...
Field Name | Bit | Access | Description |
Reserved | 31:11 | RO | RESERVED |
sd rd dly sel | 10:8 | RW | Selection Signal of SD Read Delay Delay the time that SD controller sample rsp and data from sd interface, the unit is 1*DPLL 0x0: no delay(default) 0x1: delay 1*DPLL clock 0x2: delay 2*DPLL clock 0x3: delay 3*DPLL clock 0x4: delay 4*DPLL clock 0x5: delay 5*DPLL clock 0x6: delay 6*DPLL clock 0x7: delay 7*DPLL clock |
Reserved | 7 | RO | RESERVED |
sd wr dly sel | 6:4 | RW | Selecting Signal of SD Write Delay Delay SD tx cmd/data to card, the unit is 1*DPLL 0x0: no delay(default) 0x1: delay 1*DPLL clock 0x2: delay 2*DPLL clock 0x3: delay 3*DPLL clock 0x4: delay 4*DPLL clock 0x5: delay 5*DPLL clock 0x6: delay 6*DPLL clock 0x7: delay 7*DPLL clock |
Reserved | 3 | RO | RESERVED |
sd clk dly sel | 2:0 | RW | Selecting Signal of SD Clock Delay Delay SD clock to card, the unit is 1*DPLL 0x0: no delay(default) 0x1: delay 1*DPLL clock 0x2: delay 2*DPLL clock 0x3: delay 3*DPLL clock 0x4: delay 4*DPLL clock 0x5: delay 5*DPLL clock 0x6: delay 6*DPLL clock 0x7: delay 7*DPLL clock |
...
Field Name | Bit | Access | Description |
Reserved | 31:29 | RO | RESERVED |
sd rx dat tmr | 28:0 | RW | max timer value selection default value 29'h01321d00 |
...