From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andre Przywara Date: Fri, 19 Feb 2021 11:21:31 +0000 Subject: [PATCH 5/5] pwm: sunxi: enable pwm0 support on sun7i In-Reply-To: <20210218232622.883509-6-giulio.benetti@benettiengineering.com> References: <20210218232622.883509-1-giulio.benetti@benettiengineering.com> <20210218232622.883509-6-giulio.benetti@benettiengineering.com> Message-ID: <20210219112131.232c982d@slackpad.fritz.box> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 19 Feb 2021 00:26:20 +0100 Giulio Benetti wrote: > From: Giulio Benetti > > sun7i pwm is equal to sun4i and sun5i so enable pwm0 the same way for > sun7i. > > Signed-off-by: Giulio Benetti > Signed-off-by: Giulio Benetti 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 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