[U-Boot] [PATCH 6/8] configs: rk3328: enable dwc2 driver and config for fastboot

Meng Dongyang daniel.meng at rock-chips.com
Wed May 17 10:26:09 UTC 2017


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

Signed-off-by: Meng Dongyang <daniel.meng at rock-chips.com>
---
 configs/evb-rk3328_defconfig    | 14 ++++++++++++++
 include/configs/rk3328_common.h |  3 +++
 2 files changed, 17 insertions(+)

diff --git a/configs/evb-rk3328_defconfig b/configs/evb-rk3328_defconfig
index 57aee02..833bffc 100644
--- a/configs/evb-rk3328_defconfig
+++ b/configs/evb-rk3328_defconfig
@@ -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
diff --git a/include/configs/rk3328_common.h b/include/configs/rk3328_common.h
index cc6c890..9121db1 100644
--- a/include/configs/rk3328_common.h
+++ b/include/configs/rk3328_common.h
@@ -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
-- 
1.9.1




More information about the U-Boot mailing list