Регистры Allwinner H616

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


SMHC_THLD
5.3.5. Card Threshold Control Register - адрес: 0x4020100 0x4021100 0x4022100 (смещение: 0x0100)

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



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

  Unused

Bits 31 : 28

  CARD_RD_THLD

Bits 27 : 16
R/W
0x0

Card Read Threshold Size


  Unused

Bits 15 : 3

  CARD_WR_THLD_ENB

Bit 2
R/W
0x0

Card Write Threshold Enable(HS400) - only for SMHC2
0: Card write threshold disabled
1: Card write threshold enabled
Host controller initiates write transfer only if card threshold amount of data is available in transmit FIFO


  BCIG

Bit 1
R/W
0x0

Busy Clear Interrupt Generation (only for SMHC2)
0: Busy clear interrupt disabled
1: Busy clear interrupt enabled
The application can disable this feature if it does not want to wait for a Busy Clear Interrupt.


  CARD_RD_THLD_ENB

Bit 0
R/W
0x0

Card Read Threshold Enable
0: Card read threshold disabled
1: Card read threshold enabled
Host controller initiates Read Transfer only if CARD_RD_THLD amount of
space is available in receive FIFO.



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

md 4020100 1
md 4021100 1
md 4022100 1



Bit fields structure

typedef union  smhc_thld
{
  struct
  {
   unsigned card_rd_thld_enb : 1;
   unsigned bcig : 1;
   unsigned card_wr_thld_enb : 1;
   unsigned unused0 : 13;
   unsigned card_rd_thld : 12;
   unsigned unused1 : 4;
  } b;
   unsigned long w;
} SMHC_THLD
   

Allwinner H616 Manual