On Fri, 19 Feb 2021 00:26:20 +0100 Giulio Benetti <giulio.bene...@benettiengineering.com> wrote:
> From: Giulio Benetti <giulio.bene...@micronovasrl.com> > > sun7i pwm is equal to sun4i and sun5i so enable pwm0 the same way for > sun7i. > > Signed-off-by: Giulio Benetti <giulio.bene...@micronovasrl.com> > Signed-off-by: Giulio Benetti <giulio.bene...@benettiengineering.com> Looks alright, though I feel the pwm driver should look into the DT to find the pin, like we do for sun8i_emac.c. But that's probably another patch, so: Reviewed-by: Andre Przywara <andre.przyw...@arm.com> Cheers, Andre > --- > 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