
Universal Serial Bus Interface – On-The-Go Module
21-30
Freescale Semiconductor
There are two operations that can be performed with the ULPI viewport, wake-up and read/write
operations. The wake-up operation is used to put the ULPI interface into normal operation mode and
re-enable the clock if necessary. A wake-up operation is required before accessing the registers when the
ULPI interface is operating in low power mode, serial mode, or carkit mode. The ULPI state can be
determined by reading the sync state bit (ULPI_SS). If this bit is set, then the ULPI interface is running in
normal operating mode and can accept read/write operations. If ULPI_SS is cleared, then read/write
operations are not executed. Undefined behavior results if a read or write operation is performed when
ULPI_SS is cleared. To execute a wake-up operation, write all 32-bits of the ULPI VIEWPORT where
ULPI_PORT is constructed appropriately and the ULPI_WU bit is set and the ULPI_RUN bit is cleared.
Poll the ULPI VIEWPORT until ULPI_WU is cleared for the operation to complete.
To execute a read or write operation, write all 32-bits of the ULPI VIEWPORT where ULPI_DATWR,
ULPI_ADDR, ULPI_PORT, ULPI_RW are constructed appropriately and the ULPI_RUN bit is set. Poll
the ULPI VIEWPORT until ULPI_RUN is cleared for the operation to complete. For read operations,
ULPI_DATRD is valid after ULPI_RUN is cleared.
The polling method above can be replaced with interrupts using the ULPI interrupt defined in the USBSTS
and USBINTR registers. When a wake-up or read/write operation completes, the ULPI interrupt is set.
Table 21-29. ULPI VIEWPORT Field Descriptions
Field
Description
31
ULPI_WU
ULPI wake-up. Setting this bit begins the wake-up operation. This bit automatically clears after the
wake-up is complete. After this bit is set, it can not be cleared by software.
Note: The driver must never execute a wake-up and a read/write operation at the same time.
30
ULPI_RUN
ULPI run. Setting this bit begins a read/write operation. This bit automatically clears after the read/write is
complete. After this bit is set, it can not be cleared by software.
Note: The driver must never execute a wake-up and a read/write operation at the same time.
29
ULPI_RW
Read/write. Selects between running a read or write operation to the ULPI.
0 Read
1 Write
28
Reserved, should be cleared.
27
ULPI_SS
Sync state. Represents the state of the ULPI interface. Before reading this bit, the ULPI_PORT field should
be set accordingly if used with the multi-port host. Otherwise, this field should always remain 0.
0 Any other state (that is, carkit, serial, low power).
1 Normal sync state.
26–24
ULPI_PORT
Port number. For wake-up or read/write operations this value selects the port number to which the ULPI
PHY is attached. Valid values are 0 and 1.
23–16
ULPI_ADDR
Data address. When a read or write operation is commanded, the address of the operation is written to
this field.
15–8
ULPI_DATRD
Data read. After a read operation completes, the result is placed in this field.
7–0
ULPI_DATWR
Data write. When a write operation is commanded, the data to be sent is written to this field.
MCF5329 Reference Manual, Rev 3
Содержание MCF5329
Страница 106: ...ColdFire Core 3 32 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 126: ...Enhanced Multiply Accumulate Unit EMAC 4 20 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 148: ...Cache 5 22 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 154: ...Static RAM SRAM 6 6 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 184: ...Power Management 8 18 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 204: ...Reset Controller Module 10 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 220: ...System Control Module SCM 11 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 228: ...Crossbar Switch XBS 12 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 268: ...General Purpose I O Module 13 40 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 392: ...SDRAM Controller SDRAMC 18 30 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 436: ...Fast Ethernet Controller FEC 19 44 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 564: ...Liquid Crystal Display Controller LCDC 22 44 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 594: ...FlexCAN 23 30 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 678: ...Pulse Width Modulation PWM Module 26 22 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 684: ...Watchdog Timer Module 27 6 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 692: ...Programmable Interrupt Timers PIT0 PIT3 28 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 704: ...DMA Timers DTIM0 DTIM3 29 12 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 720: ...Queued Serial Peripheral Interface QSPI 30 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 754: ...UART Modules 31 34 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 770: ...I2 C Interface 32 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 790: ...Message Digest Hardware Accelerator MDHA 33 20 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 866: ...Debug Module 36 50 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 902: ...Register Memory Map Quick Reference A 26 Freescale Semiconductor MCF5329 Reference Manual Rev 3...