summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/s5l8700/meizu-m6sp/lcd-m6sp.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/s5l8700/meizu-m6sp/lcd-m6sp.c')
-rw-r--r--firmware/target/arm/s5l8700/meizu-m6sp/lcd-m6sp.c23
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 @@
#define LCD_TYPE1_ID 0x139 /* id for LCD type S6D0139 */
static int lcd_type = 0;
+static bool lcd_is_active = false;
/* simple and crude delay */
static void lcd_delay(int count)
@@ -357,6 +358,13 @@ void lcd_enable(bool on)
/* disable controller clock */
PWRCON |= (1 << 18);
}
+
+ lcd_is_active = on;
+}
+
+bool lcd_active(void)
+{
+ return lcd_is_active;
}
/* initialise the lcd controller inside the s5l8700 */
@@ -468,3 +476,18 @@ void lcd_update(void)
lcd_update_rect(0, 0, LCD_WIDTH, LCD_HEIGHT);
}
+void lcd_blit_yuv(unsigned char * const src[3],
+ int src_x, int src_y, int stride,
+ int x, int y, int width, int height)
+{
+ (void)src;
+ (void)src_x;
+ (void)src_y;
+ (void)stride;
+ (void)x;
+ (void)y;
+ (void)width;
+ (void)height;
+ /* TODO: not implemented yet */
+}
+