Govindraj.R | c5e5707 | 2012-02-06 03:55:32 +0000 | [diff] [blame^] | 1 | Reference code ""drivers/usb/ulpi/omap-ulpi-viewport.c" |
| 2 | |
| 3 | Contains the ulpi read write api's to perform |
| 4 | any ulpi phy port access on omap platform. |
| 5 | |
| 6 | On omap ehci reg map contains INSNREG05_ULPI |
| 7 | register which offers the ulpi phy access so |
| 8 | any ulpi phy commands should be passsed using this |
| 9 | register. |
| 10 | |
| 11 | omap-ulpi-viewport.c is a low level function |
| 12 | implementation of "drivers/usb/ulpi/ulpi.c" |
| 13 | |
| 14 | To enable and use omap-ulpi-viewport.c |
| 15 | we require CONFIG_USB_ULPI_VIEWPORT_OMAP and |
| 16 | CONFIG_USB_ULPI be enabled in config file. |
| 17 | |
| 18 | Any ulpi ops request can be done with ulpi.c |
| 19 | and soc specific binding and usage is done with |
| 20 | omap-ulpi-viewport implementation. |
| 21 | |
| 22 | Ex: scenario: |
| 23 | omap-ehci driver code requests for ulpi phy reset if |
| 24 | ehci is used in phy mode, which will call ulpi phy reset |
| 25 | the ulpi phy reset does ulpi_read/write from viewport |
| 26 | implementation which will do ulpi reset using the |
| 27 | INSNREG05_ULPI register. |