[PATCH 4/5] pwm: imx: allow i.MX7 to use PWM3 and PWM4
Thomas Bonnefille
thomas.bonnefille at bootlin.com
Wed Nov 26 00:41:56 CET 2025
This commit creates a new condition in which i.MX7 SoCs will be able to
use the third and fourth PWM controllers in the pwm-imx driver.
Signed-off-by: Thomas Bonnefille <thomas.bonnefille at bootlin.com>
---
drivers/pwm/pwm-imx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c
index 28187b4fcbb..8e655943eec 100644
--- a/drivers/pwm/pwm-imx.c
+++ b/drivers/pwm/pwm-imx.c
@@ -43,7 +43,7 @@ struct pwm_regs *pwm_id_to_reg(int pwm_id)
return (struct pwm_regs *)PWM1_BASE_ADDR;
case 1:
return (struct pwm_regs *)PWM2_BASE_ADDR;
-#ifdef CONFIG_MX6
+#if defined(CONFIG_MX6) || defined(CONFIG_MX7)
case 2:
return (struct pwm_regs *)PWM3_BASE_ADDR;
case 3:
--
2.52.0
More information about the U-Boot
mailing list