Skip to contentSkip to conversation

configs: rk3328: enable dwc2 driver and config for fastboot

PATCH Superseded Meng Dongyang 1 participant 1 message Jun 6, 2017

v3 of 8 Superseded Latest is v8 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 6/10 configs: rk3328: enable dwc2 driver and config for fastboot

Config dwc2 driver support host and gadget function. Add support of fastboot function.

---

Changes in v3: None
Changes in v2: None

 configs/evb-rk3328_defconfig    | 14 ++++++++++++++
 include/configs/rk3328_common.h |  3 +++
 2 files changed, 17 insertions(+)
configs/evb-rk3328_defconfig +14 -0
index 57aee02..833bffc 100644
@@ -42,3 +42,17 @@ CONFIG_USB_OHCI_GENERIC=y
 CONFIG_USB_XHCI_DWC3=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_RK=y
+CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_USB_GADGET_DUALSPEED=y
+CONFIG_USB_GADGET_DWC2_OTG=y
+CONFIG_USB_FUNCTION_FASTBOOT=y
+CONFIG_G_DNL_MANUFACTURER="Rockchip"
+CONFIG_G_DNL_VENDOR_NUM=0x2207
+CONFIG_G_DNL_PRODUCT_NUM=0x330a
+CONFIG_FASTBOOT=y
+CONFIG_CMD_FASTBOOT=y
+CONFIG_FASTBOOT_FLASH=y
+CONFIG_FASTBOOT_FLASH_MMC_DEV=1
+CONFIG_FASTBOOT_BUF_ADDR=0x00800800
+CONFIG_FASTBOOT_BUF_SIZE=0x08000000
include/configs/rk3328_common.h +3 -0
index cc6c890..9121db1 100644
@@ -61,6 +61,9 @@
 
 #endif
 
+/* dwc2 otg */
+#define CONFIG_USB_DWC2
+
 /* rockchip ohci host driver */
 #define CONFIG_USB_OHCI_NEW
 #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS	1
Signature · 1 line
1.9.1