Björn Stenberg
7249c8807c
Updated power-on procedure
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2896 a1c6a512-1295-4272-9138-f99709370657
2002-12-02 10:30:40 +00:00
Daniel Stenberg
cf1368145a
HAVE_ATA_POWER_OFF is now defined and used if the platform has support for
...
that control
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2889 a1c6a512-1295-4272-9138-f99709370657
2002-11-29 07:05:27 +00:00
Björn Stenberg
2b77b4fdd5
Added option to enable/disable disk poweroff (for diagnostic purposes)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2888 a1c6a512-1295-4272-9138-f99709370657
2002-11-28 22:46:19 +00:00
Björn Stenberg
494d261de3
Added disk poweroff 2s after spindown. (Only for recorders yet.)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2887 a1c6a512-1295-4272-9138-f99709370657
2002-11-27 15:55:47 +00:00
Björn Stenberg
f11e3c0bba
Erroneous commit.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2877 a1c6a512-1295-4272-9138-f99709370657
2002-11-22 23:56:07 +00:00
Björn Stenberg
ac88b9e5ff
Fixed warnings.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2876 a1c6a512-1295-4272-9138-f99709370657
2002-11-22 23:55:08 +00:00
Björn Stenberg
099a6b58d1
Added extra safety checks.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2839 a1c6a512-1295-4272-9138-f99709370657
2002-11-12 20:02:23 +00:00
Björn Stenberg
f9fed8152a
Changed return code of ata_write_sectors() to be the same as for ata_read_sectors(). (0 == Success)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2811 a1c6a512-1295-4272-9138-f99709370657
2002-11-07 22:40:24 +00:00
Björn Stenberg
7526cf70c3
Improved retry handling
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2415 a1c6a512-1295-4272-9138-f99709370657
2002-09-25 14:10:50 +00:00
Björn Stenberg
c909b4b42e
Check status register for error
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2400 a1c6a512-1295-4272-9138-f99709370657
2002-09-24 17:10:03 +00:00
Björn Stenberg
70747f9bf3
Added read retry.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2397 a1c6a512-1295-4272-9138-f99709370657
2002-09-24 14:23:18 +00:00
Linus Nielsen Feltzing
040e80c3ad
Now exports last_disk_activity, for auto-poweroff
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2373 a1c6a512-1295-4272-9138-f99709370657
2002-09-23 11:39:21 +00:00
Björn Stenberg
5c530c5227
Bug fix: The LED was not on during writes
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2368 a1c6a512-1295-4272-9138-f99709370657
2002-09-23 06:45:46 +00:00
Björn Stenberg
8e96c47ff0
Made the sleep code a little bit less aggressive.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2220 a1c6a512-1295-4272-9138-f99709370657
2002-09-06 23:55:52 +00:00
Björn Stenberg
34fa70e321
Now runs SET_MULTIPLE_MODE after usb disconnect, since the windows driver sets it to a non-default value.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2214 a1c6a512-1295-4272-9138-f99709370657
2002-09-06 17:20:44 +00:00
Linus Nielsen Feltzing
e82f701fa4
Optimized ata_read_sectors() a little
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2213 a1c6a512-1295-4272-9138-f99709370657
2002-09-06 16:02:19 +00:00
Björn Stenberg
8ccbc766a4
Now uses READ MULTIPLE command. Also corrected some return values.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2186 a1c6a512-1295-4272-9138-f99709370657
2002-09-05 15:25:08 +00:00
Björn Stenberg
e65b65eeb0
Increased BSY & RDY timeouts to 10 seconds
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2174 a1c6a512-1295-4272-9138-f99709370657
2002-09-04 20:15:45 +00:00
Linus Nielsen Feltzing
00c1e0533b
Ooops! perform_soft_reset() unlocked the mutex...
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2132 a1c6a512-1295-4272-9138-f99709370657
2002-09-02 12:48:08 +00:00
Linus Nielsen Feltzing
c0a53eabca
STANDBY mode works again
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2115 a1c6a512-1295-4272-9138-f99709370657
2002-09-02 06:26:00 +00:00
Linus Nielsen Feltzing
5d154f9723
wait_for_rdy() now actually waits for RDY
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2057 a1c6a512-1295-4272-9138-f99709370657
2002-08-29 11:50:57 +00:00
Linus Nielsen Feltzing
9b1d1d46e1
Now uses STANDBY_IMMEDIATE instead of STANDBY
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2052 a1c6a512-1295-4272-9138-f99709370657
2002-08-29 11:34:46 +00:00
Linus Nielsen Feltzing
22e09a3fb8
Fixed some nasty mutex glitches
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2012 a1c6a512-1295-4272-9138-f99709370657
2002-08-27 21:06:48 +00:00
Björn Stenberg
f0599be133
Don't call perform_sleep() while already sleeping
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1988 a1c6a512-1295-4272-9138-f99709370657
2002-08-26 22:05:47 +00:00
Björn Stenberg
457b8a0a67
Added configurable disk spindown. The disk will also now not spin down while you are running around in the dir browser or pressing buttons in the wps.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1987 a1c6a512-1295-4272-9138-f99709370657
2002-08-26 13:21:14 +00:00
Björn Stenberg
518e1ec1e4
New measurements show ATA_SLEEP saves us 30-40 mA over ATA_STANDBY.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1932 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 21:53:10 +00:00
Björn Stenberg
6224cdb166
Added resume. Works in dirs and playlists, shuffled or not. Resumes mid-song, but press pause on players before you shutdown so they get a chance to store the position on disk. Recorders use RTC ram. Todo: Time display is wrong after mid-track resume and ffd/rew is not handled.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1787 a1c6a512-1295-4272-9138-f99709370657
2002-08-16 14:41:47 +00:00
Björn Stenberg
6ee90d9366
Removed warning
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1763 a1c6a512-1295-4272-9138-f99709370657
2002-08-15 12:54:52 +00:00
Björn Stenberg
c9d98ca927
Added delayed write for settings. Doesn't write until someone else accesses the disk.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1762 a1c6a512-1295-4272-9138-f99709370657
2002-08-15 12:42:37 +00:00
Björn Stenberg
63457c5c63
Added support for reading/writing 256 sectors
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1736 a1c6a512-1295-4272-9138-f99709370657
2002-08-14 16:37:28 +00:00
Björn Stenberg
9ab90eabd1
Removed verbose debug message
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1735 a1c6a512-1295-4272-9138-f99709370657
2002-08-14 14:36:26 +00:00
Björn Stenberg
ed027a9d59
Allow (slow) reading to odd address
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1734 a1c6a512-1295-4272-9138-f99709370657
2002-08-14 14:34:54 +00:00
Linus Nielsen Feltzing
513e8510cc
Cleaned up the sleep options a little
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1514 a1c6a512-1295-4272-9138-f99709370657
2002-08-02 06:01:22 +00:00
Linus Nielsen Feltzing
9d589401c1
Now uses CMD_STANDBY again. CMD_SLEEP used more power than CMD_STANDBY for some reason
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1507 a1c6a512-1295-4272-9138-f99709370657
2002-08-01 12:00:03 +00:00
Linus Nielsen Feltzing
364783a3d5
Moved ata_read_sectors() to internal RAM
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1501 a1c6a512-1295-4272-9138-f99709370657
2002-08-01 08:15:58 +00:00
Linus Nielsen Feltzing
47c0388f75
Enabled ata_write_sectors()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1481 a1c6a512-1295-4272-9138-f99709370657
2002-07-28 15:51:26 +00:00
Linus Nielsen Feltzing
ad8ac5c3ce
Added ata_disk_is_active() function
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1479 a1c6a512-1295-4272-9138-f99709370657
2002-07-28 15:16:36 +00:00
Linus Nielsen Feltzing
01fd2a093b
Corrected debug output
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1474 a1c6a512-1295-4272-9138-f99709370657
2002-07-27 22:44:52 +00:00
Linus Nielsen Feltzing
42df584960
Spindown mode is STANDBY when debugging
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1461 a1c6a512-1295-4272-9138-f99709370657
2002-07-27 19:24:27 +00:00
Linus Nielsen Feltzing
2f4b88e9bb
Possibly better USB handling
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1419 a1c6a512-1295-4272-9138-f99709370657
2002-07-23 15:02:25 +00:00
Björn Stenberg
11968a429a
Removed use of internal harddisk standby timer and instead added software sleep timer.
...
This gives lower power use and slightly faster boot, plus a more fine-grained timeout setting (1s steps instead of 5s).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1372 a1c6a512-1295-4272-9138-f99709370657
2002-07-16 14:07:47 +00:00
Björn Stenberg
c4b285027b
Faster, deeper disk sleep. Should save us some power.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1370 a1c6a512-1295-4272-9138-f99709370657
2002-07-16 12:18:17 +00:00
Linus Nielsen Feltzing
1639e98202
Added some debug information
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1298 a1c6a512-1295-4272-9138-f99709370657
2002-07-02 14:23:30 +00:00
Linus Nielsen Feltzing
2012e1ec28
Some cleanup
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1260 a1c6a512-1295-4272-9138-f99709370657
2002-06-30 13:10:42 +00:00
Linus Nielsen Feltzing
1a5032e7ed
Added old_recorder variable
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1195 a1c6a512-1295-4272-9138-f99709370657
2002-06-26 12:36:29 +00:00
Linus Nielsen Feltzing
1b8bb1e05e
Killed warnings
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1066 a1c6a512-1295-4272-9138-f99709370657
2002-06-18 13:19:25 +00:00
Linus Nielsen Feltzing
a422b8381b
Better ATA I/O detection
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1065 a1c6a512-1295-4272-9138-f99709370657
2002-06-18 12:53:02 +00:00
Linus Nielsen Feltzing
8169c8f5bd
Added I/O address detection for CONTROL/ALT_STATUS
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@976 a1c6a512-1295-4272-9138-f99709370657
2002-06-12 13:51:31 +00:00
Linus Nielsen Feltzing
a4058ec28a
ata_read_sectors() couldn't read more that one sector
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@974 a1c6a512-1295-4272-9138-f99709370657
2002-06-12 09:28:22 +00:00
Linus Nielsen Feltzing
8b1168bc94
Wrong command address for Recorder
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@902 a1c6a512-1295-4272-9138-f99709370657
2002-06-07 07:48:08 +00:00