usb: add devicetree helpers for determining dr_mode and phy_type
This adds two little devicetree helper functions for determining the dr_mode (host, peripheral, otg) and phy_type (utmi, ulpi,...) from the devicetree. Signed-off-by:Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by:
Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by:
Sascha Hauer <s.hauer@pengutronix.de> Acked-by:
Felipe Balbi <balbi@ti.com> Signed-off-by:
Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
- drivers/usb/phy/Makefile 1 addition, 0 deletionsdrivers/usb/phy/Makefile
- drivers/usb/phy/of.c 47 additions, 0 deletionsdrivers/usb/phy/of.c
- drivers/usb/usb-common.c 35 additions, 0 deletionsdrivers/usb/usb-common.c
- include/linux/usb/of.h 28 additions, 0 deletionsinclude/linux/usb/of.h
- include/linux/usb/otg.h 7 additions, 0 deletionsinclude/linux/usb/otg.h
- include/linux/usb/phy.h 9 additions, 0 deletionsinclude/linux/usb/phy.h
Loading
Please register or sign in to comment