85. USB3 xHCI SuperSpeed dual role controller (USB3DR)

85.1 Introduction

Portions Copyright (c) Synopsys, Inc. All rights reserved. Used with permission.

The USB3DR is a USB3 xHCI SuperSpeed controller which can be used in Host or Device mode.

85.2 USB3DR main features

The supported standards are:

85.3 USB3DR functional description

85.3.1 USB3DR block diagram

The USBH block diagram is shown below:

Figure 1052. USB3DR block diagram

Block diagram of the USB3DR controller showing its internal components and external interfaces.

The diagram illustrates the USB3DR block diagram. It shows the following components and connections:

MSv67503V2

Block diagram of the USB3DR controller showing its internal components and external interfaces.

The bus interface unit provides DMA support for the controller to transfer data to and from the system memory through the AXI master port. It also provides software access to all the internal registers through the AXI slave port.

The buffer management unit manages data and descriptor DMA fetches. It prioritizes DMA fetches from different queues before issuing DMA requests to the bus interface unit. It manages the RX and TX data FIFOs.

The list processor unit handles the transfer scheduling in both Device and Host modes. It interprets the transfer descriptor’s setup by the software and manages USB transfers. Devices do reactive scheduling to meet host requests. In Host mode, the list processor initiates scheduling and manages multiple devices in the USB tree. It manages data and descriptor access by issuing commands to the buffer management unit queue.

The registers unit contains all the flop-based registers. It also provides an interface to the buffer management unit to access the registers implemented in the RAM.

The USB2 and USB3 engines are split in protocol, link (USB3 only) and PHY layers following the [USB2] and [USB3] specifications.

85.4 USB3DR registers

See Section 2.4: Memory organization for USB3DR registers base address.

Table 872. USB3DR register map

Address offsetRegister type
0x0 0000 to 0x0 7FFFxHCI registers
– 0 to CAPLENGTH - 1– eXtensible host controller capability registers
– CAPLENGTH to RTSOFF - 1– Host controller operational registers
– RTSOFF to DBOFF - 1– Controller runtime registers
– DBOFF to (xECP × 4 - 1)– Doorbell register
– xECP × 4 to 0x0 7FFF– xHCI extended capabilities
0x0 8000 to 0x0 C0FFUnused
0x0 C100 to 0x0 C6FFGlobal register block
0x0 C700 to 0x0 CBFFDevice register block
0x0 CC00 to 0x0 CCFFBattery charger register block
0x0 CD00 to 0x0 CFFFUnused
0x0 D000 to 0x0 D7FFLink register block
0x0 D800 to 0x0 D93FUnused
0x0 D940 to 0x3 FFFFUnused
0x4 0000 to 0x4 3F5FInternal RAM0 - debug access
0x4 3F60 to 0x7 FFFFReserved
0x8 0000 to 0x8 876FInternal RAM1 - debug access
0x8 8770 to 0xB FFFFReserved
0xC 0000 to 0xC 183FInternal RAM2 - debug access
0xC 1840 to 0xF FFFFReserved

85.4.1 xHCI registers

Refer to [xHCI] specification.

85.4.2 Global register block

USB3DR global device bus configuration register 0
(USB3DR_GBL_GSBUSCFG0)

Address offset: 0xC100

Reset value: 0x0000 0009

This register configures the system bus DMA options for the master bus, which may be configured as AHB, AXI, or native. Options include burst length and cache type (bufferable/posted, cacheable/snoop, and so on). The application can program this register at power-on, and change the mode of operation after the DMA engine is halted.

