mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Implement NAND power management for iPod Nano 2G
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23099 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0260b0ad5a
commit
e6c8a185e5
5 changed files with 68 additions and 31 deletions
|
|
@ -29,6 +29,7 @@
|
|||
#include "panic.h"
|
||||
#include "usb.h"
|
||||
#include "ftl-target.h"
|
||||
#include "nand-target.h"
|
||||
|
||||
/* for compatibility */
|
||||
long last_disk_activity = -1;
|
||||
|
|
@ -62,14 +63,17 @@ void nand_spindown(int seconds)
|
|||
|
||||
void nand_sleep(void)
|
||||
{
|
||||
nand_power_down();
|
||||
}
|
||||
|
||||
void nand_sleepnow(void)
|
||||
{
|
||||
nand_power_down();
|
||||
}
|
||||
|
||||
void nand_spin(void)
|
||||
{
|
||||
nand_power_up();
|
||||
}
|
||||
|
||||
void nand_enable(bool on)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue