diff options
Diffstat (limited to 'firmware/target/arm/s5l8700/meizu-m6sp/lcd-m6sp.c')
-rw-r--r-- | firmware/target/arm/s5l8700/meizu-m6sp/lcd-m6sp.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/firmware/target/arm/s5l8700/meizu-m6sp/lcd-m6sp.c b/firmware/target/arm/s5l8700/meizu-m6sp/lcd-m6sp.c index fa3d5aa7f2..8e6a653f1b 100644 --- a/firmware/target/arm/s5l8700/meizu-m6sp/lcd-m6sp.c +++ b/firmware/target/arm/s5l8700/meizu-m6sp/lcd-m6sp.c | |||
@@ -56,6 +56,7 @@ | |||
56 | #define LCD_TYPE1_ID 0x139 /* id for LCD type S6D0139 */ | 56 | #define LCD_TYPE1_ID 0x139 /* id for LCD type S6D0139 */ |
57 | 57 | ||
58 | static int lcd_type = 0; | 58 | static int lcd_type = 0; |
59 | static bool lcd_is_active = false; | ||
59 | 60 | ||
60 | /* simple and crude delay */ | 61 | /* simple and crude delay */ |
61 | static void lcd_delay(int count) | 62 | static void lcd_delay(int count) |
@@ -357,6 +358,13 @@ void lcd_enable(bool on) | |||
357 | /* disable controller clock */ | 358 | /* disable controller clock */ |
358 | PWRCON |= (1 << 18); | 359 | PWRCON |= (1 << 18); |
359 | } | 360 | } |
361 | |||
362 | lcd_is_active = on; | ||
363 | } | ||
364 | |||
365 | bool lcd_active(void) | ||
366 | { | ||
367 | return lcd_is_active; | ||
360 | } | 368 | } |
361 | 369 | ||
362 | /* initialise the lcd controller inside the s5l8700 */ | 370 | /* initialise the lcd controller inside the s5l8700 */ |
@@ -468,3 +476,18 @@ void lcd_update(void) | |||
468 | lcd_update_rect(0, 0, LCD_WIDTH, LCD_HEIGHT); | 476 | lcd_update_rect(0, 0, LCD_WIDTH, LCD_HEIGHT); |
469 | } | 477 | } |
470 | 478 | ||
479 | void lcd_blit_yuv(unsigned char * const src[3], | ||
480 | int src_x, int src_y, int stride, | ||
481 | int x, int y, int width, int height) | ||
482 | { | ||
483 | (void)src; | ||
484 | (void)src_x; | ||
485 | (void)src_y; | ||
486 | (void)stride; | ||
487 | (void)x; | ||
488 | (void)y; | ||
489 | (void)width; | ||
490 | (void)height; | ||
491 | /* TODO: not implemented yet */ | ||
492 | } | ||
493 | |||