diff options
author | Steve Rae <srae@broadcom.com> | 2016-06-07 15:35:21 -0700 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2016-06-13 15:16:34 +0200 |
commit | f221db0ed5b4c6580abb4ab6fde5cbabaa348350 (patch) | |
tree | bc7116d7d94f6f2d9118751c2566af788a807b90 /drivers/usb/gadget/dwc2_udc_otg.c | |
parent | 6b3943f1b04be60f147ee540fbd72c4c7ea89f80 (diff) | |
download | u-boot-imx-f221db0ed5b4c6580abb4ab6fde5cbabaa348350.zip u-boot-imx-f221db0ed5b4c6580abb4ab6fde5cbabaa348350.tar.gz u-boot-imx-f221db0ed5b4c6580abb4ab6fde5cbabaa348350.tar.bz2 |
usb: dwc2_udc_otg: support 8-bit interface
Define CONFIG_USB_GADGET_DWC2_OTG_PHY_BUS_WIDTH_8 to allow the
physical interface to be 8-bit (rather than 16-bit).
Signed-off-by: Steve Rae <srae@broadcom.com>
Diffstat (limited to 'drivers/usb/gadget/dwc2_udc_otg.c')
-rw-r--r-- | drivers/usb/gadget/dwc2_udc_otg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/gadget/dwc2_udc_otg.c b/drivers/usb/gadget/dwc2_udc_otg.c index cb20b00..a23278d 100644 --- a/drivers/usb/gadget/dwc2_udc_otg.c +++ b/drivers/usb/gadget/dwc2_udc_otg.c @@ -415,7 +415,11 @@ static void reconfig_usbd(struct dwc2_udc *dev) |0<<7 /* Ulpi DDR sel*/ |0<<6 /* 0: high speed utmi+, 1: full speed serial*/ |0<<4 /* 0: utmi+, 1:ulpi*/ +#ifdef CONFIG_USB_GADGET_DWC2_OTG_PHY_BUS_WIDTH_8 + |0<<3 /* phy i/f 0:8bit, 1:16bit*/ +#else |1<<3 /* phy i/f 0:8bit, 1:16bit*/ +#endif |0x7<<0; /* HS/FS Timeout**/ if (dev->pdata->usb_gusbcfg) |