]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: Pinebook Pro: Fix USB and the USB attached keyboard
authorPeter Robinson <pbrobinson@gmail.com>
Mon, 8 Jun 2020 22:50:29 +0000 (23:50 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Tue, 7 Jul 2020 11:45:56 +0000 (19:45 +0800)
The built in keyboard on the Pinebook Pro is attached via USB so
fix this up to ensure USB works as expected.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
configs/pinebook-pro-rk3399_defconfig
include/configs/pinebook-pro-rk3399.h

index 21eecf477c0628dc02da57741e82f45948d19dcd..733463556a2f25b06c6c4136ea5ed9304863e0ef 100644 (file)
@@ -61,6 +61,8 @@ CONFIG_RAM_RK3399_LPDDR4=y
 CONFIG_DM_RESET=y
 CONFIG_BAUDRATE=1500000
 CONFIG_DEBUG_UART_SHIFT=2
+CONFIG_USE_PREBOOT=y
+CONFIG_PREBOOT="usb start"
 CONFIG_ROCKCHIP_SPI=y
 CONFIG_SYSRESET=y
 CONFIG_USB=y
@@ -68,8 +70,11 @@ 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_DWC3=y
 CONFIG_ROCKCHIP_USB2_PHY=y
+CONFIG_DM_KEYBOARD=y
 CONFIG_USB_KEYBOARD=y
 CONFIG_USB_HOST_ETHER=y
 CONFIG_USB_ETHER_ASIX=y
index 4bc8802d119928bc898ce65af15e041876551d3f..d910830582493e402294f0b683f10400442793c9 100644 (file)
@@ -25,4 +25,7 @@
 
 #define SDRAM_BANK_SIZE                        (2UL << 30)
 
+#define CONFIG_USB_OHCI_NEW
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS     2
+
 #endif