diff mbox

[U-Boot,v2,06/10] configs: rk3328: enable dwc2 driver and config for fastboot

Message ID 1496316301-5353-1-git-send-email-daniel.meng@rock-chips.com
State Superseded
Delegated to: Simon Glass
Headers show

Commit Message

Meng Dongyang June 1, 2017, 11:25 a.m. UTC
Config dwc2 driver support host and gadget function. Add support
of fastboot function.

Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---

Changes in v2: None

 configs/evb-rk3328_defconfig    | 14 ++++++++++++++
 include/configs/rk3328_common.h |  3 +++
 2 files changed, 17 insertions(+)

Comments

Simon Glass June 5, 2017, 9:31 p.m. UTC | #1
Config dwc2 driver support host and gadget function. Add support
of fastboot function.

Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---

Changes in v2: None

 configs/evb-rk3328_defconfig    | 14 ++++++++++++++
 include/configs/rk3328_common.h |  3 +++
 2 files changed, 17 insertions(+)

Applied to u-boot-rockchip, thanks!
diff mbox

Patch

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