Commit graph

574 commits

Author SHA1 Message Date
Jens Arnold
a450e34770 Major MMC driver rework: DMA for sector transfers (except for single sector 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-09 01:14:55 +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
Jens Arnold
5cf1c97aea Button flip enabled on Ondio
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5226 a1c6a512-1295-4272-9138-f99709370657
2004-10-08 17:02:16 +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
Jens Arnold
6f9a7eb2c7 Enhanced MMC handling: Driver cleanup, timeout calculation fixed, allowed 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-06 20:43:12 +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
540b19dc50 panic on write behind partition, too
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5171 a1c6a512-1295-4272-9138-f99709370657
2004-10-05 07:55:31 +00:00
Jens Arnold
a15386bb9d (Re-)added the delayed write feature to avoid wearing the flash unnecessarily
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5162 a1c6a512-1295-4272-9138-f99709370657
2004-10-04 22:29:06 +00:00
Jens Arnold
36813086e6 MMC: 10 % faster reading and 15 % faster writing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5161 a1c6a512-1295-4272-9138-f99709370657
2004-10-04 17:53:53 +00:00
Jens Arnold
a2b5681ca5 Removed disabled code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5154 a1c6a512-1295-4272-9138-f99709370657
2004-10-03 23:35:14 +00:00
Jens Arnold
dc6caf9ce8 Implemented multiple block reading and writing. Significant speedup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5153 a1c6a512-1295-4272-9138-f99709370657
2004-10-03 23:32:09 +00:00
Jens Arnold
fc9aadaf8b Some cleanup, and a quick fix to make battery status reading and idle poweroff work
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5149 a1c6a512-1295-4272-9138-f99709370657
2004-10-01 21:41:44 +00:00
Jens Arnold
212f18f9ea Fix: card initialization on card_select()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5142 a1c6a512-1295-4272-9138-f99709370657
2004-10-01 17:01:40 +00:00
Jörg Hohensohn
c4b326c215 Ondio PACR inits for cold start
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5141 a1c6a512-1295-4272-9138-f99709370657
2004-10-01 16:57:54 +00:00
Linus Nielsen Feltzing
e29e91e025 We must sleep 2 ticks to be really sure that all A/D channels have been converted at least once before returning from adc_init()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5136 a1c6a512-1295-4272-9138-f99709370657
2004-10-01 06:05:22 +00:00
Jens Arnold
7d8598f30e Writing to mmc does work now, but not always correct yet. It caused a corrupt file system once, so beware
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5132 a1c6a512-1295-4272-9138-f99709370657
2004-09-29 22:44:02 +00:00
Jens Arnold
eaa1f73c6d Added MAS3539F support (Ondio SP)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5129 a1c6a512-1295-4272-9138-f99709370657
2004-09-29 19:51:41 +00:00
Jens Arnold
6cb799174b Small fix for the card init
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5128 a1c6a512-1295-4272-9138-f99709370657
2004-09-29 01:10:32 +00:00
Jens Arnold
de6f799ace MMC driver is now write enabled, and should no longer lock up. Still preliminary and rather slow, polling everywhere.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5127 a1c6a512-1295-4272-9138-f99709370657
2004-09-29 00:50:40 +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
Jens Arnold
90cbd3b06d First working MMC driver (very preliminary, and read-only), and some adaptions of the debug menu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5123 a1c6a512-1295-4272-9138-f99709370657
2004-09-28 06:23:57 +00:00
Jens Arnold
af33f259a2 Ensure vaild readings when adc_init() returns
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5117 a1c6a512-1295-4272-9138-f99709370657
2004-09-24 22:26:16 +00:00
Jens Arnold
23f2a59865 Added debouncing to the Ondio button driver.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5115 a1c6a512-1295-4272-9138-f99709370657
2004-09-23 22:36:15 +00:00
Jörg Hohensohn
7f7afe434b FAT16 support for the Ondio
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5114 a1c6a512-1295-4272-9138-f99709370657
2004-09-23 21:43:43 +00:00
Henrik Backe
a30c1caaf5 Fixed yellow build
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5111 a1c6a512-1295-4272-9138-f99709370657
2004-09-23 19:38:00 +00:00
Linus Nielsen Feltzing
5f8ffa02a6 An attempt to filter the button reading
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5109 a1c6a512-1295-4272-9138-f99709370657
2004-09-23 12:08:48 +00:00
Linus Nielsen Feltzing
5dfc1d0649 Removed the obsolete adcreg[] table
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5100 a1c6a512-1295-4272-9138-f99709370657
2004-09-21 10:47:44 +00:00
Linus Nielsen Feltzing
ddb6333797 New A/D conversion strategy, now updates all channels every tick
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5099 a1c6a512-1295-4272-9138-f99709370657
2004-09-21 08:59:36 +00:00
Jens Arnold
56cbda370d Chip selects for internal & external card were reversed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5098 a1c6a512-1295-4272-9138-f99709370657
2004-09-20 22:54:13 +00:00
Jens Arnold
2d875f83e6 Disabled all code for the serial remote on Ondio, since the serial port is needed for MMC access.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5097 a1c6a512-1295-4272-9138-f99709370657
2004-09-20 22:15:35 +00:00
Björn Stenberg
57945b125d Removed the Neo code. Nobody is interested in it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5096 a1c6a512-1295-4272-9138-f99709370657
2004-09-20 08:10:43 +00:00
Björn Stenberg
6c33c51a4c Redesigned the button handling. The code now uses symbolic function defines instead of checking for specific buttons. This makes it easier to add support for new devices with different button layouts.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5091 a1c6a512-1295-4272-9138-f99709370657
2004-09-19 21:58:37 +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
Björn Stenberg
4bdbcd6a7c Removed test code that shouldn't have been committed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5082 a1c6a512-1295-4272-9138-f99709370657
2004-09-16 14:40:50 +00:00
Björn Stenberg
8b6950493b Moved LCD_WIDHT/HEIGHT from lcd driver to config file.
Simulators now use conig-xxx.h.
Added Iriver H100 to tools/configure.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5081 a1c6a512-1295-4272-9138-f99709370657
2004-09-16 14:36:08 +00:00
Jörg Hohensohn
73792b474e Ondio levels adjusted, use ADC channel names
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5074 a1c6a512-1295-4272-9138-f99709370657
2004-09-15 07:03:11 +00:00
Jörg Hohensohn
3f7c508a09 Ondio USB mode works with both internal and external MMC
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5073 a1c6a512-1295-4272-9138-f99709370657
2004-09-14 23:06:10 +00:00
Jörg Hohensohn
eb8fef7cce Ondio USB mode works, but only with external MMC
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5072 a1c6a512-1295-4272-9138-f99709370657
2004-09-14 22:27:52 +00:00
Jörg Hohensohn
c4e8bed5a7 some fixes for Ondio USB passthrough (but still doesn't work yet)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5067 a1c6a512-1295-4272-9138-f99709370657
2004-09-11 15:18:10 +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
Jörg Hohensohn
3f0e64126e avoid unused variable warning if no LED
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5059 a1c6a512-1295-4272-9138-f99709370657
2004-09-10 13:00:40 +00:00
Jörg Hohensohn
c45d54b467 no double negation, define present features, not absent
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5058 a1c6a512-1295-4272-9138-f99709370657
2004-09-10 12:55:55 +00:00
Jörg Hohensohn
9bb648800b Ondio has no LED (no RLOD possible ;-)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5057 a1c6a512-1295-4272-9138-f99709370657
2004-09-10 12:11:28 +00:00
Jörg Hohensohn
cde9844748 minor oops
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5056 a1c6a512-1295-4272-9138-f99709370657
2004-09-10 11:28:44 +00:00
Jörg Hohensohn
24c7c04899 adjustment for the Ondio: button driver has an Odio part, for now it has a Player layout. Some fixes in the app code were necessary to remove dependencies of LCD, keypad, this wasn't independent everywhere.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5055 a1c6a512-1295-4272-9138-f99709370657
2004-09-10 10:51:54 +00:00
Jörg Hohensohn
6c1afd7a9e adjustment for the Ondio: I2C clock is on a different pin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5054 a1c6a512-1295-4272-9138-f99709370657
2004-09-10 07:24:00 +00:00
Jörg Hohensohn
d5c293a525 the very first adjustment for the Ondio: fix the screen orientation
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5053 a1c6a512-1295-4272-9138-f99709370657
2004-09-09 06:12:40 +00:00
Linus Nielsen Feltzing
8d54253b0d button_clear_queue() now works as expected
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5031 a1c6a512-1295-4272-9138-f99709370657
2004-09-01 06:24:57 +00:00
Jens Arnold
b4920271ba Fixed new font format: necessity of offset table generation, output of fonts without one
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5018 a1c6a512-1295-4272-9138-f99709370657
2004-08-27 00:34:15 +00:00