summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/creative-zen/backlight-zen.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx233/creative-zen/backlight-zen.c')
-rw-r--r--firmware/target/arm/imx233/creative-zen/backlight-zen.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/creative-zen/backlight-zen.c b/firmware/target/arm/imx233/creative-zen/backlight-zen.c
index 0d223b52e9..74e1e91a49 100644
--- a/firmware/target/arm/imx233/creative-zen/backlight-zen.c
+++ b/firmware/target/arm/imx233/creative-zen/backlight-zen.c
@@ -29,6 +29,9 @@
void _backlight_set_brightness(int level)
{
+#ifdef CREATIVE_ZENV
+ lcd_set_contrast(level);
+#else
unsigned val = (level + 200) * level / 1000;
if(level != 0)
{
@@ -39,14 +42,17 @@ void _backlight_set_brightness(int level)
}
else
imx233_pinctrl_set_gpio(1, 12, false);
+#endif
}
bool _backlight_init(void)
{
+#ifndef CREATIVE_ZENV
imx233_pinctrl_acquire(1, 12, "backlight_enable");
imx233_pinctrl_set_function(1, 12, PINCTRL_FUNCTION_GPIO);
imx233_pinctrl_enable_gpio(1, 12, true);
imx233_uartdbg_init(BAUD_38400);
+#endif
return true;
}