diff options
-rw-r--r-- | firmware/export/config/gogearhdd6330.h | 2 | ||||
-rw-r--r-- | firmware/target/arm/philips/power-hdd.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/firmware/export/config/gogearhdd6330.h b/firmware/export/config/gogearhdd6330.h index b822316172..fc326dac89 100644 --- a/firmware/export/config/gogearhdd6330.h +++ b/firmware/export/config/gogearhdd6330.h | |||
@@ -157,7 +157,7 @@ | |||
157 | #define CONFIG_I2C I2C_PP5020 | 157 | #define CONFIG_I2C I2C_PP5020 |
158 | 158 | ||
159 | /* define this if the hardware can be powered off while charging */ | 159 | /* define this if the hardware can be powered off while charging */ |
160 | #define HAVE_POWEROFF_WHILE_CHARGING | 160 | /* #define HAVE_POWEROFF_WHILE_CHARGING */ |
161 | 161 | ||
162 | /* The start address index for ROM builds */ | 162 | /* The start address index for ROM builds */ |
163 | #define ROM_START 0x00000000 | 163 | #define ROM_START 0x00000000 |
diff --git a/firmware/target/arm/philips/power-hdd.c b/firmware/target/arm/philips/power-hdd.c index 9f1c047a1e..0eb67c421b 100644 --- a/firmware/target/arm/philips/power-hdd.c +++ b/firmware/target/arm/philips/power-hdd.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include "power.h" | 27 | #include "power.h" |
28 | #include "logf.h" | 28 | #include "logf.h" |
29 | #include "usb.h" | 29 | #include "usb.h" |
30 | #include "backlight-target.h" | ||
30 | #include "synaptics-mep.h" | 31 | #include "synaptics-mep.h" |
31 | 32 | ||
32 | void power_init(void) | 33 | void power_init(void) |
@@ -110,6 +111,8 @@ bool ide_powered(void) | |||
110 | 111 | ||
111 | void power_off(void) | 112 | void power_off(void) |
112 | { | 113 | { |
114 | _backlight_off(); | ||
115 | |||
113 | /* power off bit */ | 116 | /* power off bit */ |
114 | GPIOB_ENABLE |= 0x80; | 117 | GPIOB_ENABLE |= 0x80; |
115 | GPIOB_OUTPUT_VAL &= ~0x80; | 118 | GPIOB_OUTPUT_VAL &= ~0x80; |