summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/philips/hdd1630/backlight-hdd1630.c
diff options
context:
space:
mode:
authorSzymon Dziok <b0hoon@o2.pl>2014-01-13 23:50:40 +0100
committerSzymon Dziok <b0hoon@o2.pl>2014-01-13 23:50:40 +0100
commit518d9ecb35708d0995556b03466b79459d974ade (patch)
treecb3529f06777a6f9d8182a176f3998f10a060afc /firmware/target/arm/philips/hdd1630/backlight-hdd1630.c
parentb25cd9792fe3f0f2299560412111607da3baea18 (diff)
downloadrockbox-518d9ecb35708d0995556b03466b79459d974ade.tar.gz
rockbox-518d9ecb35708d0995556b03466b79459d974ade.tar.bz2
rockbox-518d9ecb35708d0995556b03466b79459d974ade.zip
HDD1630: implement lcd_enable (display on/off).
Change-Id: I8b72a9c333d8a9dbcb62c366a9af298f1dd9b2f7
Diffstat (limited to 'firmware/target/arm/philips/hdd1630/backlight-hdd1630.c')
-rw-r--r--firmware/target/arm/philips/hdd1630/backlight-hdd1630.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/target/arm/philips/hdd1630/backlight-hdd1630.c b/firmware/target/arm/philips/hdd1630/backlight-hdd1630.c
index 00f38bb0f4..95a9ad8b86 100644
--- a/firmware/target/arm/philips/hdd1630/backlight-hdd1630.c
+++ b/firmware/target/arm/philips/hdd1630/backlight-hdd1630.c
@@ -22,6 +22,7 @@
#include "backlight-target.h"
#include "system.h"
#include "backlight.h"
+#include "lcd.h"
#include "synaptics-mep.h"
#ifdef HAVE_BACKLIGHT_BRIGHTNESS
@@ -36,6 +37,10 @@ void _backlight_set_brightness(int brightness)
void _backlight_on(void)
{
+#ifdef HAVE_LCD_ENABLE
+ lcd_enable(true);
+#endif
+
GPO32_ENABLE |= 0x400;
GPO32_VAL |= 0x400;
}
@@ -44,6 +49,10 @@ void _backlight_off(void)
{
GPO32_ENABLE |= 0x400;
GPO32_VAL &=~0x400;
+
+#ifdef HAVE_LCD_ENABLE
+ lcd_enable(false);
+#endif
}
#ifdef HAVE_BUTTON_LIGHT