diff options
author | Torne Wuff <torne@wolfpuppy.org.uk> | 2013-05-12 22:38:52 +0100 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-11-04 03:03:19 +0000 |
commit | 5db83c155affd1968872044fc6a3a156cf966ba4 (patch) | |
tree | 50fd4d2ef7bed155feaa79c3023af10e47075d8f /firmware/drivers/ata.c | |
parent | 090bd9592df1e05e289e658c2530ae277a205318 (diff) | |
download | rockbox-5db83c155affd1968872044fc6a3a156cf966ba4.tar.gz rockbox-5db83c155affd1968872044fc6a3a156cf966ba4.zip |
pp5020: use ipod firmware timings for ATA PIO.
Some mSATA adapters seem to have trouble working with Rockbox using our
normal PIO timings; the timing value we use is probably out of spec and
is different to the OF. Switch to using the OF's timings according to
which PIO mode we select. This may not completely resolve problems with
these adapters but allows Rockbox to boot and play audio.
Change-Id: If73210700eb4af01864b373709ee1d15c775fb11
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r-- | firmware/drivers/ata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index db39255256..ba0d6d169e 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c | |||
@@ -332,7 +332,7 @@ static ICODE_ATTR void copy_write_sectors(const unsigned char* buf, | |||
332 | } | 332 | } |
333 | #endif /* !ATA_OPTIMIZED_WRITING */ | 333 | #endif /* !ATA_OPTIMIZED_WRITING */ |
334 | 334 | ||
335 | static inline int ata_disk_isssd(void) | 335 | int ata_disk_isssd(void) |
336 | { | 336 | { |
337 | /* offset 217 is "Nominal Rotation rate" | 337 | /* offset 217 is "Nominal Rotation rate" |
338 | 0x0000 == Not reported | 338 | 0x0000 == Not reported |