summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-11-16 23:53:01 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-11-16 23:53:01 +0000
commit4be7e5f560a8046d0a9f8689137cd38eb52b7cbe (patch)
tree179aba60813e8a2e42f4b130d600e9dbc2f0333e
parent73a35a1aa445932176fca78688d43c636a3fda5e (diff)
downloadrockbox-4be7e5f560a8046d0a9f8689137cd38eb52b7cbe.tar.gz
rockbox-4be7e5f560a8046d0a9f8689137cd38eb52b7cbe.tar.bz2
rockbox-4be7e5f560a8046d0a9f8689137cd38eb52b7cbe.zip
Always turn on the backlight in the H300 boot loader
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7919 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/backlight.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index fa6a42be44..26d0362c27 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -456,7 +456,14 @@ void backlight_init(void)
#else /* no backlight, empty dummy functions */
-void backlight_init(void) {}
+void backlight_init(void)
+{
+#if defined(IRIVER_H300_SERIES) && defined(BOOTLOADER)
+ or_l(0x00020000, &GPIO1_OUT);
+ or_l(0x00020000, &GPIO1_ENABLE);
+ or_l(0x00020000, &GPIO1_FUNCTION);
+#endif
+}
void backlight_on(void) {}
void backlight_off(void) {}
void backlight_tick(void) {}