]> git.baikalelectronics.ru Git - kernel.git/commit
usb: otg: utils: add facilities in phy lib to support multiple PHYs of same type
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 25 Jan 2013 02:33:22 +0000 (08:03 +0530)
committerFelipe Balbi <balbi@ti.com>
Fri, 25 Jan 2013 08:20:14 +0000 (10:20 +0200)
commitf970177065845ee95b5e16d4026a0beb18a3ec29
tree8ec5a2696ea94334b0625b27f15e329eb0c4ff93
parentf553a0849be1859248ec2a1deabe7c16540d052f
usb: otg: utils: add facilities in phy lib to support multiple PHYs of same type

In order to add support for multipe PHY's of the same type, new API's
for adding PHY and getting PHY has been added. Now the binding
information for the PHY and controller should be done in platform file
using usb_bind_phy API. And for getting a PHY, the device pointer of the
USB controller and an index should be passed. Based on the binding
information that is added in the platform file, usb_get_phy_dev will return the
appropriate PHY.
Already existing API's to add and get phy by type is not removed. These
API's are deprecated and will be removed once all the platforms start to
use the new API.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/otg/otg.c
include/linux/usb/phy.h