e200v2: implement the backlight handling (copy/paste from the c200v1/e200v1 code - this should probably be unified, along with other upcoming v2 code), plus clean up the lcd init by calling lcd_init() directly in the bootloader, instead of lcd_init_device().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18910 a1c6a512-1295-4272-9138-f99709370657
diff --git a/bootloader/sansa_as3525.c b/bootloader/sansa_as3525.c
index 2a4f7f0..a88e206 100644
--- a/bootloader/sansa_as3525.c
+++ b/bootloader/sansa_as3525.c
@@ -25,10 +25,11 @@
#include <stdio.h>
#include <system.h>
#include <inttypes.h>
-#include "lcd.h"
-#include "common.h"
#include "config.h"
+#include "lcd.h"
+#include "backlight-target.h"
#include "as3525-codec.h"
+#include "common.h"
int show_logo(void);
void main(void)
@@ -38,19 +39,15 @@
system_init();
- lcd_init_device();
- lcd_clear_display();
-
- lcd_update();
-
-#ifdef HAVE_LCD_ENABLE
- lcd_enable(true);
-#endif
+ lcd_init();
show_logo();
+ as3525_codec_init(); /* Required for backlight on e200v2 */
+
+ _backlight_on();
+
/* show player id to demonstrate communication with codec part */
- as3525_codec_init();
for (i = 0; i < 8; i++) {
buf[i] = as3525_codec_read(0x38 + i);
}