From b88efd11c24fe2585c9e328f3e8354bf64cf0708 Mon Sep 17 00:00:00 2001 From: Szymon Dziok Date: Mon, 18 Oct 2010 19:54:18 +0000 Subject: [PATCH] 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 --- docs/CREDITS | 1 + firmware/target/arm/philips/backlight-hdd.c | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/docs/CREDITS b/docs/CREDITS index 2d1ae6bf81..0f97fa72df 100644 --- a/docs/CREDITS +++ b/docs/CREDITS @@ -561,6 +561,7 @@ Wojciech Lesniak Tuomas Airaksinen Calvin Walden Michael Gentry +David Fowle The libmad team The wavpack team 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