Регистры Allwinner H616

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


SMHC_FIFO
5.3.5. Read/Writ - адрес: 0x4020200 0x4021200 0x4022200 (смещение: 0x0200)

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



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

  Unused

Bits 31 : 16

  DS_DL_CAL_START

Bit 15
R/W
0x0

Data Strobe Delay Calibration Start
When set, start sample delay chain calibration.


  DS_DL_CAL_DONE

Bit 14
R
0x0

Data Strobe Delay Calibration Done
When set, it means that sample delay chain calibration is done and the result
of calibration is shown in DS_DL.


  DS_DL

Bits 13 : 8
R
0x20

Data Strobe Delay
It indicates the number of delay cells corresponding to current card clock.
The delay time generated by these delay cells is equal to the cycle of SMHC's
clock nearly.
This bit is valid only when SAMP_DL_CAL_DONE is set.


  DS_DL_SW_EN

Bit 7
R/W
0x0

Sample Delay Software Enable


  Unused

Bit 6

  DS_DL_SW

Bits 5 : 0
R/W
0x0

Data Strobe Delay Software



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

md 4020200 1
md 4021200 1
md 4022200 1



Bit fields structure

typedef union  smhc_fifo
{
  struct
  {
   unsigned ds_dl_sw : 6;
   unsigned unused0 : 1;
   unsigned ds_dl_sw_en : 1;
   unsigned ds_dl : 6;
   unsigned ds_dl_cal_done : 1;
   unsigned ds_dl_cal_start : 1;
   unsigned unused1 : 16;
  } b;
   unsigned long w;
} SMHC_FIFO
   

Allwinner H616 Manual