summaryrefslogtreecommitdiff
path: root/bootloader/meizu_m6sp.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2009-10-25 11:31:13 +0000
committerBertrik Sikken <bertrik@sikken.nl>2009-10-25 11:31:13 +0000
commit52ca187f68ff3d74f604b4e12048aacaed451a24 (patch)
treebb1478eb365e695e4efbc9fd07adf9c64579cffd /bootloader/meizu_m6sp.c
parentf3944cb694b46052975f0a1f1ec9b0aebe047679 (diff)
downloadrockbox-52ca187f68ff3d74f604b4e12048aacaed451a24.tar.gz
rockbox-52ca187f68ff3d74f604b4e12048aacaed451a24.zip
Meizu M6 SP: update lcd driver, it is now possible to display a rockbox logo (with some limitations, see comments in lcd-m6sp.c)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23345 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader/meizu_m6sp.c')
-rw-r--r--bootloader/meizu_m6sp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/bootloader/meizu_m6sp.c b/bootloader/meizu_m6sp.c
index 2240e95768..064d3fc8df 100644
--- a/bootloader/meizu_m6sp.c
+++ b/bootloader/meizu_m6sp.c
@@ -41,6 +41,7 @@
41#include "rbunicode.h" 41#include "rbunicode.h"
42#include "usb.h" 42#include "usb.h"
43#include "qt1106.h" 43#include "qt1106.h"
44#include "bitmaps/rockboxlogo.h"
44 45
45#include <stdarg.h> 46#include <stdarg.h>
46 47
@@ -107,7 +108,10 @@ void main(void)
107 oldval = PCON1; 108 oldval = PCON1;
108 PCON1 = ((oldval & ~(0xf << 16)) | (0 << 16)); 109 PCON1 = ((oldval & ~(0xf << 16)) | (0 << 16));
109 110
110 // Wait for play to be pressed 111 lcd_bitmap(rockboxlogo, 0, 0, BMPWIDTH_rockboxlogo, BMPHEIGHT_rockboxlogo);
112 lcd_init_device();
113
114 // Wait for play to be pressed
111 while(!(PDAT1 & (1 << 4))); 115 while(!(PDAT1 & (1 << 4)));
112 // Wait for play to be released 116 // Wait for play to be released
113 while((PDAT1 & (1 << 4))); 117 while((PDAT1 & (1 << 4)));