31302928272625242322212019181716
DATRDREQINFO[3:0]DESRDREQINFO[3:0]DATWRREQINFO[3:0]DESWRREQINFO[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.DATBIGENDDESBIGENDRes.Res.INCR256BRSTENAINCR128BRSTENAINCR64BRSTENAINCR32BRSTENAINCR16BRSTENAINCR8BRSTENAINCR4BRSTENAINCRBRSTENA
rwrwrwrwrwrwrwrwrwrw

Bits 31:28 DATRDREQINFO[3:0]: AHB-prot/AXI-cache/OCP-ReqInfo for data read (DatRdReqInfo)
Input to BUS-GM.

Bits 27:24 DESRDREQINFO[3:0]: AHB-prot/AXI-cache/OCP-ReqInfo for descriptor read (DesRdReqInfo)
Input to BUS-GM.

Bits 23:20 DATWRREQINFO[3:0]: AHB-prot/AXI-cache/OCP-ReqInfo for data write (DatWrReqInfo)
Input to BUS-GM.

Bits 19:16 DESWRREQINFO[3:0]: AHB-prot/AXI-cache/OCP-ReqInfo for descriptor write (DesWrReqInfo).
Input to BUS-GM.

Bits 15:12 Reserved, must be kept at reset value.

Bit 11 DATBIGEND: Data access is big endian

This bit controls the endian mode for data accesses.

0: Little endian

1: Big endian

In big endian mode, both read and write DMA accesses for packet data use a Byte Invariant Big-Endian mode.

Note: Since AXI requires byte invariant endianness, setting DescBigend and DatBigEnd to one causes an address invariant transform to be applied, which is not appropriate. See [AXI]. Hence for an AXI master (USB3DR_MBUS_TYPE = 1), this bit must be set to zero.

Bit 10 DESBIGEND: Descriptor access is big endian

This bit controls the endian mode for descriptor accesses.

0: little endian

1: big endian

In big endian mode, both read and write DMA accesses for descriptors use a Byte Invariant Big-Endian mode.

in the following cases, data are considered as 'embedded data' in the descriptors:

In device mode, if the system uses different endian modes for descriptor and data, software must not use 'embedded' data.

In host mode, if the system uses different endian modes for data and descriptors, the controller treats 'embedded data' as descriptor (not as data) in terms of endian mode handling. If this is not the expectation of the system, the software must manipulate the 'embedded data' accordingly.

Note: Since AXI requires byte invariant endianness, setting DescBigend and DatBigEnd to 1 causes an address invariant transform to be applied, which is not appropriate. See [AXI]. Hence for an AXI master (USB3DR_MBUS_TYPE = 1), this bit must be set to zero.

Bits 9:8 Reserved, must be kept at reset value.

Bit 7 INCR256BRSTENA: INCR256 burst type enable

Input to BUS-GM.

For the AHB/AXI configuration, if software sets this bit to 1, the AHB/AXI master uses INCR to do the 256-beat burst.

Bit 6 INCR128BRSTENA: INCR128 burst type enable

Input to BUS-GM;

For the AHB/AXI configuration, if software sets this bit to 1, the AHB/AXI master uses INCR to do the 128-beat burst.

Bit 5 INCR64BRSTENA: INCR64 burst type enable

Input to BUS-GM.

For the AHB/AXI configuration, if software sets this bit to 1, the AHB/AXI master uses INCR to do the 64-beat burst.

Bit 4 INCR32BRSTENA: INCR32 burst type enable

Input to BUS-GM.

For the AHB/AXI configuration, if software sets this bit to 1, the AHB/AXI master uses INCR to do the 32-beat burst.

Bit 3 INCR16BRSTENA: INCR16 burst type enable

Input to BUS-GM.

For the AHB/AXI configuration, if software sets this bit to 1, the AHB/AXI master uses INCR to do the 16-beat burst.

Bit 2 INCR8BRSTENA: INCR8 burst type enable

Input to BUS-GM.

For the AHB/AXI configuration, if software sets this bit to 1, the AHB/AXI master uses INCR to do the 8-beat burst.

Bit 1 INCR4BRSTENA: INCR4 burst type enable

Input to BUS-GM.

For the AXI configuration, when this bit is enabled the controller is allowed to do bursts of beat length 1, 2, 3, and 4. It is highly recommended that this bit is enabled to prevent descriptor reads and writes from being broken up into separate transfers.

Bit 0 INCRBRSTENA: Undefined length INCR burst type enable (INCRBstEna)

Input to BUS-GM

This bit determines the set of burst lengths the master interface uses. It works in conjunction with GSBUSCFG0[7:1] (INCR256/128/64/32/16/8/4).

0: INCRX burst mode.

HBURST (for AHB configurations) and ARLEN/AWLEN (for AXI configurations) do not use INCR except in case of non-aligned burst transfers. In the case of address-aligned transfers, they use only the following burst lengths:

Note: In case of non-address-aligned transfers, INCR may get generated at the beginning and end of the transfers to align the address boundaries, even though INCR is disabled.

In AHB mode, if INCRX burst mode is enabled, but none of the supported INCRx bursts bits are enabled, then the controller performs (undefined length) INCR bursts.

1: INCR (undefined length) burst mode

For cache line-aligned applications, this bit is typically set to 0 to ensure that the master interface uses only power-of-2 burst lengths (as enabled via GSBUSCFG0[7:0]).

USB3DR global bus configuration register 1 (USB3DR_GBL_GSBUSCFG1)

Address offset: 0xC104

Reset value: 0x0000 0300

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.EN1KPAGEPIPETRANSLIMIT[3:0]Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrwrw

Bits 31:13 Reserved, must be kept at reset value.

Bit 12 EN1KPAGE: 1K page boundary enable

By default (this bit is disabled) the AXI breaks transfers at the 4K page boundary. When this bit is enabled, the AXI master (DMA data) breaks transfers at the 1K page boundary.

Bits 11:8 PIPETRANSLIMIT[3:0]: AXI pipelined transfers burst request limit
The field controls the number of outstanding pipelined transfer requests the AXI master pushes to the AXI slave.
When the AXI master reaches this limit, it does not make any more requests on the AXI ARADDR and AWADDR buses until the associated data phases complete.
This field is encoded as follows:
0x0: 1 request
0x1: 2 requests
0x2: 3 requests
0x3: 4 requests
...
0xF: 16 requests

Bits 7:0 Reserved, must be kept at reset value.

USB3DR global TX threshold control register (USB3DR_GBL_GTXTHRCFG)

Address offset: 0xC108

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.USBTXPKTCNTSELRes.USBTXPKTCNT[3:0]USBMAXTXBURSTSIZE[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

Bits 31:30 Reserved, must be kept at reset value.

Bit 29 USBTXPKTCNTSEL: USB transmit packet count enable
This field enables/disables the USB transmission multi-packet thresholding:
0: USB transmission multi-packet thresholding is disabled. The core can start transmission on the USB after the entire (one full) packet has been fetched into the corresponding TXFIFO.
1: USB transmission multi-packet thresholding is enabled. The core can only start transmission on the USB after USB transmit packet count amount of packets for the USB transaction (burst) are already in the corresponding TXFIFO. This mode is valid in both host and device modes. It is only used for SuperSpeed operation.

Bit 28 Reserved, must be kept at reset value.

ST logo
ST logo

Bits 27:24 USBTXPKTCNT[3:0]: USB transmit packet count

This field specifies the number of packets that must be in the TXFIFO before the core can start transmission for the corresponding USB transaction (burst). This field is only valid when the USB transmit packet count enable field is set to one. Valid values are from 1 to 15.

Note: In device mode, if device controller does not have the TRBs for the number of packets or if it cannot fetch the TRBs because of high latency or switching between other endpoints, then it does not wait for the threshold number of packets. The threshold number of packets is honored only when the TRBs are available in the controller for the number of packets before it starts the data fetch.

This field must be less than or equal to the USB maximum TX burst size field.

Bits 23:16 USBMATX BURSTSIZE[7:0]: USB maximum TX burst size

When UsbTxPktCntSel is 1, this field specifies the maximum bulk OUT burst the core can do. When the system bus is slower than the USB, TX FIFO can underrun during a long burst.

User can program a smaller value to this field to limit the TX burst size that the core can do.

Host mode: It only applies to SS bulk, isochronous, and Interrupt OUT endpoints.

Device mode: This value is not used in device mode, but users need to program a value when using the TX threshold feature to make sure that the value programmed in UsbTxPktCnt is less than this value.

Valid values are from 1 to 16.

Bits 15:0 Reserved, must be kept at reset value.

USB3DR global RX threshold control register (USB3DR_GBL_GRXTHRCFG)

Address offset: 0xC10C

Reset value: 0x0000 0000

In a normal case, a TX burst starts as soon as one packet is prefetched; an RX burst starts as soon as 1-packet space is available. This works well as long as the system bus is faster than the USB 3.0 bus (a 1024-bytes packet takes ~2.2 microseconds on the USB bus in SS mode).

If the system bus latency is larger than 2.2 microseconds to access a 1024-byte packet, then starting a burst on 1-packet condition leads to an early abort of the burst causing unnecessary performance reduction.

To avoid underrun and overrun during the burst, in a high-latency bus system (like USB), threshold and burst size control is provided through GTXTHRCFG and GRXTHRCFG registers. Bit [29] of the GTXTHRCFG and GRXTHRCFG registers enables this feature.

Note: GRXTHRCFG register is not applicable for debug target.

There is an issue when ACK TP with NumP = 0 followed by ACK TP with NumP = 1 without ERDY TP is sent by the device controller during a burst bulk OUT transfer. This may cause third-party USB 3.0 host controllers to keep waiting for the ERDY TP.

The USB 3.0 specification states that “When an endpoint is not in a flow control condition, it must not send an ERDY TP unless the endpoint is a bulk endpoint that supports streams.” In this case, after the device sent the ACK TP (nump = 1), the endpoint was not in the flow control, so it did not send an ERDY.

The device would have sent ERDY if the next OUT packet was not received. When the next OUT packet was received, at that time there was enough buffer space to accept it, so the device accepted the packet by informing host that it is no longer in the flow control. The Host should wait for the responses for all the OUT packets to return and then decide if the endpoint is still in flow control or not.

The USB 3.1 specification supersedes all the USB 3.0 specification. The errata states that “If the host continues, or resumes, transactions to an endpoint, the endpoint must re-evaluate its flow control state and respond appropriately.” However, there are no ECNs on the USB 3.0 for this issue.

To work around this issue, the global RX threshold mode must be disabled by setting GRXTHRCFG.UsbRxPktCntSel = 0. Instead, software can program the DCFG.NUMP mode (where fixed NUMP is transmitted always) instead of the RX threshold based nump mode to prevent the device from sending ACK TP with NumP = 0. The NUMP in the ACK TP is the minimum value of (DCFG.NUMP, bMaxBurstSize) for each endpoint.

31302928272625242322212019181716
Res.Res.USBRXPCTCNTSELRes.USBRXPCTCNT[3:0]USBMAXRXBURSTSIZE[4:0]Res.Res.Res.
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.RESVISOCOUTSPC[12:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:30 Reserved, must be kept at reset value.

Bit 29 USBRXPKTCNTSEL: USB receive packet count enable

This field enables/disables the USB reception multi-packet thresholding:

0: The core can only start reception on the USB when the RX FIFO has space for at least one packet.

1: The core can only start reception on the USB when the RX FIFO has space for at least UsbRxPktCnt amount of packets. This mode is valid in both host and device modes. It is only used for SuperSpeed.

In device mode,

Setting this bit to 1 also enables the functionality of reporting NUMP in the ACK TP based on the RX FIFO space instead of reporting a fixed NUMP derived from DCFG.NUMP for non-control endpoints.

If external buffer control (EBC) feature is used, disable this mode by setting UsbRxPktCntSel to 0.

Bit 28 Reserved, must be kept at reset value.

Bits 27:24 USBRXPKTCNT[3:0]: USB receive packet count

In host mode, this field specifies the space (in terms of number of packets) that must be available in the RX FIFO before the core can start the corresponding USB RX transaction (burst).

In device mode, this field specifies the space (in terms of number of packets) that must be available in the RX FIFO before the core can send ERDY for a flow-controlled endpoint.

This field is valid only when the USB receive packet count enable field is set to 1. The valid values for this field are from 1 to 15.

Note: This field must be less than or equal to the USB maximum receive burst size field.

Bits 23:19 USBMAXRXBURSTSIZE[4:0]: USB maximum receive burst size

In host mode, this field specifies the maximum bulk IN burst the USB3DR can perform.
When the system bus is slower than the USB, RX FIFO can overrun during a long burst.
A smaller value can be programmed to this field to limit the RX burst size that the core can perform. It only applies to SS bulk, isochronous, and interrupt IN endpoints in the host mode.
In device mode, this field specifies the NUMP value that is sent in ERDY for an OUT endpoint. The programmed value should not exceed the RXFIFO size.
This field is valid only when UsbRxPktCntSel is one. The valid values for this field are from 1 to 16.

Bits 18:16 Reserved, must be kept at reset value.

Bits 15:13 Reserved, must be kept at reset value.

Bits 12:0 RESVISOCOUTSPC[12:0]: Space reserved in RX FIFO for ISOC OUT

In host mode, this field is not applicable and must be programmed to 0.
In device mode, this value represents the amount of space to be reserved for ISOC OUT packets.
The value to be programmed should be chosen so as to ensure that non ISOC packets are not completely dropped.
If no space needs to be reserved for ISOC OUT packets, program this field to 0.
This field is valid only in device mode. The maximum configurable depth of RX FIFO is 8192. Therefore, this field is 13 bits wide.
The value of space reserved is in terms of USB3DR_MDWIDTH.
For SS, the space reservation is always rounded off to the nearest packet boundary. Therefore, it is always recommended to program a value corresponding to MPS or its multiples.
For HS/FS, the space reservation is the actual value.

Note: For SS, reserve space for ISOC when the RX FIFO space can accommodate two MPS or more. Otherwise, this may result in degraded performance for non-ISOC packets. If the space is entirely allocated for ISOC, the non-ISOC packets are completely dropped.

USB3DR global control register (USB3DR_GBL_GCTL)

Address offset: 0xC110

Reset value: 0x30C1 2004

31302928272625242322212019181716
PWRDNSCALE[12:0]MASTERFILTBYPASSBYPSSSETADDRU2RSTECN
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
FRMSCLDWN[1:0]PRTCAPDIR[1:0]CORESOFTRESETSOFITPSYNCU1U2TIMERSCALEDEBUGATTACHRAMCLKSEL[1:0]SCALEDOWN[1:0]DISSCRAMBLEU2EXIT_LFPSGBLHIBERNATIONENDSBLCLKGTNG
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrrw

Bits 31:19 PWRDNSCALE[12:0]: Power down scale (PwrDnScale)

The USB3 suspend_clk input replaces pipe3_rx_pclk as a clock source to a small part of the USB3 core that operates when the SS PHY is in its lowest power (P3) state, and therefore does not provide a clock.

The power down scale field specifies how many suspend_clk periods fit into a 16 kHz clock period. When performing the division, round up the remainder.

For example, when using an 8-bit/16-bit/32-bit PHY and 25 MHz suspend clock,

Power Down scale = 25000 kHz/16 kHz = 1563 (rounded up)

Note: Minimum suspend clock frequency is 32 kHz

Maximum suspend clock frequency is 125 MHz

The LTSSM uses suspend clock for 12 ms and 100 ms timers during suspend mode.

According to the USB 3.0 specification, the accuracy on these timers is 0% to +50%.

– 12 ms + 0~+50% accuracy = 18 ms (Range is 12 ms - 18 ms)

– 100 ms + 0~+50% accuracy = 150 ms (Range is 100 ms - 150 ms).

The suspend clock accuracy requirement is:

– (12,000/62.5) × (GCTL[31:19]) × actual suspend_clk_period, must be between 12,000 and 18,000

– (100,0000/62.5) × (GCTL[31:19]) × actual suspend_clk_period, must be between 100,000 and 150,000

For example, if suspend_clk frequency varies from 7.5 MHz to 10.5 MHz, then the value that needs to be programmed is:

Power down scale = 10500/16 = 657 (rounded up integer).

Bit 18 MASTERFILTBYPASS: Master filter bypass

0: Filters enabled

1: All VBUS debouncing filters are bypassed, regardless of the USB3DR_EN_BUS_FILTERS value. The double synchronizers to mac_clk preceding the filters are also bypassed.

Bit 17 BYPSSETADDR: Bypass SetAddress in Device mode

When BYPSSETADDR bit is set, the device core uses the value in the DCFG[DevAddr] bits directly for comparing the device address in the tokens.

This feature can be used in simulation to avoid sending an actual SET ADDRESS control transfer on the USB, and make the device core respond to a new address.

When the xHCI debug capability is enabled and this bit is set, the debug target immediately enters the configured state without requiring the debug Host to send a SetAddress or SetConfig request.

Note: This bit can be set for simulation purposes only. In the actual hardware, this bit must be set to 0.

Bit 16 U2RSTECN: U2RSTECN

If the SuperSpeed connection fails during POLL or LMP exchange, the device connects at non-SS mode.

If this bit is set, then the device attempts three more times to connect at SS, even if it previously failed to operate in SS mode. For each attempt, the device checks receiver termination eight times.

From 2.60a release, this bit controls whether to check for RX.Detect eight times or one time for every attempt. The device controller on USB 2.0 reset checks for receiver termination eight times per attempt if this bit is set to zero, or only once per attempt if the bit is set to one.

Note: This bit is applicable only in Device mode.

Bits 15:14 FRMSCLDWN[1:0]: FRMSCLDWN

This field scales down device view of a SOF/USOF/ITP duration.

Condition: SS HS mode.

3: implements interval to be 15.625 μs

2: implements interval to be 31.25 μs

1: implements interval to be 62.5 μs

0: implements interval to be 125 μs

Condition FS mode: the scale-down value is multiplied by 8.

When xHCI debug capability is enabled, this field also scales down the MaxPacketSize of the IN and OUT bulk endpoint to allow more traffic during simulation. It can only be changed from a non-zero value during simulation.

0: 1024 Bytes

1: 512 Bytes

2: 256 Bytes

3: 128 Bytes

Bits 13:12 PRTCAPDIR[1:0]: Port capability direction (PrtCapDir)

When USB3DR_EN_OTG is 0, then the core acts as a DRD.

When USB3DR_EN_OTG is 1:

When USB3DR_EN_OTG is 2:

Note: For static Host-only/Device-only applications, use DRD Host or DRD Device mode. The combination of GCTL.PrtCapDir = 0b11 with SRP and HNP/RSP disabled is not recommended for these applications.

The sequence for switching modes in DRD configuration is as follows:

Switching from Device to Host:

  1. 1. Reset the controller using GCTL[11] (CoreSoftReset).
  2. 2. Set GCTL[13:12] (PrtCapDir) to 0b01 (Host mode).
  3. 3. Reset the host using USBCMD.HCRESET.
  4. 4. Initialize the Host registers.

Switching from Host to Device:

  1. 1. Reset the controller using GCTL[11] (CoreSoftReset).
  2. 2. Set GCTL[13:12] (PrtCapDir) to 0b10 (Device mode).
  3. 3. Reset the device by setting DCTL[30] (CSftRst).
  4. 4. Initialize the Device registers.

Programming this field with random data causes the core to keep toggling between the host mode and the device mode. Bit bash register testing is not recommended.

Bit 11 CORESOFTRESET: Core soft reset (CoreSoftReset)

0: No soft reset

1: Soft reset to core

Clears the interrupts and all the CSRs except the following registers:

When resetting PHYs (using GUBS3PHYCFG or GUSB3PIPECTL registers), the core must be kept in reset state until PHY clocks are stable. This controls the bus, ram, and MAC domain resets.

Note: This bit is for debug purposes only. Use USBCMD.HCRESET in xHCI mode and DCTL.SoftReset in device mode for soft reset.

Programming this field with random data resets the internal logic of the host controller. Due to this side effect bit bash register testing is not recommended.

Bit 10 SOFITPSYNC: SOFITPSYNC

If this bit is set to 0 operating in host mode, the core keeps the UTMI/ULPI PHY on the first port in a non-suspended state whenever there is a SuperSpeed port that is not in RX.Detect, SS.Disable and U3.

If this bit is set to '1' operating in host mode, the core keeps the UTMI/ULPI PHY on the first port in a non-suspended state whenever the other non-SuperSpeed ports are not in a suspended state. This feature is useful because it saves power by suspending UTMI/ULPI when SuperSpeed only is active, and it helps resolve when the PHY does not transmit a host resume unless it is placed in suspend state. This bit must be programmed as a part of initialization at power-on reset, and must not be dynamically changed afterwards.

Note: USB2PHYCFGn[6].PhySusp eventually decides to put the UTMI/ULPI PHY into suspend state. In addition, when this bit is set to 1, the core generates ITP from the ref_clk based counter. Otherwise, ITP and SOF are generated from utmi/ulpi_clk[0] based counter. To program the reference clock period inside the core, refer to GUCTL[31:22].REFCLKPER.

This feature is valid in Host and DRD/OTG configurations and used only in Host mode operation.

If this feature or the GFLADJ.GFLADJ_REFCLK_LPM_SEL is never used, the minimum frequency for the ref_clk can be as low as 32 kHz. The suspend_clk (as low as 32 kHz) can be connected to the ref_clk.

If hardware-based LPM or software-based LPM has to be enabled (PORTPMSC.HLE = 1), then this feature cannot be used. Turn off this feature by setting this bit to 0 and use the GFLADJ.GFLADJ_REFCLK_LPM_SEL feature.

If this bit is set to 1, the GUSB2PHYCFG.U2_FREECLK_EXISTS bit and the USB3DR_FREECLK_USB2_EXIST parameter must be set to 0. Program this bit to 0 if the core is intended to be operated in USB 3.0 mode.

Bit 9 U1U2TIMERSCALE: Disable U1/U2 timer scaledown (U1U2TimerScale)

If set to 1 along with GCTL[5:4] (ScaleDown) = 0bx1, disables the scale down of U1/U2 inactive timer values. This is for simulation mode only.

Bit 8 DEBUGATTACH: Debug attach

When this bit is set,

Bits 7:6 RAMCLKSEL[1:0]: RAM clock select (RAMClkSel)

00: Bus clock

01: Pipe clock (only used in Device mode)

10: In Device mode, pipe/2 clock. In Host mode, controller switches ram_clk between pipe/2 clock, mac2_clk and bus_clk based on the status of the U2/U3 ports

11: In device mode, selects mac2_clk as ram_clk (when 8-bit UTMI or ULPI used, not supported in 16-bit UTMI mode). In Host mode, controller switches ram_clk between pipe_clk, mac2_clk and bus_clk based on the status of the U2/U3 ports.

In Device mode, upon a USB reset and USB disconnect, the hardware clears these bits to 00.

Note: In device mode, if RAMClkSel is set to 0b11 (mac2_clk), the controller internally switches the ram_clk to bus_clk when the link state changes to suspend (L2 or L3), and switches the ram_clk back to mac2_clk when the link state changes to resume or U2.

In host mode, if a value of 2/3 is chosen, then controller switches ram_clk between bus_clk, mac2_clk and pipe_clk, pipe_clk/2, based on the state of the U2/U3 ports. For example if only the U2 port is active and the U3 ports are suspended, then the ram_clk is swicthed to mac2_clk. When only the U3 ports are active and the U2 ports are suspended, then the core internally swicth the ram_clk to pipe3 clock and when all U2 and U3 ports are suspended, it switches the ram_clk to bus_clk. This allows decoupling the ram_clk from the bus_clk and depending on the bandwidth requirement allows the bus_clk to be run at a lower frequency than the ram_clk requirements. bus_clk frequency still cannot go below 60 MHz in Host mode, and this is not verified.

A value of 2 can be chosen only if the pipe data width is 8 or 16 bits. In this case when the ram_clk is switched to pipe_clk, it uses pipe_clk/2 instead of pipe_clk. If a value of 3 is chosen for RAMClkSel, when ram_clk is switched to pipe_clk, then pipe_clk is used without any divider.

In device mode, when RAMClkSel ≠ 0b00, the bus_clk_early frequency can be a minimum of 1 MHz. This is tested in simulation and also in hardware with Linux, Microsoft® Windows® 8, and MCCI Windows® 7 host drivers. Only control and non-periodic transfers are supported when bus_clk is 1 MHz. For periodic applications, the bus_clk_early minimum frequency is higher depending on the application and device bus. Even though 1 MHz has been tested with standard host drivers, Synopsys recommends 5 MHz minimum for ASIC designs to provide a margin or at least have a backup option to increase the bus_clk frequency to 5 MHz if needed.

Programming this field with random data causes side effect. Bit bash register testing is not recommended.

Bits 5:4 SCALEDOWN[1:0]: Scale-down mode (ScaleDown)

When scale-down mode is enabled for simulation, the core uses scaled-down timing values, resulting in faster simulations.

When scale-down mode is disabled, actual timing values are used. This is required for hardware operation.

Condition: HS FS LS modes

00: Disables all scale-downs. Actual timing values are used.

01: Enables scale-down of all timing values except Device mode suspend and resume. These include speed enumeration, HNP/SRP, and Host mode suspend and resume.

10: Enables scale-down of Device mode suspend and resume timing values only.

11: Enables bit 0 and bit 1 scale-down timing values.

Condition: SS mode

00: Disables all scale-downs. Actual timing values are used.

01: Enables scaled down SS timing and repeat values including:

10: No TxEq training sequences are sent. Overrides bit 4.

11: Enables bit 0 and bit 1 scale-down timing values.

Bit 3 DISSCRAMBLE: Disable scrambling (DisScramble)

Transmit request to link partner on next transition to recovery or polling.

Bit 2 U2EXIT_LFPS: U2EXIT_LFPS

If this bit is,

0: the link treats 248 ns LFPS as a valid U2 exit.

1: the link waits for 8 μs of LFPS before it detects a valid U2 exit.

This bit is added to improve interoperability with a third-party host/device controller. This host/device controller in U2 state while performing receiver detection generates an LFPS glitch of about 4 ms duration. This causes the host/device to exit from U2 state because the LFPS filter value is 248 ns. With the new functionality enabled, the host/device can stay in U2 while ignoring this glitch from the host/device controller.

This bit is applicable for both host and device controller.

This bit is added to improve interoperability with a third party host controller. This host controller in U2 state while performing receiver detection generates an LFPS glitch of about 4 ms duration. This causes the device to exit from U2 state because the LFPS filter value is 248 ns. With the new functionality enabled, the device can stay in U2 while ignoring this glitch from the host controller.

Bit 1 GBLHIBERNATIONEN: GblHibernationEn

This bit enables hibernation at the global level. If hibernation is not enabled through this bit, the PMU immediately accepts the D0 → D3 and D3 → D0 power state change requests, but does not save or restore any core state.

In addition, the PMUs never drive the PHY interfaces and let the core continue to drive the PHY interfaces.

Bit 0 DSBLCLKGTNG: Disable clock gating (DsblClkGtng)

This bit is set to 1 and the core is in Low Power mode, internal clock gating is disabled.

This bit can be set to 1 after power-on reset.

USB3DR global power management status register
(USB3DR_GBL_GPMSTS)

Address offset: 0xC114

Reset value: 0bXXXX 0000 0000 000X XXXX 00XX XXXX XXXX

31302928272625242322212019181716
PORTSEL[3:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.U3WAKEUP[4]
wwwwr
1514131211109876543210
U3WAKEUP[3:0]Res.Res.U2WAKEUP[9:0]
rrrrrrrrrrrrrr

Bits 31:28 PORTSEL[3:0]: Global power management status register, PortSel
This field selects the port number.

Bits 27:17 Reserved, must be kept at reset value.

Bits 16:12 U3WAKEUP[4:0]: U3Wakeup
This field gives the following USB 3.0 port wakeup conditions:
xxxx1: Overcurrent detected
xxx1x: Resume detected
xx1xx: Connect detected
x1xxx: Disconnect detected
1xxxx: Last connection state

Bits 11:10 Reserved, must be kept at reset value.

Bits 9:0 U2WAKEUP[9:0]: U2Wakeup
This field indicates the following USB 2.0 port wakeup conditions:
xxxxxxxxx1: Overcurrent detected
xxxxxxxx1x: Resume detected
xxxxxxx1xx: Connect detected
xxxxxx1xxx: Disconnect detected
xxxxx1xxxx: Last connection state
xxxx1xxxxx: ID change detected
xxx1xxxxxx: SRP request detected
xx1xxxxxxx: ULPI interrupt detected
x1xxxxxxxx: USB Reset detected
1xxxxxxxxx: Resume detected changed

ST logo
ST logo

USB3DR global status register (USB3DR_GBL_GSTS)

Address offset: 0xC118

Reset value: 0x7E80 0000

31302928272625242322212019181716
CBELT[11:0]Res.Res.Res.Res.
rrrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.SSIC_IPOTG_IPBC_IPADP_IPHOST_IPDEVICE_IPCSRTIMEOUTBUSERRADDRVLDRes.Res.CURMOD[1:0]
rrrrrrrc_w1rc_w1rr
Bits 31:20 CBELT[11:0] : Current BELT value

In Host mode, this field indicates the minimum value of all received device BELT values and the BELT value that is set by the set latency tolerance value command.

Bits 19:12 Reserved, must be kept at reset value.

Bit 11 SSIC_IP : SSIC interrupt pending (SSIC_IP)

This field indicates that there is a pending interrupt related to SSIC in the SEVT register.

Note: When the USB3DR_NUM_SSIC_PORTS parameter is set to zero, this bit is reserved. Bit 10 OTG_IP : OTG interrupt pending

This field indicates that there is a pending interrupt pertaining to OTG in OEVT register.

Bit 9 BC_IP : Battery charger interrupt pending

This field indicates that there is a pending interrupt pertaining to BC in BCEVT register.

Bit 8 ADP_IP : ADP interrupt pending

This field indicates that there is a pending interrupt pertaining to ADP in ADPEVT register.

Bit 7 HOST_IP : Host interrupt pending:

This field indicates that there is a pending interrupt pertaining to xHC in the Host event queue.

Bit 6 DEVICE_IP : Device interrupt pending

This field indicates that there is a pending interrupt pertaining to peripheral (device) operation in the Device event queue.

Bit 5 CSRTIMEOUT : CSR timeout

When this bit is 1, it indicates that the software performed a write or read to a core register that cannot be completed within USB3DR_CSR_ACCESS_TIMEOUT bus clock cycles (default: 0x1FFFF).

Bit 4 BUSERRADDRVLD : Bus error address valid (BusErrAddrVld)

Indicates that the GBUSERRADDR register is valid and reports the first bus address that encounters a bus error.

Note: Only supported in AHB and AXI configurations.

Bits 3:2 Reserved, must be kept at reset value.

Bits 1:0 CURMOD[1:0]: Current mode of operation (CurMod)
Indicates the current mode of operation:
00: Device mode
01: Host mode
Others: Reserved

USB3DR global user control register 1 (USB3DR_GBL_GUCTL1)

Address offset: 0xC11C

Reset value: 0x0000 0002

31302928272625242322212019181716
DEV_DECOUPLE_L1L2_EVTDS_RXDET_MAX_TOUT_CTRLFILTER_SE0_FSLs_EOPTX_IPGAP_LINECHECK_DISDEV_TRB_OUT_SPR_INDDEV_FORCE_20_CLK_FOR_30_CLKP3_IN_U2DEV_L1_EXIT_BY_HWIP_GAP_ADD_ON[2:0]DEV_LSP_TAIL_LOCK_DISNAK_PER_ENH_FSNAK_PER_ENH_HSPARKMODE_DISABLE_SSPARKMODE_DISABLE_HS
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PARKMODE_DISABLE_FSLsRes.Res.Res.Res.RESUME_OPMODE_HS_HOSTDEV_HS_NYET_BULK_SPRL1_SUSP_THRLD_EN_FOR_HOSTL1_SUSP_THRLD_FOR_HOST[3:0]HC_ERRATA_ENABLEHC_PARCHK_DISABLEOVRD_L1_SUSP_COMLOA_FILTER_EN
rwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 DEV_DECOUPLE_L1L2_EVT: DEV_DECOUPLE_L1L2_EVT
0: Default behavior, no change in device events L1/L2U3, events are not decoupled (old behavior of v2.90a and before)
1: Feature enabled, L1 and L2 events are separated when operating in 2.0 mode. Separate event enable bits for L1 suspend and wake events.
This bit is applicable for device mode only. If this feature is enabled, L1 suspend and wake events have individual controls to enable/mask them.
This feature must be enabled in order to get L1 (LPM) events separately and not combined with L2 events when operating in 2.0 speeds.

Bit 30 DS_RXDET_MAX_TOUT_CTRL: DS_RXDET_MAX_TOUT_CTRL
This bit is used to control the \(t_{RxDetectTimeoutDFP}\) timer for the SuperSpeed link.
0: Default behavior; 12 ms is used as \(t_{RxDetectTimeoutDFP}\).
1: 120 ms is used as the \(t_{RxDetectTimeoutDFP}\).
This bit is used only in Host mode. For more details, refer to ECN020 of [USB3].

ST logo
ST logo

Bit 29 FILTER_SE0_FSLS_EOP: FILTER_SE0_FSLS_EOP

0: Default behavior, no change in linestate check for SE0 detection in FS/LS

1: Feature enabled, FS/LS SE0 is filtered for 2 clocks for detecting EOP

This bit is applicable for FS/LS operation. If this feature is enabled, then SE0 on the linestate is validated for 2 consecutive utmi/ulpi clock edges for EOP detection. This feature is applicable only in FS in device mode and FS/LS mode of operation in host mode.

Device mode: FS - If GUCTL1.FILTER_SE0_FSLS_EOP is set, then for device LPM handshake, the core ignores single SE0 glitch on the linestate during transmit. Only two or more SE0 are considered as a valid EOP on FS.

Host mode: FS/LS - If GUCTL1.FILTER_SE0_FSLS_EOP is set, then the core ignores single SE0 glitch on the linestate during transmit. Only 2 or more SE0 are considered as a valid EOP on FS/LS port.

Enable this feature if the LineState has SE0 glitches during transmission. This bit is quasi-static, that is it must not be changed during device operation.

Bit 28 TX_IPGAP_LINECHECK_DIS: TX_IPGAP_LINECHECK_DIS

0: Default behavior, no change in linestate check

1: Feature enabled, 2.0 MAC disables linestate check during HS transmit

This bit is applicable for HS operation of u2mac. If this feature is enabled, then the 2.0 MAC operating in HS ignores the UTMI/ULPI linestate during the transmit of a token (during token-to-token and token-to-data IPGAP). When enabled, the controller implements a fixed 40-bit TxEndDelay after the packet is given on UTMI and ignores the linestate during this time. This feature is applicable only in HS mode of operation.

Device mode: If GUCTL1.TX_IPGAP_LINECHECK_DIS is set, then for device LPM handshake, the core ignores the linestate after TX and wait for fixed clocks (40 bit times equivalent) after transmitting ACK on utmi.

Host mode: If GUCTL1.TX_IPGAP_LINECHECK_DIS is set, then the ipgap between token-to-token or token-to-data is extended by a 40-bit time delay (TXENDDELAY), and linestate is ignored during this 40-bit time delay.

Enable this bit if the linestate does not reflect the expected line state (J) during transmission. This bit is quasi-static, that is, it must not be changed during device operation.

Bit 27 DEV_TRB_OUT_SPR_IND: DEV_TRB_OUT_SPR_IND

0: Default behavior, no change in TRB status dword

1: Feature enabled, OUT TRB status indicates short packet

This bit is applicable for Device mode only (and ignored in Host mode). If the device application (software/hardware) wants to know if a short packet was received for an OUT in the TRB status itself, then this feature can be enabled, so that a bit is set in the TRB writeback in the buf_size dword. Bit[26] of buf_size is set during an OUT transfer TRB writeback if this is the last TRB used for that transfer descriptor. This bit is quasi-static, that is, it must not be changed during device operation.

Bit 26 DEV_FORCE_20_CLK_FOR_30_CLK: DEV_FORCE_20_CLK_FOR_30_CLK

This bit is applicable (and to be set) for device mode only (DCFG.Speed ≠ SS). In the 3.0 device core, if the core is programmed to operate in 2.0 only (that is, device speed is programmed to 2.0 speeds in DCFG[Speed]), then setting this bit makes the internal 2.0 (utmi/ulpi) clock to be routed as the 3.0 (pipe) clock. Enabling this feature disables the pipe3 clock when forcibly operating in 2.0 device mode.

Note: When using this feature, all pipe3 inputs must be in inactive mode. In particular, the pipe3 clocks must not be running and the pipe3_phystatus_async must be tied to 0. This bit should not be set if the core is programmed to operate in SuperSpeed mode (even when it falls back to 2.0).

This bit is quasi-static, that is it must not be changed during operation.

If the parameter "USB3DR_REMOVE_PIPE_CLK_MUX_FOR_20_MODE" is enabled, the muxing of 2.0 clock/signals to pipe_clk/signals must be done outside the controller for this feature to work.

Bit 25 P3_IN_U2: P3_IN_U2

Bit 24 DEV_L1_EXIT_BY_HW: DEV_L1_EXIT_BY_HW

This bit is applicable for Device mode (2.0) only. This field enables device controller sending remote wakeup for L1 if the device becomes ready for sending/accepting data when in L1 state.

If the host expects the device to send remote wakeup signaling to resume after going into L1 in flow controlled state, then this bit can be set to send the remote wake signal automatically when the device controller becomes ready.

This hardware remote wake feature is applicable only to bulk and interrupt transfers, and not for Isoch/Control

This bit is quasi-static, that is, it must not be changed during device operation.

Bits 23:21 IP_GAP_ADD_ON[2:0]:

This register field is used to add up to the default inter packet gap setting in the USB 2.0 MAC.

This should be programmed to a non zero value only in case the default inter packet delay calculations in the USB 2.0 MAC module needs to be increased.

Bit 15 PARKMODE_DISABLE_FSLS: PARKMODE_DISABLE_FSLS

This bit is used only in host mode, and is for debug purpose only.

When this bit is set to 1 all FS/LS bus instances in park mode are disabled.

Bits 14:11 Reserved, must be kept at reset value.

Bit 10 RESUME_OPMODE_HS_HOST: RESUME_OPMODE_HS_HOST

This bit is used only in host mode, and is for USB 2.0 opmode behavior in HS Resume.

Bit 9 DEV_HS_NYET_BULK_SPR: DEV_HS_NYET_BULK_SPR

0: Default behavior, no change in device response

1: Feature enabled, HS bulk OUT short packet gets NYET response

This bit is applicable for device mode only (and ignored in Host mode) to be used in 2.0 operation.

If this bit is set, the device core sends NYET response instead of ACK response for a successfully received bulk OUT short packet.

If NYET is sent after receiving short packet, then the host would PING before sending the next OUT. This improves the performance as well as clears up the buffer/cache on the host side. Internal to the device core, short packet (SPR 1) processing takes some time, and during this time, the USB is flow controlled. With NYET response instead of ACK on short packet, the host does not send another OUT-DATA without pinging in HS mode.

This bit is quasi-static, that is, it must not be changed during device operation.

Bit 8 L1_SUSP_THRLD_EN_FOR_HOST: L1_SUSP_THRLD_EN_FOR_HOST

This bit is used only in Host mode.

The host controller asserts the utmi_l1_suspend_n and utmi_sleep_n output signals as follows:

The controller asserts the utmi_l1_suspend_n signal to put the PHY into deep Low-power mode in L1 when both of the following are true:

The controller asserts utmi_sleep_n on L1 when one of the following is true:

Bits 7:4 L1_SUSP_THRLD_FOR_HOST[3:0]: L1_SUSP_THRLD_FOR_HOST

This field is effective only when the L1_SUSP_THRLD_EN_FOR_HOST bit is set to 1. For more details, refer to the description of the L1_SUSP_THRLD_EN_FOR_HOST bit.

Bit 3 HC_ERRATA_ENABLE: Host ELD Enable (HELDn)

When this bit is set to 1, it enables the exit latency delta (ELD) support defined in the [xHCI] errata.

This bit is used only in the host mode. This bit has to be set to 1 in Host mode.

Bit 2 HC_PARCHK_DISABLE: Host parameter check disable (HParChkDisable)

When this bit is set to 0 (by default), the xHC checks that the input slot/EP context fields comply to the xHCI specification. Upon detection of a parameter error during command execution, the xHC generates an event TRB with completion code indicating 'PARAMETER ERROR'.

When the bit is set to '1', the xHC does not perform parameter checks and does not generate 'PARAMETER ERROR' completion code.

Bit 1 OVRLD_L1_SUSP_COM: OVRLD_L1_SUSP_COM

If this bit is set, the utmi_l1_suspend_com_n is overloaded with the utmi_sleep_n signal. This bit is usually set if the PHY stops the port clock during L1 sleep condition.

Note: The recommended connection for the SUSPENDM/SLEEP_M signals to the PHY with respect to this bit is as follows.

For non-zero ports:

Connect:

GUCTL1.OVRLD_L1_SUSP_COM impacts only Port0.

For Port0:

For Synopsys PHY, GUSB2PHYCFGn.U2_FREECLK_EXISTS = 1. With this connection, the PHY keeps PLL active so that FREECLK is always available irrespective of suspend/sleep.

For Third Party PHY,

GUSB2PHYCFGn.U2_FREECLK_EXISTS = 0. With this connection the PHY can shut off all the clocks when the required conditions are met (such as GUSB2PHYCFGn[8,6], GUCTL1[1], GFLADJ[23], GCTL[10], suspend condition, HW LPM enable).

Bit 0 LOA_FILTER_EN: LOA_FILTER_EN

If this bit is set, the USB 2.0 port babble is checked at least three consecutive times before the port is disabled. This prevents false triggering of the babble condition when using low quality cables.

Note: This bit is valid only in host mode.

USB3DR global Synopsys ID register (USB3DR_GBL_GSNPSID)

Address offset: 0xC120

Reset value: 0x5533 330B

This is a read-only register that contains the release number of the core.

31302928272625242322212019181716
SYNOPSYSID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
SYNOPSYSID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 SYNOPSYSID[31:0]: Synopsys ID

USB3DR global general purpose input/output register (USB3DR_GBL_GGPIO)

Address offset: 0xC124

Reset value: 0x0000 0000

The application can use this register for general purpose input and output ports or for debugging.

31302928272625242322212019181716
GPO[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
GPI[15:0]
rrrrrrrrrrrrrrrr

Bits 31:16 GPO[15:0]: General purpose output

This field value is driven out on the gp_out[15:0] core output port.

Bits 15:0 GPI[15:0]: General purpose input

This field read value reflects the gp_in[15:0] core input value.

Note: Register bit-bash test should not check for reset value of this field since its not predictable; depends on the gp_in port.

USB3DR global user ID register (USB3DR_GBL_GUID)

Address offset: 0xC128

Reset value: 0x1234 5678

This is a read/write register containing the User ID. This register can be used in the following ways:

31302928272625242322212019181716
USERID[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
USERID[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 USERID[31:0]: USERID

Application programmable ID field.

USB3DR global user control register (USB3DR_GBL_GUCTL)

Address offset: 0xC12C

Reset value: 0x0200 0010

This register provides a few options for the software to control the core behavior in the Host mode. Most of the options are used to improve host interoperability with different devices.

31302928272625242322212019181716
REFCLKPER[9:0]NOEXTRDLRes.Res.Res.SPRSCRTLTRANSENRESBWHSEPS
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.USBHSTINAUTORETRYENENOVERLAPCHKEXTCAPSUPPTENINSRTEXTREFSBODIDTCT[1:0]DTFT[8:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:22 REFCLKPER[9:0]: REFCLKPER

This field indicates in terms of nano seconds the period of ref_clk. The default value of this register is set to 0x8 (8 ns/125 MHz).

This field needs to be updated during power-on initialization, if GCTL.SOFITPSYNC or GFLADJ.GFLADJ_REFCLK_LPM_SEL is set to 1. The programmable maximum value is 62 ns, and the minimum value is 8 ns.

A reference clock with a period that is an integer multiple must be used, so that ITP can meet the jitter margin of 32 ns. The allowable ref_clk frequencies whose period is not integer multiple are 16/17/19.2/24/39.7 MHz.

This field must not be set to 0 at any time. If this feature should never be used, this field should be kept at its default value 0x8.

Bit 21 NOEXTRDL: No extra delay between SOF and the first Packet(NoExtrDI)

Some HS devices misbehave when the host sends a packet immediately after a SOF. However, adding an extra delay between a SOF and the first packet can reduce the USB data rate and performance.

This bit is used to control whether the host must wait for 2 microseconds before it sends the first packet after a SOF, or not. User can set this bit to 1 to improve the performance if those problematic devices are not a concern in the user's host environment.

Bits 20:18 Reserved, must be kept at reset value.

Bit 17 SPRSCTRLTRANSEN: Sparse control transaction enable

Some devices are slow in responding to control transfers. Scheduling multiple transactions in one microframe/frame can cause these devices to misbehave.

If this bit is set to 1, the host controller schedules transactions for a control transfer in different microframes/frames.

Bit 16 RESBWHSEPS: Reserving 85% bandwidth for HS periodic EPs (ResBwHSEPS)

By default, HC reserves 80% of the bandwidth for periodic EPs. If this bit is set, the bandwidth is relaxed to 85% to accommodate two high-speed, high-bandwidth ISOC EPs.

USB 2.0 required 80% bandwidth allocated for ISOC traffic. If two high-bandwidth ISOC devices (HD webcams) are connected, and if each requires 1024-bytes X 3 packets per microframe, then the bandwidth required is around 82%. If this bit is set, then it is possible to connect two webcams of 1024 Bytes X 3 payload per microframe each. Otherwise the resolution of the webcams may have to be reduced.

This bit is valid in Host and DRD configuration and is used in Host mode operation only. Ignore this bit in device mode.

Bit 15 Reserved, must be kept at reset value.

Bit 14 USBHSTINAUTORETRYEN: Host IN auto retry (USBHstInAutoRetryEn)

When set, this field enables the auto retry feature. For IN transfers (non-isochronous) that encounter data packets with CRC errors or internal overrun scenarios, the auto retry feature causes the Host core to reply to the device with a non-terminating retry ACK (that is, an ACK transaction packet with Retry = 1 and NumP ≠ 0).

If the auto retry feature is disabled (default), the core responds with a terminating retry ACK (that is, an ACK transaction packet with Retry = 1 and NumP = 0).

0: Auto retry disabled

1: Auto retry enabled

Note: When enabling auto retry feature, if the system latency is large enough to cause the internal PSQ full (PSQ can be full as the result of messages not being processed because of pending fetches before flushing the TxQ due to NRDY/ERDY conditions), then the host controller can generate a transaction error.

Bit 13 ENOVERLAPCHK: Enable check for LFPS overlap during remote Ux exit:

If this bit is set to,

1: The SuperSpeed link when exiting U1/U2/U3 waits for either the remote link LFPS or TS1/TS2 training symbols before it confirms that the LFPS handshake is complete. This is done to handle the case where the LFPS glitch causes the link to start exiting from the low power state. Looking for the LFPS overlap makes sure that the link partner also sees the LFPS.

0: When the link exits U1/U2/U3 because of a remote exit, it does not look for an LFPS overlap.

Bit 12 EXTCAPSUPPTEN: External extended capability support enable (ExtCapSuptEN)

When set, this field enables extended capabilities to be implemented outside the core.

When the ExtCapSupEN is set and the debug capability is enabled, the next capability pointer in "Debug Capability" returns 16.

A read to the first dword of the last internal extended capability (the "xHCI supported Protocol Capability for USB 3.0" when the debug capability is not enabled) returns a value of 4 in the next capability pointer field.

This indicates to software that there is another capability, 4 dwords after this capability (for example, at address N+16 where N is the address of this dword).

If enabled, an external address decoder that snoops the xHC slave interface must be implemented. If it sees an access to N+16 or greater, the slave access is re-routed to a piece of hardware which returns the external capability pointer register of the new capability and also handles reads/writes to this new capability and the side effects.

If disabled, a read to the first dword of the last internal extended capability returns 0 in the next capability pointer field. This indicates there are no more capabilities.

Bit 11 INSRTEXTRFSBODI: Insert extra delay between FS bulk OUT transactions (InsrExtrFSBODI)

Some FS devices are slow to receive bulk OUT data and can get stuck when there are consecutive bulk OUT transactions with short inter-transaction delays. This bit is used to control whether the host inserts extra delay between consecutive bulk OUT transactions to a FS endpoint.

0: Host does not insert extra delay between consecutive bulk OUT transactions to a FS endpoint.

1: Host inserts about 12 µs extra delay between consecutive bulk OUT transactions to a FS endpoint to work around the device issue.

Note: Setting this bit to one reduces the bulk OUT transfer performance for most of the FS devices.

Bits 10:9 DTCT[1:0]: Device timeout coarse tuning (DTCT)

This field is a Host mode parameter which determines how long the host waits for a response from device before considering a timeout.

The core first checks the DTCT value. If it is 0, then the timeout value is defined by the DTFT. If it is non-zero, then it uses the following timeout values:

00: 0 µs → use DTFT value instead

01: 0.5 ms

10: 1.5 ms

11: 6.5 ms

Note: When the system latency is larger than the programmed DTCT/DTFT value, if the host controller is not able to accept certain transactions on the bus (because of system bus delays), the controller may not release header credits which in turn can cause the host to report a transaction error. Therefore, program this value to be larger than the system delay.

Bits 8:0 DTFT[8:0]: Device timeout fine tuning (DTFT)

This field is a Host mode parameter which determines how long the host waits for a response from device before considering a timeout.

For the DTFT field to take effect, DTCT must be set to 0b00.

The DTFT value is the number of 125 MHz clocks × 256 to count before considering a device timeout.

The minimum value of DTFT is 2.

For example, if the mac3_clk is 125 MHz clk (8 ns period), this is calculated as follows:

\[(DTFT \text{ value}) \times 256 \times (8 \text{ ns})\]

Quick Reference:

Note: When SSIC is enabled, in HS_G1_G2_G3 mode, and ssic_soc_pa_clk_freq = 0b01, then DTFT value must be calculated for 156.25 MHz clock, for example, for equivalent delay of 32 μs DTFT value must be 0x14.

When the system latency is larger than the programmed DTCT/DTFT value, if the host controller is not able to accept certain transactions on the bus (because of system bus delays), the controller may not release header credits which in turn can cause the host to report a transaction error. Therefore, program this value to be larger than the system delay.

USB3DR global bus error address register - low
(USB3DR_GBL_GBUSERRADDRLO)

Address offset: 0xC130

Reset value: 0x0000 0000

This is an alternate register for the GBUSERRADDR register.

31302928272625242322212019181716
BUSERRADDR[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
BUSERRADDR[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 BUSERRADDR[31:0]: Bus address low (BusAddrLo)

This register contains the lower 32 bits of the first bus address that encountered a device bus error. It is valid when the GSTS.BusErrAddrVld field is 1.

It can only be cleared by resetting the core.

Note: Only supported in AHB and AXI configurations.

USB3DR global bus error address register - high
(USB3DR_GBL_GBUSERRADDRHI)

Address offset: 0xC134

Reset value: 0x0000 0000

This is an alternate register for the GBUSERRADDR register.

31302928272625242322212019181716
BUSERRADDR[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
BUSERRADDR[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 BUSERRADDR[31:0]: Bus address high (BusAddrHi)

This register contains the higher 32 bits of the first bus address that encountered a device bus error. It is valid when the GSTS.BusErrAddrVld field is 1.

It can only be cleared by resetting the core.

Note: Only supported in AHB and AXI configurations.

USB3DR global SS port to bus instance mapping register - low
(USB3DR_GBL_GPRTBIMAPLO)

Address offset: 0xC138

Reset value: 0x0000 0000

31302928272625242322212019181716
BINUM8[3:0]BINUM7[3:0]BINUM6[3:0]BINUM5[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
BINUM4[3:0]BINUM3[3:0]BINUM2[3:0]BINUM1[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 BINUM8[3:0]: SS USB instance number for port 8.

Application programmable ID field.

Bits 27:24 BINUM7[3:0]: SS USB instance number for port 7.

Application programmable ID field.

Bits 23:20 BINUM6[3:0]: SS USB instance number for port 6.

Application programmable ID field.

Bits 19:16 BINUM5[3:0]: SS USB instance number for port 5.

Application programmable ID field.

Bits 15:12 BINUM4[3:0]: SS USB instance number for port 4.

Application programmable ID field.

Bits 11:8 BINUM3[3:0]: SS USB instance number for port 3.

Application programmable ID field.

Bits 7:4 BINUM2[3:0]: SS USB instance number for port 2.

Application programmable ID field.

Bits 3:0 BINUM1[3:0]: SS USB instance number for port 1.

Application programmable ID field.

USB3DR global SS port to bus instance mapping register - high
(USB3DR_GBL_GPRTBIMAPHI)

Address offset: 0xC13C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.BINUM15[3:0]BINUM14[3:0]BINUM13[3:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
BINUM12[3:0]BINUM11[3:0]BINUM10[3:0]BINUM9[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

USB3DR global hardware parameters register 0
(USB3DR_GBL_GHWPARAMS0)

Address offset: 0xC140

Reset value: 0x2020 400A

31302928272625242322212019181716
GHWPARAMS0_31_24[7:0]GHWPARAMS0_23_16[7:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
GHWPARAMS0_15_8[7:0]GHWPARAMS0_7_6[1:0]GHWPARAMS0_5_3[2:0]GHWPARAMS0_2_0[2:0]
rrrrrrrrrrrrrrrr
ST logo
ST logo

Bits 31:24 GHWPARAMS0_31_24[7:0]: USB3DR_AWIDTH

Bits 23:16 GHWPARAMS0_23_16[7:0]: USB3DR_SDWIDTH

Bits 15:8 GHWPARAMS0_15_8[7:0]: USB3DR_MDWIDTH

Bits 7:6 GHWPARAMS0_7_6[1:0]: USB3DR_SBUS_TYPE

Bits 5:3 GHWPARAMS0_5_3[2:0]: USB3DR_MBUS_TYPE

Bits 2:0 GHWPARAMS0_2_0[2:0]: USB3DR_MODE

USB3DR global hardware parameters register 1
(USB3DR_GBL_GHWPARAMS1)

Address offset: 0xC144

Reset value: 0x0160 C93B

31302928272625242322212019181716
GHWPARAMS1_31GHWPARAMS1_30Res.GHWPARAMS1_28GHWPARAMS1_27GHWPARAMS1_26GHWPARAMS1_25_24[1:0]GHWPARAMS1_23GHWPARAMS1_22_21[1:0]GHWPARAMS1_20_15[5:1]
rrrrrrrrrrrrrrr
1514131211109876543210
GHWP
ARAM
S1_20_
15[0]
GHWPARAMS1_14_12[2:0]GHWPARAMS1_11_9[2:0]GHWPARAMS1_8_6[2:0]GHWPARAMS1_5_3[2:0]GHWPARAMS1_2_0[2:0]
rrrrrrrrrrrrrrrr

Bit 31 GHWPARAMS1_31: USB3DR_EN_DBC

Bit 30 GHWPARAMS1_30: USB3DR_RM_OPT_FEATURES

Bit 29 Reserved, must be kept at reset value.

Bit 28 GHWPARAMS1_28: USB3DR_RAM_BUS_CLKS_SYNC

Bit 27 GHWPARAMS1_27: USB3DR_MAC_RAM_CLKS_SYNC

Bit 26 GHWPARAMS1_26: USB3DR_MAC_PHY_CLKS_SYNC

Bits 25:24 GHWPARAMS1_25_24[1:0]: USB3DR_EN_PWROPT

Bit 23 GHWPARAMS1_23: USB3DR_SPRAM_TYP

Bits 22:21 GHWPARAMS1_22_21[1:0]: USB3DR_NUM_RAMs

Bits 20:15 GHWPARAMS1_20_15[5:0]: USB3DR_DEVICE_NUM_INT

Bits 14:12 GHWPARAMS1_14_12[2:0]: USB3DR_ASPACEWIDTH

Bits 11:9 GHWPARAMS1_11_9[2:0]: USB3DR_REQINFOWIDTH

Bits 8:6 GHWPARAMS1_8_6[2:0]: USB3DR_DATAINFOWIDTH

Bits 5:3 GHWPARAMS1_5_3[2:0]: USB3DR_BURSTWIDTH-1

Bits 2:0 GHWPARAMS1_2_0[2:0]: USB3DR_IDWIDTH-1

USB3DR global hardware parameters register 2
(USB3DR_GBL_GHWPARAMS2)

Address offset: 0xC148

Reset value: 0x1234 5678

31302928272625242322212019181716
GHWPARAMS2_31_0[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
GHWPARAMS2_31_0[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 GHWPARAMS2_31_0[31:0]: USB3DR_USERID

USB3DR global hardware parameters register 3
(USB3DR_GBL_GHWPARAMS3)

Address offset: 0xC14C

Reset value: 0x0C31 8085

31302928272625242322212019181716
Res.GHWPARAMS3_30_23[7:0]GHWPARAMS3_22_18[4:0]GHWPARAMS3_17_12[5:4]
rrrrrrrrrrrrrrr
1514131211109876543210
GHWPARAMS3_17_12[3:0]GHWPARAMS3_11GHWPARAMS3_10Res.Res.GHWPARAMS3_7_6[1:0]GHWPARAMS3_5_4[1:0]GHWPARAMS3_3_2[1:0]GHWPARAMS3_1_0[1:0]
rrrrrrrrrrrrrr

Bit 31 Reserved, must be kept at reset value.

Bits 30:23 GHWPARAMS3_30_23[7:0]: USB3DR_CACHE_TOTAL_XFER_RESOURCES

Bits 22:18 GHWPARAMS3_22_18[4:0]: USB3DR_NUM_IN_EPS

Bits 17:12 GHWPARAMS3_17_12[5:0]: USB3DR_NUM_EPS

Bit 11 GHWPARAMS3_11: USB3DR_ULPI_CARKIT

Bit 10 GHWPARAMS3_10: USB3DR_VENDOR_CTL_INTERFACE

Bits 9:8 Reserved, must be kept at reset value.

Bits 7:6 GHWPARAMS3_7_6[1:0]: USB3DR_HSPHY_DWIDTH

Bits 5:4 GHWPARAMS3_5_4[1:0]: USB3DR_FSPHY_INTERFACE

Bits 3:2 GHWPARAMS3_3_2[1:0]: USB3DR_HSPHY_INTERFACE

Bits 1:0 GHWPARAMS3_1_0[1:0]: USB3DR_SSPHY_INTERFACE

USB3DR global hardware parameters register 4
(USB3DR_GBL_GHWPARAMS4)

Address offset: 0xC150

Reset value: 0x4782 2010

31302928272625242322212019181716
GHWPARAMS4_31_28[3:0]GHWPARAMS4_27_24[3:0]GHWPARAMS4_23Res.GHWPARAMS4_21GHWPARAMS4_20_17[3:0]GHWPARAMS4_16_13[3:0]
rrrrrrrrrrrrrrr
1514131211109876543210
GHWPARAMS4_16_13[2:0]GHWPARAMS4_12GHWPARAMS4_11GHWPARAMS4_10_9[1:0]GHWPARAMS4_8_7[1:0]Res.GHWPARAMS4_5_0[5:0]
rrrrrrrrrrrrrrr

Bits 31:28 GHWPARAMS4_31_28[3:0]: USB3DR_BMU_LSP_DEPTH

Bits 27:24 GHWPARAMS4_27_24[3:0]: USB3DR_BMU_PTL_DEPTH-1

Bit 23 GHWPARAMS4_23: USB3DR_EN_ISOC_SUPT

Bit 22 Reserved, must be kept at reset value.

Bit 21 GHWPARAMS4_21: USB3DR_EXT_BUFF_CONTROL

Bits 20:17 GHWPARAMS4_20_17[3:0]: USB3DR_NUM_SS_USB_INSTANCES

Bits 16:13 GHWPARAMS4_16_13[3:0]: USB3DR_HIBER_SCRATCHBUFS

Number of external scratchpad buffers the core requires to save its internal state in the device mode. Each buffer is assumed to be 4 KBytes. The scratchpad buffer array must have this many buffer pointers.

Bit 12 GHWPARAMS4_12: USB3DR_EN_SSIC

0: if USB3DR_EN_SSIC = 0

1: if USB3DR_EN_SSIC ≠ 0

Note: When the USB3DR_NUM_SSIC_PORTS parameter is set to zero, this bit is Reserved.

Bit 11 GHWPARAMS4_11: USB3DR_SSIC_NON_SNPS_MPHY

This field indicates whether Synopsys M-PHY or a third party M-PHY is used with SSIC ports.

Note: When the USB3DR_NUM_SSIC_PORTS parameter is set to zero, this bit is Reserved.

Bits 10:9 GHWPARAMS4_10_9[1:0]: USB3DR_SSIC_GEAR

This field indicates USB3DR_SSIC_GEAR parameter value chosen by the user.

Note: When the USB3DR_NUM_SSIC_PORTS parameter is set to zero, this field is Reserved.

Bits 8:7 GHWPARAMS4_8_7[1:0]: USB3DR_NUM_SSIC_NUM_LANE

This bit indicates USB3DR_SSIC_NUM_LANE parameter value chosen by the user.

Note: When the USB3DR_NUM_SSIC_PORTS parameter is set to zero, this field is Reserved.

Bit 6 Reserved, must be kept at reset value.

Bits 5:0 GHWPARAMS4_5_0[5:0]: USB3DR_CACHE_TRBS_PER_TRANSFER

USB3DR global hardware parameters register 5
(USB3DR_GBL_GHWPARAMS5)

Address offset: 0xC154

Reset value: 0x0420 4108

31302928272625242322212019181716
ResResResResGHWPARAMS5_27_22[5:0]GHWPARAMS5_21_16[5:0]
rrrrrrrrrrrr
1514131211109876543210
GHWPARAMS5_15_10[5:0]GHWPARAMS5_9_4[5:0]GHWPARAMS5_3_0[3:0]
rrrrrrrrrrrrrrrr

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:22 GHWPARAMS5_27_22[5:0]: USB3DR_DFQ_FIFO_DEPTH

Bits 21:16 GHWPARAMS5_21_16[5:0]: USB3DR_DWQ_FIFO_DEPTH

Bits 15:10 GHWPARAMS5_15_10[5:0]: USB3DR_TXQ_FIFO_DEPTH

Bits 9:4 GHWPARAMS5_9_4[5:0]: USB3DR_RXQ_FIFO_DEPTH

Bits 3:0 GHWPARAMS5_3_0[3:0]: USB3DR_BMU_BUSGM_DEPTH

ST logo
ST logo

USB3DR global hardware parameters register 6
(USB3DR_GBL_GHWPARAMS6)

Address offset: 0xC158

Reset value: 0x07EC C020

31302928272625242322212019181716
GHWPARAMS6_31_16[15:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
BUSFLTRSSUPPORTBCSUPPORTOTG_SS_SUPPORTADPSUPPORTHNPSUPPORTSRPSUPPORTRes.Res.GHWPARAMS6_7GHWPARAMS6_6GHWPARAMS6_5_0[5:0]
rrrrrrrrrrrrrr

Bits 31:16 GHWPARAMS6_31_16[15:0]: USB3DR_RAM0_DEPTH

Bit 15 BUSFLTRSSUPPORT: USB3DR_EN_BUS_FILTERS

Bit 14 BCSUPPORT: USB3DR_EN_BC

Bit 13 OTG_SS_SUPPORT: OTG 3.0 support enabled

This bit indicates whether the parameter USB3DR_EN_OTG is set to 2. In other words, it indicates whether the USB3DR core supports OTG 3.0.

0: No OTG 3.0 support

1: Supports OTG 3.0

Bit 12 ADPSUPPORT: USB3DR_EN_ADP

Bit 11 HNPSUPPORT: RSP/HNP support enabled

The application uses this bit to determine the USB3DR RSP/HNP support.

Condition: USB3DR_EN_OTG = 2

0: RSP and HNP support is not enabled. The only exception for this rule is for SSPC-OTG devices where RSP support is not enabled, but HNP support is enabled (refer to the OCFG.SSPC-OTG bit.)

1: RSP and HNP support is enabled

Condition: USB3DR_EN_OTG = 1

0: HNP support is not enabled;

1: HNP support is enabled;

This bit is enabled only if HNP mode was specified for HNP mode of operation in coreConsultant (parameter USB3DR_EN_OTG is not 0, and USB3DR_MODE is DRD). Otherwise, it reads as 0.

Bit 10 SRPSUPPORT: SRP support enabled

The application uses this bit to determine the USB3DR SRP support.

0: SRP support is not enabled;

1: SRP support is enabled;

This bit is 1 when the parameter USB3DR_EN_OTG is not 0.

Bits 9:8 Reserved, must be kept at reset value.

Bit 7 GHWPARAMS6_7: USB3DR_EN_FPGA

Bit 6 GHWPARAMS6_6: USB3DR_EN_DBG_PORTS

Bits 5:0 GHWPARAMS6_5_0[5:0]: USB3DR_PSQ_FIFO_DEPTH

USB3DR global hardware parameters register 7
(USB3DR_GBL_GHWPARAMS7)

Address offset: 0xC15C

Reset value: 0x0308 10EE

31302928272625242322212019181716
GHWPARAMS7_31_16[15:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
GHWPARAMS7_15_0[15:0]
rrrrrrrrrrrrrrrr

Bits 31:16 GHWPARAMS7_31_16[15:0]: USB3DR_RAM2_DEPTH

Bits 15:0 GHWPARAMS7_15_0[15:0]: USB3DR_RAM1_DEPTH

USB3DR global debug queue/FIFO space available register
(USB3DR_GBL_GDBGFIFOSPACE)

Address offset: 0xC160

Reset value: 0x0042 0000

31302928272625242322212019181716
SPACE_AVAILABLE[15:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.FIFO_QUEUE_SELECT[8:0]
rwrwrwrwrwrwrwrwrw

Bits 31:16 SPACE_AVAILABLE[15:0]: SPACE_AVAILABLE

Bits 15:9 Reserved, must be kept at reset value.

Bits 8:0 FIFO_QUEUE_SELECT[8:0]: FIFO/queue select and port select
FIFO_QUEUE_SELECT[8:5] indicates the FIFO/queue type
FIFO_QUEUE_SELECT[4:0] indicates the FIFO/queue number
For example 0010 0001 refers to RxFIFO_1 and 0101 1110 refers to TxReqQ_30.
0001 1111 to 0000 0000: TxFIFO_31 to TxFIFO_0
0011 1111 to 0010 0000: RxFIFO_31 to RxFIFO_0
0101 1111 to 0100 0000: TxReqQ_31 to TxReqQ_0
0111 1111 to 0110 0000: RxReqQ_31 to RxReqQ_0
1001 1111 to 1000 0000: RxInfoQ_31 to RxInfoQ_0
1010 0000: DescFetchQ_0 (for backwards compatibility)
1010 0001: EventQ_0 (for backwards compatibility)
1010 0010: ProtocolStatusQ_0
1101 1111 to 1110 0000: DescFetchQ_31 to DescFetchQ_0
1111 1111 to 1110 0000: WriteBack/EventQ_31 to WriteBack/EventQ_0
0000 0111 to 0000 0000: AuxEventQ_7 to AuxEventQ_0 (if
EN_SEPARATE_DESC_QUEUES = 1)
FIFO_QUEUE_SELECT[3:0] selects the port-number when accessing GDBGLTSSM register.

USB3DR global debug LTSSM register
(USB3DR_GBL_GDBGLTSSM)

Address offset: 0xC164

Reset value: 0x4101 0440

31302928272625242322212019181716
Res.RXELECIDLEX3_XS_SWAPPINGX3_DS_HOST_SHUTDOWNPRTDIRECTIONLTDBTIMEOUTLTDBLINKSTATE[3:0]LTDBSUBSTATE[3:0]ELASTICBUFFERMODETXELECIDLE
rrrrrrrrrrrrrrr
1514131211109876543210
RXPOLARITYTXDETRXLOOPBACKLTDBPHYCMDSTATE[2:0]POWERDOWN[1:0]RXEQTRAINTXDEEMPHASIS[1:0]LTDBCLKSTATE[2:0]TXSWINGRXTERMINATIONTXONESZEROS
rrrrrrrrrrrrrrrr

Bit 31 Reserved, must be kept at reset value.

Bit 30 RXELECIDLE: RxElecidle
For description of RxElecidle, see [PIPE].

Bits 5:3 LTDBCLKSTATE[2:0]: LTSSM clock state (LTDBClkState)

In multi-port host configuration, the port number is defined by Port-Select[3:0] field in the GDBGFIFOSPACE register.

Note: GDBGLTSSM register is not applicable for USB 2.0-only mode.

000: CLK_NORM (PHY is in non-P3 state and PCLK is running)

001: CLK_TO_P3 (P3 entry request to PHY);

010: CLK_WAIT1 (wait for Phy_Status (P3 request));

011: CLK_P3 (PHY is in P3 and PCLK is not running);

100: CLK_TO_P0 (P3 exit request to PHY);

101: CLK_WAIT2 (wait for Phy_Status (P3 exit request))

Bit 2 TXSWING: TX swing (TxSwing)

For field definition, refer to Table 5-3 of [PIPE].

Bit 1 RXTERMINATION: RX termination (RxTermination)

Bit 0 TXONESZEROS: TX Ones/Zeros (TxOnesZeros)

For field definition, refer to Table 5-3 of [PIPE].

USB3DR global debug LNMCC register
(USB3DR_GBL_GDBGLNMCC)

Address offset: 0xC168

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.LNMCC_BERC[8:0]
rrrrrrrrr

Bits 31:9 Reserved, must be kept at reset value.

Bits 8:0 LNMCC_BERC[8:0]:

This field indicates the bit error rate information for the port selected in the GDBGFIFOSPACE.PortSelect field.

This field is for debug purposes only.

USB3DR global debug BMU register (USB3DR_GBL_GDBGBMU)

Address offset: 0xC16C

Reset value: 0x0000 0000

31302928272625242322212019181716
BMU_BCU[23:8]
rrrrrrrrrrrrrrrr
1514131211109876543210
BMU_BCU[7:0]BMU_DCU[3:0]BMU_CCU[3:0]
rrrrrrrrrrrrrrrr

Bits 31:8 BMU_BCU[23:0]: BMU_BCU debug information

Bits 7:4 BMU_DCU[3:0]: BMU_DCU debug information

Bits 3:0 BMU_CCU[3:0]: BMU_CCU debug information

USB3DR global debug LSP MUX register - host
(USB3DR_GBL_GDBGLSPMUX_HST)

Address offset: 0xC170

Reset value: 0x003F 0000

This register is for internal use only.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.LOGIC_ANALYZER_TRACE[7:0]
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.HOSTSELECT[13:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 Reserved, must be kept at reset value.

Bits 23:16 LOGIC_ANALYZER_TRACE[7:0]: logic_analyzer_trace port MUX select

Currently only bits[21:16] are used. A value of 0x3F drives 0s on the logic_analyzer_trace signal. This feature can be used if, instead of using a mux, this signal is intended to be ORed with other trace signals in the system to generate a common trace signal.

Bits 15:14 Reserved, must be kept at reset value.

Bits 13:0 HOSTSELECT[13:0]: Device LSP select

Selects the LSP debug information presented in the GDBGLSP register in host mode.

USB3DR global debug LSP register (USB3DR_GBL_GDBGLSP)

Address offset: 0xC174

Reset value: 0x0000 0000

This register is for internal debug purposes only.

31302928272625242322212019181716
LSPDEBUG[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
LSPDEBUG[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 LSPDEBUG[31:0]: LSP Debug Information

USB3DR global debug endpoint information register 0
(USB3DR_GBL_GDBGEINFO0)

Address offset: 0xC178

Reset value: 0x0000 0000

This register is for internal use only.

31302928272625242322212019181716
EPDEBUG[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
EPDEBUG[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 EPDEBUG[31:0]: Endpoint debug information, bits[31:0]

USB3DR global debug endpoint information register 1
(USB3DR_GBL_GDBGEINFO1)

Address offset: 0xC17C

Reset value: 0x0080 0000

This register is for internal use only.

31302928272625242322212019181716
EPDEBUG[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
EPDEBUG[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 EPDEBUG[31:0]: Endpoint debug information, bits[63:32]

USB3DR global high-speed port to bus instance mapping register - low
(USB3DR_GBL_GPRTBIMAP_HSLO)

Address offset: 0xC180

Reset value: 0x0000 0000

31302928272625242322212019181716
BINUM8[3:0]BINUM7[3:0]BINUM6[3:0]BINUM5[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
BINUM4[3:0]BINUM3[3:0]BINUM2[3:0]BINUM1[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 BINUM8[3:0]: BINUM8: HS USB instance number for port 8.
Application programmable ID field.

USB3DR global high-speed port to bus instance mapping register - high (USB3DR_GBL_GPRTBIMAP_HSHI)

Address offset: 0xC184

Reset value: 0x0XXX XXXX

31302928272625242322212019181716
Res.Res.Res.Res.BINUM15[3:0]BINUM14[3:0]BINUM13[3:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
BINUM12[3:0]BINUM11[3:0]BINUM10[3:0]BINUM9[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

USB3DR global full-speed port to bus instance mapping register - low
(USB3DR_GBL_GPRTBIMAP_FSLO)

Address offset: 0xC188

Reset value: 0x0000 0000

31302928272625242322212019181716
BINUM8[3:0]BINUM7[3:0]BINUM6[3:0]BINUM5[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
BINUM4[3:0]BINUM3[3:0]BINUM2[3:0]BINUM1[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 BINUM8[3:0]: BINUM8: FS USB instance number for port 8.
Application programmable ID field.

Bits 27:24 BINUM7[3:0]: BINUM7: FS USB instance number for port 7.
Application programmable ID field.

Bits 23:20 BINUM6[3:0]: BINUM6: FS USB instance number for port 6.
Application programmable ID field.

Bits 19:16 BINUM5[3:0]: BINUM5: FS USB instance number for port 5.
Application programmable ID field.

Bits 15:12 BINUM4[3:0]: BINUM4: FS USB instance number for port 4.
Application programmable ID field.

Bits 11:8 BINUM3[3:0]: BINUM3: FS USB instance number for port 3.
Application programmable ID field.

Bits 7:4 BINUM2[3:0]: BINUM2: FS USB instance number for port 2.
Application programmable ID field.

Bits 3:0 BINUM1[3:0]: BINUM1: FS USB instance number for port 1.
Application programmable ID field.

USB3DR global full-speed port to bus instance mapping register - high
(USB3DR_GBL_GPRTBIMAP_FSHI)

Address offset: 0xC18C

Reset value: 0x0XXX XXXX

31302928272625242322212019181716
Res.Res.Res.Res.BINUM15[3:0]BINUM14[3:0]BINUM13[3:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
BINUM12[3:0]BINUM11[3:0]BINUM10[3:0]BINUM9[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:24 BINUM15[3:0]: BINUM15: FS USB instance number for port 15.
Application programmable ID field.

ST logo
ST logo

USB3DR global user control register 2 (USB3DR_GBL_GUCTL2)

Address offset: 0xC19C

Reset value: 0x0000 040D

This register provides a few options for the software to control the core behavior in the Host and Device mode. Most of the options are used to improve interoperability with different hosts and devices.

column_1column_2Bits 23:20 Bits 19:16 Bits 15:12 Bits 11:8 Bits 7:4 Bits 3:0BINUM9[3:0]BINUM14[3:0] BINUM13[3:0] BINUM12[3:0] BINUM11[3:0] BINUM10[3:0]column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15RM0457
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.EN_HP_PM_TIMER[6:0]NOLOWPWRDUR[3:1]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
WPWRRes.RXPINGDURATION[5:0]TXPINGDURATION[4:0]
E N A B L E E P C A C H E E VIC T
R S T A C T BIT LA T E R _
DIS A B L E C F C
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Bits 25:19EN_HP_PM_TIMER[6:0]: This register field is used to set new HP and PM timers.
- To enable HP timer, set GUCTL2[20] bit as 1. Default value is 4 μs.μs, when new HP timer is
Bits 18:15NOLOWPWRDUR[3:0]: No low power duration (NOLOWPWRDUR)

Bits 31:26 Reserved, must be kept at reset value.

Bits 25:19 EN_HP_PM_TIMER[6:0]: This register field is used to set new HP and PM timers.

Use GUCTL2[25:21] to specify HP timer value in microseconds.

Bits 18:15 NOLOWPWRDUR[3:0]: No low power duration (NOLOWPWRDUR)

This bit is applicable for Device mode only and is ignored in Host mode.

After starting a transfer on an ESS ISOC endpoint, the application must program these bits. Each count represents the duration in terms of milliseconds. For example, a value of 3 represents 3 ms.

USB3DR global USB2 PHY configuration register
(USB3DR_GBL_GUSB2PHYCFG)

Address offset: 0xC200

Reset value: 0x4000 2400

The application must program this register before starting any transactions on either the device bus or the USB.

31302928272625242322212019181716
PHYSOFTSTU2_FREECLK_EXISTSULPI_LPM_WITH_OPMODE_CHKHSIC_CON_WIDTH_ADJ[1:0]INV_SEL_HSICRes.LSTRD[2:0]LSIPD[2:0]ULPIEXTVBUSINDIACORULPIEXTVBUSDRVRes.
rwrwrwrrrrwrwrwrwrwrwrwrw
1514131211109876543210
ULPIAUTORESRes.USBTRDTIM[3:0]XCVRDLYENBLSLPMPHYSELSUSPENDUSB20FSINTFULPI_UTMI_SELPHYIFTOUTCAL[2:0]
rwrwrwrwrwrwrwwrwrrrwrwrwrw

Bit 31 PHYSOFTST: UTMI PHY soft reset (PHYSoftRst)

Causes the usb2phy_reset signal to be asserted to reset a UTMI PHY. Not applicable to ULPI because ULPI PHYs are reset via their FunctionControl.Reset register, and the core automatically writes to this register when the core is reset (vcc_reset_n, USBCMD.HCRST, DCTL.SoftReset, or GCTL.SoftReset)

Bit 30 U2_FREECLK_EXISTS: U2_FREECLK_EXISTS

Specifies whether the USB 2.0 PHY provides a free-running PHY clock, which is active when the clock control input is active.

If the USB 2.0 PHY provides a free-running PHY clock, it must be connected to the utmi_clk[0] input. The remaining utmi_clk[n] must be connected to the respective port clocks. The core uses the Port-0 clock for generating the internal mac2 clock.

0: USB 2.0 free clock does not exist

1: USB 2.0 free clock exists

Note: When the core is configured as device-only (USB3DR_MODE = 0), do not set this bit to 1.

Bit 29 ULPI_LPM_WITH_OPMODE_CHK: ULPI_LPM_WITH_OPMODE_CHK

Support the LPM over ULPI without NOPID token to the ULPI PHY.

If this bit is set, the ULPI PHY is expected to qualify the EXT PID with OPMODE = 0b00 for LPM and not treat it as a NOPID. Check the PHY behavior with the vendor. This bit is valid only when the USB3DR_HSPHY_INTERFACE parameter is 2 or 3.

0: A NOPID is sent before sending an EXTPID for LPM

1: An EXTPID is sent without previously sending a NOPID

Note: This bit is valid only in Host mode. This bit should be 0 for Synopsys PHY.

Bits 28:27 HSIC_CON_WIDTH_ADJ[1:0]: HSIC_CON_WIDTH_ADJ

This bit is used in the HSIC device mode of operation. By default, the connect duration for the HSIC device controller is thrice the strobe period. This duration can be changed to 4, 5, or 6 times the strobe period by setting the value of this field to 1, 2, or 3. This value is added to the default connect duration.

Bit 26 INV_SEL_HSIC: INV_SEL_HSIC

The application driver uses this bit to control the HSIC enable/disable function. When set to 1, this bit overrides and functionally inverts the "if_select_hsic" input signal.

If {INV_SEL_HSIC, if_select_hsic} is:

00: HSIC Capability is disabled.

01: HSIC Capability is enabled.

10: HSIC Capability is enabled.

11: HSIC Capability is disabled.

If the controller operates as non-HSIC-capable, it can only connect to non-HSIC-capable PHYs. If it operates as HSIC-capable, it can connect to HSIC-capable PHYs.

This bit is reserved if the USB3DR_ENABLE_HSIC parameter is set to 0. When selecting the HSIC feature, set the host side to HSIC mode first, then set the device mode side. If the device side is set to HSIC mode first and if the host does not see a connection in HSIC mode, the device HSIC mode must be deselected and selected again using the if_select_hsic setting or register bit GUSB2PHYCFGn[26] to ensure that the device can connect to the host.

Bit 25 Reserved, must be kept at reset value.

Bits 24:22 LSTRD[2:0]: LS Turnaround Time (LSTRDTIM)

This field indicates the value of the RX-to-TX packet gap for LS devices. The encoding is as follows:

0: 2 bit times

1: 2.5 bit times

2: 3 bit times

3: 3.5 bit times

4: 4 bit times

5: 4.5 bit times

6: 5 bit times

7: 5.5 bit times

Note: This field is applicable only in Host mode.

For normal operation (to work with most LS devices), set the default value of this field to 0 (2 bit times).

The programmable LS device inter-packet gap and turnaround delays are provided to support some legacy LS devices that might require different delays than the default/fixed ones. For instance, the open LS mouse requires 3 bit times of inter-packet gap to work correctly.

Include the PHY delays when programming the LSIPD/LSTRDTIM values. For example, if the PHY's TxEndDelay in LS mode is 30 UTM/ULPI CLKs, then subtract this delay (~1 LS bit time) from the device's delay requirement.

Bits 21:19 LSIPD[2:0]: LS Inter-Packet Time (LSIPD)

This field indicates the value of TX-to-TX packet gap for LS devices. The encoding is as follows:

Note: This field is applicable only in Host mode.

For normal operation (to work with most LS devices), set the default value of this field to 2 (3 bit times).

The programmable LS device inter-packet gap and turnaround delays are provided to support some legacy LS devices that might require different delays than the default/fixed ones. For instance, the AOpen LS mouse requires 3 bit times of inter-packet gap to work correctly.

Include the PHY delays when programming the LSIPD/LSTRDTIM values. For example, if the PHY's TxEndDelay in LS mode is 30 UTMI/ULPI CLKs, then subtract this delay (~1 LS bit time) from the device's delay requirement.

Bit 18 ULPIEXTVBUSINDIACTOR: ULPI external VBUS indicator (ULPIExtVbusIndicator)

Indicates the ULPI PHY VBUS over-current indicator.

Valid only when RTL parameter USB3DR_HSPHY_INTERFACE = 2 or 3

Bit 17 ULPIEXTVBUSDRV: ULPI external VBUS drive (ULPIExtVbusDrv)

Selects supply source to drive 5 V on VBUS, in the ULPI PHY.

(Only when RTL parameter USB3DR_HSPHY_INTERFACE = 2 or 3)

Bit 16 Reserved, must be kept at reset value.

Bit 15 ULPIAUTORES: ULPI auto resume (ULPIAutoRes)

Sets the AutoResume bit in interface control register on the ULPI PHY.

Valid only when RTL parameter USB3DR_HSPHY_INTERFACE = 2 or 3

Bit 14 Reserved, must be kept at reset value.

Bits 13:10 USBTDTDIM[3:0]: USB 2.0 turnaround time (USBTrdTim)

Sets the turnaround time in PHY clocks.

Specifies the response time for a MAC request to the packet FIFO controller (PFC) to fetch data from the DFIFO (SPRAM).

The following are the required values for the minimum device bus frequency of 60 MHz. USB turnaround time is a critical certification criteria when using long cables and five hub levels.

The required values for this field:

0x5: When the MAC interface is 16-bit UTMI+.

0x9: When the MAC interface is 8-bit UTMI+/ULPI.

If device bus clock is less than 60 MHz, and USB turnaround time is not critical, this field can be set to a larger value.

Note: This field is valid only in device mode.

Bit 9 XCVRDLY: Transceiver Delay:

Enables a delay between the assertion of the UTMI/ULPI transceiver select signal (for HS) and the assertion of the TxValid signal during a HS Chirp.

When this bit is set to 1, a delay (of approximately 2.5 µs) is introduced from the time when the transceiver select is set to 0b00 (HS) to the time the TxValid is driven to 0 for sending the chirp-K. This delay is required for some UTMI/ULPI PHYs.

Note: If the hibernation feature is enabled when the device core comes out of power-off, this bit must be re-initialized with the appropriate value because the core does not save and restore this bit value during hibernation.

This bit is valid only in device mode.

Bit 8 ENBLSLPM: Enable utmi_sleep_n and utmi_l1_suspend_n (EnblSlpM)

The application uses this bit to control utmi_sleep_n and utmi_l1_suspend_n assertion to the PHY in the L1 state.

0: utmi_sleep_n and utmi_l1_suspend_n assertion from the core is not transferred to the external PHY.

1: utmi_sleep_n and utmi_l1_suspend_n assertion from the core is transferred to the external PHY.

Note: This bit must be set high for Port0 if Synopsys PHY is used.

Note: In Device mode, before issuing any device endpoint command when operating in 2.0 speeds, disable this bit and enable it after the command completes. Without disabling this bit, if a command is issued when the device is in L1 state and if mac2_clk (utmi_clk/ulpi_clk) is gated off, the command is not completed.

Bit 7 PHYSEL: USB 2.0 high-speed PHY or USB 1.1 full-speed serial transceiver select

The application uses this bit to select a high-speed PHY or a full-speed transceiver.

0: USB 2.0 high-speed UTMI+ or ULPI PHY. This bit is always 0, with write only access.

1: USB 1.1 full-speed serial transceiver. This bit is always 1, with write only access.

If both interface types are selected in coreConsultant (that is, parameters values are not zero), the application uses this bit to select the active interface, with read-write bit access.

Note: USB 1.1 full-serial transceiver is not supported. This bit always reads as 0.

Bit 6 SUSPENDUSB20: Suspend USB2.0 HS/FS/LS PHY (SusPHY)

When set, USB2.0 PHY enters Suspend mode if suspend conditions are valid.

For DRD/OTG configurations, it is recommended that this bit is set to 0 during coreConsultant configuration. If it is set to 1, then the application must clear this bit after power-on reset. Application needs to set it to 1 after the core initialization completes.

For all other configurations, this bit can be set to 1 during core configuration.

Note: In Host mode, on reset, this bit is set to 1. Software can override this bit after reset.

In device mode, before issuing any device endpoint command when operating in 2.0 speeds, disable this bit and enable it after the command completes. If a command is issued without disabling this bit when the device is in L2 state and if mac2_clk (utmi_clk/ulpi_clk) is gated off, the command is not completed.

Bit 5 FSINTF: Full-Speed serial interface select (FSIntf)

The application uses this bit to select a unidirectional or bidirectional USB 1.1 full-speed serial transceiver interface.

0: 6-pin unidirectional full-speed serial interface. This bit is set to 0 with read only access.

1: 3-pin bidirectional full-speed serial interface. This bit is set to 0 with read only access.

Note: USB 1.1 full-speed serial interface is not supported. This bit always reads as 0.

Bit 4 ULPI_UTMI_SEL: ULPI or UTMI+ select (ULPI_UTMI_Sel)

The application uses this bit to select a UTMI+ or ULPI interface.

0: UTMI+ interface

1: ULPI interface

This bit is writable only if UTMI+ and ULPI is specified for high-speed PHY interface(s) in coreConsultant configuration (USB3DR_HSPHY_INTERFACE = 3).

Otherwise, this bit is read-only and the value depends on the interface selected through USB3DR_HSPHY_INTERFACE.

Bit 3 PHYIF: PHY interface (PHYIf)

If UTMI+ is selected, the application uses this bit to configure the core to support a UTMI+ PHY with an 8- or 16-bit interface.

0: 8 bits

1: 16 bits

ULPI mode: 0

Note: All the enabled 2.0 ports must have the same clock frequency as Port0 clock frequency (utmi_clk[0]).

The UTMI 8-bit and 16-bit modes cannot be used together for different ports at the same time (that is, all the ports must be in 8-bit mode, or all of them must be in 16-bit mode, at a time).

If any of the USB 2.0 ports is selected as ULPI port for operation, then all the USB 2.0 ports must be operating at 60 MHz.

Bits 2:0 TOUTCAL[2:0]: HS/FS timeout calibration (TOutCal)

The number of PHY clocks, as indicated by the application in this field, is multiplied by a bit-time factor; this factor is added to the high-speed/full-speed interpacket timeout duration in the core to account for additional delays introduced by the PHY. This may be required, since the delay introduced by the PHY in generating the linestate condition may vary among PHYs. The USB standard timeout value for high-speed operation is 736 to 816 (inclusive) bit times. The USB standard timeout value for full-speed operation is 16 to 18 (inclusive) bit times. The application must program this field based on the speed of connection. The number of bit times added per PHY clock are:

High-speed operation:

Full-speed operation:

USB3DR global USB 2.0 UTMI PHY vendor control register
(USB3DR_GBL_GUSB2PHYACC_UTMI)

Address offset: 0xC280

Reset value: 0x0000 0000

The application uses this register to access PHY registers.

In UTMI mode of operation, the functionality of this register can be used only if UTMI vendor control interface is enabled.

For an UTMI+ PHY, the controller uses the UTMI+ vendor control interface for PHY register access. There is no read/write differentiation for UTMI+. It is just a vendor control access.

The application sets the vendor control register for PHY register access and times the PHY register access. The application polls the VStatus done bit in this register for the completion of the PHY register access.

In Device-only configurations, only one register is needed. In Host mode, per-port registers are implemented

31302928272625242322212019181716
Res.Res.Res.Res.Res.DISUIPIDRVRNEWREGREQVSTSDONEVSTSBSYREGWRREGADDR[5:0]
rrrrrrrrrrr
1514131211109876543210
EXTREGADDR[7:0]REGDATA[7:0]
rrrrrrrrrrrrrrrr

Bits 31:27 Reserved, must be kept at reset value.

Bit 26 DISUIPIDRVR: DISUIPIDRVR

Bit 25 NEWREGREQ: New register request
The application sets this bit for a new vendor control access.
Setting this bit to 1 asserts the utmi_vcontrolload_n (0b0) on the UTMI interface.

Bit 24 VSTSDONE: VSTSDONE

Bit 23 VSTSBSY: VSTSBSY

Bit 22 REGWR: Register write
The application sets this bit for register writes and clears it for register reads.
Note: This bit is applicable for ULPI register read/write access only.

Bits 21:16 REGADDR[5:0]: Register address
The 6-bit PHY register address for immediate PHY register set access.
Set to 0x2F for extended PHY register set access.
Note: These bits are applicable for ULPI only.

Bits 15:8 EXTREGADDR[7:0]: EXTREGADDR

Bits 7:0 REGDATA[7:0]: REGDATA

USB3DR global USB 3.0 PIPE control register
(USB3DR_GBL_GUSB3PIPECTL)

Address offset: 0xC2C0

Reset value: 0x000C 8002

The application uses this register to configure the USB3 PHY and PIPE interface.

31302928272625242322212019181716
PHYSOFTRSTHSTPRTCMPLU2P3OKDISRXDETP3UX_EXIT_IN_PXPING_ENHANCEMENT_ENU1U2EXITFAIL_TO_RECOVREQUEST_P1P2P3STARTRXDETU3RXDETDISRXDETU3RXDETDELAYP1P2P3[2:0]DELAYP1TRANSSUSPENDABLEDATWIDTH[1]
rwrwrwrwrwrwrwrwwrwrwrwrwrwrwr
1514131211109876543210
DATWIDTH[0]ABORTRXDETINU2SKIPRXDETLFPSP0ALGNP3P2TRANOKP3EXSIGP2LFPSFILTERRX_DETECT_TO_POLLING_LFPS_CONTROLSSICENTX_SWINGTX_MARGIN[2:0]SS_TX_DE_EMPHASIS[1:0]ELASTIC_BUFFER_MODE
rrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
  1. Bit 31 PHYSOFTRST: USB3 PHY soft reset
    After setting this bit to 1, the software needs to clear this bit.
  2. Bit 30 HSTPRTCMPL: HstPrtCmpl
    This feature tests the PIPE PHY compliance patterns without having to have a test fixture on the USB 3.0 cable.
    This bit enables placing the SS port link into a compliance state. By default, this bit must be set to 0.
    In compliance lab testing, the SS port link enters compliance after failing the first polling sequence after power on. Set this bit to 0, when compliance tests are executed.
    The sequence for using this functionality is as follows:
  3. 1. Disconnect any plugged in devices.
  4. 2. Perform USBCMD.HCRST or power-on-chip reset.
  5. 3. Set PORTSC.PLS = 0xA.
  6. 4. Set PORTSC.PP = 0.
  7. 5. Set GUSB3PIPECTL. HstPrtCmpl = 1. This places the link into compliance state.
  8. To advance the compliance pattern, follow this sequence (toggle the set GUSB3PIPECTL. HstPrtCmpl):
  9. 1. Set GUSB3PIPECTL.HstPrtCmpl = 0.
  10. 2. Set GUSB3PIPECTL.HstPrtCmpl = 1. This advances the link to the next compliance pattern.
  11. To exit from the compliance state perform USBCMD.HCRST or power-on-chip reset.
  12. Bit 29 U2P3OK: P3 OK for U2 (u2P3ok)
    0: During link state U2/SS.Inactive, put PHY in P2 (default)
    1: During link state U2/SS.Inactive, put PHY in P3.
    Note: For a port, if GUSB3PIPECTL[7] = 1 and GUSB3PIPECTL[29] = 1, set GUSB3PIPECTL[11] to 1.
  13. Bit 28 DISRXDETP3: Disabled receiver detection in P3 (DisRxDetP3)
    0: If PHY is in P3 and the core needs to perform receiver detection, the core performs receiver detection in P3 (default).
    1: If PHY is in P3 and the core needs to perform receiver detection, the core changes the PHY power state to P2 and then performs receiver detection. After receiver detection, the cores changes PHY power state to P3.
  14. Bit 27 UX_EXIT_IN_PX: Ux exit in Px (Ux_exit_in_Px)
    0: The core does U1/U2/U3 exit in PHY power state P0 (default behavior).
    1: The core does U1/U2/U3 exit in PHY power state P1/P2/P3 respectively.
    Note: This bit is used by third party SS PHY. It must be set to 0 for Synopsys PHY.
  15. Bit 26 PING_ENHANCEMENT_EN: Ping enhancement enable (ping_enhancement_en)
    When set, the downstream port U1 ping receive timeout becomes 500 ms instead of 300 ms. Minimum Ping.LFPS receive duration is 8 ns (one mac3_clk). This field is valid for the downstream port only.
    Note: This bit is used by third party SS PHY. It must be set to 0 for Synopsys PHY.
  16. Bit 25 U1U2EXITFAIL_TO_RECOV: U1U2exitfail to recovery (u1u2exitfail_to_recov)
    When set, and U1/U2 LFPS handshake fails, the LTSSM transitions from U1/U2 to recovery instead of SS inactive. If recovery fails, then the LTSSM can enter SS.Inactive. This is an enhancement only. It prevents interoperability issue if the remote link does not do proper handshake.

Bit 14 ABORTRXDETINU2: Abort RX detect in U2 (AbortRxDetInU2)

When set, and the link state is U2, then the core aborts the receiver detection if it receives U2 exit LFPS from the remote link partner. This bit is for the downstream port only.

Note: This bit is used by third party SS PHY. It must be set to 0 for Synopsys PHY.

Bit 13 SKIPRXDET: Skip RX detect:

When set, the core skips RX detection if pipe3_RxElecIdle is low.

Skip is defined as waiting for the appropriate timeout, then repeating the operation.

Bit 12 LFPSP0ALGN: LFPS P0 Align:

When set,

Currently, this bit is only used in USB 3.0 HUB with Synopsys PHY. For other USB 3.0 Host, Device, and DRD cores, this bit is not required.

Bit 11 P3P2TRANOK: P3 P2 transitions OK (P3P2TranOK)

When set, the core transitions directly from Phy power state P2 to P3 or from state P3 to P2.

When not set, P0 is always entered as an intermediate state during transitions between P2 and P3, as defined in [PIPE].

According to [PIPE], any direct transition between P3 and P2 is illegal.

Note: This bit is used by third party SS PHY. It must be set to 0 for Synopsys PHY.

Bit 10 P3EXSIGP2: P3 exit signal in P2 (P3ExSigP2)

When this bit is set, the core always changes the PHY power state to P2, before attempting a U3 exit handshake. This bit is used only for some non-Synopsys PHYs that cannot do LFPS in P3.

Note: This bit is used by third party SS PHY. It must be set to 0 for Synopsys PHY.

Bit 9 LFPSFILTER: LFPS filter (LFPSFilt)

When set, filters LFPS reception with pipe3_RxValid in PHY power state P0, that is, ignores LFPS reception from the PHY unless both pipe3_Rxelecidle and pipe3_RxValid are deasserted.

Bit 8 RX_DETECT_TO_POLLING_LFPS_CONTROL: RX_DETECT to Polling.LFPS control

0: (Default) Enables a 400 µs delay to start polling LFPS after RX_DETECT. This allows VCM offset to settle to a proper level.

1: Disables the 400 µs delay to start polling LFPS after RX_DETECT.

During controller certification with third party PHY it is observed that the PHY is not able to meet the TX AC common mode voltage active (VTX-CM-ACPP_ACTIVE < 100 mV) if the link starts polling within 80 µs from the time rx.detect is performed.

To meet this VTX-CM-ACPP_ACTIVE specification, the polling must be delayed further. If the PHY does not have issue, then one can set this bit to 1 which allows polling to start within 80 µs.

Bit 7 SSICEN: USB3 SSIC enable (SSICEn)

This bit is valid only when coreConsultant parameter USB3DR_EN_SSIC = 1 else this bit needs to be set to 0.

0: Pipe interface is active. The RMMI interface on the corresponding port is reset by the core.

1: RMMI interface on the corresponding port connected to M-PHY is active, and pipe interface is inactive. This bit needs to be set before accessing the corresponding GUSB3RMMICTLn register.

Note: When the USB3DR_NUM_SSIC_PORTS parameter is set to zero, the access type of this register bit is R_W, but the register bit is not functional.

Bit 6 TX_SWING: TX swing (TxSwing)

Refer to [PIPE].

Bits 5:3 TX_MARGIN[2:0]: TX Margin[2:0] (TxMargin)

Refer to Table 5-3 of [PIPE]

Bits 2:1 SS_TX_DE_EMPHASIS[1:0]: TX deemphasis (TxDeemphasis)

The value driven to the PHY is controlled by the LTSSM during USB3 Compliance mode.

(Refer to Table 5-3 of [PIPE].)

Bit 0 ELASTIC_BUFFER_MODE: Elastic buffer mode (ElasticBufferMode)

(Refer to Table 5-3 of [PIPE].)

USB3DR global transmit FIFO size register 0 (USB3DR_GBL_GTXFIFOSIZ0)

Address offset: 0xC300

Reset value: 0x0000 0042

The registers GTXFIFOSIZn specify the RAM start address and depth (both in MDWIDTH-bit words) for each implemented TxFIFO. The number of TxFIFOs depends on the configuration parameters including the number of Device IN endpoints, number of Host bus instances, and presence of debug capability.

The register default values for each mode are assigned in coreConsultant based on the maximum packet size, number of packets to be buffered, speed of host bus instance, bus latency, and mode of operation (host, device, or, DBC). Upon reset and mode transitions, hardware automatically programs these registers to the default values. Consequently, there is typically no need for the software to modify the predefined default values.

For the debug capability mode, the currently mapped EP0 IN and EP1 IN TxFIFO numbers can be read from the GFIFOPRIDBC register.

For OTG mode of operation, when the core is transitioning to host mode, program GTXFIFOSIZ register to the correct value only after OCTL.PeriMode is programmed to 0.

31302928272625242322212019181716
TXFSTADDR_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TXFDEP_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 TXFSTADDR_N[15:0]: Transmit FIFO n RAM start address

This field contains the memory start address for TxFIFO n in MDWIDTH-bit words.

ST logo
ST logo

Bits 15:0 TXFDEP_N[15:0]: TxFIFO depth

This field contains the depth of TxFIFOn in MDWIDTH-bit words.

– Minimum value: 32

– Maximum value: 32,768

USB3DR global transmit FIFO size register 1 GTXFIFOSIZ1
(USB3DR_GBL_GTXFIFOSIZ1)

Address offset: 0xC304

Reset value: 0x0042 0184

31302928272625242322212019181716
TXFSTADDR_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TXFDEP_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 TXFSTADDR_N[15:0]: Transmit FIFOn RAM start address

This field contains the memory start address for TxFIFOn in MDWIDTH-bit words.

Bits 15:0 TXFDEP_N[15:0]: TXFDEP_N

USB3DR global transmit FIFO size register 2
(USB3DR_GBL_GTXFIFOSIZ2)

Address offset: 0xC308

Reset value: 0x01C6 0184

This field contains the memory start address for TxFIFOn in MDWIDTH-bit words.

31302928272625242322212019181716
TXFSTADDR_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TXFDEP_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 TXFSTADDR_N[15:0]: Transmit FIFOn RAM start address

This field contains the memory start address for TxFIFOn in MDWIDTH-bit words.

Bits 15:0 TXFDEP_N[15:0]: TxFIFO depth

This field contains the depth of TxFIFOn in MDWIDTH-bit words.

– Minimum value: 32

– Maximum value: 32,768

USB3DR global transmit FIFO size register 3
(USB3DR_GBL_GTXFIFOSIZ3)

Address offset: 0xC30C

Reset value: 0x034A 0184

31302928272625242322212019181716
TXFSTADDR_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TXFDEP_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Bits 31:16 TXFSTADDR_N[15:0] : transmit FIFO RAM start address

This field contains the memory start address for Tx FIFO in MDWIDTH-bit words.

Bits 15:0 TXFDEP_N[15:0] : Tx FIFO depth (TxFDep_n)

This field contains the depth of Tx FIFO in MDWIDTH-bit words.

– Minimum value: 32

– Maximum value: 32,768

USB3DR global transmit FIFO size register 4
(USB3DR_GBL_GTXFIFOSIZ4)

Address offset: 0xC310

Reset value: 0x04CE 0184

31302928272625242322212019181716
TXFSTADDR_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TXFDEP_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Bits 31:16 TXFSTADDR_N[15:0] : TXFSTADDR_NBits 15:0 TXFDEP_N[15:0] : TXFDEP_N: Tx FIFO depth (TxFDep_n)

This field contains the depth of Tx FIFO in MDWIDTH-bit words.

– Minimum value: 32

– Maximum value: 32,768

USB3DR global transmit FIFO size register 5
(USB3DR_GBL_GTXFIFOSIZ5)

Address offset: 0xC314

Reset value: 0x0652 0184

31302928272625242322212019181716
TXFSTADDR_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TXFDEP_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 TXFSTADDR_N[15:0]: Transmit FIFON RAM start address

Bits 15:0 TXFDEP_N[15:0]: Tx FIFO depth

This field contains the depth of Tx FIFON in MDWIDTH-bit words.

– Minimum value: 32

– Maximum value: 32,768

USB3DR global transmit FIFO size register 6
(USB3DR_GBL_GTXFIFOSIZ6)

Address offset: 0xC318

Reset value: 0x07D6 0184

31302928272625242322212019181716
TXFSTADDR_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TXFDEP_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 TXFSTADDR_N[15:0]: Transmit FIFON RAM start address

This field contains the memory start address for Tx FIFON in MDWIDTH-bit words.

Bits 15:0 TXFDEP_N[15:0]: Tx FIFO depth

This field contains the depth of Tx FIFON in MDWIDTH-bit words.

– Minimum value: 32

– Maximum value: 32,768

USB3DR global transmit FIFO size register 7
(USB3DR_GBL_GTXFIFOSIZ7)

Address offset: 0xC31C

Reset value: 0x095A 0184

31302928272625242322212019181716
TXFSTADDR_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TXFDEP_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 TXFSTADDR_N[15:0]: Transmit FIFON RAM start address

This field contains the memory start address for Tx FIFON in MDWIDTH-bit words.

Bits 15:0 TXFDEP_N[15:0]: Tx FIFO depth

This field contains the depth of Tx FIFON in MDWIDTH-bit words.

– Minimum value: 32

– Maximum value: 32,768

USB3DR global transmit FIFO size register 8
(USB3DR_GBL_GTXFIFOSIZ8)

Address offset: 0xC320

Reset value: 0x0ADE 0184

31302928272625242322212019181716
TXFSTADDR_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TXFDEP_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 TXFSTADDR_N[15:0]: Transmit FIFO RAM start address

This field contains the memory start address for Tx FIFO in MDWIDTH-bit words.

Bits 15:0 TXFDEP_N[15:0]: Tx FIFO depth

This field contains the depth of Tx FIFO in MDWIDTH-bit words.

– Minimum value: 32

– Maximum value: 32,768

USB3DR global transmit FIFO size register 9
(USB3DR_GBL_GTXFIFOSIZ9)

Address offset: 0xC324

Reset value: 0x0C62 0184

Register GTXFIFOSIZ 9

31302928272625242322212019181716
TXFSTADDR_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TXFDEP_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 TXFSTADDR_N[15:0]: Transmit FIFO RAM start address

This field contains the memory start address for Tx FIFO in MDWIDTH-bit words.

Bits 15:0 TXFDEP_N[15:0]: Tx FIFO depth

This field contains the depth of Tx FIFO in MDWIDTH-bit words.

– Minimum value: 32

– Maximum value: 32,768

USB3DR global transmit FIFO size register 10
(USB3DR_GBL_GTXFIFOSIZ10)

Address offset: 0xC328

Reset value: 0x0DE6 0184

31302928272625242322212019181716
TXFSTADDR_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TXFDEP_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 TXFSTADDR_N[15:0]: Transmit FIFO RAM Start address

This field contains the memory start address for TxFIFO in MDWIDTH-bit words.

Bits 15:0 TXFDEP_N[15:0]: Tx FIFO depth (TxFDep_n)

This field contains the depth of TxFIFO in MDWIDTH-bit words.

– Minimum value: 32

– Maximum value: 32,768

USB3DR global transmit FIFO size register 11
(USB3DR_GBL_GTXFIFOSIZ11)

Address offset: 0xC32C

Reset value: 0x0F6A 0184

31302928272625242322212019181716
TXFSTADDR_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TXFDEP_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 TXFSTADDR_N[15:0]: Transmit FIFO RAM start address

This field contains the memory start address for TxFIFO in MDWIDTH-bit words.

Bits 15:0 TXFDEP_N[15:0]: Tx FIFO depth

This field contains the depth of TxFIFO in MDWIDTH-bit words.

– Minimum value: 32

– Maximum value: 32,768

USB3DR global receive FIFO size register 0
(USB3DR_GBL_GRXFIFOSIZ0)

Address offset: 0xC380

Reset value: 0x0000 0185

The registers GRXFIFOSIZn specify the RAM start address and depth (both in MDWIDTH-bit words) for each implemented Rx FIFO. The number of Rx FIFOs depends on the configuration parameters including the number of Host bus instances and presence of debug capability. Device mode requires only one Rx FIFO.

The register default values for each mode are assigned in coreConsultant based on the maximum packet size, number of packets to be buffered, speed of the host bus instance, bus latency, and mode of operation (Host, Device, or DBC). Upon reset and mode transitions, the hardware automatically programs these registers to the default values.

Consequently, there is typically no need for the software to modify the predefined default values.

For the debug capability mode, the currently mapped RxFIFO number can be read from the GFIFOPRIDBC register.

31302928272625242322212019181716
RXFSTADDR_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
RXFDEP_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 RXFSTADDR_N[15:0]: RxFIFOn RAM start address (RxFStAddr_n)
This field contains the memory start address for RxFIFOn in MDWIDTH-bit words.

Bits 15:0 RXFDEP_N[15:0]: RxFIFO depth (RxFDep_n)
This field contains the depth of RxFIFOn in MDWIDTH-bit words.
– Minimum value: 32
– Maximum value: 16,384

USB3DR global receive FIFO size register x
(USB3DR_GBL_GRXFIFOSIZx)

Address offset: 0xC384 + 0x4 * (x-1), (x = 1 to 2)

Reset value: 0x0185 0000

Register

31302928272625242322212019181716
RXFSTADDR_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
RXFDEP_N[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 RXFSTADDR_N[15:0]: RXFSTADDR_N

Bits 15:0 RXFDEP_N[15:0]: RxFIFO depth
This field contains the depth of RxFIFOn in MDWIDTH-bit words.
– Minimum value: 32
– Maximum value: 16,384

USB3DR global event buffer address low register
(USB3DR_GBL_GEVNTADRLO)

Address offset: 0xC400

Reset value: 0x0000 0000

31302928272625242322212019181716
EVNTADRLO[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
EVNTADRLO[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 EVNTADRLO[31:0]: Event buffer address (EvntAdrLo)

Holds the lower 32 bits of start address of the external memory for the event buffer. During operation, hardware does not update this address.

USB3DR global event buffer address high register
(USB3DR_GBL_GEVNTADRHI)

Address offset: 0xC404

Reset value: 0x0000 0000

31302928272625242322212019181716
EVNTADRHI[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
EVNTADRHI[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 EVNTADRHI[31:0]: Event buffer address (EvntAdrHi)

Holds the higher 32 bits of start address of the external memory for the event buffer. During operation, hardware does not update this address.

USB3DR global event buffer size register
(USB3DR_GBL_GEVNTSIZ)

Address offset: 0xC408

Reset value: 0bX000 0000 0000 0000 XXXX XXXX XXXX XXXX

This register holds the event buffer size and the event interrupt mask bit. During power-on initialization, software must initialize the size with the number of bytes allocated for the event buffer. The event interrupt mask masks the interrupt, but events are still queued. After configuration, the software must preserve the event buffer size value when changing the event interrupt mask.

31302928272625242322212019181716
EVNTINTRPTMASKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
EVENTSIZ[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 EVNTINTRPTMASK: Event interrupt mask (EvtlntMask).

When set to 1, this prevents the interrupt from being generated. However, even when the mask is set, the events are queued.

Bits 30:16 Reserved, must be kept at reset value.

Bits 15:0 EVENTSIZ[15:0]: Event buffer size in bytes (EVNTSiz)

Holds the size of the event buffer in bytes; must be a multiple of four. This is programmed by software once during initialization.

The minimum size of the event buffer is 32 bytes.

USB3DR global event buffer count register
(USB3DR_GBL_GEVNTCOUNT)

Address offset: 0xC40C

Reset value: 0x0000 0000

This register holds the number of valid bytes in the event buffer. During initialization, the software must initialize the count by writing 0 to the event count field. Each time the hardware writes a new event to the event buffer, it increments this count. Most events are four bytes, but some events may span over multiple four byte entries. Whenever the count is greater than zero and if enabled, conditions for interrupt moderation are satisfied, the hardware raises the corresponding interrupt line (depending on the EvtlntMask bit in the GEVNTSIZn register). On an interrupt, the software processes one or more events out of the event buffer. Afterwards, the software must write the event count field with the number of bytes it processed. If interrupt moderation is enabled, then the software needs to clear EVNT_HANDLER_BUSY bit.

Clock crossing delays may result in the continuous assertion of the interrupt after the software acknowledges the last event. Therefore, when the interrupt line is asserted, the software must read the GEVNTCOUNT register and only process events if the GEVNTCOUNT is greater than 0.

31302928272625242322212019181716
EVNT_HANDLER_BUSYRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
EVNTCOUNT[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 EVNT_HANDLER_BUSY: Event handler busy

Device software event handler busy indication. The controller sets this bit when the interrupt line is asserted due to pending events. Software clears this bit (with 1) when it has finished processing the events (along with updating the EVNTCOUNT in this register). The controller does not raise the interrupt line for a new event unless this bit is cleared.

Note: When interrupt moderation is disabled (that is, DEVICE_IMODI = 0), this bit is ignored.

Bits 30:16 Reserved, must be kept at reset value.

Bits 15:0 EVNTCOUNT[15:0]: Event count (EVNTCount)

When read, returns the number of valid events in the event buffer (in bytes).

When written, hardware decrements the count by the written value.

When interrupt moderation is enabled (that is, DEVICE_IMODI ≠ 0), the interrupt line gets de-asserted when the first write happens on this register to decrement the count. When interrupt moderation is disabled (that is, DEVICE_IMODI = 0), the interrupt line continues to get asserted until the event count becomes zero (no-moderation behavior).

USB3DR global hardware parameters register 8 (USB3DR_GBL_GHWPARAMS8)

Address offset: 0xC600

Reset value: 0x0000 07EC

31302928272625242322212019181716
GHWPARAMS8_32_0[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
GHWPARAMS8_32_0[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 GHWPARAMS8_32_0[31:0]: USB3DR_DCACHE_DEPTH_INFO

USB3DR global user control register 3 (DWC_USB3_GBL_GUCTL3)

Address offset: 0xC60C

Reset value: 0bXXXX XXX0 0000 000X XXXX XXXX 0000 0000

ST logo
ST logo

This register provides a few options for the software to manage the controller behavior in Host mode. Most of the options are used to improve Host interoperability with different devices.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SCH_PING_EARLY
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

Bits 31:17 Reserved, must be kept at reset value.

Bit 16 SCH_PING_EARLY:

Enable SuperSpeed ping transaction packet scheduling early in the micro-frame.
This bit is valid in Host mode only.

Bits 15:0 Reserved, must be kept at reset value.

USB3DR global device TX FIFO DMA priority register
(USB3DR_GBL_GTXFIFOPRIDEV)

Address offset: 0xC610

Reset value: 0x0000 0000

This register specifies the relative DMA priority level among the Device TXFIFOs (one per IN endpoint). Each register bit[n] controls the priority (1: high, 0: low) of each TXFIFO[n]. When multiple TXFIFOs compete for DMA service at a given time (that is, multiple TXQs contain TX DMA requests and their corresponding TXFIFOs have space available), the TX DMA arbiter grants access on a packet-basis in the following manner:

  1. 1. High-priority TXFIFOs are granted access using round-robin arbitration
  2. 2. Low-priority TXFIFOs are granted access using round-robin arbitration only after the high-priority TXFIFOs have no further processing to do (that is, either the TXQs are empty or the corresponding TXFIFOs are full).

For scatter-gather packets, the arbiter grants successive DMA requests to the same FIFO until the entire packet is completed.

When configuring periodic IN endpoints, software must set register bit[n] = 1, where n is the TXFIFO assignment. This ensures that the DMA for isochronous or interrupt IN endpoints are prioritized over bulk or control IN endpoints.

Note: Since the device mode uses only one RXFIFO, there is no Device RXFIFO DMA priority register.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.GTXFIFOPRIDEV[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:12 Reserved, must be kept at reset value.

Bits 11:0 GTXFIFOPRIDEV[11:0]: Device Tx FIFO priority

USB3DR global host TX FIFO DMA priority register
(USB3DR_GBL_GTXFIFOPRIHST)

Address offset: 0xC618

Reset value: 0x0000 0000

This register specifies the relative DMA priority level among the Host TXFIFOs (one per USB bus instance) within the associated speed group (SS or HS/FSLS). Each register bit[n] controls the priority (1: high, 0: low) of TXFIFO[n] within a speed group. When multiple TXFIFOs compete for DMA service at a given time (that is, multiple TXQs contain TX DMA requests and their corresponding TXFIFOs have space available), the TX DMA arbiter grants access on a packet-basis in the following manner:

  1. 1. Among the FIFOs in the same speed group (SS or HS/FSLS):
    1. a) High-priority TXFIFOs are granted access using round-robin arbitration
    2. b) Low-priority TXFIFOs are granted access using round-robin arbitration only after the high-priority TXFIFOs have no further processing to do (that is, either the TXQs are empty or the corresponding TXFIFOs are full).
  2. 2. The TX DMA arbiter prioritizes the SS speed group or HS/FSLS speed group according to the ratio programmed in the GDMALRATIO register.

For scatter-gather packets, the arbiter grants successive DMA requests to the same FIFO until the entire packet is completed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GTXFIFOPRIHST[2:0]
rwrwrw

Bits 31:3 Reserved, must be kept at reset value.

Bits 2:0 GTXFIFOPRIHST[2:0]: Host Tx FIFO priority

USB3DR global host RX FIFO DMA priority register
(USB3DR_GBL_GRXFIFOPRIHST)

Address offset: 0xC61C

Reset value: 0x0000 0000

This register specifies the relative DMA priority level among the Host RXFIFOs (one per USB bus instance) within the associated speed group (SS or HS/FSLS). Each register bit[n] controls the priority (1: high, 0: low) of RXFIFO[n] within a speed group. When multiple RXFIFOs compete for DMA service at a given time (that is, multiple RXQs contain RX DMA requests and their corresponding RXFIFOs have data available), the RX DMA arbiter grants access on a packet-basis in the following manner:

  1. 1. Among the FIFOs in the same speed group (SS or HS/FSLS):
    1. a) High-priority RXFIFOs are granted access using round-robin arbitration
    2. b) Low-priority RXFIFOs are granted access using round-robin arbitration only after high-priority RXFIFOs have no further processing to do (that is, either the RXQs are empty or the corresponding RXFIFOs do not have the required data).
  2. 2. The RX DMA arbiter prioritizes the SS speed group or HS/FSLS speed group according to the ratio programmed in the GDMAHLRATIO register.

For scatter-gather packets, the arbiter grants successive DMA requests to the same FIFO until the entire packet is completed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GRXFIFOPRIHST[2:0]
rwrwrw

Bits 31:3 Reserved, must be kept at reset value.

Bits 2:0 GRXFIFOPRIHST[2:0]: Host RxFIFO priority

USB3DR global host FIFO DMA high-low priority ratio register
(USB3DR_GBL_GDMAHLRATIO)

Address offset: 0xC624

Reset value: 0x0000 0404

This register specifies the relative priority of the SS FIFOs with respect to the HS/FSLS FIFOs. The DMA arbiter prioritizes the HS/FSLS round-robin arbiter group every DMA high-low priority ratio grants as indicated in the register separately for TX and RX.

To illustrate, consider that all FIFOs are requesting access simultaneously, and the ratio is 4. SS gets priority for 4 packets, HS/FSLS gets priority for 1 packet, SS gets priority for 4 packets, HS/FSLS gets priority for 1 packet, and so on.

If FIFOs from both speed groups are not requesting access simultaneously then,

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.HSTRXFIFO[4:0]Res.Res.Res.HSTTXFIFO[4:0]
rwrwrwrwrwrwrwrwrwrw

Bits 31:13 Reserved, must be kept at reset value.

Bits 12:8 HSTRXFIFO[4:0]: Host RXFIFO DMA high-low priority

Bits 7:5 Reserved, must be kept at reset value.

Bits 4:0 HSTTXFIFO[4:0]: Host TXFIFO DMA high-low priority

USB3DR global frame length adjustment register
(USB3DR_GBL_GFLADJ)

Address offset: 0xC630

Reset value: 0x0000 0000

This register provides options for the software to control the core behavior with respect to SOF (start of frame) and ITP (isochronous timestamp packet) timers and frame timer functionality. It provides an option to override the fladj_30mhz_reg sideband signal. In addition, it enables running SOF or ITP frame timer counters completely from the ref_clk. This facilitates hardware LPM in host mode with the SOF or ITP counters being run from the ref_clk signal.

Register bit layout diagram for GFLADJ_REFCLK_240MHZDECR_PLS1. The diagram shows two rows of bits from 31 down to 0. Row 1 (bits 31-16): Bit 31 is GFLADJ_REFCLK_240MHZDECR_PLS1 (rw). Bits 30-24 are GFLADJ_REFCLK_240MHZ_DECR[6:0] (rw). Bit 23 is GFLADJ_REFCLK_LPM_SEL (rw). Bits 22-17 are Reserved (Res.). Bits 16-15 are GFLADJ_REFCLK_FLADJ[13:8] (rw). Row 2 (bits 15-0): Bits 15-8 are GFLADJ_REFCLK_FLADJ[7:0] (rw). Bit 7 is GFLADJ_30MHZ_SDBND_SEL (rw). Bits 6-5 are Reserved (Res.). Bits 4-0 are GFLADJ_30MHZ[5:0] (rw).
31302928272625242322212019181716
GFLADJ_REFCLK_240MHZDECR_PLS1GFLADJ_REFCLK_240MHZ_DECR[6:0]GFLADJ_REFCLK_LPM_SELRes.GFLADJ_REFCLK_FLADJ[13:8]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
GFLADJ_REFCLK_FLADJ[7:0]GFLADJ_30MHZ_SDBND_SELRes.GFLADJ_30MHZ[5:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Register bit layout diagram for GFLADJ_REFCLK_240MHZDECR_PLS1. The diagram shows two rows of bits from 31 down to 0. Row 1 (bits 31-16): Bit 31 is GFLADJ_REFCLK_240MHZDECR_PLS1 (rw). Bits 30-24 are GFLADJ_REFCLK_240MHZ_DECR[6:0] (rw). Bit 23 is GFLADJ_REFCLK_LPM_SEL (rw). Bits 22-17 are Reserved (Res.). Bits 16-15 are GFLADJ_REFCLK_FLADJ[13:8] (rw). Row 2 (bits 15-0): Bits 15-8 are GFLADJ_REFCLK_FLADJ[7:0] (rw). Bit 7 is GFLADJ_30MHZ_SDBND_SEL (rw). Bits 6-5 are Reserved (Res.). Bits 4-0 are GFLADJ_30MHZ[5:0] (rw).

Bit 31 GFLADJ_REFCLK_240MHZDECR_PLS1: GFLADJ_REFCLK_240MHZDECR_PLS1

This field indicates that the decrement value that the controller applies for each ref_clk must be GFLADJ_REFCLK_240MHZ_DECR and GFLADJ_REFCLK_240MHZ_DECR +1 alternatively on each ref_clk.

Set this bit to a 1 only if GFLADJ_REFCLK_LPM_SEL is set to '1' and the fractional component of 240/ref_frequency is greater than or equal to 0.5.

Examples:

If the ref_clk is 19.2 MHz then

If the ref_clk is 24 MHz then

Bits 30:24 GFLADJ_REFCLK_240MHZ_DECR[6:0]:

This field indicates the decrement value that the controller applies for each ref_clk in order to derive a frame timer in terms of a 240 MHz clock.

This field must be programmed to a non-zero value only if GFLADJ_REFCLK_LPM_SEL is set to 1.

The value is derived as follows:

\(GFLADJ\_REFCLK\_240MHZ\_DECR = 240 / ref\_clk\_frequency\)

Examples:

If the ref_clk is 24 MHz then

– GUCTL.REF_CLK_PERIOD = 41

– GFLADJ.GFLADJ_REFCLK_240MHZ_DECR = 240/24 = 10

If the ref_clk is 48 MHz then

– GUCTL.REF_CLK_PERIOD = 20

– GFLADJ.GFLADJ_REFCLK_240MHZ_DECR = 240/48 = 5

If the ref_clk is 17 MHz then

– GUCTL.REF_CLK_PERIOD = 58

– GFLADJ.GFLADJ_REFCLK_240MHZ_DECR = 240/17 = 14

Bit 23 GFLADJ_REFCLK_LPM_SEL:

This bit enables the functionality of running SOF/ITP counters on the ref_clk.

This bit must not be set to 1 if GCTL.SOFITPSYNC bit is set to 1.

Similarly, if GFLADJ_REFCLK_LPM_SEL set to 1, GCTL.SOFITPSYNC must not be set to 1.

When GFLADJ_REFCLK_LPM_SEL is set to 1 the overloading of the suspend control of the USB 2.0 first port PHY (UTMI/ULPI) with USB 3.0 port states is removed.

For example, for Synopsys PHY, the COMMONONN signal can be tied to 1.

Note: The ref_clk frequencies supported in this mode are 16/17/19.2/20/24/39.7/40 MHz. The utmi_clk[0] signal of the core must be connected to the FREECLK of the PHY.

Note: If this bit is set to 1, the GUSB2PHYCFG.U2_FREECLK_EXISTS bit must be set to 0.

Bit 22 Reserved, must be kept at reset value.

Bits 21:8 GFLADJ_REFCLK_FLADJ[13:0]:

This field indicates the frame length adjustment to be applied when SOF/ITP counter is running on the ref_clk.

This register value is used to adjust the ITP interval when GCTL[SOFITPSYNC] is set to '1'; SOF and ITP interval when GLADJ.GFLADJ_REFCLK_LPM_SEL is set to '1'.

This field must be programmed to a non-zero value only if GFLADJ_REFCLK_LPM_SEL is set to 1 or GCTL.SOFITPSYNC is set to 1.

The value is derived as follows:

\(FLADJ\_REF\_CLK\_FLADJ = ((125000/ref\_clk\_period\_integer)-(125000/ref\_clk\_period)) \times ref\_clk\_period\)

where:

Examples:

If the ref_clk is 24 MHz then

– GUCTL.REF_CLK_PERIOD = 41

– GFLADJ.GLADJ_REFCLK_FLADJ = \(((125000/41)-(125000/41.6666)) \times 41.6666 = 2032\) (ignoring the fractional value)

If the ref_clk is 48 MHz then

– GUCTL.REF_CLK_PERIOD = 20

– GFLADJ.GLADJ_REFCLK_FLADJ = \(((125000/20)-(125000/20.8333)) \times 20.8333 = 5208\) (ignoring the fractional value)

Bit 7 GFLADJ_30MHZ_SDBND_SEL: GFLADJ_30MHZ_SDBND_SEL

This field selects whether to use the input signal fladj_30mhz_reg or the GFLADJ.GFLADJ_30MHZ to adjust the frame length for the SOF/ITP.

When this bit is set to:

Bit 6 Reserved, must be kept at reset value.

Bits 5:0 GFLADJ_30MHZ[5:0]: GFLADJ_30MHZ

This field indicates the value that is used for frame length adjustment instead of considering from the sideband input signal fladj_30mhz_reg.

This enables post-silicon frame length adjustment in case the input signal fladj_30mhz_reg is connected to a wrong value or is not valid.

For details on how to set this value, refer to section 5.2.4, "Frame Length Adjustment Register (FLADJ)," of [xHCI].

USB3DR global USB 2.0 root hub control register (DWC_USB3_GBL_GUSB2RHBCTL)

Address offset: 0xC640

Reset value: 0x0000 0000

The application must program this register before starting any transactions on the USB if a non-default value is desired.

In Host mode, per-port registers are implemented.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OVRD_L1TIMEOUT[3:0]
rwrwrwrw

Bits 31:4 Reserved, must be kept at reset value.

Bits 3:0 OVRD_L1TIMEOUT[3:0]: Overriding the driver programmed L1TIMEOUT value.

If this value is 0, the L1 timeout value is taken from the xHCI PorthLPMC register. If this value is non-0, then this overrides the L1 timeout value programmed in the xHCI PorthLPMC register. In that case the actual L1 timeout would be \(2^{<OVRD\_L1TIMEOUT-1>} \times 8 \mu s\) (1 = 8 μs, 2 = 16 μs, 3 = 32 μs...)

85.4.3 Device register block

USB3DR device configuration register (USB3DR_DEV_DCFG)

Address offset: 0xC700

Reset value: 0bX000 0000 XXXX XXXX XXXX 10XX XXXX XXXX

This register configures the core in Device mode after power-on or after certain control commands or enumeration. Do not make changes to this register after initial programming.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.IGNSTRMPPLPMCAPNUMP[4:0]INTRNUM[4]
rwrwrwrwrwrwrwrw
1514131211109876543210
INTRNUM[3:0]Res.Res.DEVADDR[6:0]DEVSPD[2:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 Reserved, must be kept at reset value.

Bit 23 IGNSTRMPP: IgnoreStreamPP

This bit only affects stream-capable bulk endpoints.

When this bit is set to 0 and the controller receives a data packet with the packet pending (PP) bit set to 0 for OUT endpoints, or it receives an ACK with the NumP field set to 0 and PP set to 0 for IN endpoints, the core attempts to search for another stream (CStream) to initiate to the host. However, there are two situations where this behavior is not optimal:

When this bit is set to 1, the core ignores the packet pending bit for the purposes of stream selection and does not search for another stream when it receives DP(PP = 0) or ACK(NumP = 0, PP = 0). This can enhance the performance when the device system bus bandwidth is low or the host responds to the core's ERDY transmission very quickly.

USB3DR device control register (USB3DR_DEV_DCTL)

Address offset: 0xC704

Reset value: 0bXX0X XXXX XXXX XXXX 000X XXXX XXXX XXX0

Note: When hibernation is not enabled using GCTL.GblHibernationEn field, any value can be written to CSS, CRS, L1HibernationEn, and KeepConnect fields. L1HibernationEn, and KeepConnect fields always return 0 when read in this hibernation-disabled state.

31302928272625242322212019181716
RUN_STOPCSFTRSTRes.HIRDTHRES[4:0]LPM_NYET_THRES[3:0]KEEPCONNECTL1HIBERNATIONENCRSCSS
rwrsrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.INITU2ENAACCEPTU2ENAINITU1ENAACCEPTU1ENAULSTCHNGREQ[3:0]TSTCTL[3:0]Res.
rwrwrwrwwwwwrwrwrwrw

Bit 31 RUN_STOP: Run/stop

The software writes 1 to this bit to start the device controller operation.

To stop the device controller operation, the software must remove any active transfers and write 0 to this bit. When the controller is stopped, it sets the DSTS.DevCtrlHlt bit when the core is idle and the lower layer finishes the disconnect process.

The run/stop bit must be used in following cases as specified:

Note: The following is the minimum duration under various conditions for which the soft disconnect (SftDiscon) bit must be set for the USB host to detect a device disconnect:
30ms: For SuperSpeed, when the device state is suspended, idle, transmit, or receive.
10ms: For high-speed, when the device state is suspended, idle, or not idle/suspended (performing transactions).
For full-speed/low-speed, when the device state is suspended, idle, or not idle/suspended (performing transactions).
To accommodate clock jitter, it is recommended that the application adds extra delay to the specified minimum duration.

Bit 30 CSFTRST: Core soft reset

Resets the all clock domains as follows:

The application can write this bit at any time to reset the core. This is a self-clearing bit; the core clears this bit after all necessary logic is reset in the core, which may take several clocks depending on the core current state. Once this bit is cleared, the software must wait at least 3 PHY clocks before accessing the PHY domain (synchronization delay). Typically, software reset is used during software development and also when the PHY selection bits are dynamically changed in the USB configuration registers listed above. When the PHY is changed, the corresponding clock for the PHY is selected and used in the PHY domain. Once a new clock is selected, the PHY domain must be reset for proper operation.

Note: Programming this field with random data causes side effect. Bit bash register testing is not recommended.

Bit 29 Reserved, must be kept at reset value.

Bits 28:24 HIRDTHRES[4:0]: HIRD threshold (HIRD_Thres)

The core asserts output signals utmi_l1_suspend_n and utmi_sleep_n on the basis of this signal:

The core asserts utmi_l1_suspend_n to put the PHY into deep Low-power mode in L1 when both of the following are true:

The core asserts utmi_sleep_n on L1 when one of the following is true:

Note: This field must be set to 0 during SuperSpeed mode of operation.

Bits 23:20 LPM_NYET_THRES[3:0]: LPM NYET threshold

When LPM errata is enabled:

Bits [23:20]: LPM NYET response threshold (LPM_NYET_thres)

Handshake response to LPM token specified by device application. Response depends on DCFG.LPMCap.

Bit 19 KEEPCONNECT: Keep connect

When 1, this bit enables the save and restore programming model by preventing the core from disconnecting from the host when DCTL.RUN_STOP is set to 0.
It also enables the hibernation request event to be generated when the link goes to U3 or L2.
The device core disconnects from the host when DCTL.RUN_STOP is set to 0.
This bit indicates whether to preserve this behavior (0), or if the core must not disconnect when run/stop is set to 0 (1).
This bit also prevents the LTSSM from automatically going to U0/L0 when the host requests resume from U3/L2.

Note: If hibernation is disabled, that is, GCTL[1].GblHibernationEn = 0, this bit is tied to zero.

Bit 18 L1HIBERNATIONEN: L1HibernationEn

When this bit is set along with KeepConnect, the device core generates a hibernation request event if L1 is enabled and the HIRD value in the LPM token is larger than the threshold programmed in DCTL.HIRD_Thres.
The core does not exit the LPM L1 state until the software writes recovery into the DCTL.ULStChngReq field.
This prevents corner cases where the device is entering hibernation at the same time the host is attempting to exit L1.

Note: If hibernation is disabled, that is, GCTL[1].GblHibernationEn = 0, this bit is tied to zero.

Bit 17 CRS: Controller restore state (CRS)

This command is similar to the USBCMD.CRS bit in host mode and initiates the restore process. When software sets this bit to 1, the controller immediately sets DSTS.RSS to 1.
When the controller has finished the restore process, it sets DSTS.RSS to 0.

Note: When read, this field always returns 0.

Bit 16 CSS: Controller save state (CSS)

This command is similar to the USBCMD.CSS bit in host mode and initiates the save process. When the software sets this bit to 1, the controller immediately sets DSTS.SSS to 1.
When the controller has finished the save process, it sets DSTS.SSS to 0

Note: When read, this field always returns 0.

Bits 15:13 Reserved, must be kept at reset value.

Bit 12 INITU2ENA: Initiate U2 enable

0: May not initiate U2 (default)
1: May initiate U2
On USB reset, the hardware clears this bit to 0. The software sets this bit after receiving SetFeature(U2_ENABLE), and clears this bit when ClearFeature(U2_ENABLE) is received.
If DCTL[11] (AcceptU2Ena) is 0, the link immediately exits U2 state.

Bit 11 ACCEPTU2ENA: Accept U2 enable

0: The core reject U2 except when Force_LinkPM_Accept bit is set (default)
1: The core accepts transition to U2 state if nothing is pending on the application side.
On USB reset, the hardware clears this bit to 0. The software sets this bit after receiving a SetConfiguration command.

Bit 10 INITU1ENA: Initiate U1 enable

0: May not initiate U1 (default);
1: May initiate U1.
On USB reset, the hardware clears this bit to 0. The software sets this bit after receiving SetFeature(U1_ENABLE), and clears this bit when ClearFeature(U1_ENABLE) is received.
If DCTL[9] (AcceptU1Ena) is 0, the link immediately exits U1 state.

Bit 9 ACCEPTU1ENA: Accept U1 enable

Bits 8:5 ULSTCHNGREQ[3:0]: ULSTCHNGREQ

Software writes this field to issue a USB/Link state change request. A change in this field indicates a new request to the core.

If the software wants to issue the same request back-to-back, it must write a 0 to this field between the two requests. The result of the state change request is reflected in the USB/Link state in DSTS. These bits are self-cleared on the MAC layer exiting suspended state.

If the software is updating other fields of the DCTL register and not intending to force any link state change, then it must write a 0 to this field.

SS Compliance mode is normally entered and controlled by the remote link partner. Refer to [USB3].

Alternatively, the local link can be forced directly into compliance mode, by resetting the SS link with the run/stop bit set to zero.

If 10 is then written to the USB/Link state change field and 1 to run/stop, the link goes to compliance mode.

Once in compliance, zero and 10 may be alternatively written to this field to advance the compliance pattern.

Condition: in SS mode, the values for link state transition/action are:

Condition: in HS/FS/LS mode, the values for link state transition/action are:

The remote wakeup request must be issued 2 us after the device goes into suspend state (DSTS[21:18] is 3).

Note: After coming out of hibernation, the software must write 8 (recovery) into this field to confirm exit from the suspended state.

Bits 4:1 TSTCTL[3:0]: Test control

Bit 0 Reserved, must be kept at reset value.

USB3DR device event enable register (USB3DR_DEV_DEVTEN)

Address offset: 0xC708

Reset value: 0b0000 0000 0000 000X XXXX 00XX XXXX XXXX

This register controls the generation of device-specific events. If an enable bit is set to 0, the event is not generated.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ECCERREN
r
1514131211109876543210
Res.L1WKUPEVTENRes.VENDEVTSTRCVDENRes.Res.ERRTICERREVTENL1SUSPENSOFTEVTENU3L21SUSPENHIBERNATIONREQEVTENWKUPEVTENULSTCNGENCONNECTDONEEVTENUSBRSTEVTENDISSCONNEVTEN
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:17 Reserved, must be kept at reset value.

Bit 16 ECCERREN: ECC error enable.

If this bit is set to 1, the controller reports an ECC error to the software when an uncorrectable ECC occurs internally.

Bit 15 Reserved, must be kept at reset value.

Bit 14 L1WKUPEVTEN: L1 resume detected event enable.

Note: If GUCTL1[DEV_DECOUPLE_L1L2_EVT] is enabled, then this bit is for L1 resume detected event enable.

Bit 13 Reserved, must be kept at reset value.

Bit 12 VENDEVTSTRCVDEN: Vendor device Test LMP received event (VndrDevTstRcvdEn)

Bits 11:10 Reserved, must be kept at reset value.

Bit 9 ERRTICERREVTEN: Erratic error event enable

Bit 8 L1SUSPEN: L1 suspend event enable

Note: Only if GUCTL1[DEV_DECOUPLE_L1L2_EVT] is enabled, this bit is for L1 suspend event enable.

Bit 7 SOFTEVTEN: Start of (u)frame

Bit 6 U3L2L1SUSPEN: U3/L2 or U3/L2L1 suspend event enable.

Note: If GUCTL1[DEV_DECOUPLE_L1L2_EVT] is enabled, then this bit is for U3/L2 suspend event enable.

If GUCTL1[DEV_DECOUPLE_L1L2_EVT] is not enabled, then this bit is for U3/L2L1 suspend event enable.

Bit 5 HIBERNATIONREQEVTEN:

This bit enables/disables the generation of the hibernation request event.

Bit 4 WKUPEVTEN: U3/L2 or U3/L2L1 resume detected event enable.

Note: If GUCTL1[DEV_DECOUPLE_L1L2_EVT] is enabled, then this bit is for U3/L2 resume detected event enable.
If GUCTL1[DEV_DECOUPLE_L1L2_EVT] is not enabled, then this bit is for U3/L2L1 resume detected event enable.

Bit 3 ULSTCNGEN: USB/Link state change event enable

Bit 2 CONNECTDNEEVTEN: Connection done enable

Bit 1 USBRSTEVTEN: USB reset enable

Bit 0 DISSCONNEVTEN: Disconnect detected event enable

USB3DR device status register (USB3DR_DEV_DSTS)

Address offset: 0xC70C

Reset value: 0b00X0 00XX XXXX XXXX XXXX XXXX XXXX XXXX

This register indicates the status of the device controller with respect to USB-related events.

Note: When hibernation is not enabled, RSS and SSS fields always return 0 when read.

31302928272625242322212019181716
Res.Res.DCNRDSRERes.Res.RSSSSSCOREIDLEDEVCTRLHLTUSBLNKST[3:0]RXFIFOEMPTYSOFFN[13]
rrc_w1rrrrrrrrrr
1514131211109876543210
SOFFN[12:0]CONNECTSPD[2:0]
rrrrrrrrrrrrrrrr

Bits 31:30 Reserved, must be kept at reset value.

Bit 29 DCNRD: Device controller not ready

The bit indicates that the core is in the process of completing the state transitions after exiting from hibernation.

To complete the state transitions, it takes 256 bus clock cycles from the time DCTL[31].RUN_STOP is set. During hibernation, if the UTMI/ULPI PHY is in suspended state, then the 256-bus clock cycle delay starts after the PHY exited suspended state. The software must set DCTL[31].RUN_STOP to 1 and wait for this bit to be de-asserted to zero before processing DSTS.USBLnkSt.

This bit is valid only when USB3DR_EN_PWROPT is set to 2 and GCTL[1].GblHibernationEn = 1.

Bit 28 SRE: Save restore error

Currently not supported.

Bits 27:26 Reserved, must be kept at reset value.

Bit 25 RSS: RSS restore state status

This bit is similar to the USBSTS.RSS in Host mode.

When the controller finishes the restore process, it completes the command by setting DSTS.RSS to 0.

Bit 24 SSS: SSS save state status

This bit is similar to the USBSTS.SSS in Host mode.

When the controller has finished the save process, it completes the command by setting DSTS.SSS to 0.

Bit 23 COREIDLE: Core idle

The bit indicates that the core finished transferring all RxFIFO data to system memory, writing out all completed descriptors, and all event counts are zero.

Note: While testing for reset values, mask out the read value. This bit represents the changing state of the core and does not hold a static value.

Bit 22 DEVCTRLHLT: Device controller halted

This bit is set to 0 when the run/stop bit in the DCTL register is set to 1.

The core sets this bit to 1 when, after the software sets run/stop to 0, the core is idle and the lower layer finishes the disconnect process.

When Halted = 1, the core does not generate Device events.

Note: The core does not set this bit to 1 if GEVNTCOUNTn has some valid value. Software needs to acknowledge the events that are generated (by writing to GEVNTCOUNTn) while it is waiting for this bit to be set to 1.

When interrupt moderation is enabled, there may be delay in raising the interrupt line when the event count is non-zero. Software should read the GEVNTCOUNT register directly and acknowledge them.

Bits 21:18 USBLNKST[3:0]: USBLNKST

USB/Link state

Condition: in SS mode LTSSM state

0x0: U0

0x1: U1

0x2: U2

0x3: U3

0x4: SS_DIS

0x5: RX_DET

0x6: SS_INACT

0x7: POLL

0x8: RECOV

0x9: HRESET

0xA: CMPLY

0xB: LPBK

0xF: Resume/reset

Condition: in HS FS LS mode:

0x0: On state

0x2: Sleep (L1) state

0x3: Suspend (L2) state

0x4: Disconnected state (default state)

0x5: Early suspend state (valid only when hibernation is disabled,
GCTL[1].GblHibernationEn = 0)

0xE: Reset (valid only when hibernation is enabled, GCTL[1].GblHibernationEn = 1)

0xF: Resume (valid only when hibernation is enabled, GCTL[1].GblHibernationEn = 1)

The link state resume/reset indicates that the core received a resume or USB reset request from the host while the link was in hibernation. The software must write 8 (recovery) to the DCTL.ULStChngReq field to acknowledge the resume/reset request.

When hibernation is enabled, GCTL[1].GblHibernationEn = 1, this field USBLnkSt is valid only when DCTL[31].RUN_STOP is set to 1 and DSTS[29].DCNRD = 0.

Note: If SSIC is enabled, while exiting a low power state, the USBLnkSt field indicates resume/reset even for a disconnect condition because a resume precedes the disconnect.

Bit 17 RXFIFOEMPTY: RxFIFO empty.

Bits 16:3 SOFFN[13:0]: Frame/Microframe number of the received SOF.

When the core is operating at SuperSpeed,

– [16:3] indicates the uframe/ITP number

– When the core is operating at high-speed,

– [16:6] indicates the frame number

– [5:3] indicates the micro-frame number

When the core is operating at full-speed,

– [16:14] is not used, the software can ignore these 3 bits

– [13:3] indicates the frame number

Bits 2:0 CONNECTSPD[2:0]: Connected speed (ConnectSpd)

Indicates the speed at which the USB3DR has come up after speed detection through a chirp sequence.

100: SuperSpeed (PHY clock is running at 125 or 250 MHz)

000: High-speed (PHY clock is running at 30 or 60 MHz)

001: Full-speed (PHY clock is running at 30 or 60 MHz)

Low-speed is not supported for devices using a UTMI+ PHY.

USB3DR device generic command parameter register (USB3DR_DEV_DGCMDPAR)

Address offset: 0xC710

Reset value: 0x0000 0000

This register indicates the device command parameter. This must be programmed before or along with the device command. The available device commands are listed in DGCMD register.

31302928272625242322212019181716
PARAMETER[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PARAMETER[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 PARAMETER[31:0]: PARAMETER

USB3DR device generic command register (USB3DR_DEV_DGCMD)

Address offset: 0xC714

Reset value: 0b0000 0000 0000 0000 XXXX 0X0X XXXX XXXX

This register enables software to program the core using a single generic command interface to send link management packets and notifications. This register contains command, control, and status fields relevant to the current generic command, while the DGCMDPAR register provides the command parameter.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
CMDSTATUS[3:0]Res.CMDACTRes.CMDIOCCMDTYP[7:0]
rrrrrsrwrwrwrwrwrwrwrwrw

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:12 CMDSTATUS[3:0]: Command status

Bit 11 Reserved, must be kept at reset value.

Bit 10 CMDACT: Command active

The software sets this bit to 1 to enable the device controller to execute the generic command.

The device controller sets this bit to 0 after executing the command.

Bit 9 Reserved, must be kept at reset value.

Bit 8 CMDIOC: Command interrupt on complete

When this bit is set, the device controller issues a generic command completion event after executing the command.

Note: This interrupt is mapped to DCFG.IntrNum.

This field must not set to 1 if the DCTL.RUN_STOP field is 0.

Bits 7:0 CMDTYP[7:0]: Generic command type

Specifies the type of generic command the software driver is requesting the controller to perform.

0x02: Set periodic parameters

0x04: Set scratchpad buffer array address low

0x05: Set scratchpad buffer array address high

0x07: Transmit device notification

0x09: Selected FIFO flush

0x0A: All FIFO flush

0x0C: Set endpoint NRDY

0x10: Run device bus loopback test

0x11: Restart after disconnect

All other values are reserved.

USB3DR device active USB endpoint enable register (USB3DR_DEV_DALEPENA)

Address offset: 0xC720

Reset value: 0x0000 0000

This register indicates whether a USB endpoint is active in a given configuration or interface.

31302928272625242322212019181716
USBACTEP[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
USBACTEP[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 USBACTEP[31:0]: USBACTEP

USB active endpoints (USBActEP)

This field indicates if a USB endpoint is active in the current configuration and interface. It applies to USB IN endpoints 0.15 and OUT endpoints 0.15, with one bit for each of the 32 possible endpoints. Even numbers are for USB OUT endpoints, and odd numbers are for USB IN endpoints, as follows:

The entity programming this register must set bits 0 and 1 because they enable control endpoints that map to physical endpoints (resources) after USBReset.

Hardware clears these bits for all endpoints (other than EP0-OUT and EP0-IN) after detecting a USB reset event. After receiving SetConfiguration and SetInterface requests, the application must program endpoint registers accordingly and set these bits.

USB3DR device physical endpoint-n command parameter 2 register
(USB3DR_DEV_DEPCMDPAR2n)

Address offset: 0xC800 + n*0x10, (n = 0 to 23)

Reset value: 0x0000 0000

This register indicates the physical endpoint command parameter 2. It must be programmed before issuing the command.

31302928272625242322212019181716
PARAMETER[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PARAMETER[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 PARAMETER[31:0]: PARAMETER

USB3DR device physical endpoint-n command parameter 1 register
(USB3DR_DEV_DEPCMDPAR1n)

Address offset: 0xC804 + n*0x10, (n = 0 to 23)

Reset value: 0x0000 0000

31302928272625242322212019181716
PARAMETER[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PARAMETER[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 PARAMETER[31:0]: PARAMETER

USB3DR device physical endpoint-n command parameter 0 register
(USB3DR_DEV_DEPCMDPAR0n)

Address offset: 0xC808 + n*0x10, (n = 0 to 23)

Reset value: 0x0000 0000

31302928272625242322212019181716
PARAMETER[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PARAMETER[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 PARAMETER[31:0]: PARAMETER

USB3DR device physical endpoint-n command register (USB3DR_DEV_DEPCMDn)

Address offset: 0xC80C + n*0x10, (n = 0 to 23)

Reset value: 0x0000 0000

This register enables software to issue physical endpoint-specific commands. This register contains command, control, and status fields relevant to the current generic command, while the DEPCMDPAR[2:0]n registers provide command parameters and return status information.

Several fields (including command type) are write-only, so their read values are undefined. After power-on, prior to issuing the first endpoint command, the read value of this register is undefined. In particular, the CmdAct bit may be set after power-on. In this case, it is safe to issue an endpoint command.

31302928272625242322212019181716
COMMANDPARAM[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
CMDSTATUS[3:0]HIPRI_FORCERMCMDACTRes.CMDIOCRes.Res.Res.Res.CMDTYP[3:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 COMMANDPARAM[15:0]: Command parameters or event parameters

Command parameters (CommandParam), when this register is written:

For start transfer command:

For start transfer command applied to an isochronous endpoint

For update transfer, end transfer, and start new configuration commands

Event parameters (EventParam), when this register is read.

Bits 15:12 CMDSTATUS[3:0]: Command completion status (CmdStatus)

Additional information about the completion of this command is available in this field. The information is in the same format as bits 15:12 of the endpoint command complete event.

Bit 11 HIPRI_FORCERM: HighPriority/ForceRM (HiPri_ForceRM)

Bit 10 CMDACT: Command active (CmdAct)

Software sets this bit to 1 to enable the device endpoint controller to execute the generic command.

The device controller sets this bit to 0 when the CmdStatus field is valid and the endpoint is ready to accept another command. This does not imply that all the effects of the previously-issued command have taken place.

Bit 9 Reserved, must be kept at reset value.

Bit 8 CMDIOC: CMDIOC

Command interrupt on complete (CmdIOC)

When this bit is set, the device controller issues a generic endpoint command complete event after executing the command.

Note: This interrupt is mapped to DEPCFG.IntrNum.

When the DEPCFG command is executed, the command interrupt on completion goes to the interrupt pointed by the DEPCFG.IntrNum in the current command.

Note: This field must not set to 1 if the DCTL.RUN_STOP field is 0.

Bits 7:4 Reserved, must be kept at reset value.

Bits 3:0 CMDTYP[3:0]: Command type

Specifies the type of command the software driver is requesting the core to perform.

0x00: Reserved

0x01: Set endpoint configuration, 64 or 96-bit parameter

0x02: Set endpoint transfer resource configuration, 32-bit parameter

0x03: Get endpoint state, no parameter needed

0x04: Set stall, no parameter needed

0x05: Clear stall (see set stall), no parameter needed

0x06: Start transfer, 64-bit parameter

0x07: Update transfer, no parameter needed

0x08: End transfer, no parameter needed

0x09 Start new configuration, no parameter needed

USB3DR device interrupt moderation register (USB3DR_DEV_IMOD)

Address offset: 0xCA00

Reset value: 0x0000 0000

This register controls the interrupt moderation feature that allows the device software to throttle the interrupt rate.

Key functions:

31302928272625242322212019181716
DEVICE_IMODC[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DEVICE_IMODI[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 DEVICE_IMODC[15:0]: Interrupt moderation down counter

Loaded with the DEVICE_IMODI value, whenever the hardware interrupt(n) line is de-asserted from the asserted state, counts down to 0, and stops.
The interrupt(n) is signaled whenever this counter is 0, EVNT_HANDLER_BUSY is 0, and there are pending events (that is, event count is non-zero).
This counter may be directly written by software at any time to alter the interrupt rate.

Bits 15:0 DEVICE_IMODI[15:0]: Moderation interval (DEVICE_IMODI)

This field holds the minimum inter-interrupt interval between events. The interval is specified in 250 ns increments.
A value of 0 disables the interrupt throttling logic and interrupts are generated immediately if event count becomes non-zero.
In scale down simulation mode, 4 ram clocks are used to time 250 ns.

85.4.4 Battery charger register block

USB3DR battery charger configuration register (USB3DR_BC_BCFG)

Address offset: 0xCC30

Reset value: 0b0000 0000 0000 0000 0000 0000 0000 00XX

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IDDIG_SELCHIRP_EN
rwrw

Bits 31:2 Reserved, must be kept at reset value.

Bit 1 IDDIG_SEL: IDDIG select

When this bit is programmed as:

1: The core determines the ID pin value from RID_A and RID_GND inputs of the battery charger.
0: The core determines ID pin value from utmiotg_iddig input.

When ULPI PHY is used, IDDIG_SEL needs to be programmed to 0 always, so that the core uses the ID value obtained from the RX_CMD.

Bit 0 CHIRP_EN: Chirp enable

When this bit is 1, the core asserts the bc_chirp_on output signal to indicate an imminent chirp.

USB3DR battery charger event register (USB3DR_BC_BCEVT)

Address offset: 0xCC38

Reset value: 0x0000 0000

Writing 1 to the info bit in this register clears the register bit and the associated interrupt.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.MV_CHNGEVNTRes.Res.Res.Res.Res.Res.Res.Res.
rc_w1
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MULTVALIDBC[4:0]
rrrrr

Bits 31:25 Reserved, must be kept at reset value.

Bit 24 MV_CHNGEVNT : Multi-valued input changed event:

This event indicates that there is a change in the value of at least one ACA pin value. This bit is present only if USB3DR_EN_BC = 1, otherwise it is Reserved.

Bits 23:5 Reserved, must be kept at reset value.

Bits 4:0 MULTVALIDBC[4:0] : Multi valued ID pin
Indicates the battery charger ACA inputs.

USB3DR battery charger event enable register (USB3DR_BC_BCEVTEN)

Address offset: 0xCC3C

Reset value: 0b0000 000X 0000 0000 0000 0000 0000 0000

BC Event Enable Register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.MV_CHNGEVNTENARes.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

Bits 31:25 Reserved, must be kept at reset value.

Bit 24 MV_CHNGEVNTENA: BCEvtInfoEna[0]
Multi-valued input changed event enable (MV_ChngEvntEn)
When this bit is set, MV_ChngEvnt in BCEVT register is enabled.

Bits 23:0 Reserved, must be kept at reset value.

Address offset: 0xD000

Reset value: 0x0000 1F1F

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
U1U2_LFPS_EXIT_RX_CLK[7:0]U1U2_EXIT_RSP_RX_CLK[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:8 U1U2_LFPS_EXIT_RX_CLK[7:0]: Programmable U1U2 LFPS EXIT RX CLKS
Applicable to remote partner initiated Ux exit: time to recognize valid Ux exit request from the remote partner.
This field is encoded as the pipe clk (8 ns) count for the LFPS.
1: 8 ns
2: 16 ns
3: 24 ns, and so on

Bits 7:0 U1U2_EXIT_RSP_RX_CLK[7:0]: Programmable U1U2 EXIT RESP RX CLKS
Applicable to locally initiated Ux exit: minimum LFPS reception from remote to consider Ux exit handshake is successful.
This field is encoded as the pipe clk (8 ns) count for the LFPS.
1: 8 ns
2: 16 ns
3: 24 ns, and so on

ST logo
ST logo

Address offset: 0xD020

Reset value: 0x4590 0000

Link layer user control register for enabling link/PHY-specific options.

31302928272625242322212019181716
Res.U1_RESID_TIMER_US[2:0]Res.PM_LC_TIMER_US[2:0]PM_ENTRY_TIMER_US[3:0]Res.Res.Res.Res.
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

Bit 31 Reserved, must be kept at reset value.

Bits 30:28 U1_RESID_TIMER_US[2:0]: Programmable U1 MIN RESIDENCY TIMER
This field specifies U1 MIN RESIDENCY TIMER value in μs. Set to 0 to disable the timer.

Bit 27 Reserved, must be kept at reset value.

Bits 26:24 PM_LC_TIMER_US[2:0]: Programmable PM_LC_TIMER
This field specifies PM_LC_TIMER value in μs.

Bits 23:20 PM_ENTRY_TIMER_US[3:0]: Programmable PM_ENTRY_TIMER
This field specifies PM_ENTRY_TIMER value in μs.

Bits 19:0 Reserved, must be kept at reset value.

Address offset: 0xD024

Reset value: 0x0080 0080

Link layer user control register for enabling link/PHY-specific options.

31302928272625242322212019181716
Res.Res.SUPPO
RT_P4
_PG
SUPPO
RT_P4
Res.Res.Res.Res.DISRX
DET_L
TSSM_
TIMER
_OVRR
D
Res.Res.Res.Res.Res.Res.Res.
rwrwrw
1514131211109876543210
Res.Res.Res.U2P3C
PMOK
EN_RE
SET_PI
PE_AF
TER_P
HY_MU
X
Res.Res.Res.MASK_
PIPE_
RESET
Res.NO_UX
EXIT_
P0_TR
ANS
Res.Res.Res.Res.Res.
rwrwrwrw

Bits 31:30 Reserved, must be kept at reset value.

Bit 29 SUPPORT_P4_PG: PHY P4 power gate mode (PG) is enabled.
Set this bit if the PHY supports PG mode in P4. This bit is used only for Synopsys PHY.

Address offset: 0xD028

Reset value: 0x0000 0C00

Link layer timer register for P3CPM/P4 residency

RM0457Bits 5:3 Bits 2:0column_3POSTDIV2[2:0] POSTDIV1[2:0]column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15column_16
Bit 5NO_UX_EXIT_P0_TRANS: no_ux_exit_p0_trans.
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.P3CPMP4_RESIDENCY[11:6]
rwrwrwrwrwrw
1514131211109876543210
P3CPMP4_RESIDENCY[5:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrwrwrw
Bits 21:10P3CPMP4_RESIDENCY[11:0]: p3cpmp4 residency timer value.
ST logo
ST logo

85.4.6 USB3DR register map

Table 873. USB3DR register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xC100USB3DR_GBL_
GSBUSCFG0
DATRDREQ
INFO[3:0]
DESRDREQ
INFO[3:0]
DATWRREQ
INFO[3:0]
DESWRREQ
INFO[3:0]
Res.Res.Res.Res.DATBIGENDDESBIGENDRes.Res.INCR256BRSTENAINCR128BRSTENAINCR64BRSTENAINCR32BRSTENAINCR16BRSTENAINCR8BRSTENAINCR4BRSTENAINCRBRSTENA
Reset value00000000000000000000001001
0xC104USB3DR_GBL_
GSBUSCFG1
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.EN1KPAGEPIPETRANS
LIMIT[3:0]
Res.Res.Res.Res.Res.Res.Res.Res.
Reset value00011
0xC108USB3DR_GBL_
GTXTHRCFG
Res.Res.USBTXPKTCNTSELRes.USBTXPKTCNT[3:0]USBMAXTXBURSTSIZE[7:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value0000000000000
0xC10CUSB3DR_GBL_
GRXTHRCFG
Res.Res.USBRXPKTCNTSELRes.USBRXPKTCNT[3:0]USBMAXRXBURSTSIZE[4:0]Res.Res.Res.Res.Res.Res.RESVISOCOUTSPC[12:0]
Reset value00000000000000000000000
0xC110USB3DR_GBL_
GCTL
PWRDNSCALE[12:0]MASTERFILTBYPASSBYPSETADDRU2RSTECNFRMSCLDWN[1:0]PRTCAPDIR[1:0]CORESOFTRESETSOFITPSYNCU1U2TIMERSCALEDEBUGATTACHRAMCLKSEL[1:0]SCALEDOWN[1:0]DISSCRAMBLEU2EXIT_LFPSGBLHIBERNATIONENDSBLCLKGTNG
Reset value00110000110000100100000000000100
0xC114USB3DR_GBL_
GPMSTS
PORTSEL
[3:0]
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.U3WAKEUP[4:0]Res.Res.U2WAKEUP[9:0]
Reset valueXXXXXXXXXXXXXXXXXXX
0xC118USB3DR_GBL_
GSTS
CBELT[11:0]Res.Res.Res.Res.Res.Res.Res.Res.SSIC_IPOTG_IPBC_IPADP_IPHOST_IPDEVICE_IPCSRTIMEOUTBUSERRADDRVLDRes.Res.CURMOD[1:0]
Reset value0111111010000000000000

Table 873. USB3DR register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xC11CUSB3DR_GBL_
GUCTL1
DEV_DECOUPLE_L1L2_EVTDS_RXDET_MAX_TOUT_CTRLFILTER_SE0_FSLS_EOPTX_IPGAP_LINECHECK_DISDEV_TRB_OUT_SPR_INDDEV_FORCE_20_CLK_FOR_30_CLKP3_IN_U2DEV_L1_EXIT_BY_HWIP_GAP_ADD_ON[2:0]DEV_LSP_TAIL_LOCK_DISNAK_PER_ENH_FSNAK_PER_ENH_HSPARKMODE_DISABLE_SSPARKMODE_DISABLE_HSPARKMODE_DISABLE_FSLSRes.Res.Res.Res.RESUME_OPMODE_HS_HOSTDEV_HS_NYET_BULK_SPRL1_SUSP_THRLD_EN_FOR_HOSTL1_SUSP_THRLD_FOR_HOST[3:0]HC_ERRATA_ENABLEHC_PARCHK_DISABLEOVRLD_L1_SUSP_COMLOA_FILTER_EN
Reset value0000000000000000000000000010
0xC120USB3DR_GBL_
GSNPSID
SYNOPSYSID[31:0]
Reset value01010101001100110011001100001011
0xC124USB3DR_GBL_
GGPIO
GPO[15:0]GPI[15:0]
Reset value00000000000000000000000000000000
0xC128USB3DR_GBL_
GUID
USERID[31:0]
Reset value00010010001101000101011001111000
0xC12CUSB3DR_GBL_
GUCTL
REFCLKPER[9:0]NOEXTRDLRes.Res.Res.SPRSCTRLTRANSENRESBWHSEPSRes.USBHSTINAUTORETRYENENOVERLAPCHKEXTCAPSUPPTENINSRTEXTRFSBODIDTCT
[1:0]
DTFT[8:0]
Reset value0000001000000000000000001000
0xC130USB3DR_GBL_
GBUSERR
ADDRLO
BUSERRADDR[31:0]
Reset value00000000000000000000000000000000
0xC134USB3DR_GBL_
GBUSERR
ADDRHI
BUSERRADDR[31:0]
Reset value00000000000000000000000000000000
0xC138USB3DR_GBL_
GPRTBIMAPLO
BINUM8[3:0]BINUM7[3:0]BINUM6[3:0]BINUM5[3:0]BINUM4[3:0]BINUM3[3:0]BINUM2[3:0]BINUM1[3:0]
Reset value00000000000000000000000000000000
0xC13CUSB3DR_GBL_
GPRTBIMAPHI
Res.Res.Res.Res.BINUM15[3:0]BINUM14[3:0]BINUM13[3:0]BINUM12[3:0]BINUM11[3:0]BINUM10[3:0]BINUM9[3:0]
Reset value0000000000000000000000000000
0xC140USB3DR_GBL_
GHWPARAMS0
GHWPARAMS0_31_24[7:0]GHWPARAMS0_23_16[7:0]GHWPARAMS0_15_8[7:0]GHWPARAMS0_7_6[1:0]GHWPARAMS0_5_3[2:0]GHWPARAMS0_2_0[2:0]
Reset value00100000001000000100000000001010
ST logo
ST logo

Table 873. USB3DR register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xC144USB3DR_GBL_GHWPARAMS1GHWPARAMS1_31GHWPARAMS1_30Res.GHWPARAMS1_28GHWPARAMS1_27GHWPARAMS1_26GHWPARAMS1_25_24[1:0]GHWPARAMS1_23GHWPARAMS1_22_21[1:0]GHWPARAMS1_20_15[5:0]GHWPARAMS1_14_12[2:0]GHWPARAMS1_11_9[2:0]GHWPARAMS1_8_6[2:0]GHWPARAMS1_5_3[2:0]GHWPARAMS1_2_0[2:0]
Reset value00000010110000001100100100111011
0xC148USB3DR_GBL_GHWPARAMS2GHWPARAMS2_31_0[31:0]
Reset value000100100011010001010110010111000
0xC14CUSB3DR_GBL_GHWPARAMS3Res.GHWPARAMS3_30_23[7:0]GHWPARAMS3_22_18[4:0]GHWPARAMS3_17_12[5:4]GHWPARAMS3_17_12[3:0]GHWPARAMS3_11GHWPARAMS3_10Res.Res.GHWPARAMS3_7_6[1:0]GHWPARAMS3_5_4[1:0]GHWPARAMS3_3_2[1:0]GHWPARAMS3_1_0[1:0]
Reset value000110000110001100000010000101
0xC150USB3DR_GBL_GHWPARAMS4GHWPARAMS4_31_28[3:0]GHWPARAMS4_27_24[3:0]GHWPARAMS4_23Res.GHWPARAMS4_21GHWPARAMS4_20_17[3:0]GHWPARAMS4_16_13[3]GHWPARAMS4_16_13[2:0]GHWPARAMS4_12GHWPARAMS4_11GHWPARAMS4_10_9[1:0]GHWPARAMS4_8_7[1:0]Res.GHWPARAMS4_5_0[5:0]
Reset value0100011110000100010000000001000
0xC154USB3DR_GBL_GHWPARAMS5Res.Res.Res.Res.GHWPARAMS5_27_22[5:0]GHWPARAMS5_21_16[5:0]GHWPARAMS5_15_10[5:0]GHWPARAMS5_9_4[5:0]GHWPARAMS5_3_0[3:0]
Reset value01000010000001000001000001000
0xC158USB3DR_GBL_GHWPARAMS6GHWPARAMS6_31_16[15:0]BUSFLTRSSUPPORTBCSUPPORTOTG_SS_SUPPORTADPSUPPORTHNPSUPPORTSRPSUPPORTRes.Res.GHWPARAMS6_7GHWPARAMS6_6GHWPARAMS6_5_0[5:0]
Reset value0000011111101100110000001000000
0xC15CUSB3DR_GBL_GHWPARAMS7GHWPARAMS7_31_16[15:0]GHWPARAMS7_15_0[15:0]
Reset value00000011000010000001000011101110
0xC160USB3DR_GBL_GDBGFIFO_SPACESPACE_AVAILABLE[15:0]Res.Res.Res.Res.Res.Res.Res.Res.FIFO_QUEUE_SELECT[8:0]
Reset value0000000001000010000000000

Table 873. USB3DR register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xC164USB3DR_GBL_
GDBGLTSSM
Res.RXELECIDLEX3_XS_SWAPPINGX3_DS_HOST_SHUTDOWNPRTDIRECTIONLTDBTIMEOUTLTDBLINKSTATE[3:0]LTDBSUBSTATE[3:0]ELASTICBUFFERMODETXELECLDLERXPOLARITYTXDETRXLOOPBACKLTDBPHYCMDSTATE[2:0]POWERDOWN[1:0]RXEQTRAINTXDEEMPHASIS[1:0]LTDBCLKSTATE[2:0]TXSWINGRXTERMINATIONTXONESZEROS
Reset value1000001000000010000010001000000
0xC168USB3DR_GBL_
GDBGLNMCC
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LNMCC_BERC[8:0]
Reset value000000000
0xC16CUSB3DR_GBL_
GDBGBMU
BMU_BCU[23:0]BMU_DCU
[3:0]
BMU_CCU
[3:0]
Reset value00000000000000000000000000000000
0xC170USB3DR_GBL_
GDBGLSPMUX
_HST
Res.Res.Res.Res.Res.Res.Res.Res.LOGIC_ANALYZER_TRACE
[7:0]
Res.Res.HOSTSELECT[13:0]
Reset value0011111100000000000000
0xC174USB3DR_GBL_
GDBGLSP
LSPDEBUG[31:0]
Reset value00000000000000000000000000000000
0xC178USB3DR_GBL_
GDBGEPINFO0
EPDEBUG[31:16]
Reset value00000000000000000000000000000000
0xC17CUSB3DR_GBL_
GDBGEPINFO1
EPDEBUG[31:16]
Reset value00000000100000000000000000000000
0xC180USB3DR_GBL_
GPRTBIMAP_
HSLO
BINUM8[3:0]BINUM7[3:0]BINUM6[3:0]BINUM5[3:0]BINUM4[3:0]BINUM3[3:0]BINUM2[3:0]BINUM1[3:0]
Reset value00000000000000000000000000000000
0xC184USB3DR_GBL_
GPRTBIMAP_
HSHI
Res.Res.Res.Res.BINUM15[3:0]BINUM14[3:0]BINUM13[3:0]BINUM12[3:0]BINUM11[3:0]BINUM10[3:0]BINUM9[3:0]
Reset valueXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0xC188USB3DR_GBL_
GPRTBIMAP_
FSLO
BINUM8[3:0]BINUM7[3:0]BINUM6[3:0]BINUM5[3:0]BINUM4[3:0]BINUM3[3:0]BINUM2[3:0]BINUM1[3:0]
Reset value00000000000000000000000000000000
0xC18CUSB3DR_GBL_
GPRTBIMAP_
FSHI
Res.Res.Res.Res.BINUM15[3:0]BINUM14[3:0]BINUM13[3:0]BINUM12[3:0]BINUM11[3:0]BINUM10[3:0]BINUM9[3:0]
Reset valueXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0xC190 -
0xC198
ReservedRes.
0xC19CUSB3DR_GBL_
GUCTL2
Res.Res.Res.Res.Res.Res.Res.EN_HP_PM_TIMER[6:0]NOLOWPWR
DUR[3:1]
RST_ACTBITLATERRes.ENABLEEPCACHEEVICTDISABLECFCRXPINGDURATION
[5:0]
TXPING
DURATION[4:0]
Reset value000000000000010000001101
0xC1A0 -
0xC1FC
ReservedRes.

Table 873. USB3DR register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xC200USB3DR_GBL_
GUSB2PHY
CFG
PHYSOFTRSTU2_FREECLK_EXISTSULPI_LPM_WITH_OPMODE_CHKHSIC_CON_WIDTH_ADJ[1:0]INV_SEL_HSICRes.LSTRD
[2:0]
LSIPD
[2:0]
ULPIEXTVBUSINDICATORULPIEXTVBUSDNVRes.PHYSOFTRSTULPIAUTORESRes.USBTRDTIM
[3:0]
XCVRDLYENBLSLPMPHYSELSUSPENDUSB20FSINTFULPI_UTMI_SELPHYIFTOUTCAL[2:0]
Reset value01000000000000000010000000000
0xC204 -
0xC27C
ReservedRes.
0xC280USB3DR_GBL_
GUSB2PHY
ACC_UTMI
Res.Res.Res.Res.Res.DISUIPIDRVRNEWREGREQVSTSDONEVSTSBSYREGWRREGADDR[5:0]EXTREGADDR[7:0]REGDATA[7:0]
Reset value000000000000000000000000000
0xC284 -
0xC2BC
ReservedRes.
0xC2C0USB3DR_GBL_
GUSB3PIPE
CTL
PHYSOFTRSTHSTPRTCMPLU2P3OKDISRXDETP3UX_EXIT_IN_PXPING_ENHANCEMENT_ENU1U2EXITFAIL_TO_RECOVREQUEST_P1P2P3STARTRXDETU3RXDETDISRXDETU3RXDETDELAYP1P2P3[2:0]DELAYP1TRANSSUSPENDENABLEDATWIDTH[1]DATWIDTH[0]ABORTRXDETINU2SKIPRXDETLFPSPOLIGNP3P2TRANOKP3EXSIGP2LFPSFILTERRX_DETECT_TO_POLLING_LFPS_CONTROLSSICENTX_SWINGTX_MARGIN[2:0]SS_TX_DE_EMPHASIS[1:0]ELASTIC_BUFFER_MODE
Reset value00000000000011001000000000000010
0xC2C4 -
0xC2FC
ReservedRes.
0xC300USB3DR_GBL_
GTXFIFOSIZ0
TXFSTADDR_N[15:0]TXFDEP_N[15:0]
Reset value00000000000000000000000001000010
0xC304USB3DR_GBL_
GTXFIFOSIZ1
TXFSTADDR_N[15:0]TXFDEP_N[15:0]
Reset value00000000010000100000000110000100
0xC308USB3DR_GBL_
GTXFIFOSIZ2
TXFSTADDR_N[15:0]TXFDEP_N[15:0]
Reset value00000001110001100000000110000100
0xC30CUSB3DR_GBL_
GTXFIFOSIZ3
TXFSTADDR_N[15:0]TXFDEP_N[15:0]
Reset value00000011010010100000000110000100
0xC310USB3DR_GBL_
GTXFIFOSIZ4
TXFSTADDR_N[15:0]TXFDEP_N[15:0]
Reset value00000100110011100000000110000100
0xC314USB3DR_GBL_
GTXFIFOSIZ5
TXFSTADDR_N[15:0]TXFDEP_N[15:0]
Reset value00000110010100100000000110000100

Table 873. USB3DR register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xC318USB3DR_GBL_GTXFIFOSIZ6TXFSTADDR_N[15:0]TXFDEP_N[15:0]
Reset value00000111110101100000000110000100
0xC31CUSB3DR_GBL_GTXFIFOSIZ7TXFSTADDR_N[15:0]TXFDEP_N[15:0]
Reset value00001001010110100000000110000100
0xC320USB3DR_GBL_GTXFIFOSIZ8TXFSTADDR_N[15:0]TXFDEP_N[15:0]
Reset value00001010110111100000000110000100
0xC324USB3DR_GBL_GTXFIFOSIZ9TXFSTADDR_N[15:0]TXFDEP_N[15:0]
Reset value00001100011000100000000110000100
0xC328USB3DR_GBL_GTXFIFOSIZ10TXFSTADDR_N[15:0]TXFDEP_N[15:0]
Reset value00001101111001100000000110000100
0xC32CUSB3DR_GBL_GTXFIFOSIZ11TXFSTADDR_N[15:0]TXFDEP_N[15:0]
Reset value00001111011010100000000110000100
0xC330 - 0xC37CReservedRes.
0xC380USB3DR_GBL_GRXFIFOSIZ0RXFSTADDR_N[15:0]RXFDEP_N[15:0]
Reset value00000000000000000000000110000101
0xC384 + 0x4 * (x-1), (x = 1 to 2)USB3DR_GBL_GRXFIFOSIZxRXFSTADDR_N[15:0]RXFDEP_N[15:0]
Reset value00000001100001010000000000000000
0xC38C - 0xC3FCReservedRes.
0xC400USB3DR_GBL_GEVNTADRLOEVNTADRLO[31:0]
Reset value00000000000000000000000000000000
0xC404USB3DR_GBL_GEVNTADRHIEVNTADRHI[31:0]
Reset value00000000000000000000000000000000
0xC408USB3DR_GBL_GEVNTSIZEVNTINTPTMASKEVENTSIZ[15:0]
Reset value0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.XXXXXXXXXXXXXXXXX
0xC40CUSB3DR_GBL_GEVNTCOUNTEVNT_HANDLER_BUSYEVNTCOUNT[15:0]
Reset value0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.00000000000000000
0xC410 - 0xC5FCReservedRes.
0xC600USB3DR_GBL_GHWPARAMS8GHWPARAMS8_32_0[31:0]
Reset value000000000000000000000011111101100
ST logo
ST logo

Table 873. USB3DR register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xC610USB3DR_GBL_GTXFIFOPRI_DEVRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GTXFIFOPRIDEV[11:0]
Reset value00000000000
0xC614ReservedRes.
0xC618USB3DR_GBL_GTXFIFOPRI_HSTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value000
0xC61CUSB3DR_GBL_GRXFIFOPRI_HSTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value000
0xC620ReservedRes.
0xC624USB3DR_GBL_GDMAHL_RATIORes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HSTRXFIFO[4:0]Res.Res.Res.Res.HSTTXFIFO[4:0]
Reset value0010000100
0xC628 - 0xC62CReservedRes.
0xC630USB3DR_GBL_GFLADJGFLADJ_REFCLK_240MHZDECR_PLS1GFLADJ_REFCLK_240MHZ_DECR[6:0]GFLADJ_REFCLK_LPM_SELRes.GFLADJ_REFCLK_FLADJ[13:8]GFLADJ_REFCLK_FLADJ[7:0]GFLADJ_30MHZ_SDBND_SELRes.GFLADJ_30MHZ[5:0]
Reset value00000000000000000000000000000
0xC634 - 0xC63CReservedRes.
0xC640DWC_USB3_GBL_GUSB2RHB_CTLRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OVRD_L1_TIMEOUT[3:0]
Reset value0000
0xC644 - 0xC6FCReservedRes.
0xC700USB3DR_DEV_DCFGRes.Res.Res.Res.Res.Res.Res.Res.IGNSTRMPPLPMCAPNUMP[4:0]INTRNUM[4]INTRNUM[3:0]Res.Res.DEVADDR[6:0]DEVSPD[2:0]
Reset valueXXXXXXXXXXXXXXXXXXXXX

Table 873. USB3DR register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xC704USB3DR_DEV_DCTLRUN_STOPCSFTRSTRes.HIRDTHRES[4:0]LPM_NYET_THRES[3:0]KEEPCONNECTL1HIBERNATIONENCRSCSSRes.Res.Res.INITU2ENAACCEPTU2ENAINITU1ENAACCEPTU1ENAULSTCHNGREQ[3:0]TSTCTL[3:0]Res.
Reset valueXXXXXXXXXXXXXXXXXXXXXXXXXXX
0xC708USB3DR_DEV_DEVTENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ECCERRENRes.L1WKUPEVTENRes.VENDEVTSTRCVDENRes.Res.ERRTICERREVTENL1SUSPENSOFTEVTENU3L2L1SUSPENHIBERNATIONREQEVTENWKUPEVTENULSTCNGENCONNECTDONEEVTENUSBRSTEVTENDISSCONNEVTEN
Reset valueXXXXXXXXXXXXX
0xC70CUSB3DR_DEV_DSTSRes.Res.DCNRDSRERes.Res.RSSSSSCOREIDLEDEVCTRLHLTUSBLNKST[3:0]RXFIFOEMPTYSOFFN[13]SOFFN[12:0]CONNECTSPD[2:0]
Reset valueX0XXXXXXXXXXXXXXXXXXXXXXXXXX
0xC710USB3DR_DEV_DGCMDPARPARAMETER[31:0]
Reset value00000000000000000000000000000000
0xC714USB3DR_DEV_DGCMDRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CMDSTATUS[3:0]Res.CMDACTRes.CMDIOCCMDTYP[7:0]
Reset valueXXXXXXXXXXXXXX
0xC718 - 0xC71CReservedRes.
0xC720USB3DR_DEV_DALEPENAUSBACTEP[31:0]
Reset value00000000000000000000000000000000
0xC724 - 0xCFFCReservedRes.
0xC800 + n*0x10, (n = 0 to 23)USB3DR_DEV_DEPCMDPAR2nPARAMETER[31:0]
Reset value00000000000000000000000000000000
0xC804 + n*0x14, (n = 0 to 23)USB3DR_DEV_DEPCMDPAR1nPARAMETER[31:0]
Reset value00000000000000000000000000000000
0xC808 + n*0x10, (n = 0 to 23)USB3DR_DEV_DEPCMDPAR0nPARAMETER[31:0]
Reset value00000000000000000000000000000000
0xC80C + n*0x10, (n = 0 to 23)USB3DR_DEV_DEPCMDnCOMMANDPARAM[15:0]CMDSTATUS[3:0]HIPRI_FORCERMCMDACTRes.CMDIOCRes.Res.Res.Res.CMDTYP[3:0]
Reset value000000000000000000000000000
ST logo
ST logo

Table 873. USB3DR register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xC980 - 0xC9FCReservedRes.
0xCA00USB3DR_DEV_IMODDEVICE_IMODC[15:0]DEVICE_IMODI[15:0]
Reset value00000000000000000000000000000000
0xCA04 - 0xCC2CReservedRes.
0xCC30USB3DR_BC_BCFGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IDDIG_SELCHIRP_EN
Reset valueXX
0xCC34ReservedRes.
0xCC38USB3DR_BC_BCEVTRes.Res.Res.Res.Res.Res.Res.MV_CHNGEVNTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MULTVALIDBC[4:0]
Reset valueX00000
0xCC38USB3DR_BC_BCEVTENRes.Res.Res.Res.Res.Res.Res.MV_CHNGEVNTENARes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset valueXRes.0Res.
0xCC3C - 0xCFFCReservedRes.
0xD000USB3DR_LINK_LU1LFPSRX_TIMRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.U1U2_LFPS_EXIT_RX_CLK [7:0]U1U2_EXIT_RSP_RX_CLK [7:0]
Reset value0001111100011111
0xD004 - 0xD01CReservedRes.
0xD020USB3DR_LINK_SETTINGSRes.U1_RESID_TIMER_US[2:0]Res.PM_LC_TIMER_US[2:0]PM_ENTRY_TIMER_US[3:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value1001011001Res.0Res.

Table 873. USB3DR register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xD024USB3DR_LINK_LLUCTLRes.Res.SUPPORT_P4_PGSUPPORT_P4Res.Res.Res.Res.DISRXDET_LTSSM_TIMER_OVRDRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.U2P3CPMOKEN_RESET_PIPE_AFTER_PHY_MUXRes.Res.Res.MASK_PIPE_RESETRes.NO_UX_EXIT_P0_TRANSRes.Res.Res.Res.Res.
Reset value0010010
0xD028USB3DR_LINK_LPTMDP_DELAYRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.P3CPMP4_RESIDENCY[11:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value000000000011

Refer to Section 2.4 on page 228 for the register boundary addresses.