diff mbox

[U-Boot,1/8] configs: rk3328: add support for usb and config ehci and ohci driver

Message ID 1495016512-13167-2-git-send-email-daniel.meng@rock-chips.com
State Accepted
Commit d16f514d8c7dfe7da86bfa1da6e4b7215d9eee44
Delegated to: Simon Glass
Headers show

Commit Message

Meng Dongyang May 17, 2017, 10:21 a.m. UTC
Add defconfig for usb and ehci and ohci controller, config maximal
number of ports of the root hub for ohci driver.

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

Comments

Simon Glass May 22, 2017, 8:26 p.m. UTC | #1
On 17 May 2017 at 04:21, Meng Dongyang <daniel.meng@rock-chips.com> wrote:
> Add defconfig for usb and ehci and ohci controller, config maximal
> number of ports of the root hub for ohci driver.
>
> Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
> ---
>  configs/evb-rk3328_defconfig    | 8 ++++++++
>  include/configs/rk3328_common.h | 3 +++
>  2 files changed, 11 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>
Simon Glass May 24, 2017, 12:47 a.m. UTC | #2
On 17 May 2017 at 04:21, Meng Dongyang <daniel.meng@rock-chips.com> wrote:
> Add defconfig for usb and ehci and ohci controller, config maximal
> number of ports of the root hub for ohci driver.
>
> Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
> ---
>  configs/evb-rk3328_defconfig    | 8 ++++++++
>  include/configs/rk3328_common.h | 3 +++
>  2 files changed, 11 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>

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

Patch

diff --git a/configs/evb-rk3328_defconfig b/configs/evb-rk3328_defconfig
index 96241f6..a4312b2 100644
--- a/configs/evb-rk3328_defconfig
+++ b/configs/evb-rk3328_defconfig
@@ -31,3 +31,11 @@  CONFIG_SYS_NS16550=y
 CONFIG_SYSRESET=y
 CONFIG_USE_TINY_PRINTF=y
 CONFIG_ERRNO_STR=y
+CONFIG_USB=y
+CONFIG_DM_USB=y
+CONFIG_CMD_USB=y
+CONFIG_USB_STORAGE=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_EHCI_GENERIC=y
+CONFIG_USB_OHCI_HCD=y
+CONFIG_USB_OHCI_GENERIC=y
diff --git a/include/configs/rk3328_common.h b/include/configs/rk3328_common.h
index b0dcd48..96b71c3 100644
--- a/include/configs/rk3328_common.h
+++ b/include/configs/rk3328_common.h
@@ -61,4 +61,7 @@ 
 
 #endif
 
+/* rockchip ohci host driver */
+#define CONFIG_USB_OHCI_NEW
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS	1
 #endif