Регистры Allwinner H616

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


O_HcRhStatus
9.5.3. OHCI Root Hub Status Register - адрес: 0x5200450 0x5310450 0x5311450 (смещение: 0x0450)

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



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

  CLEAR_REMOTE_WAKEUP_ENABLE

Bit 31
W (R)
0x0

Write a 1 clears DeviceRemoteWakeupEnable. Writing a '0' has no effect.


  Unused

Bits 30 : 18

  OVER_CURRENT_INDICATOR_CHANG

Bit 17
R/W (R)
0x0

This bit is set by hardware when a change has occurred to the OverCurrentIndicator field of this register.
The HCD clears this bit by writing a 1 . Writing a '0' has no effect.


  LOCAL_POWER_STARTUS_CHANGE

Bit 16
R/W (R)
0x0

Local Power Startus Change - read
The Root Hub does not support the local power status features, thus, thisbit is always read as '0'.

SetGlobalPower - write
In global power mode (PowerSwitchingMode=0), this bit is written to 1 to turn on power to all ports (clear PortPowerStatus).
In per-port power mode, it sets PortPowerStatus only on ports whose PortPowerControlMask bit is not set.
Writing a '0' has no effect.


  DEVICE_REMOTE_WAKEUP_ENABLE

Bit 15
R/W (R)
0x0

Device Remote Wakeup Enable - read

This bit enables a ConnectStatusChange bit as a resume event, causing a USBS_USPEND to USB_RESUME state transition and setting the ResumeDetected interrupt.

0: ConnectStatusChange is not a remote wakeup event.
1: ConnectStatusChange is a remote wakeup event.
SetRemoteWakeupEnable - write
Writing a 1 sets DeviceRemoveWakeupEnable. Writing a '0' has no effect.


  Unused

Bits 14 : 2

  OVER_CURRENT_INDICATOR

Bit 1
R (R/W)
0x0

This bit reports overcurrent conditions when the global reporting is implemented.
When set, an overcurrent condition exists. When cleared, all power operations are normal.
If per-port overcurrent protection is implemented this bit is always '0'


  LOCAL_POWER_STATUS

Bit 0
R/W (R)
0x0

Local Power Status - Read
When read, this bit returns the LocalPowerStatus of the Root Hub.
The Root Hub does not support the local power status feature; thus, this bit is always read as '0'.
Clear Global Power - Write
When write, this bit is operated as the ClearGlobalPower.
In global power mode (PowerSwitchingMode=0), this bit is written to 1 to turn off power to all ports (clear PortPowerStatus).
In per-port power mode, it clears PortPowerStatus only on ports whose PortPowerControlMask bit is not set.
Writing a '0' has no effect.

HCD (HC)



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

md 5200450 1
md 5310450 1
md 5311450 1



Bit fields structure

typedef union  o_hcrhstatus
{
  struct
  {
   unsigned local_power_status : 1;
   unsigned over_current_indicator : 1;
   unsigned unused0 : 13;
   unsigned device_remote_wakeup_enable : 1;
   unsigned local_power_startus_change : 1;
   unsigned over_current_indicator_chang : 1;
   unsigned unused1 : 13;
   unsigned clear_remote_wakeup_enable : 1;
  } b;
   unsigned long w;
} O_HcRhStatus
   

Allwinner H616 Manual