You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2024/01/05 15:56:33 UTC
(nuttx) branch master updated: SAMA5 - add LCD backlight PWM cLock source selection
This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 438439c1a6 SAMA5 - add LCD backlight PWM cLock source selection
438439c1a6 is described below
commit 438439c1a6258abef5d4a85d0ead80aedbba2db2
Author: TimJTi <56...@users.noreply.github.com>
AuthorDate: Fri Jan 5 12:59:42 2024 +0000
SAMA5 - add LCD backlight PWM cLock source selection
---
arch/arm/src/sama5/sam_lcd.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/src/sama5/sam_lcd.c b/arch/arm/src/sama5/sam_lcd.c
index 5a11653801..8f6ca524fd 100644
--- a/arch/arm/src/sama5/sam_lcd.c
+++ b/arch/arm/src/sama5/sam_lcd.c
@@ -2282,6 +2282,9 @@ static void sam_lcd_enable(void)
#ifdef BOARD_LCDC_PIXCLK_INV
regval |= LCDC_LCDCFG0_CLKPOL;
#endif
+#ifdef BOARD_LCDC_PWMCLK
+ regval |= LCDC_LCDCFG0_CLKPWMSEL;
+#endif
#ifdef BOARD_LCDC_MCK_MUL2
regval |= LCDC_LCDCFG0_CLKSEL;
#endif