UPSTREAM: phy: Add set_mode callback
authorDavid Lechner <david@lechnology.com>
Mon, 9 May 2016 23:39:59 +0000 (18:39 -0500)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 7 Oct 2016 08:32:58 +0000 (16:32 +0800)
commitf17ca45e719d7c996728a5db828aa56a5357d983
treeafac23cf06ef2357eb626eb39f8a87ff9b84934e
parentc0a875c0606c78cc0ffbd5b02aa704628ad44aed
UPSTREAM: 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.

Change-Id: Iebc730d7e41c2910fa1be98cbf275d2c73358050
Suggested-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit 300eb0139cf27044c67f6005ff17b8434c7843f0)
drivers/phy/phy-core.c
include/linux/phy/phy.h