[PATCH 3/3] arm: sunxi: Use "imply" for USB without further guards

Tom Rini trini at konsulko.com
Fri Nov 15 17:53:59 CET 2024


Given that ARCH_SUNXI already implies that USB_GADGET should be enable,
we should also imply USB being enabled.

Signed-off-by: Tom Rini <trini at konsulko.com>
---
Is this a tiny bit of a cheat to avoid patch 1/8 of Simon's bootstd
series? Yes, a little. But it's also correct I believe.

Cc: Andre Przywara <andre.przywara at arm.com>
Cc: Simon Glass <sjg at chromium.org>
---
 arch/arm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 7282c4123b08..3ebda07b00c1 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1177,7 +1177,6 @@ config ARCH_SUNXI
 	select SUNXI_GPIO
 	select SYS_NS16550
 	select SYS_THUMB_BUILD if !ARM64
-	select USB if DISTRO_DEFAULTS
 	select USB_KEYBOARD if DISTRO_DEFAULTS && USB_HOST
 	select USB_STORAGE if DISTRO_DEFAULTS && USB_HOST
 	select SPL_USE_TINY_PRINTF if SPL
@@ -1203,6 +1202,7 @@ config ARCH_SUNXI
 	imply SYSRESET
 	imply SYSRESET_WATCHDOG
 	imply SYSRESET_WATCHDOG_AUTO
+	imply USB
 	imply USB_GADGET
 	imply WDT
 
-- 
2.43.0



More information about the U-Boot mailing list