]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
usb: omap: ulpi: fix ulpi transceiver access
authorMichael Trimarchi <michael@amarulasolutions.com>
Mon, 10 Jun 2013 16:18:04 +0000 (18:18 +0200)
committerTom Rini <trini@ti.com>
Tue, 2 Jul 2013 13:21:15 +0000 (09:21 -0400)
commitb0857c45c1f535069acf90e671b5e4b6cf662caf
tree895dccd37b0010c63d69b5ea594604022282943c
parente6c7f86f03b0ad25e9ef70df3ee1989b6b789d7c
usb: omap: ulpi: fix ulpi transceiver access

This patch fix the omap access to the transceiver
configuration registers using the ulpi bus. As reported by
the documentation the bit31 is used only to check if the
transaction is done or still running and the reading and
writing operation have different offset and have different
values. What we need to do at the end of a transaction is
leave the bus in done state. Anyway an error using the ulpi
omap register is not recoverable so any error give out the
usage of this interface.

Tested on a custom OMAP5430 board with a TUSB1210 ULPI PHY
on USBB1.

Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Tested-by: Lubomir Popov <lpopov@mm-sol.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Tom Rini <trini@ti.com>
drivers/usb/ulpi/omap-ulpi-viewport.c