diff options
Diffstat (limited to 'firmware/target/arm/philips/hdd1630/backlight-hdd1630.c')
-rw-r--r-- | firmware/target/arm/philips/hdd1630/backlight-hdd1630.c | 9 |
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 @@ | |||
22 | #include "backlight-target.h" | 22 | #include "backlight-target.h" |
23 | #include "system.h" | 23 | #include "system.h" |
24 | #include "backlight.h" | 24 | #include "backlight.h" |
25 | #include "lcd.h" | ||
25 | #include "synaptics-mep.h" | 26 | #include "synaptics-mep.h" |
26 | 27 | ||
27 | #ifdef HAVE_BACKLIGHT_BRIGHTNESS | 28 | #ifdef HAVE_BACKLIGHT_BRIGHTNESS |
@@ -36,6 +37,10 @@ void _backlight_set_brightness(int brightness) | |||
36 | 37 | ||
37 | void _backlight_on(void) | 38 | void _backlight_on(void) |
38 | { | 39 | { |
40 | #ifdef HAVE_LCD_ENABLE | ||
41 | lcd_enable(true); | ||
42 | #endif | ||
43 | |||
39 | GPO32_ENABLE |= 0x400; | 44 | GPO32_ENABLE |= 0x400; |
40 | GPO32_VAL |= 0x400; | 45 | GPO32_VAL |= 0x400; |
41 | } | 46 | } |
@@ -44,6 +49,10 @@ void _backlight_off(void) | |||
44 | { | 49 | { |
45 | GPO32_ENABLE |= 0x400; | 50 | GPO32_ENABLE |= 0x400; |
46 | GPO32_VAL &=~0x400; | 51 | GPO32_VAL &=~0x400; |
52 | |||
53 | #ifdef HAVE_LCD_ENABLE | ||
54 | lcd_enable(false); | ||
55 | #endif | ||
47 | } | 56 | } |
48 | 57 | ||
49 | #ifdef HAVE_BUTTON_LIGHT | 58 | #ifdef HAVE_BUTTON_LIGHT |