Linus Nielsen Feltzing
d4313ce88b
iRiver: Correct cold start detection
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5824 a1c6a512-1295-4272-9138-f99709370657
2005-02-07 01:47:22 +00:00
Linus Nielsen Feltzing
3d9be05fba
Use proper CPU defines
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5811 a1c6a512-1295-4272-9138-f99709370657
2005-02-06 04:04:24 +00:00
Linus Nielsen Feltzing
2c6f08ddfc
Added ISD chip power control setup and used proper define for the MCF5249
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5808 a1c6a512-1295-4272-9138-f99709370657
2005-02-06 03:11:03 +00:00
Linus Nielsen Feltzing
3a777cd79c
iriver: ATA controller register setup
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5807 a1c6a512-1295-4272-9138-f99709370657
2005-02-06 03:00:30 +00:00
Linus Nielsen Feltzing
e085a51b07
iriver: fixed ATA enable setup
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5806 a1c6a512-1295-4272-9138-f99709370657
2005-02-06 02:58:43 +00:00
Linus Nielsen Feltzing
085032bf02
Aligned thread stack, correct CONTROL register for iRiver
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5802 a1c6a512-1295-4272-9138-f99709370657
2005-02-06 02:32:53 +00:00
Jean-Philippe Bernardy
99d2a4b436
fixes for gmini
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5664 a1c6a512-1295-4272-9138-f99709370657
2005-01-26 14:42:48 +00:00
Linus Nielsen Feltzing
4058b79c70
Ported ATA driver to iRiver, minor code policing
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5663 a1c6a512-1295-4272-9138-f99709370657
2005-01-26 12:53:48 +00:00
Jean-Philippe Bernardy
34d2a71fdd
More int -> long
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5654 a1c6a512-1295-4272-9138-f99709370657
2005-01-24 14:26:24 +00:00
Jean-Philippe Bernardy
a6467334b0
Factored out some macros
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5623 a1c6a512-1295-4272-9138-f99709370657
2005-01-20 23:29:48 +00:00
Jean-Philippe Bernardy
99e72c8758
Support for gmini ATA interface
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5622 a1c6a512-1295-4272-9138-f99709370657
2005-01-20 23:00:11 +00:00
Jörg Hohensohn
575c9049f6
behave for multi-volume
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5520 a1c6a512-1295-4272-9138-f99709370657
2004-12-29 22:37:31 +00:00
Jörg Hohensohn
da84857631
prepared to mount multiple partitions into one logical file system (most useful for Ondio, internal memory + external MMC)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5514 a1c6a512-1295-4272-9138-f99709370657
2004-12-28 22:16:07 +00:00
Jens Arnold
f05dec5702
Retry initializing the harddisk with hard reset in case the first try fails. Fixes panic when starting flashed rockbox by leaving the archos charging screen with On.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5461 a1c6a512-1295-4272-9138-f99709370657
2004-11-23 22:00:41 +00:00
Jens Arnold
7ebb5d915e
Moved player ATA power handling to the correct functions
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5449 a1c6a512-1295-4272-9138-f99709370657
2004-11-20 14:17:43 +00:00
Jens Arnold
2a89e7d122
New players: switch on the HD in ata_init()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5443 a1c6a512-1295-4272-9138-f99709370657
2004-11-20 00:15:12 +00:00
Jens Arnold
8eedc94018
Fixed warning when compiling with PREFER_C_WRITING
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5229 a1c6a512-1295-4272-9138-f99709370657
2004-10-08 19:20:20 +00:00
Linus Nielsen Feltzing
d681087ad0
Correct CPU type handling
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5202 a1c6a512-1295-4272-9138-f99709370657
2004-10-07 07:09:49 +00:00
Björn Stenberg
b60b29f442
Compile ata_mmc.c for targets with mmc, ata.c for all others.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5174 a1c6a512-1295-4272-9138-f99709370657
2004-10-05 08:11:11 +00:00
Jörg Hohensohn
593cc00447
a hell of a commit: changed several HAVE_xx configuration flags into multiple choice values (keypad, tuner, CPU, h/w codec)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5126 a1c6a512-1295-4272-9138-f99709370657
2004-09-28 22:13:26 +00:00
Björn Stenberg
65bf851ece
Added preliminary support for Iriver H100
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5089 a1c6a512-1295-4272-9138-f99709370657
2004-09-17 11:28:07 +00:00
Jörg Hohensohn
00be7469d6
prepared Ondio USB passthrough (but doesn't work yet)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5066 a1c6a512-1295-4272-9138-f99709370657
2004-09-11 09:06:58 +00:00
Jörg Hohensohn
57ea92cae1
prepared an empty MMC driver
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5065 a1c6a512-1295-4272-9138-f99709370657
2004-09-11 03:48:05 +00:00
Jens Arnold
0ceaa5e365
Const policed pointer arguments to functions, part 2
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4996 a1c6a512-1295-4272-9138-f99709370657
2004-08-17 01:45:48 +00:00
Jens Arnold
2b0694c694
More const policeing step 3
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4982 a1c6a512-1295-4272-9138-f99709370657
2004-08-03 05:58:46 +00:00
Jens Arnold
b40591947d
Enabled assembler optimized disk reading and writing (approx. 2 times as fast)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4825 a1c6a512-1295-4272-9138-f99709370657
2004-07-05 13:44:53 +00:00
Jens Arnold
44e76cfa86
Disabled automatic disk spindown (by the drive). Updated comments regarding timing
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4733 a1c6a512-1295-4272-9138-f99709370657
2004-06-11 06:56:51 +00:00
Jörg Hohensohn
9c52b24b00
patch #922836 by Jens: way faster disk writing, in assembler. The code is in, but yet disabled by #define PREFER_C_WRITING unless it's proven safe for all disks.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4460 a1c6a512-1295-4272-9138-f99709370657
2004-04-01 05:46:31 +00:00
Linus Nielsen Feltzing
8bda0e1097
A hip shot trying to make the Red LED Death situation a little better
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4409 a1c6a512-1295-4272-9138-f99709370657
2004-03-19 13:26:43 +00:00
Jörg Hohensohn
5fb1e1024f
- no second ata_hard_reset() call, saves ~2.5 seconds flash boot time (please test)
...
- Jens' new assembler code in copy_read_sectors(), but still disabled
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4358 a1c6a512-1295-4272-9138-f99709370657
2004-03-10 14:15:14 +00:00
Linus Nielsen Feltzing
3a6e2f497b
Reverted the STANDBY fix from 2004-02-15, rev 1.106
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4352 a1c6a512-1295-4272-9138-f99709370657
2004-03-09 08:52:14 +00:00
Linus Nielsen Feltzing
68331ffb08
Now sets the highest possible PIO mode in set_features()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4328 a1c6a512-1295-4272-9138-f99709370657
2004-03-02 09:55:23 +00:00
Linus Nielsen Feltzing
97955a714b
fixed compiling errors
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4310 a1c6a512-1295-4272-9138-f99709370657
2004-02-17 01:31:50 +00:00
Linus Nielsen Feltzing
867415b3f8
set_features() is now called from ata_power_on()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4309 a1c6a512-1295-4272-9138-f99709370657
2004-02-17 01:30:25 +00:00
Linus Nielsen Feltzing
7bd92239ca
Silly me, I forgot to remove my debugging code
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4308 a1c6a512-1295-4272-9138-f99709370657
2004-02-16 23:27:02 +00:00
Linus Nielsen Feltzing
c3b9720ab4
Bug 1: The STANDBY mode is now explicitly disabled, since it could be set to 30s at powerup. Bug 2: set_features() wasn't called in ata_power_on().
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4307 a1c6a512-1295-4272-9138-f99709370657
2004-02-16 23:25:01 +00:00
Jörg Hohensohn
dee17f7102
Assembly code for copy_read_sectors() disabled: Tests with Trent showed that this is to blame for file system corruptions, even waitstates didn't fix it. No idea why, sorry...
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4304 a1c6a512-1295-4272-9138-f99709370657
2004-02-15 08:44:02 +00:00
Jörg Hohensohn
b646d4f278
Assembly code for copy_read_sectors() reworked: I've spread the ATA reads apart by filling independent instructions inbetween, this is also slightly faster because of no pipeline stall. Hopefully this fixes the problem Kargatron had with it.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4302 a1c6a512-1295-4272-9138-f99709370657
2004-02-09 08:24:25 +00:00
Jörg Hohensohn
bf4460e477
no code change, I just forgot to take my template disassembly out (a big comment block)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4282 a1c6a512-1295-4272-9138-f99709370657
2004-01-27 09:38:59 +00:00
Jörg Hohensohn
cb570b9263
Assembler optimized copy_read_sectors() gives another speedup of factor 1.4 for aligned and 1.2 for misaligned. Including my previous change the file reading is now nearly twice as fast compared to when I started this. -> Less disk uptime, longer battery life.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4281 a1c6a512-1295-4272-9138-f99709370657
2004-01-27 09:12:51 +00:00
Jörg Hohensohn
862d2b5e3a
warning + obsolete variable removed
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4248 a1c6a512-1295-4272-9138-f99709370657
2004-01-16 09:28:39 +00:00
Jörg Hohensohn
88faf38ef7
Optimized the sector read loop as much as C allows. I measured an overall speed improvement for file reading of 12.5% for 16-bit aligned and 35% for misaligned. I took the rest of ata_read_sectors() out of IRAM, it's sufficient if only the copy loop stays there.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4247 a1c6a512-1295-4272-9138-f99709370657
2004-01-16 09:02:21 +00:00
Björn Stenberg
a53afc0330
Added acoustic management, power management and read look-ahead.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4230 a1c6a512-1295-4272-9138-f99709370657
2004-01-14 13:15:19 +00:00
Björn Stenberg
1fe97ec54e
Improved timing in soft_reset. This hopefully cures spontaneous Red Led freezes.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4161 a1c6a512-1295-4272-9138-f99709370657
2003-12-17 20:15:12 +00:00
Daniel Stenberg
006b2c1c25
adjustments for Neo
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4130 a1c6a512-1295-4272-9138-f99709370657
2003-12-12 13:23:33 +00:00
Jörg Hohensohn
44298163ba
No more spinning disk while charging flashed FM+V2 (you need the new bootloader to utilize it). ToDo: remove now false voltage reading from charging screen.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4095 a1c6a512-1295-4272-9138-f99709370657
2003-12-03 01:03:54 +00:00
Linus Nielsen Feltzing
bef7ab0c26
The code police strikes back
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4024 a1c6a512-1295-4272-9138-f99709370657
2003-11-07 12:15:24 +00:00
Jörg Hohensohn
75bab49a54
set/clear port bits with atomic instructions instead of read-modify-write, saves time+space, allows port usage in ISR
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4022 a1c6a512-1295-4272-9138-f99709370657
2003-11-06 01:34:50 +00:00
Jörg Hohensohn
118d45eb92
ATA io_address_detect() now doesn't probe any more, but uses the h/w mask. Probing failed for some flash users. I hope this works for everybody, we have to try to find out.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3946 a1c6a512-1295-4272-9138-f99709370657
2003-09-01 05:48:42 +00:00
Jörg Hohensohn
f4b677eb3c
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
2003-07-18 21:55:06 +00:00