public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] usb: dwc2_udc_otg: support 8-bit interface
@ 2016-06-06 15:57 Steve Rae
  2016-06-06 15:59 ` Marek Vasut
  0 siblings, 1 reply; 10+ messages in thread
From: Steve Rae @ 2016-06-06 15:57 UTC (permalink / raw)
  To: u-boot

Define CONFIG_USB_GADGET_DWC2_PHY_8_BIT to allow the
physical interface to be 8-bit (rather than 16-bit).

Signed-off-by: Steve Rae <srae@broadcom.com>
---

 drivers/usb/gadget/dwc2_udc_otg.c | 4 ++++
 include/configs/bcm28155_ap.h     | 1 +
 2 files changed, 5 insertions(+)

diff --git a/drivers/usb/gadget/dwc2_udc_otg.c b/drivers/usb/gadget/dwc2_udc_otg.c
index cb20b00..a95c8d5 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_PHY_8_BIT
+		|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)
diff --git a/include/configs/bcm28155_ap.h b/include/configs/bcm28155_ap.h
index 889e5db..e04cfbe 100644
--- a/include/configs/bcm28155_ap.h
+++ b/include/configs/bcm28155_ap.h
@@ -134,6 +134,7 @@
 #define CONFIG_SYS_CACHELINE_SIZE	64
 #define CONFIG_FASTBOOT_BUF_SIZE	(CONFIG_SYS_SDRAM_SIZE - SZ_1M)
 #define CONFIG_FASTBOOT_BUF_ADDR	CONFIG_SYS_SDRAM_BASE
+#define CONFIG_USB_GADGET_DWC2_PHY_8_BIT
 #define CONFIG_USB_GADGET_BCM_UDC_OTG_PHY
 #define CONFIG_USBID_ADDR		0x34052c46
 
-- 
1.8.5

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-06-06 21:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-06 15:57 [U-Boot] [PATCH] usb: dwc2_udc_otg: support 8-bit interface Steve Rae
2016-06-06 15:59 ` Marek Vasut
2016-06-06 16:15   ` Steve Rae
2016-06-06 16:30     ` Marek Vasut
2016-06-06 16:50       ` Steve Rae
2016-06-06 17:03         ` Marek Vasut
2016-06-06 18:58           ` Steve Rae
2016-06-06 19:10             ` Steve Rae
2016-06-06 21:05               ` Marek Vasut
2016-06-06 21:04             ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox