HDD6330: Patch to enable/disable backlight.

Flyspray FS#11462
Author: David Fowle


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28307 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Szymon Dziok 2010-10-18 19:54:18 +00:00
parent 057806f67a
commit b88efd11c2
2 changed files with 11 additions and 0 deletions

View file

@ -561,6 +561,7 @@ Wojciech Lesniak
Tuomas Airaksinen
Calvin Walden
Michael Gentry
David Fowle
The libmad team
The wavpack team

View file

@ -36,14 +36,24 @@ void _backlight_set_brightness(int brightness)
void _backlight_on(void)
{
#if defined(PHILIPS_HDD6330)
GPO32_ENABLE |= 0x400;
GPO32_VAL |= 0x400;
#else
GPO32_VAL &= ~0x1000000;
GPO32_ENABLE &= ~0x1000000;
#endif
}
void _backlight_off(void)
{
#if defined(PHILIPS_HDD6330)
GPO32_ENABLE |= 0x400;
GPO32_VAL &= ~0x400;
#else
GPO32_VAL |= 0x1000000;
GPO32_ENABLE |= 0x1000000;
#endif
}
#ifdef HAVE_BUTTON_LIGHT