diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-11-03 23:57:24 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-11-03 23:57:24 +0000 |
commit | 015f6286a8db3fb79d155cf33698ededf219d32e (patch) | |
tree | 2d6bce1fa42719e947ac8034012a8fe0e7627e20 /firmware/target/arm/iriver/h10 | |
parent | 33acc662569ab01e0770b85a6b32c57ed340c351 (diff) | |
download | rockbox-015f6286a8db3fb79d155cf33698ededf219d32e.tar.gz rockbox-015f6286a8db3fb79d155cf33698ededf219d32e.zip |
Finally: HDD power control for all PP502x iPods (4th gen Grayscale, Color, Minis, Video). * Wait a short time after powering on the HDD on all disk based targets, as that seems like a good idea. Shorten the excessive wait on initial power on.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15444 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/iriver/h10')
-rw-r--r-- | firmware/target/arm/iriver/h10/power-h10.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/firmware/target/arm/iriver/h10/power-h10.c b/firmware/target/arm/iriver/h10/power-h10.c index 9cbdb50080..7f3fb40b36 100644 --- a/firmware/target/arm/iriver/h10/power-h10.c +++ b/firmware/target/arm/iriver/h10/power-h10.c | |||
@@ -60,10 +60,9 @@ bool charger_inserted(void) | |||
60 | void ide_power_enable(bool on) | 60 | void ide_power_enable(bool on) |
61 | { | 61 | { |
62 | if(on){ | 62 | if(on){ |
63 | GPIOF_OUTPUT_VAL &=~ 0x1; | 63 | GPIO_CLEAR_BITWISE(GPIOF_OUTPUT_VAL, 0x01); |
64 | sleep(1); | ||
65 | } else { | 64 | } else { |
66 | GPIOF_OUTPUT_VAL |= 0x1; | 65 | GPIO_SET_BITWISE(GPIOF_OUTPUT_VAL, 0x01); |
67 | } | 66 | } |
68 | } | 67 | } |
69 | 68 | ||