diff options
author | Daniel Mack | 2013-04-10 21:55:48 +0200 |
---|---|---|
committer | Felipe Balbi | 2013-05-28 18:22:24 +0200 |
commit | 9ad96e694c3d33465d099d0a2db1aae8cb358d1f (patch) | |
tree | 59f8eca1876acfd052926c59a7005b5e2222f3f5 /drivers/usb/musb/musb_core.c | |
parent | usb: musb: add musb_host_setup() and musb_host_cleanup() (diff) | |
download | kernel-qcow2-linux-9ad96e694c3d33465d099d0a2db1aae8cb358d1f.tar.gz kernel-qcow2-linux-9ad96e694c3d33465d099d0a2db1aae8cb358d1f.tar.xz kernel-qcow2-linux-9ad96e694c3d33465d099d0a2db1aae8cb358d1f.zip |
usb: musb: re-introduce musb->port_mode
Define MUSB_PORT_MODE_{HOST,GADGET,DUAL_ROLE} and store the
platform-specified value in struct musb.
Note that MUSB_PORT_MODE_HOST has to be set to 1 in order to match
existing device tree bindings which are already documented but in fact
unusued. For information on the bindings, please refer to
Documentation/devicetree/bindings/usb/omap-usb.txt
Documentation/devicetree/bindings/usb/am33xx-usb.txt
Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/musb_core.c')
-rw-r--r-- | drivers/usb/musb/musb_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 18da746ae6bf..a1aa75eb51e2 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -1813,6 +1813,7 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl) musb->board_set_power = plat->set_power; musb->min_power = plat->min_power; musb->ops = plat->platform_ops; + musb->port_mode = plat->mode; /* The musb_platform_init() call: * - adjusts musb->mregs |