ATA power control on iAudio X5

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8855 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2006-02-27 08:47:18 +00:00
parent 999c5d8c00
commit ef35080728

View file

@ -42,7 +42,13 @@ bool charger_inserted(void)
void ide_power_enable(bool on)
{
(void)on;
/* GPOOD3 */
int level = set_irq_level(HIGHEST_IRQ_LEVEL);
if(on)
pcf50606_write(0x3c, 0x07);
else
pcf50606_write(0x3c, 0x00);
set_irq_level(level);
}
bool ide_powered(void)