usb: add devicetree helpers for determining dr_mode and phy_type
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Thu, 13 Jun 2013 14:59:55 +0000 (17:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jun 2013 20:47:09 +0000 (13:47 -0700)
commit1c9af65357a309b60d78a442bd61d27cad458d00
tree5768aa043e4597b4691fcebe8bc7706487379ce8
parent2e270412968d961ecde347343ffa67dfe39f6c95
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>
drivers/usb/phy/Makefile
drivers/usb/phy/of.c [new file with mode: 0644]
drivers/usb/usb-common.c
include/linux/usb/of.h [new file with mode: 0644]
include/linux/usb/otg.h
include/linux/usb/phy.h