HDD6330: fix the behavior of the lcd during shutdown (fading out), disable poweroff while charging for now.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30520 a1c6a512-1295-4272-9138-f99709370657
diff --git a/firmware/export/config/gogearhdd6330.h b/firmware/export/config/gogearhdd6330.h
index b822316..fc326da 100644
--- a/firmware/export/config/gogearhdd6330.h
+++ b/firmware/export/config/gogearhdd6330.h
@@ -157,7 +157,7 @@
 #define CONFIG_I2C I2C_PP5020
 
 /* define this if the hardware can be powered off while charging */
-#define HAVE_POWEROFF_WHILE_CHARGING
+/* #define HAVE_POWEROFF_WHILE_CHARGING */
 
 /* The start address index for ROM builds */
 #define ROM_START 0x00000000
diff --git a/firmware/target/arm/philips/power-hdd.c b/firmware/target/arm/philips/power-hdd.c
index 9f1c047..0eb67c4 100644
--- a/firmware/target/arm/philips/power-hdd.c
+++ b/firmware/target/arm/philips/power-hdd.c
@@ -27,6 +27,7 @@
 #include "power.h"
 #include "logf.h"
 #include "usb.h"
+#include "backlight-target.h"
 #include "synaptics-mep.h"
 
 void power_init(void)
@@ -110,6 +111,8 @@
 
 void power_off(void)
 {
+    _backlight_off();
+
     /* power off bit */
     GPIOB_ENABLE |= 0x80;
     GPIOB_OUTPUT_VAL &= ~0x80;