summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-11-20 00:15:40 +0000
committerJens Arnold <amiconn@rockbox.org>2004-11-20 00:15:40 +0000
commit09280d0422554c421b8dc0323ea2f3a59ba6b24c (patch)
treec0ff3c9af219bac409515868e0fb355dbdefd969
parent2a89e7d1226f0a01025b5cbcb0470b6280d29257 (diff)
downloadrockbox-09280d0422554c421b8dc0323ea2f3a59ba6b24c.tar.gz
rockbox-09280d0422554c421b8dc0323ea2f3a59ba6b24c.tar.bz2
rockbox-09280d0422554c421b8dc0323ea2f3a59ba6b24c.zip
Player: initialize backlight control pin (for coldstart)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5444 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/backlight.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index 2b0c061786..fea22a06a4 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -186,6 +186,11 @@ void backlight_init(void)
queue_init(&backlight_queue);
create_thread(backlight_thread, backlight_stack,
sizeof(backlight_stack), backlight_thread_name);
+
+#ifdef HAVE_LCD_CHARCELLS
+ PACR1 &= ~0x3000; /* Set PA14 (backlight control) to GPIO */
+ or_b(0x40, &PAIORH); /* ..and output */
+#endif
#ifdef IRIVER_H100
GPIO1_ENABLE |= 0x00020000;