summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2007-10-14 18:20:23 +0000
committerBarry Wardell <rockbox@barrywardell.net>2007-10-14 18:20:23 +0000
commitf1fead0c9b8a115648e42d4ba87a35f4504c5f77 (patch)
tree8147894b367b183e270007bb66410ad5a4e2644f /bootloader
parent080889a135bb5a1e34f8acae3c0a330d6bd620f5 (diff)
downloadrockbox-f1fead0c9b8a115648e42d4ba87a35f4504c5f77.tar.gz
rockbox-f1fead0c9b8a115648e42d4ba87a35f4504c5f77.tar.bz2
rockbox-f1fead0c9b8a115648e42d4ba87a35f4504c5f77.zip
Turn on the backlight in the e200 booloader. This is necessary for when we replace the sansa bootloader altogether.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15109 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/main-pp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/bootloader/main-pp.c b/bootloader/main-pp.c
index e6c0df0ae2..ed05b07fb9 100644
--- a/bootloader/main-pp.c
+++ b/bootloader/main-pp.c
@@ -33,6 +33,10 @@
#include "disk.h"
#include "crc32-mi4.h"
#include <string.h>
+#if defined(SANSA_E200)
+#include "i2c.h"
+#include "backlight-target.h"
+#endif
#if defined(SANSA_E200) || defined(SANSA_C200)
#include "usb.h"
#include "arcotg_udc.h"
@@ -468,6 +472,10 @@ void* main(void)
lcd_init();
font_init();
button_init();
+#if defined(SANSA_E200)
+ i2c_init();
+ __backlight_on();
+#endif
lcd_set_foreground(LCD_WHITE);
lcd_set_background(LCD_BLACK);