HDD1630: a proper way to enable and disable backlight.

Change-Id: Ic08a8a3ec4bcd6320ba07cb9bda1c95257ef14c9
This commit is contained in:
Szymon Dziok 2014-01-13 23:04:21 +01:00
parent feff021173
commit b25cd9792f

View file

@ -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