summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorSzymon Dziok <b0hoon@o2.pl>2014-01-13 23:04:21 +0100
committerSzymon Dziok <b0hoon@o2.pl>2014-01-13 23:04:21 +0100
commitb25cd9792fe3f0f2299560412111607da3baea18 (patch)
tree621628560e35f12ecb7cd0be5fed7cad1e979af8 /firmware/target/arm
parentfeff02117386bf5d670dc14bcace7d872cbd6a2c (diff)
downloadrockbox-b25cd9792fe3f0f2299560412111607da3baea18.tar.gz
rockbox-b25cd9792fe3f0f2299560412111607da3baea18.zip
HDD1630: a proper way to enable and disable backlight.
Change-Id: Ic08a8a3ec4bcd6320ba07cb9bda1c95257ef14c9
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/philips/hdd1630/backlight-hdd1630.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/philips/hdd1630/backlight-hdd1630.c b/firmware/target/arm/philips/hdd1630/backlight-hdd1630.c
index 47a5d1c47a..00f38bb0f4 100644
--- a/firmware/target/arm/philips/hdd1630/backlight-hdd1630.c
+++ b/firmware/target/arm/philips/hdd1630/backlight-hdd1630.c
@@ -36,14 +36,14 @@ void _backlight_set_brightness(int brightness)
void _backlight_on(void)
{
- GPO32_VAL &= ~0x1000000;
- GPO32_ENABLE &= ~0x1000000;
+ GPO32_ENABLE |= 0x400;
+ GPO32_VAL |= 0x400;
}
void _backlight_off(void)
{
- GPO32_VAL |= 0x1000000;
- GPO32_ENABLE |= 0x1000000;
+ GPO32_ENABLE |= 0x400;
+ GPO32_VAL &=~0x400;
}
#ifdef HAVE_BUTTON_LIGHT