Регистры Allwinner H616

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


O_HcRhDescriptorB
9.5.3. OHCI Root Hub Descriptor Register B - адрес: 0x520044c 0x531044c 0x531144c (смещение: 0x044C)

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



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

  PORT_POWER_CONTROL_MASK

Bits 31 : 16
R/W (R)
0x0

Each bit indicates if a port is affected by a global power control command when PowerSwitchingMode is set.
When set, the port's power state is only affected by per-port power control (Set/ClearPortPower).
When cleared, the port is controlled by the global power switch (Set/ClearGlobalPower).
If the device is configured to global switching mode (PowerSwitchingMode = 0 ), this field is not valid.

Bit0 : Reserved
Bit1 : Ganged-power mask on Port #1.
***
Bit15 : Ganged-power mask on Port #15.


  DEVICE_REMOVABLE

Bits 15 : 0
R/W (R)
0x0

Each bit is dedicated to a port of the Root Hub. When cleared, the attached device is removable.
When set, the attached device is not removable.
Bit0 : Reserved
Bit1 : Device attached to Port #1.
***
Bit15 : Device attached to Port #15.

HCD (HC)



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

md 520044c 1
md 531044c 1
md 531144c 1



Bit fields structure

typedef union  o_hcrhdescriptorb
{
  struct
  {
   unsigned device_removable : 16;
   unsigned port_power_control_mask : 16;
  } b;
   unsigned long w;
} O_HcRhDescriptorB
   

Allwinner H616 Manual