Регистры Allwinner H616

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


SMHC_DRV_DL
5.3.5. Drive Delay Control Register - адрес: 0x4020140 0x4021140 0x4022140 (смещение: 0x0140)

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



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

  Unused

Bits 31 : 18

  DAT_DRV_PH_SEL

Bit 17
R/W
0x0

Data Drive Phase Select
For SMHC0,SMHC1:
0: Data drive phase offset is 900 at SDR mode, 450 at DDR mode
1: Data drive phase offset is 1800 at SDR mode, 900 at DDR mode
For SMHC2:
0: Data drive phase offset is 900 at SDR mode, 450 at DDR8 mode, 900 at
DDR4/HS400 mode
1: Data drive phase offset is 1800 at SDR mode, 900 at DDR8 mode, 00 at
DDR4/HS400 mode


  CMD_DRV_PH_SEL

Bit 16
R/W
0x1

Command Drive Phase Select
For SMHC0,SMHC1:
0: Command drive phase offset is 900 at SDR mode, 450 at DDR mode
1: Command drive phase offset is 1800 at SDR mode, 900 at DDR mode
For SMHC2:
0: Command drive phase offset is 900 at SDR mode, 450 at DDR8 mode, 900 at
DDR4/HS400 mode
1: Command drive phase offset is 1800 at SDR mode, 900 at DDR8 mode, 1800 at DDR4/HS400 mode


  Unused

Bits 15 : 0


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

md 4020140 1
md 4021140 1
md 4022140 1



Bit fields structure

typedef union  smhc_drv_dl
{
  struct
  {
   unsigned unused0 : 16;
   unsigned cmd_drv_ph_sel : 1;
   unsigned dat_drv_ph_sel : 1;
   unsigned unused1 : 14;
  } b;
   unsigned long w;
} SMHC_DRV_DL
   

Allwinner H616 Manual