RM0390 Rev 4 1191/1328
RM0390 USB on-the-go full-speed/high-speed (OTG_FS/OTG_HS)
1264
31.15.61 OTG_FS/OTG_HS register map
The table below gives the USB OTG register map and reset values.
Bits 3:2 Reserved, must be kept at reset value.
Bit 1 GATEHCLK: Gate HCLK
The application sets this bit to gate HCLK to modules other than the AHB Slave and Master
and wakeup logic when the USB is suspended or the session is not valid. The application
clears this bit when the USB is resumed or a new session starts.
Bit 0 STPPCLK: Stop PHY clock
The application sets this bit to stop the PHY clock when the USB is suspended, the session
is not valid, or the device is disconnected. The application clears this bit when the USB is
resumed or a new session starts.
Table 231. OTG_FS/OTG_HS register map and reset values
Offset
Register
name
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0x000
OTG_
GOTGCTL
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
CURMOD
OTGVER
BSVLD
ASVLD
DBCT
CIDSTS
Res.
Res.
Res.
EHEN
DHNPEN
HSHNPEN
HNPRQ
HNGSCS
BVALOVAL
BVALOEN
AVALOVAL
AVALOEN
VBVALOVAL
VBVALOEN
SRQ
SRQSCS
Reset value 000001 0000000000000
0x004
OTG_
GOTGINT
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
IDCHNG
DBCDNE
ADTOCHG
HNGDET
Res.
Res.
Res.
Res.
Res.
Res.
Res.
HNSSCHG
SRSSCHG
Res.
Res.
Res.
Res.
Res.
SEDET
Res.
Res.
Reset value 0 0 0 0 0 0 0
0x008
OTG_
GAHBCFG
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
PTXFELVL
TXFELVL
Res.
Res.
Res.
Res.
Res.
Res.
GINTMSK
Reset value 00 0
0x008
OTG_
GAHBCFG
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
PTXFELVL
TXFELVL
Res.
DMAEN
HBSTLEN
GINTMSK
Reset value 00 000000
0x00C
OTG_
GUSBCFG
Res.
FDMOD
FHMOD
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
TRDT
HNPCAP
SRPCAP
Res.
PHYSEL
Res.
Res.
Res.
TOCAL
Reset value 0 0 0 1 0 1 0 0 1 0 0 0
0x00C
OTG_
GUSBCFG
Res.
FDMOD
FHMOD
Res.
Res.
Res.
ULPIIPD
PTCI
PCCI
TSDPS
ULPIEVBUSI
ULPIEVBUSD
ULPICSM
ULPIAR
ULPIFSL
Res.
PHYLPC
Res.
TRDT
HNPCAP
SRPCAP
Res.
PHYSEL
Res.
Res.
Res.
TOCAL
Reset value 00 000000000 0 010100 1 000
0x010
OTG_
GRSTCTL
AHBIDL
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
TXFNUM
TXFFLSH
RXFFLSH
Res.
FCRST
PSRST
CSRST
Reset value 1 0000000 000