mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-10 05:32:40 -05:00
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:
parent
999c5d8c00
commit
ef35080728
1 changed files with 7 additions and 1 deletions
|
|
@ -42,7 +42,13 @@ bool charger_inserted(void)
|
||||||
|
|
||||||
void ide_power_enable(bool on)
|
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)
|
bool ide_powered(void)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue