From 8042640ce967014f10dbc0e3f382cd1876310b66 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Tue, 22 Nov 2005 01:39:41 +0000 Subject: [PATCH] Fix iriver bootloader builds. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8038 a1c6a512-1295-4272-9138-f99709370657 --- firmware/backlight.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/firmware/backlight.c b/firmware/backlight.c index 9cec4ea08c..5a3c5093bb 100644 --- a/firmware/backlight.c +++ b/firmware/backlight.c @@ -511,6 +511,17 @@ void remote_backlight_set_on_when_charging(bool yesno) #else /* no backlight, empty dummy functions */ +#ifdef BOOTLOADER +void backlight_init(void) +{ +#ifdef IRIVER_H300_SERIES + or_l(0x00020000, &GPIO1_OUT); + or_l(0x00020000, &GPIO1_ENABLE); + or_l(0x00020000, &GPIO1_FUNCTION); +#endif +} +#endif + void backlight_on(void) {} void backlight_off(void) {} void backlight_set_timeout(int index) {(void)index;}