summaryrefslogtreecommitdiff
path: root/firmware/target/coldfire/iriver/h300/backlight-h300.c
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2007-01-12 20:26:23 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2007-01-12 20:26:23 +0000
commit73cd9f3b63718d1fe927e7ef4294ed902e8a1b73 (patch)
tree82fc91d5a47c267a8a5a1cdd20aa89b2cd65a079 /firmware/target/coldfire/iriver/h300/backlight-h300.c
parent0ea4d3197ed7e56f39c630741cb69152ac9e41de (diff)
downloadrockbox-73cd9f3b63718d1fe927e7ef4294ed902e8a1b73.tar.gz
rockbox-73cd9f3b63718d1fe927e7ef4294ed902e8a1b73.zip
Turn backlight ON at boot unless bootloader has already done that.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11992 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/coldfire/iriver/h300/backlight-h300.c')
-rw-r--r--firmware/target/coldfire/iriver/h300/backlight-h300.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/coldfire/iriver/h300/backlight-h300.c b/firmware/target/coldfire/iriver/h300/backlight-h300.c
index ef1d6d344d..4cec54f0d7 100644
--- a/firmware/target/coldfire/iriver/h300/backlight-h300.c
+++ b/firmware/target/coldfire/iriver/h300/backlight-h300.c
@@ -25,11 +25,13 @@
25#include "pcf50606.h" 25#include "pcf50606.h"
26#include "lcd.h" 26#include "lcd.h"
27 27
28void __backlight_init(void) 28bool __backlight_init(void)
29{ 29{
30 or_l(0x00020000, &GPIO1_ENABLE); 30 or_l(0x00020000, &GPIO1_ENABLE);
31 or_l(0x00020000, &GPIO1_FUNCTION); 31 or_l(0x00020000, &GPIO1_FUNCTION);
32 or_l(0x00020000, &GPIO1_OUT); /* Start with the backlight ON */ 32 or_l(0x00020000, &GPIO1_OUT); /* Start with the backlight ON */
33
34 return true; /* Backlight always ON after boot. */
33} 35}
34 36
35void __backlight_on(void) 37void __backlight_on(void)