Skip to contentSkip to conversation

aspeed: Fix Kconfig logic on "DM_REGULATOR" and ASPEED_AST2500

PATCH In review Tom Rini 4 participants 8 messages Nov 15, 2024 – Dec 6, 2024

Subsystems (3)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/3 aspeed: Fix Kconfig logic on "DM_REGULATOR" and ASPEED_AST2500

It is not the case that we can only pick ASPEED_AST2500 if DM_REGULATOR is enabled, but rather choosing ASPEED_AST2500 means we must select DM_REGULATOR.

---
Cc: Maxim Sloyko <[email protected]>

---
 arch/arm/mach-aspeed/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-aspeed/Kconfig +1 -1
index 1e7dc10e170f..9cf60378c118 100644
@@ -16,8 +16,8 @@ choice
 
 config ASPEED_AST2500
 	bool "Support Aspeed AST2500 SoC"
-	depends on DM_RESET
 	select CPU_ARM1176
+	select DM_RESET
 	help
 	  The Aspeed AST2500 is a ARM-based SoC with arm1176 CPU.
 	  It is used as Board Management Controller on many server boards,
Signature · 1 line
2.43.0
author
#1 lore raw

PATCH 2/3 efi_loader: Fix Kconfig logic around OF_LIBFDT

Given that OF_LIBFDT is library functionality, the feature of EFI_LOADER needs to select OF_LIBFDT rather than depend on it being already enabled.

---
Cc: Heinrich Schuchardt <[email protected]>
Cc: Ilias Apalodimas <[email protected]>

---
 lib/efi_loader/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
lib/efi_loader/Kconfig +2 -1
index 58d49789f12c..f41447f2b45c 100644
@@ -2,7 +2,7 @@ menu "UEFI Support"
 
 config EFI_LOADER
 	bool "Support running UEFI applications"
-	depends on OF_LIBFDT && ( \
+	depends on ( \
 		ARM && (SYS_CPU = arm1136 || \
 			SYS_CPU = arm1176 || \
 			SYS_CPU = armv7   || \
@@ -21,6 +21,7 @@ config EFI_LOADER
 	select EVENT_DYNAMIC
 	select LIB_UUID
 	select LMB
+	select OF_LIBFDT
 	imply PARTITION_UUIDS
 	select REGEX
 	imply FAT
Signature · 1 line
2.43.0
Acked-by on v1 2/3
#2 lore raw

Re: [PATCH 2/3] efi_loader: Fix Kconfig logic around OF_LIBFDT

Am 15. November 2024 17:53:58 MEZ schrieb Tom Rini <[email protected]>:

Quoted 5 lines

Given that OF_LIBFDT is library functionality, the feature of EFI_LOADER needs to select OF_LIBFDT rather than depend on it being already enabled.

Quoted 28 lines

---
Cc: Heinrich Schuchardt <[email protected]>
Cc: Ilias Apalodimas <[email protected]>
---
lib/efi_loader/Kconfig | 3 ++-

1 file changed, 2 insertions(+), 1 deletion(-)
lib/efi_loader/Kconfig +0 -0
index 58d49789f12c..f41447f2b45c 100644
@@ -2,7 +2,7 @@ menu "UEFI Support"
 

config EFI_LOADER
bool "Support running UEFI applications"

lib/efi_loader/Kconfig +1 -1
-	depends on OF_LIBFDT && ( \
+	depends on ( \
		ARM && (SYS_CPU = arm1136 || \
			SYS_CPU = arm1176 || \
			SYS_CPU = armv7   || \
lib/efi_loader/Kconfig +1 -0
@@ -21,6 +21,7 @@ config EFI_LOADER
 	select EVENT_DYNAMIC
 	select LIB_UUID
 	select LMB
+	select OF_LIBFDT
 	imply PARTITION_UUIDS
 	select REGEX
 	imply FAT
author
#3 lore raw

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

In reply to Tom Rini

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

---
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 <[email protected]>
Cc Simon Glass <[email protected]>
---
 arch/arm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/Kconfig +1 -1
index 7282c4123b08..3ebda07b00c1 100644
@@ -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
 
Signature · 1 line
2.43.0
Reviewed-by on v1 3/3
#4 lore raw

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

Quoted 9 lines · Tom Rini

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

---
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.

Quoted 5 lines
Cc Andre Przywara <[email protected]>
Cc Simon Glass <[email protected]>
---
 arch/arm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(from my side)

#5 lore raw
In reply to Tom Rini
Quoted 4 lines · Tom Rini

It is not the case that we can only pick ASPEED_AST2500 if DM_REGULATOR is enabled, but rather choosing ASPEED_AST2500 means we must select DM_REGULATOR.

Do you mean DM_RESET instead?

author
#6 lore raw
Quoted 7 lines · Fabio Estevam
Quoted 4 lines · Tom Rini

It is not the case that we can only pick ASPEED_AST2500 if DM_REGULATOR is enabled, but rather choosing ASPEED_AST2500 means we must select DM_REGULATOR.

Do you mean DM_RESET instead?

Yes, yes I did, thanks. I'll fixup when applying if there's no need for a v2.

Signature · 1 line
Tom
author
#7 lore raw
In reply to Tom Rini
Quoted 5 lines · Tom Rini

It is not the case that we can only pick ASPEED_AST2500 if DM_REGULATOR is enabled, but rather choosing ASPEED_AST2500 means we must select DM_REGULATOR.

Applied to u-boot/next, thanks!

Signature · 1 line
Tom