[2/4] configs: roc-pc-rk3399:fix up USB support

Message ID 20220902082444.83788-3-abbaraju.manojsai@amarulasolutions.com
State New
Headers show
Series
  • addition of configs for rockchip based roc-pc-rk3399 board
Related show

Commit Message

Manoj Sai Sept. 2, 2022, 8:24 a.m. UTC
- Fix up USB config options so keyboards and other USB devices work .

- Update the number of ports of the Usb root hub to configuration of
  CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS .

USB device tree:
  1  Hub (12 Mb/s, 0mA)
      U-Boot Root Hub
  1  Hub (12 Mb/s, 0mA)
  |   U-Boot Root Hub
  |
  +-2  Hub (12 Mb/s, 100mA)
        USB 2.0 Hub [MTT]

 1  Hub (5 Gb/s, 0mA)
    U-Boot XHCI Host Controller

Signed-off-by: Manoj Sai <abbaraju.manojsai@amarulasolutions.com>
Signed-off-by: Da Xue <da.xue@libretech.co>
Signed-off-by: dsx724 <da@lessconfused.com>
---
 configs/roc-pc-rk3399_defconfig | 3 +++
 1 file changed, 3 insertions(+)

Patch

diff --git a/configs/roc-pc-rk3399_defconfig b/configs/roc-pc-rk3399_defconfig
index 84e82da3cf..ffd809687b 100644
--- a/configs/roc-pc-rk3399_defconfig
+++ b/configs/roc-pc-rk3399_defconfig
@@ -76,6 +76,9 @@  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_SYS_USB_OHCI_MAX_ROOT_PORTS=2
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GENERIC=y
 CONFIG_USB_KEYBOARD=y