OSDN Git Service

phy: Add set_mode callback
authorDavid Lechner <david@lechnology.com>
Mon, 9 May 2016 23:39:59 +0000 (18:39 -0500)
committerKishon Vijay Abraham I <kishon@ti.com>
Mon, 4 Jul 2016 11:49:22 +0000 (17:19 +0530)
commit300eb0139cf27044c67f6005ff17b8434c7843f0
tree62c0de657f6928db11a9139c3c552b877ec7958b
parent65048f4dd9fae7335b48ab23a879119c0e7fa105
phy: Add set_mode callback

The initial use for this is for PHYs that have a mode related to USB OTG.
There are several SoCs (e.g. TI OMAP and DA8xx) that have a mode setting
in the USB PHY to override OTG VBUS and ID signals.

Of course, the enum can be expaned in the future to include modes for
other types of PHYs as well.

Suggested-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: David Lechner <david@lechnology.com>
drivers/phy/phy-core.c
include/linux/phy/phy.h