diff options
-rw-r--r-- | firmware/export/config-h10.h | 3 | ||||
-rw-r--r-- | firmware/export/config-h10_5gb.h | 3 | ||||
-rw-r--r-- | firmware/target/arm/iriver/h10/power-h10.c | 10 |
3 files changed, 12 insertions, 4 deletions
diff --git a/firmware/export/config-h10.h b/firmware/export/config-h10.h index 86d7cddca1..d29bd6c22d 100644 --- a/firmware/export/config-h10.h +++ b/firmware/export/config-h10.h | |||
@@ -116,6 +116,9 @@ | |||
116 | * We can currently put the lcd to sleep but it won't wake up properly */ | 116 | * We can currently put the lcd to sleep but it won't wake up properly */ |
117 | #define HAVE_LCD_SLEEP | 117 | #define HAVE_LCD_SLEEP |
118 | 118 | ||
119 | /* We're able to shut off power to the HDD */ | ||
120 | #define HAVE_ATA_POWER_OFF | ||
121 | |||
119 | /* Offset ( in the firmware file's header ) to the file length */ | 122 | /* Offset ( in the firmware file's header ) to the file length */ |
120 | #define FIRMWARE_OFFSET_FILE_LENGTH 0 | 123 | #define FIRMWARE_OFFSET_FILE_LENGTH 0 |
121 | 124 | ||
diff --git a/firmware/export/config-h10_5gb.h b/firmware/export/config-h10_5gb.h index aefc21cef3..e40fdeab86 100644 --- a/firmware/export/config-h10_5gb.h +++ b/firmware/export/config-h10_5gb.h | |||
@@ -97,6 +97,9 @@ | |||
97 | /* Type of LCD */ | 97 | /* Type of LCD */ |
98 | #define CONFIG_LCD LCD_H10_5GB | 98 | #define CONFIG_LCD LCD_H10_5GB |
99 | 99 | ||
100 | /* We're able to shut off power to the HDD */ | ||
101 | #define HAVE_ATA_POWER_OFF | ||
102 | |||
100 | /* Offset ( in the firmware file's header ) to the file length */ | 103 | /* Offset ( in the firmware file's header ) to the file length */ |
101 | #define FIRMWARE_OFFSET_FILE_LENGTH 0 | 104 | #define FIRMWARE_OFFSET_FILE_LENGTH 0 |
102 | 105 | ||
diff --git a/firmware/target/arm/iriver/h10/power-h10.c b/firmware/target/arm/iriver/h10/power-h10.c index 143248efcd..9470c0a67d 100644 --- a/firmware/target/arm/iriver/h10/power-h10.c +++ b/firmware/target/arm/iriver/h10/power-h10.c | |||
@@ -76,15 +76,17 @@ bool charger_inserted(void) | |||
76 | 76 | ||
77 | void ide_power_enable(bool on) | 77 | void ide_power_enable(bool on) |
78 | { | 78 | { |
79 | (void)on; | 79 | if(on){ |
80 | /* We do nothing on the iPod */ | 80 | GPIOF_OUTPUT_VAL &=~ 0x1; |
81 | } else { | ||
82 | GPIOF_OUTPUT_VAL |= 0x1; | ||
83 | } | ||
81 | } | 84 | } |
82 | 85 | ||
83 | 86 | ||
84 | bool ide_powered(void) | 87 | bool ide_powered(void) |
85 | { | 88 | { |
86 | /* pretend we are always powered - we don't turn it off on the ipod */ | 89 | return ((GPIOF_INPUT_VAL & 0x1) == 0); |
87 | return true; | ||
88 | } | 90 | } |
89 | 91 | ||
90 | void power_off(void) | 92 | void power_off(void) |