[U-Boot] [PATCH 3/4] sunxi: display: Also use the PWM controller for backlight on sun7i
Paul Kocialkowski
contact at paulk.fr
Sat Oct 6 10:07:17 UTC 2018
Using PWM to drive the backlight pin instead of a GPIO provides various
advantages, that are described in commit 421c98d7d2 ("sunxi: display:
Use PWM to drive backlight where applicable").
Defining SUNXI_PWM_PIN0 triggers the configuration of the PWM controller
in the display driver.
Signed-off-by: Paul Kocialkowski <contact at paulk.fr>
---
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 47eb433fb6..a9588a04f3 100644
--- a/arch/arm/include/asm/arch-sunxi/pwm.h
+++ b/arch/arm/include/asm/arch-sunxi/pwm.h
@@ -15,7 +15,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.19.0
More information about the U-Boot
mailing list