Регистры Allwinner H616

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


E_HCSPARAMS
9.5.3. EHCI Host Control Structural Parameter Register - адрес: 0x5200004 0x5310004 0x5311004 (смещение: 0x0004)

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



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

  Unused

Bits 31 : 24

  DEBUG_PORT_NUMBER

Bits 23 : 20
R
0x0

This register identifies which of the host controller ports is the debug port.
The value is the port number (one based) of the debug port.
This field will always be '0'.


  Unused

Bits 19 : 16

  N_CC

Bits 15 : 12
R
0x0

Number of Companion Controller
This field indicates the number of companion controllers associated with this
USB2.0 host controller. A zero in this field indicates there are no companion
host controllers. And a value larger than zero in this field indicates there are
companion USB1.1 host controller(s).
This field will always be '0'.


  N_PCC

Bits 11 : 8
R
0x0

Number of Port per Companion Controller
This field indicates the number of ports supported per companion host
controller host controller. It is used to indicate the port routing configuration
to system software.
This field will always fix with '0'.


  PORT_ROUTING_RULES

Bit 7
R
0x0

This field indicates the method used by this implementation for how all ports
are mapped to companion controllers. The value of this field has the following interpretation:

Value: Meaning

0: The first N_PCC ports are routed to the lowest numbered function companion host controller, the next N_PCC port
are routed to the next lowest function companion controller, and so on.
The port routing is explicitly enumerated by the first
1: N_PORTS elements of the HCSP-PORTTOUTE array.
This field will always be '0'.


  Unused

Bits 6 : 4

  N_PORTS

Bits 3 : 0
R
0x1

This field specifies the number of physical downstream ports implemented
on this host controller. The value of this field determines how many port
registers are addressable in the Operational Register Space.
Valid values are in the range of 0x1 to 0x0f. This field is always 1.



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

md 5200004 1
md 5310004 1
md 5311004 1



Bit fields structure

typedef union  e_hcsparams
{
  struct
  {
   unsigned n_ports : 4;
   unsigned unused0 : 3;
   unsigned port_routing_rules : 1;
   unsigned n_pcc : 4;
   unsigned n_cc : 4;
   unsigned unused1 : 4;
   unsigned debug_port_number : 4;
   unsigned unused2 : 8;
  } b;
   unsigned long w;
} E_HCSPARAMS
   

Allwinner H616 Manual