[PATCH v2 2/4] pwm: make sandbox depend on DM_PWM

Quentin Schulz foss+uboot at 0leil.net
Thu Oct 30 11:03:56 CET 2025


From: Quentin Schulz <quentin.schulz at cherry.de>

Since it is registered as a U_CLASS_DRIVER, Sandbox PWM driver is a
Driver Model Driver and thus to be usable depends on DM_PWM to be
selected.

Let's make sure of that via the appropriate Kconfig option.

Signed-off-by: Quentin Schulz <quentin.schulz at cherry.de>
---
 drivers/pwm/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
index ec57a967721..e8a21653020 100644
--- a/drivers/pwm/Kconfig
+++ b/drivers/pwm/Kconfig
@@ -82,6 +82,7 @@ config PWM_ROCKCHIP
 
 config PWM_SANDBOX
 	bool "Enable support for the sandbox PWM"
+	depends on DM_PWM
 	help
 	  This is a sandbox PWM used for testing. It provides 3 channels and
 	  records the settings passed into it, but otherwise does nothing

-- 
2.51.0



More information about the U-Boot mailing list