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:
parent
4fcdba1b69
commit
f4b677eb3c
1 changed files with 2 additions and 1 deletions
|
@ -82,7 +82,7 @@ static volatile unsigned char* ata_control;
|
||||||
bool old_recorder = false;
|
bool old_recorder = false;
|
||||||
int ata_spinup_time = 0;
|
int ata_spinup_time = 0;
|
||||||
static bool spinup = false;
|
static bool spinup = false;
|
||||||
static bool sleeping = false;
|
static bool sleeping = true;
|
||||||
static int sleep_timeout = 5*HZ;
|
static int sleep_timeout = 5*HZ;
|
||||||
static bool poweroff = false;
|
static bool poweroff = false;
|
||||||
#ifdef HAVE_ATA_POWER_OFF
|
#ifdef HAVE_ATA_POWER_OFF
|
||||||
|
@ -812,6 +812,7 @@ int ata_init(void)
|
||||||
PADR |= 0x0200; /* release ATA reset */
|
PADR |= 0x0200; /* release ATA reset */
|
||||||
PACR2 &= 0xBFFF; /* GPIO function for PA7 (IDE enable) */
|
PACR2 &= 0xBFFF; /* GPIO function for PA7 (IDE enable) */
|
||||||
|
|
||||||
|
sleeping = false;
|
||||||
ata_enable(true);
|
ata_enable(true);
|
||||||
|
|
||||||
if ( !initialized ) {
|
if ( !initialized ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue