summaryrefslogtreecommitdiffstats
path: root/firmware
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 /firmware
parent057806f67a6a8f79a003fd15db06937999a3edc5 (diff)
downloadrockbox-b88efd11c24fe2585c9e328f3e8354bf64cf0708.tar.gz
rockbox-b88efd11c24fe2585c9e328f3e8354bf64cf0708.tar.bz2
rockbox-b88efd11c24fe2585c9e328f3e8354bf64cf0708.zip
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
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/philips/backlight-hdd.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/target/arm/philips/backlight-hdd.c b/firmware/target/arm/philips/backlight-hdd.c
index 6c62d08438..33022c75a8 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