diff options
| author | Jörg Hohensohn <hohensoh@rockbox.org> | 2003-07-18 21:55:06 +0000 |
|---|---|---|
| committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2003-07-18 21:55:06 +0000 |
| commit | f4b677eb3ccd75a5609a764c79f6dda20973f4d5 (patch) | |
| tree | bb1a40c9af2fc7db124c009f3f0818a1b3dbc285 | |
| parent | 4fcdba1b6952b176d91b89d94f19cfb8a661c49c (diff) | |
| download | rockbox-f4b677eb3ccd75a5609a764c79f6dda20973f4d5.zip rockbox-f4b677eb3ccd75a5609a764c79f6dda20973f4d5.tar.gz rockbox-f4b677eb3ccd75a5609a764c79f6dda20973f4d5.tar.bz2 rockbox-f4b677eb3ccd75a5609a764c79f6dda20973f4d5.tar.xz | |
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
| -rw-r--r-- | firmware/drivers/ata.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index a463e2d..80123fa 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -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 ) { |