diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/sandisk/sansa-e200/lcd-e200.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/firmware/target/arm/sandisk/sansa-e200/lcd-e200.c b/firmware/target/arm/sandisk/sansa-e200/lcd-e200.c index 702f95bba9..78c224d6c5 100644 --- a/firmware/target/arm/sandisk/sansa-e200/lcd-e200.c +++ b/firmware/target/arm/sandisk/sansa-e200/lcd-e200.c | |||
@@ -262,6 +262,7 @@ static void lcd_power_on(void) | |||
262 | power_on = true; | 262 | power_on = true; |
263 | } | 263 | } |
264 | 264 | ||
265 | #if defined(HAVE_LCD_ENABLE) | ||
265 | /* Run the display on sequence for the driver IC */ | 266 | /* Run the display on sequence for the driver IC */ |
266 | static void lcd_display_on(void) | 267 | static void lcd_display_on(void) |
267 | { | 268 | { |
@@ -312,6 +313,13 @@ static void lcd_display_on(void) | |||
312 | display_on = true; | 313 | display_on = true; |
313 | } | 314 | } |
314 | 315 | ||
316 | |||
317 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) | ||
318 | bool lcd_active(void) | ||
319 | { | ||
320 | return display_on; | ||
321 | } | ||
322 | |||
315 | /* Turn off visible display operations */ | 323 | /* Turn off visible display operations */ |
316 | static void lcd_display_off(void) | 324 | static void lcd_display_off(void) |
317 | { | 325 | { |
@@ -343,6 +351,7 @@ static void lcd_display_off(void) | |||
343 | /* VCOMG=0, VDV4-0=10001, VCM4-0=11001 */ | 351 | /* VCOMG=0, VDV4-0=10001, VCM4-0=11001 */ |
344 | lcd_write_reg(R_POWER_CONTROL4, 0x1119); | 352 | lcd_write_reg(R_POWER_CONTROL4, 0x1119); |
345 | } | 353 | } |
354 | #endif | ||
346 | 355 | ||
347 | void lcd_init_device(void) | 356 | void lcd_init_device(void) |
348 | { | 357 | { |
@@ -428,13 +437,6 @@ void lcd_init_device(void) | |||
428 | LCD_REG_6 |= 1; /* Start DMA */ | 437 | LCD_REG_6 |= 1; /* Start DMA */ |
429 | } | 438 | } |
430 | 439 | ||
431 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) | ||
432 | bool lcd_active(void) | ||
433 | { | ||
434 | return display_on; | ||
435 | } | ||
436 | #endif | ||
437 | |||
438 | #if defined(HAVE_LCD_ENABLE) | 440 | #if defined(HAVE_LCD_ENABLE) |
439 | void lcd_enable(bool on) | 441 | void lcd_enable(bool on) |
440 | { | 442 | { |