mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 10:48:51 +00:00
928c4bdf9b
Based on discussion from this thread [1]. Adding omap-view port that helps us in using the generic ulpi framework for any ulpi phy ops using the INSNREG05_ULPI viewport reg available on omap platform. Currently ehci ports are available on omap3/4 platforms so enable the same for beagle and panda, patch is tested on the same boards. Thanks to Igor Grinberg <grinberg@compulab.co.il> for reviewing the omap-ehci patches and suggesting this approach. [1]: http://www.mail-archive.com/u-boot@lists.denx.de/msg76076.html Tested-by: Stefano Babic <sbabic@denx.de> Acked-by: Igor Grinberg <grinberg@compulab.co.il> Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
27 lines
899 B
Text
27 lines
899 B
Text
Reference code ""drivers/usb/ulpi/omap-ulpi-viewport.c"
|
|
|
|
Contains the ulpi read write api's to perform
|
|
any ulpi phy port access on omap platform.
|
|
|
|
On omap ehci reg map contains INSNREG05_ULPI
|
|
register which offers the ulpi phy access so
|
|
any ulpi phy commands should be passsed using this
|
|
register.
|
|
|
|
omap-ulpi-viewport.c is a low level function
|
|
implementation of "drivers/usb/ulpi/ulpi.c"
|
|
|
|
To enable and use omap-ulpi-viewport.c
|
|
we require CONFIG_USB_ULPI_VIEWPORT_OMAP and
|
|
CONFIG_USB_ULPI be enabled in config file.
|
|
|
|
Any ulpi ops request can be done with ulpi.c
|
|
and soc specific binding and usage is done with
|
|
omap-ulpi-viewport implementation.
|
|
|
|
Ex: scenario:
|
|
omap-ehci driver code requests for ulpi phy reset if
|
|
ehci is used in phy mode, which will call ulpi phy reset
|
|
the ulpi phy reset does ulpi_read/write from viewport
|
|
implementation which will do ulpi reset using the
|
|
INSNREG05_ULPI register.
|