1
0
Fork 0
forked from len0rd/rockbox

Player: initialize backlight control pin (for coldstart)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5444 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2004-11-20 00:15:40 +00:00
parent 2a89e7d122
commit 09280d0422

View file

@ -187,6 +187,11 @@ void backlight_init(void)
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;
GPIO1_FUNCTION |= 0x00020000;