summaryrefslogtreecommitdiff
path: root/drivers/pwm
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2016-08-08 22:55:39 +0300
committerKishon Vijay Abraham I <kishon@ti.com>2016-08-12 12:29:10 +0300
commitb33ecca87df99fa6fff8a1d455de96f436934dcf (patch)
tree702cb28c5298050a8b159993742fc618491ad496 /drivers/pwm
parent29b4817d4018df78086157ea3a55c1d9424a7cfc (diff)
downloadlinux-b33ecca87df99fa6fff8a1d455de96f436934dcf.tar.xz
phy-sun4i-usb: Add support for peripheral-only mode
Use the new of_usb_get_dr_mode_by_phy() function to get the dr_mode from the musb controller node instead of assuming that having an id_det gpio means otg mode, and not having one means host mode. Implement peripheral-only mode by adding a sun4i_usb_phy0_get_id_det helper which looks at the dr_mode, always registering our extcon and always monitoring vbus. If dr_mode is not specified in the dts, do not register phy0 as we then do not know how to treat it. This is actually a good thing as this means we will not be registering phy0 on devices where the otg controller is not enabled in the devicetree. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/pwm')
0 files changed, 0 insertions, 0 deletions