summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Dziok <b0hoon@o2.pl>2010-10-18 19:54:18 +0000
committerSzymon Dziok <b0hoon@o2.pl>2010-10-18 19:54:18 +0000
commitb88efd11c24fe2585c9e328f3e8354bf64cf0708 (patch)
tree1be5c6593e3da1750f8fa87f2f5aceff8eb966e0
parent057806f67a6a8f79a003fd15db06937999a3edc5 (diff)
downloadrockbox-b88efd11c24fe2585c9e328f3e8354bf64cf0708.zip
rockbox-b88efd11c24fe2585c9e328f3e8354bf64cf0708.tar.gz
rockbox-b88efd11c24fe2585c9e328f3e8354bf64cf0708.tar.bz2
rockbox-b88efd11c24fe2585c9e328f3e8354bf64cf0708.tar.xz
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
-rw-r--r--docs/CREDITS1
-rw-r--r--firmware/target/arm/philips/backlight-hdd.c10
2 files changed, 11 insertions, 0 deletions
diff --git a/docs/CREDITS b/docs/CREDITS
index 2d1ae6b..0f97fa7 100644
--- a/docs/CREDITS
+++ b/docs/CREDITS
@@ -561,6 +561,7 @@ Wojciech Lesniak
Tuomas Airaksinen
Calvin Walden
Michael Gentry
+David Fowle
The libmad team
The wavpack team
diff --git a/firmware/target/arm/philips/backlight-hdd.c b/firmware/target/arm/philips/backlight-hdd.c
index 6c62d08..33022c7 100644
--- a/firmware/target/arm/philips/backlight-hdd.c
+++ b/firmware/target/arm/philips/backlight-hdd.c
@@ -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