[PATCH 1/2] pwm: sunxi: enable pwm0 support on sun7i
Giulio Benetti
giulio.benetti at benettiengineering.com
Tue Nov 22 21:57:02 CET 2022
sun7i pwm is equal to sun4i and sun5i so enable pwm0 the same way for
sun7i.
Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
---
arch/arm/include/asm/arch-sunxi/pwm.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/include/asm/arch-sunxi/pwm.h b/arch/arm/include/asm/arch-sunxi/pwm.h
index b89bddd2e8..1a1c6e0c54 100644
--- a/arch/arm/include/asm/arch-sunxi/pwm.h
+++ b/arch/arm/include/asm/arch-sunxi/pwm.h
@@ -26,7 +26,8 @@
#define SUNXI_PWM_PERIOD_80PCT 0x04af03c0
-#if defined CONFIG_MACH_SUN4I || defined CONFIG_MACH_SUN5I
+#if defined CONFIG_MACH_SUN4I || defined CONFIG_MACH_SUN5I || \
+ defined CONFIG_MACH_SUN7I
#define SUNXI_PWM_PIN0 SUNXI_GPB(2)
#define SUNXI_PWM_MUX SUN4I_GPB_PWM
#endif
--
2.34.1
More information about the U-Boot
mailing list