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
This commit is contained in:
Marcin Bukat 2010-07-27 21:27:51 +00:00
parent e13d410761
commit 1ee19676f2
2 changed files with 7 additions and 0 deletions

View File

@ -124,6 +124,7 @@
#define CURRENT_NORMAL 68 /* measured during playback unboosted */
#define CURRENT_BACKLIGHT 24 /* measured */
#define CURRENT_RECORD 40 /* additional current while recording */
#define CURRENT_ATA 100 /* additional current when ata system is ON */
/* #define CURRENT_REMOTE 0 additional current when remote connected */
#define CONFIG_CHARGING CHARGING_MONITOR

View File

@ -414,6 +414,12 @@ static int runcurrent(void)
if (remote_detect())
current += CURRENT_REMOTE;
#endif
#if defined(HAVE_ATA_POWER_OFF) && defined(CURRENT_ATA)
if (ide_powered())
current += CURRENT_ATA;
#endif
#endif /* BOOTLOADER */
return current;