diff options
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/lcd-imx31.c')
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/lcd-imx31.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/lcd-imx31.c b/firmware/target/arm/imx31/gigabeat-s/lcd-imx31.c index 14d83bf138..5ebc3bd573 100644 --- a/firmware/target/arm/imx31/gigabeat-s/lcd-imx31.c +++ b/firmware/target/arm/imx31/gigabeat-s/lcd-imx31.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include "lcd.h" | 25 | #include "lcd.h" |
26 | #include "kernel.h" | 26 | #include "kernel.h" |
27 | #include "lcd-target.h" | 27 | #include "lcd-target.h" |
28 | #include "backlight-target.h" | ||
28 | 29 | ||
29 | #define LCDADDR(x, y) (&lcd_framebuffer[(y)][(x)]) | 30 | #define LCDADDR(x, y) (&lcd_framebuffer[(y)][(x)]) |
30 | 31 | ||
@@ -42,13 +43,6 @@ extern struct viewport* current_vp; | |||
42 | extern void lcd_copy_buffer_rect(fb_data *dst, const fb_data *src, | 43 | extern void lcd_copy_buffer_rect(fb_data *dst, const fb_data *src, |
43 | int width, int height); | 44 | int width, int height); |
44 | 45 | ||
45 | #if 0 | ||
46 | bool lcd_enabled() | ||
47 | { | ||
48 | return lcd_on; | ||
49 | } | ||
50 | #endif | ||
51 | |||
52 | /* LCD init */ | 46 | /* LCD init */ |
53 | void lcd_init_device(void) | 47 | void lcd_init_device(void) |
54 | { | 48 | { |
@@ -94,6 +88,14 @@ void lcd_update_rect(int x, int y, int width, int height) | |||
94 | } | 88 | } |
95 | } | 89 | } |
96 | 90 | ||
91 | #ifdef HAVE_LCD_SLEEP | ||
92 | void lcd_sleep(void) | ||
93 | { | ||
94 | _backlight_lcd_sleep(); | ||
95 | } | ||
96 | #endif /* HAVE_LCD_SLEEP */ | ||
97 | |||
98 | #if 0 | ||
97 | void lcd_enable(bool state) | 99 | void lcd_enable(bool state) |
98 | { | 100 | { |
99 | (void)state; | 101 | (void)state; |
@@ -103,6 +105,7 @@ bool lcd_enabled(void) | |||
103 | { | 105 | { |
104 | return true; | 106 | return true; |
105 | } | 107 | } |
108 | #endif | ||
106 | 109 | ||
107 | /* Update the display. | 110 | /* Update the display. |
108 | This must be called after all other LCD functions that change the display. */ | 111 | This must be called after all other LCD functions that change the display. */ |