diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2010-07-27 21:27:51 +0000 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2010-07-27 21:27:51 +0000 |
commit | 1ee19676f22e9eed8de2b9dae4bd23b075961cf6 (patch) | |
tree | f7b537a5304162a241db378ec0f24e17d710ba94 | |
parent | e13d41076193660868dd8e26911fc5212deb08bb (diff) | |
download | rockbox-1ee19676f22e9eed8de2b9dae4bd23b075961cf6.tar.gz rockbox-1ee19676f22e9eed8de2b9dae4bd23b075961cf6.zip |
Add optional CURRENT_ATA in runcurrent(). On MPIO HD200 powering ata takes ~100mA which is sagnificant contribution to the total power consumption.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27589 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/export/config/mpiohd200.h | 1 | ||||
-rw-r--r-- | firmware/powermgmt.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/firmware/export/config/mpiohd200.h b/firmware/export/config/mpiohd200.h index 072b459085..52db452ca8 100644 --- a/firmware/export/config/mpiohd200.h +++ b/firmware/export/config/mpiohd200.h | |||
@@ -124,6 +124,7 @@ | |||
124 | #define CURRENT_NORMAL 68 /* measured during playback unboosted */ | 124 | #define CURRENT_NORMAL 68 /* measured during playback unboosted */ |
125 | #define CURRENT_BACKLIGHT 24 /* measured */ | 125 | #define CURRENT_BACKLIGHT 24 /* measured */ |
126 | #define CURRENT_RECORD 40 /* additional current while recording */ | 126 | #define CURRENT_RECORD 40 /* additional current while recording */ |
127 | #define CURRENT_ATA 100 /* additional current when ata system is ON */ | ||
127 | /* #define CURRENT_REMOTE 0 additional current when remote connected */ | 128 | /* #define CURRENT_REMOTE 0 additional current when remote connected */ |
128 | 129 | ||
129 | #define CONFIG_CHARGING CHARGING_MONITOR | 130 | #define CONFIG_CHARGING CHARGING_MONITOR |
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index c5f981d1f6..6ae2ca6150 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c | |||
@@ -414,6 +414,12 @@ static int runcurrent(void) | |||
414 | if (remote_detect()) | 414 | if (remote_detect()) |
415 | current += CURRENT_REMOTE; | 415 | current += CURRENT_REMOTE; |
416 | #endif | 416 | #endif |
417 | |||
418 | #if defined(HAVE_ATA_POWER_OFF) && defined(CURRENT_ATA) | ||
419 | if (ide_powered()) | ||
420 | current += CURRENT_ATA; | ||
421 | #endif | ||
422 | |||
417 | #endif /* BOOTLOADER */ | 423 | #endif /* BOOTLOADER */ |
418 | 424 | ||
419 | return current; | 425 | return current; |