Регистры Allwinner H616

Сокращения  |  Дерево шин  |  Карта памяти


SMHC_RINTSTS
5.3.5. Raw Interrupt Status Register - адрес: 0x4020038 0x4021038 0x4022038 (смещение: 0x0038)

Хост-контроллер SD / MMC (SMHC): список регистров



31 ||||||||||||||||| 16
15 ||||||||||||||||| 00

  CARD_REMOVAL

Bit 31
R/W1C
0x0

Card Removed
This is write-1-to-clear bits.


  CARD_INSERT

Bit 30
R/W1C
0x0

Card Inserted
This is write-1-to-clear bits.


  Unused

Bits 29 : 17

  SDIOI_INT

Bit 16
R/W1C
0x0

SDIO Interrupt
This is write-1-to-clear bits.


  DEE

Bit 15
R/W1C
0x0

Data End-bit Error
When set during receiving data, it means that host controller does not receive valid data end bit.
When set during transmitting data, it means that host controller does not
receive CRC status taken. This is write-1-to-clear bits.


  ACD

Bit 14
R/W1C
0x0

Auto Command Done
When set, it means auto stop command(CMD12) completed.
This is write 1 to clear bits.


  DSE_BC

Bit 13
R/W1C
0x0

Data Start Error
When set during receiving data, it means that host controller found a error start bit.
It is valid at 4-bit or 8-bit bus mode. When it set, host finds
start bit at data0, but does not find start bit at some or all of the other data lines.
When set during transmitting data, it means that busy signal is cleared.
This is write-1-to-clear bits.


  CB_IW

Bit 12
R/W1C
0x0

Command Busy and Illegal Write
This is write-1-to-clear bits.


  FU_FO

Bit 11
R/W1C
0x0

FIFO Underrun/Overflow
This is write-1-to-clear bits.


  DSTO_VSD

Bit 10
R/W1C
0x0

Data Starvation Timeout/V1.8 Switch Done
This is write-1-to-clear bits.


  DTO_BDS

Bit 9
R/W1C
0x0

Data Timeout/Boot Data Start
When set during receiving data, it means host does not find start bit on
data0.
This is write-1-to-clear bits.


  RTO_BACK

Bit 8
R/W1C
0x0

Response Timeout/Boot ACK Received
This is write-1-to-clear bits.


  DCE

Bit 7
R/W1C
0x0

Data CRC Error
When set during receiving data, it means that the received data have data CRC error.
When set during transmitting data, it means that the received CRC status taken is negative.
This is write-1-to-clear bits.


  RCE

Bit 6
R/W1C
0x0

Response CRC Error
This is write-1-to-clear bits.


  DRR

Bit 5
R/W1C
0x0

Data Receive Request
When set, it means that there are enough data in FIFO during receiving data.
This is write-1-to-clear bits.


  DTR

Bit 4
R/W1C
0x0

Data Transmit Request
When set, it means that there are enough space in FIFO during transmitting data.
This is write-1-to-clear bits.


  DTC

Bit 3
R/W1C
0x0

Data Transfer Complete
When set, it means that current command completes even through error occurs.
This is write-1-to-clear bits.


  CC_

Bit 2
R/W1C
0x0

Command Complete
When set, it means that current command completes even through error occurs.
This is write-1-to-clear bits.


  RE_

Bit 1
R/W1C
0x0

Response Error
When set, Transmit Bit error or End Bit error or CMD Index error may occur.
This is write-1-to-clear bits.


  Unused

Bit 0


Команда U-Boot для чтения регистра

md 4020038 1
md 4021038 1
md 4022038 1



Bit fields structure

typedef union  smhc_rintsts
{
  struct
  {
   unsigned unused0 : 1;
   unsigned re_ : 1;
   unsigned cc_ : 1;
   unsigned dtc : 1;
   unsigned dtr : 1;
   unsigned drr : 1;
   unsigned rce : 1;
   unsigned dce : 1;
   unsigned rto_back : 1;
   unsigned dto_bds : 1;
   unsigned dsto_vsd : 1;
   unsigned fu_fo : 1;
   unsigned cb_iw : 1;
   unsigned dse_bc : 1;
   unsigned acd : 1;
   unsigned dee : 1;
   unsigned sdioi_int : 1;
   unsigned unused1 : 13;
   unsigned card_insert : 1;
   unsigned card_removal : 1;
  } b;
   unsigned long w;
} SMHC_RINTSTS
   

Allwinner H616 Manual