Skip to contentSkip to conversation

pwm: sunxi: enable pwm0 support on sun7i

PATCH New Giulio Benetti 1 participant 1 message Feb 18, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pwm: sunxi: enable pwm0 support on sun7i

From: Giulio Benetti <[email protected]>

sun7i pwm is equal to sun4i and sun5i so enable pwm0 the same way for sun7i.

---
 arch/arm/include/asm/arch-sunxi/pwm.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/include/asm/arch-sunxi/pwm.h +2 -1
index b89bddd2e8..1a1c6e0c54 100644
@@ -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
Signature · 1 line
2.25.1