summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2009-06-23 18:11:03 +0000
committerBertrik Sikken <bertrik@sikken.nl>2009-06-23 18:11:03 +0000
commit743dcf7f69c4afa1efd2f84a2bd0b5e23d53b0b9 (patch)
treecbd5bb40837fb4ba624edd5ae768fd8e9aa8dfa7 /bootloader
parentd86cf998e887d6e1bac2754b3087710926c74a19 (diff)
downloadrockbox-743dcf7f69c4afa1efd2f84a2bd0b5e23d53b0b9.tar.gz
rockbox-743dcf7f69c4afa1efd2f84a2bd0b5e23d53b0b9.tar.bz2
rockbox-743dcf7f69c4afa1efd2f84a2bd0b5e23d53b0b9.zip
Implement PWM backlight driver for the Meizus. Update Meizu M3 bootloader to control brightness with the touch strip.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21478 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/meizu_m3.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/bootloader/meizu_m3.c b/bootloader/meizu_m3.c
index 2fb0b551a0..84961228b7 100644
--- a/bootloader/meizu_m3.c
+++ b/bootloader/meizu_m3.c
@@ -43,7 +43,7 @@
#include "rbunicode.h"
#include "usb.h"
#include "qt1106.h"
-#include "rockboxlogo.h"
+#include "bitmaps/rockboxlogo.h"
#include <stdarg.h>
@@ -108,7 +108,7 @@ void main(void)
int oldval = PCON0;
PCON0 = ((oldval & ~(3 << 4)) | (1 << 4));
PDAT0 |= (1 << 2);
-
+
//power on
// oldval = PCON1;
// PCON1 = ((oldval & ~(0xf << 12)) | (1 << 12));
@@ -128,6 +128,7 @@ void main(void)
EINTMSK = 0x11;
asm volatile("msr cpsr_c, #0x13\n\t"); // enable interrupts
+ backlight_init();
lcd_init();
lcd_update();
@@ -157,6 +158,8 @@ void main(void)
if(slider & 0x008000)
bl_debug_count(((slider&0xff)) + 1);
*/
+
+ _backlight_set_brightness(slider & 0xFF);
}
//power off