A20 User Manual (Revision 1.2) Copyright © 2013 Allwinner Technology Co., Ltd. All Rights Reserved. Page 690 / 812
a powered-on port of the Root Hub. It is implementation-specific.
The unit of time is 2 ms. The duration is calculated as POTPGT *
2ms.
NoOverCurrentProtection
This bit describes how the overcurrent status for the Root Hub
ports are reported. When this bit is cleared, the
OverCurrentProtectionMode field specifies global or per-port
reporting.
Over-current status is reported collectively for all
downstream ports.
No overcurrent protection supported.
OverCurrentProtectionMode
This bit describes how the overcurrent status for the Root Hub
ports are reported. At reset, these fields should reflect the same
mode as PowerSwitchingMode. This field is valid only if the
NoOverCurrentProtection field is cleared.
Over-current status is reported collectively for all
downstream ports.
Over-current status is reported on per-port basis.
Device Type
This bit specifies that the Root Hub is not a compound device. The
Root Hub is not permitted to be a compound device. This field
should always read/write 0.
PowerSwitchingMode
This bit is used to specify how the power switching of the Root Hub
ports is controlled. It is implementation-specific. This field is only
valid if the NoPowerSwitching field is cleared.
All ports are powered at the same time.
Each port is powered individually. This mode allows port
power to be controlled by either the global switch or
per-port
switching. If the PortPowerControlMask bit is set, the
port responds only to port power commands
(Set/ClearPortPower). If the port mask is cleared, then
the port is controlled only by the global power switch
(Set/ClearGlobalPower).
NoPowerSwithcing
These bits are used to specify whether power switching is
supported or ports are always powered. It is
implementation-specific. When this bit is cleared, the
PowerSwitchingMode specifies global or per-port switching.
Ports are power switched.
Ports are always powered on when the HC is powered
on.
NumberDownstreamPorts
These bits specify the number of downstream ports supported by
the Root Hub. It is implementation-specific. The minimum number
of ports is 1. The maximum number of ports supported.