uboot-d1: add bootloader for upcoming d1 target
[openwrt/staging/mans0n.git] / package / boot / uboot-d1 / patches / 0054-sunxi-Fix-default-enablement-of-USB-host-drivers.patch
1 From 64de4fd71d35c6154a0f7b4c7c02cb24e978a4ce Mon Sep 17 00:00:00 2001
2 From: Samuel Holland <samuel@sholland.org>
3 Date: Fri, 5 Aug 2022 23:45:19 -0500
4 Subject: [PATCH 54/90] sunxi: Fix default-enablement of USB host drivers
5
6 We tried to enable USB_EHCI_GENERIC and USB_OHCI_GENERIC by default.
7 This did not work because those symbols depend on USB_EHCI_HCD and
8 USB_OHCI_HCD, which were not enabled. Fix this by implying all four.
9
10 Signed-off-by: Samuel Holland <samuel@sholland.org>
11 ---
12 arch/arm/Kconfig | 4 ++++
13 drivers/usb/host/Kconfig | 2 --
14 2 files changed, 4 insertions(+), 2 deletions(-)
15
16 --- a/arch/arm/Kconfig
17 +++ b/arch/arm/Kconfig
18 @@ -1142,7 +1142,11 @@ config ARCH_SUNXI
19 imply SYSRESET
20 imply SYSRESET_WATCHDOG
21 imply SYSRESET_WATCHDOG_AUTO
22 + imply USB_EHCI_GENERIC
23 + imply USB_EHCI_HCD
24 imply USB_GADGET
25 + imply USB_OHCI_GENERIC
26 + imply USB_OHCI_HCD
27 imply WDT
28
29 config ARCH_U8500
30 --- a/drivers/usb/host/Kconfig
31 +++ b/drivers/usb/host/Kconfig
32 @@ -281,7 +281,6 @@ config USB_EHCI_ZYNQ
33 config USB_EHCI_GENERIC
34 bool "Support for generic EHCI USB controller"
35 depends on DM_USB
36 - default ARCH_SUNXI
37 ---help---
38 Enables support for generic EHCI controller.
39
40 @@ -343,7 +342,6 @@ config USB_OHCI_PCI
41
42 config USB_OHCI_GENERIC
43 bool "Support for generic OHCI USB controller"
44 - default ARCH_SUNXI
45 ---help---
46 Enables support for generic OHCI controller.
47