1
0
Fork 0
forked from len0rd/rockbox

report sleeping disk while not initialized, needed for changing before ata_init()

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3844 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jörg Hohensohn 2003-07-18 21:55:06 +00:00
parent 4fcdba1b69
commit f4b677eb3c

View file

@ -82,7 +82,7 @@ static volatile unsigned char* ata_control;
bool old_recorder = false;
int ata_spinup_time = 0;
static bool spinup = false;
static bool sleeping = false;
static bool sleeping = true;
static int sleep_timeout = 5*HZ;
static bool poweroff = false;
#ifdef HAVE_ATA_POWER_OFF
@ -812,6 +812,7 @@ int ata_init(void)
PADR |= 0x0200; /* release ATA reset */
PACR2 &= 0xBFFF; /* GPIO function for PA7 (IDE enable) */
sleeping = false;
ata_enable(true);
if ( !initialized ) {