[U-Boot] [U-Boot, v7, 4/8] rockchip: configs: rk3328: enable dwc2 driver and config fastboot

Philipp Tomsich philipp.tomsich at theobroma-systems.com
Mon Jun 26 15:52:38 UTC 2017


On Fri, 23 Jun 2017, Meng Dongyang wrote:

> Config dwc2 driver support host and gadget function. Add support
> of fastboot function.
>
> Signed-off-by: Meng Dongyang <daniel.meng at rock-chips.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Acked-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
> ---
>
> Changes in v7: None
> Changes in v6: None
> Changes in v5: None
> Changes in v4: None
> Changes in v3: None
> Changes in v2: None
>
> configs/evb-rk3328_defconfig    | 19 +++++++++++++++++--
> include/configs/rk3328_common.h |  3 +++
> 2 files changed, 20 insertions(+), 2 deletions(-)
>
> diff --git a/configs/evb-rk3328_defconfig b/configs/evb-rk3328_defconfig
> index 1384e87..9739fd6 100644
> --- a/configs/evb-rk3328_defconfig
> +++ b/configs/evb-rk3328_defconfig
> @@ -31,12 +31,27 @@ CONFIG_DEBUG_UART_SHIFT=2
> CONFIG_SYS_NS16550=y
> CONFIG_SYSRESET=y
> CONFIG_USB=y
> -CONFIG_USB_XHCI_HCD=y
> -CONFIG_USB_XHCI_DWC3=y
> CONFIG_USB_EHCI_HCD=y
> CONFIG_USB_EHCI_GENERIC=y
> CONFIG_USB_OHCI_HCD=y
> CONFIG_USB_OHCI_GENERIC=y
> CONFIG_USB_STORAGE=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
> CONFIG_USE_TINY_PRINTF=y
> CONFIG_ERRNO_STR=y
> diff --git a/include/configs/rk3328_common.h b/include/configs/rk3328_common.h
> index 5a06244..2cace24 100644
> --- a/include/configs/rk3328_common.h
> +++ b/include/configs/rk3328_common.h
> @@ -59,6 +59,9 @@
>
> #endif
>
> +/* dwc2 otg */
> +#define CONFIG_USB_DWC2
> +

Please convert this to a Kconfig entry.
You can then select it from the ROCKCHIP_RK322X (and others), as needed.

> /* rockchip ohci host driver */
> #define CONFIG_USB_OHCI_NEW
> #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS	1
>


More information about the U-Boot mailing list