summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata_mmc.c
AgeCommit message (Collapse)Author
2005-11-07Removed unused ata_standby(), changed return type of ata_sleep() to void, ↵Jens Arnold
removed misleading comment from ata.h git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7782 a1c6a512-1295-4272-9138-f99709370657
2005-05-22Ondio: Fix multivolume and hotswap for the old MMC clock circuit.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6502 a1c6a512-1295-4272-9138-f99709370657
2005-05-17(1) Early USB detection on boot, before trying to mount the partitions. ↵Jens Arnold
Cleaner & quicker; removes the need for the extra USB check at the top of ask_resume() which caused a deadlock in screenshot mode (see patch #1110332). On Ondio, this allows to leave an MMC in the slot when booting with USB connected for instant access. (2) Ondio: Track MMC status, only ask to remove the card if required. Probe MMC status if unknown. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6488 a1c6a512-1295-4272-9138-f99709370657
2005-05-16Hotswap: Better placement for switching the MMC monitor off/on.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6480 a1c6a512-1295-4272-9138-f99709370657
2005-05-16Hotswap: Avoid mount race at startup and after returning from USB mode.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6479 a1c6a512-1295-4272-9138-f99709370657
2005-05-14Some code cleanup.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6471 a1c6a512-1295-4272-9138-f99709370657
2005-05-04Improved bitfield handling for settings and MMC (more straigtforward, ↵Jens Arnold
smaller code). This switches the order for fields crossing a longword boundary, so the config block version bump is necessary. Save your settings to a file before upgrading. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6404 a1c6a512-1295-4272-9138-f99709370657
2005-05-02MMC driver: More flexible background copy & bitswap concept, using global ↵Jens Arnold
variables - slightly less read latency when both partial and full blocks are involved. Some code cleanup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6393 a1c6a512-1295-4272-9138-f99709370657
2005-04-28Speed optimisations: (1) Read, write: Use single/multiple block commands ↵Jens Arnold
depending on the block count. (2) Write: Combine first partial sector transfer (after caching) & main loop into one block-transfer sequence. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6381 a1c6a512-1295-4272-9138-f99709370657
2005-04-28MMC driver does now handle block sizes != 512 bytes, which is necessary to ↵Jens Arnold
support cards > 1 GB. Changed error handling to use the same method as other parts of rockbox, allowing to trace the call chain. Long policy, code cleanup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6366 a1c6a512-1295-4272-9138-f99709370657
2005-03-12non-ambiguous error codeJörg Hohensohn
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6192 a1c6a512-1295-4272-9138-f99709370657
2005-03-10Don't panic on read attempts past end of card, just exit with error. Such ↵Jörg Hohensohn
can happen when mounting superfloppy MMC, without valid partition table. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6179 a1c6a512-1295-4272-9138-f99709370657
2005-02-20Correctly display USB activity on Ondios with old bridge. (Added blindly, ↵Jens Arnold
please test.) Slight code cleanup, removed DOS line endings. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6025 a1c6a512-1295-4272-9138-f99709370657
2005-02-19Ondio: disk activity indication in USB mode, tooJörg Hohensohn
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6020 a1c6a512-1295-4272-9138-f99709370657
2005-02-19Ondio: disk indication in the status bar, to compensate for lacking LEDJörg Hohensohn
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6012 a1c6a512-1295-4272-9138-f99709370657
2005-02-14Some MMCs don't like reading their very last sector with the ↵Jens Arnold
read_multiple_blocks command, so always read it with read_single_block. Slight optimisation. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5942 a1c6a512-1295-4272-9138-f99709370657
2005-02-12Fixed calculation of MMC sector count. Display sector count instead of ↵Jens Arnold
(rough) size info for debugging. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5937 a1c6a512-1295-4272-9138-f99709370657
2005-02-06Aligned thread stackLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5803 a1c6a512-1295-4272-9138-f99709370657
2005-02-04MMC driver now panics on out-of-bound accesses.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5768 a1c6a512-1295-4272-9138-f99709370657
2005-01-31MMC debug info: Tsac is now needed in ns, no longer scaled by 10.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5725 a1c6a512-1295-4272-9138-f99709370657
2005-01-28do the hotswapJörg Hohensohn
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5702 a1c6a512-1295-4272-9138-f99709370657
2005-01-03select the card within the mutex, seems more safeJörg Hohensohn
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5530 a1c6a512-1295-4272-9138-f99709370657
2004-12-29cosmetic: use the IF_MV2() macro for optional argumentsJörg Hohensohn
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5521 a1c6a512-1295-4272-9138-f99709370657
2004-12-28prepared to mount multiple partitions into one logical file system (most ↵Jörg Hohensohn
useful for Ondio, internal memory + external MMC) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5514 a1c6a512-1295-4272-9138-f99709370657
2004-11-17Fix: my previous adjustments broke access to external MMC on newer Ondio ↵Jens Arnold
models (mask bit 2 == 1). Xor operator works bitwise, so both operators need to be logical values here git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5422 a1c6a512-1295-4272-9138-f99709370657
2004-11-17Ondio: adjustments for models with mask bit 2 == 0 (different MMC clock ↵Jens Arnold
select circuitry) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5421 a1c6a512-1295-4272-9138-f99709370657
2004-11-14Increased MMC init timeout (again), and sleep() between consecutive tries.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5408 a1c6a512-1295-4272-9138-f99709370657
2004-11-14Increased init timeout to account for some very slow (SD) cardsJens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5407 a1c6a512-1295-4272-9138-f99709370657
2004-11-07Unique error codesJens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5390 a1c6a512-1295-4272-9138-f99709370657
2004-10-10MMC hotswap handling in USB modeJens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5247 a1c6a512-1295-4272-9138-f99709370657
2004-10-10First part of MMC hotswap handling; removed unnecessary MMC threadJens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5241 a1c6a512-1295-4272-9138-f99709370657
2004-10-09Fixed busy timeout handling; better commentsJens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5240 a1c6a512-1295-4272-9138-f99709370657
2004-10-09Major MMC driver rework: DMA for sector transfers (except for single sector ↵Jens Arnold
writes), bitswap while DMA transfer is running, optimized SCI handling (back-to-back transfer for polled writes), yield()s once per sector transfer. Speed is now close to the theoretical maximum git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5231 a1c6a512-1295-4272-9138-f99709370657
2004-10-06Enhanced MMC handling: Driver cleanup, timeout calculation fixed, allowed ↵Jens Arnold
voltage check, maintain disk activity info (fixes immediate shutdown at end of playback). MMC debug menu item populated. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5193 a1c6a512-1295-4272-9138-f99709370657
2004-10-05Compile ata_mmc.c for targets with mmc, ata.c for all others.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5174 a1c6a512-1295-4272-9138-f99709370657
2004-10-04(Re-)added the delayed write feature to avoid wearing the flash unnecessarilyJens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5162 a1c6a512-1295-4272-9138-f99709370657
2004-10-04MMC: 10 % faster reading and 15 % faster writingJens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5161 a1c6a512-1295-4272-9138-f99709370657
2004-10-03Removed disabled code.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5154 a1c6a512-1295-4272-9138-f99709370657
2004-10-03Implemented multiple block reading and writing. Significant speedup.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5153 a1c6a512-1295-4272-9138-f99709370657
2004-10-01Some cleanup, and a quick fix to make battery status reading and idle ↵Jens Arnold
poweroff work git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5149 a1c6a512-1295-4272-9138-f99709370657
2004-10-01Fix: card initialization on card_select()Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5142 a1c6a512-1295-4272-9138-f99709370657
2004-10-01Ondio PACR inits for cold startJörg Hohensohn
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5141 a1c6a512-1295-4272-9138-f99709370657
2004-09-29Writing to mmc does work now, but not always correct yet. It caused a ↵Jens Arnold
corrupt file system once, so beware git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5132 a1c6a512-1295-4272-9138-f99709370657
2004-09-29Small fix for the card initJens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5128 a1c6a512-1295-4272-9138-f99709370657
2004-09-29MMC driver is now write enabled, and should no longer lock up. Still ↵Jens Arnold
preliminary and rather slow, polling everywhere. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5127 a1c6a512-1295-4272-9138-f99709370657
2004-09-28First working MMC driver (very preliminary, and read-only), and some ↵Jens Arnold
adaptions of the debug menu git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5123 a1c6a512-1295-4272-9138-f99709370657
2004-09-20Chip selects for internal & external card were reversedJens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5098 a1c6a512-1295-4272-9138-f99709370657
2004-09-14Ondio USB mode works with both internal and external MMCJörg Hohensohn
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5073 a1c6a512-1295-4272-9138-f99709370657
2004-09-14Ondio USB mode works, but only with external MMCJörg Hohensohn
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5072 a1c6a512-1295-4272-9138-f99709370657
2004-09-11some fixes for Ondio USB passthrough (but still doesn't work yet)Jörg Hohensohn
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5067 a1c6a512-1295-4272-9138-f99709370657