Регистры Allwinner H616

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


USB_CTRL
9.5.3. HCI Interface Register - адрес: 0x5200800 0x5310800 0x5311800 (смещение: 0x0800)

Хост-контроллер USB2.0: список регистров



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

  Unused

Bits 31 : 29

  DMA_TRANSF_STAT_ENA

Bit 28
R
0x1

DMA Transfer Status Enable
0: Disable
1: Enable


  Unused

Bits 27 : 26

  OHCI_COUNT_SELECT

Bit 25
R/W
0x0

1: Simulation mode, the counters will be much shorter then real time
0: Normal mode, the counters will count full time


  SIMULATION_MODE

Bit 24
R/W
0x0

1: Set PHY in a non-driving mode so the EHCI can detect device connection, this is used only for simulation
0: No effect


  Unused

Bits 23 : 21

  EHCI_HS_FORCE

Bit 20
R/W
0x0

Set 1 to this field force the ehci enter the high speed mode during bus reset.
This field only valid when the bit 1 is set.


  Unused

Bit 19

  RESUME_SE0_TRANS

Bit 18
R/W
0x0

1: within 2us of the resume-K to SE0 transition
0: random time value of the resume-K to SE0 transition


  Unused

Bits 17 : 13

  PP2VBUS

Bit 12
R/W
0x0

1: ULPI wrapper interface will automatically set or clear DrvVbus register in
ULPI PHY according to the port power status form the root hub
0: ULPI wrapper will ignore the difference between power status of root
hub and ULPI PHY


  INCR16_ENA

Bit 11
R/W
0x0

AHB Master interface INCR16 enable
1: Use INCR16 when appropriate
0: do not use INCR16,use other enabled INCRX or unspecified length burst


  INCR8_ENA

Bit 10
R/W
0x0

AHB Master interface INCR8 enable
1: Use INCR8 when appropriate
0: do not use INCR8,use other enabled INCRX or unspecified length burst


  INCR4_ENA

Bit 9
R/W
0x0

AHB Master interface burst type INCR4 enable
1: Use INCR4 when appropriate
0: do not use INCR4,use other enabled INCRX or unspecified length burst


  INCRX_ALIGN_ENA

Bit 8
R/W
0x0

AHB Master interface INCRX align enable
1: start INCRx burst only on burst x-align address
0: Start burst on any double word boundary
Note: This bit must enable if any bit of 11:9 is enabled


  Unused

Bits 7 : 3

  RC16M_CLK_ENABLE

Bit 2
R/W
0x0

0: disable
1:enable


  Unused

Bit 1

  ULPI_BYPASS_ENABLE

Bit 0
R/W
0x0

1: Enable UTMI interface, disable ULPI interface
0: Enable ULPI interface, disable UTMI interface



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

md 5200800 1
md 5310800 1
md 5311800 1



Bit fields structure

typedef union  usb_ctrl
{
  struct
  {
   unsigned ulpi_bypass_enable : 1;
   unsigned unused0 : 1;
   unsigned rc16m_clk_enable : 1;
   unsigned unused1 : 5;
   unsigned incrx_align_ena : 1;
   unsigned incr4_ena : 1;
   unsigned incr8_ena : 1;
   unsigned incr16_ena : 1;
   unsigned pp2vbus : 1;
   unsigned unused2 : 5;
   unsigned resume_se0_trans : 1;
   unsigned unused3 : 1;
   unsigned ehci_hs_force : 1;
   unsigned unused4 : 3;
   unsigned simulation_mode : 1;
   unsigned ohci_count_select : 1;
   unsigned unused5 : 2;
   unsigned dma_transf_stat_ena : 1;
   unsigned unused6 : 3;
  } b;
   unsigned long w;
} USB_CTRL
   

Allwinner H616 Manual