From b88efd11c24fe2585c9e328f3e8354bf64cf0708 Mon Sep 17 00:00:00 2001 From: Szymon Dziok Date: Mon, 18 Oct 2010 19:54:18 +0000 Subject: 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 --- firmware/target/arm/philips/backlight-hdd.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'firmware/target/arm/philips/backlight-hdd.c') 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 -- cgit v1.2.3