summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/sony-nwz/backlight-nwz.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx233/sony-nwz/backlight-nwz.c')
-rw-r--r--firmware/target/arm/imx233/sony-nwz/backlight-nwz.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/sony-nwz/backlight-nwz.c b/firmware/target/arm/imx233/sony-nwz/backlight-nwz.c
index ad3ef484db..d99d21386b 100644
--- a/firmware/target/arm/imx233/sony-nwz/backlight-nwz.c
+++ b/firmware/target/arm/imx233/sony-nwz/backlight-nwz.c
@@ -29,8 +29,10 @@
void _backlight_set_brightness(int brightness)
{
+ bool en = brightness > 0;
imx233_pwm_setup_simple(2, 24000, 100 - brightness);
- imx233_pwm_enable(2, true);
+ imx233_pwm_enable(2, en);
+ imx233_pinctrl_set_gpio(0, 10, en);
}
bool _backlight_init(void)