From 2d5e6e1a8792c71c765e2c8f6956cf71e6178b01 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sun, 5 Oct 2008 20:01:25 +0000 Subject: LCD driver for meizu M3, new type (older M3s are not yet supported) Thanks to Denes Balatoni git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18719 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/s5l8700/meizu-m3/lcd-m3.c | 127 +++++++++++++++++++++----- 1 file changed, 105 insertions(+), 22 deletions(-) (limited to 'firmware/target/arm/s5l8700/meizu-m3') diff --git a/firmware/target/arm/s5l8700/meizu-m3/lcd-m3.c b/firmware/target/arm/s5l8700/meizu-m3/lcd-m3.c index 1affab3b01..3c2e8c646c 100644 --- a/firmware/target/arm/s5l8700/meizu-m3/lcd-m3.c +++ b/firmware/target/arm/s5l8700/meizu-m3/lcd-m3.c @@ -25,12 +25,14 @@ #include "lcd.h" #include "system.h" #include "cpu.h" +#include "inttypes.h" +#include "s5l8700.h" /*** definitions ***/ /** globals **/ - +static uint8_t lcd_type; static int xoffset; /* needed for flip */ /*** hardware configuration ***/ @@ -64,10 +66,88 @@ void lcd_set_flip(bool yesno) } } +static void lcd_sleep(uint32_t t) { + uint32_t i; + + for(i=0;i> 3; - y >>= 3; - - if(x + width > LCD_WIDTH) - width = LCD_WIDTH - x; - if (width <= 0) - return; /* nothing left to do, 0 is harmful to lcd_write_data() */ - if(ymax >= LCD_FBHEIGHT) - ymax = LCD_FBHEIGHT-1; - - /* Copy specified rectange bitmap to hardware */ - for (; y <= ymax; y++) - { - } + lcd_update(); } -- cgit v1.2.3