From b25cd9792fe3f0f2299560412111607da3baea18 Mon Sep 17 00:00:00 2001 From: Szymon Dziok Date: Mon, 13 Jan 2014 23:04:21 +0100 Subject: HDD1630: a proper way to enable and disable backlight. Change-Id: Ic08a8a3ec4bcd6320ba07cb9bda1c95257ef14c9 --- firmware/target/arm/philips/hdd1630/backlight-hdd1630.c | 8 ++++---- 1 file 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 -- cgit v1.2.3