diff options
author | Szymon Dziok <b0hoon@o2.pl> | 2011-09-13 20:35:25 +0000 |
---|---|---|
committer | Szymon Dziok <b0hoon@o2.pl> | 2011-09-13 20:35:25 +0000 |
commit | 036c5fef464ca8bf77c34dbf5793e50478d5f074 (patch) | |
tree | 30ed807aaaa45802bf6a5ab9c309608b262d3b67 /firmware/target/arm/philips/hdd6330/backlight-hdd6330.c | |
parent | 780968d2491fa3b5ddf9ec059a5e66ff725a7764 (diff) | |
download | rockbox-036c5fef464ca8bf77c34dbf5793e50478d5f074.tar.gz rockbox-036c5fef464ca8bf77c34dbf5793e50478d5f074.zip |
HDD6330: implement lcd_enable (display on/off).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30519 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/philips/hdd6330/backlight-hdd6330.c')
-rw-r--r-- | firmware/target/arm/philips/hdd6330/backlight-hdd6330.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/target/arm/philips/hdd6330/backlight-hdd6330.c b/firmware/target/arm/philips/hdd6330/backlight-hdd6330.c index 68d2ad8149..46c03e712e 100644 --- a/firmware/target/arm/philips/hdd6330/backlight-hdd6330.c +++ b/firmware/target/arm/philips/hdd6330/backlight-hdd6330.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 |