usb: phy: omap-usb3: Improve DPLL parameter lookup code
authorRoger Quadros <rogerq@ti.com>
Tue, 9 Jul 2013 11:38:31 +0000 (14:38 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 29 Jul 2013 10:58:09 +0000 (13:58 +0300)
Use a mapping table (dpll_map) to match the possible system clock rates
to the appropriate DPLL parameters.

Introduce a function "omap_usb3_get_dpll_params()" that will
return the matching DPLL parameters for the given clock rate.

Also, bail out on phy init if DPLL locking fails.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>

No differences found