Commit graph

7260 commits

Author SHA1 Message Date
Jack Halpin
eb1992b4bd SansaAMSv2 as3541.c Include key line from funman's patch to get sound on clip+ and have it only apply to as3525v2.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25264 a1c6a512-1295-4272-9138-f99709370657
2010-03-21 05:43:55 +00:00
Rafaël Carré
7042c96b4a Clip+: enable sound on "as3514" (as3543 in fact)
as3525 comes with a as3517, as3525v2 with a as3543, rename specific
registers accordingly

Existing problems: FM (line out) doesn't work, volume can't go below a
certain point

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25260 a1c6a512-1295-4272-9138-f99709370657
2010-03-20 17:09:44 +00:00
Andree Buschmann
b6c12a129e Submit FS#11065. Introduce a new system setting for en-/disabling the Line-out. For now only implemented on iPod Video. This allows to save power if the user does not use the player's Line-out. On iPod 5G the saving is ~0.5 mA.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25257 a1c6a512-1295-4272-9138-f99709370657
2010-03-20 15:02:29 +00:00
Andree Buschmann
abce1b9927 Submit FS#9746 by Boris Gjenero. Set PP502x IDE pins low for iPod Video when IDE power is off. Done by OF the same way, might be used by other targets as well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25255 a1c6a512-1295-4272-9138-f99709370657
2010-03-20 12:30:18 +00:00
Jens Arnold
2bc9b06702 Reset USB bridge properly when selecting bus powered mode. The bridge might have been set to self powered by the cowon loader, and switching the mode requires a reset. Makes USB work on X5s which were set to 'hub mode' in the OF for some reason.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25252 a1c6a512-1295-4272-9138-f99709370657
2010-03-19 23:39:00 +00:00
Rafaël Carré
91647264f8 lcd-ssd1303 (all Clips) : move model specific code in their own files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25248 a1c6a512-1295-4272-9138-f99709370657
2010-03-19 15:13:29 +00:00
Michael Giacomelli
f14bb2287c Add runtime estimation for the iaudio X5.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25247 a1c6a512-1295-4272-9138-f99709370657
2010-03-18 19:11:39 +00:00
Rafaël Carré
004317a863 sd-as3525v2: correctly check send_cmd return value (which is boolean)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25246 a1c6a512-1295-4272-9138-f99709370657
2010-03-18 16:40:21 +00:00
Jack Halpin
016153a0b9 SansaAMSv2: Add support for uSD cards to sd-as3525v2.c and activate hotswap and multidrive.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25245 a1c6a512-1295-4272-9138-f99709370657
2010-03-18 13:25:13 +00:00
Rafaël Carré
fce5cc8e74 Clip+: correct usb product id
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25244 a1c6a512-1295-4272-9138-f99709370657
2010-03-18 10:29:17 +00:00
Rafaël Carré
fb6a5431f2 sd-as3525v2: sd_get_info() is already in common SD code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25243 a1c6a512-1295-4272-9138-f99709370657
2010-03-18 10:29:13 +00:00
Rafaël Carré
eec03f5f29 Fuze: correct usb pid
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25232 a1c6a512-1295-4272-9138-f99709370657
2010-03-17 09:05:49 +00:00
Rafaël Carré
37862a2157 as3525: Fix previous commit, IRAM_ORIG can not be represented as an immediate value on targets with 2MB of ram
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25230 a1c6a512-1295-4272-9138-f99709370657
2010-03-17 05:10:41 +00:00
Rafaël Carré
ab7365610b as3525*: revert r25198 and inline memory_init in crt0.S
We do not need a stack pointer at this step, and we are sure to not use
memory not initialized yet (like bss)

Fixes FS#11114 (tested on Fuze)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25229 a1c6a512-1295-4272-9138-f99709370657
2010-03-17 05:02:42 +00:00
Karl Kurbjun
bda2e6d675 M:Robe 500 - Improve YUV blit speed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25228 a1c6a512-1295-4272-9138-f99709370657
2010-03-17 01:44:20 +00:00
Karl Kurbjun
6b7f95289e M66591 Driver: Correct some comments.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25227 a1c6a512-1295-4272-9138-f99709370657
2010-03-17 01:43:15 +00:00
Thomas Martitz
b5b2a03ee2 A tiny bit more Sansa Fuze v2 work.
- buttonlight works
 - backlight turns on (quite weak though and no brightness adjustment/backlight off functional)
 - don't share drivers with e200v2/fuzev1 for now as it's not entirely clear how dbop plays into this
 - deactivte scrollwheel as it's messing up the timer setup in kernel-as3525.c indicating the dbop input reading doesn't work well
 - still no working bootloader/no lcd or buttons

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25225 a1c6a512-1295-4272-9138-f99709370657
2010-03-16 22:38:57 +00:00
Michael Giacomelli
f28a1ea111 Add basic runtime estimation for the c200v2 (taken from Clipv1) and e200v2 (taken from fuzev1).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25223 a1c6a512-1295-4272-9138-f99709370657
2010-03-16 18:06:21 +00:00
Michael Giacomelli
589abcd416 Disable runtime estimation altogether when there is no runtime current defined. It doens't work and people somehow got confused by seeing obviously wrong values. Now it will just return -1 if you try to estimate runtime without having the current defined.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25222 a1c6a512-1295-4272-9138-f99709370657
2010-03-16 17:13:25 +00:00
Michael Giacomelli
3b5418e814 Forgot the #
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25221 a1c6a512-1295-4272-9138-f99709370657
2010-03-16 16:15:02 +00:00
Michael Giacomelli
74bd14fa72 Remove some old archos code that caused runtime estimation to be off on AMS players while not actually working on Archos.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25220 a1c6a512-1295-4272-9138-f99709370657
2010-03-16 16:03:48 +00:00
Rafaël Carré
04937cb207 Clipv1 & m200v4 : reduce plugin buffer size to strict minimum
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25219 a1c6a512-1295-4272-9138-f99709370657
2010-03-16 15:57:44 +00:00
Mustapha Senhaji
ae8bf6fe73 Fix a typo on a comment
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25210 a1c6a512-1295-4272-9138-f99709370657
2010-03-16 00:54:08 +00:00
Rafaël Carré
f74a6ed38a Sansa Clipv2: use similar button driver to Clipv1
Fixes some buttons not being read (hold is still buggy)

FlySpray: FS#11111
Author: Pascal Below

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25209 a1c6a512-1295-4272-9138-f99709370657
2010-03-15 23:01:45 +00:00
Rafaël Carré
d0ea5673ea as3525v2 has twice the as3525v1 IRAM (verified on Clip+)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25207 a1c6a512-1295-4272-9138-f99709370657
2010-03-15 19:11:22 +00:00
Amaury Pouly
42660535be dir_uncached: fix opendir_uncached to have opened directories keep enough information to update metadata; this is necessary because of the way rmdir_uncached is implemented
FS#11107: should be fixed now

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25203 a1c6a512-1295-4272-9138-f99709370657
2010-03-15 12:32:04 +00:00
Amaury Pouly
46565f594a fat: make fat_open more flexible by accepting the file==&dir->file and make fat_opendir also more flexible by accepting dir==parent_dir
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25202 a1c6a512-1295-4272-9138-f99709370657
2010-03-15 12:31:24 +00:00
Rafaël Carré
1e422d0ea4 as3525* : make sure sp is setup in bootloader
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25199 a1c6a512-1295-4272-9138-f99709370657
2010-03-15 11:29:19 +00:00
Rafaël Carré
191857cc8d as3525*: setup stack pointer before we use it
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25198 a1c6a512-1295-4272-9138-f99709370657
2010-03-15 11:26:49 +00:00
Rafaël Carré
ba68f2dedd sd-as3525v2: add card hotswap to sd_thread
Clip+: add (disabled) configuration for µSD slot

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25194 a1c6a512-1295-4272-9138-f99709370657
2010-03-15 02:36:16 +00:00
Rafaël Carré
72e0bf3381 sd-as3525v2: prepare for multidrive builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25193 a1c6a512-1295-4272-9138-f99709370657
2010-03-15 01:57:15 +00:00
Rafaël Carré
a8ef7e5757 Clipv2: enable FM so testers can confirm if it's detected
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25192 a1c6a512-1295-4272-9138-f99709370657
2010-03-15 01:22:41 +00:00
Rafaël Carré
9dba6593cd as3525: do not assume we can record from microphone
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25191 a1c6a512-1295-4272-9138-f99709370657
2010-03-15 01:00:00 +00:00
Rafaël Carré
6159278e0d Clip+: si4702 FM
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25190 a1c6a512-1295-4272-9138-f99709370657
2010-03-15 00:36:13 +00:00
Rafaël Carré
ade669f0e7 sd-as3525v2: reduce the delay before reading response
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25189 a1c6a512-1295-4272-9138-f99709370657
2010-03-15 00:36:08 +00:00
Michael Sparmann
f6ada7c30c ftl-nano2g.c: s/\(\*([^)]+)\)\./\1->/
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25186 a1c6a512-1295-4272-9138-f99709370657
2010-03-14 22:22:47 +00:00
Rafaël Carré
c3c7306098 sd-as3525: do not reverse 2 times long responses, read them directly in the needed order
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25185 a1c6a512-1295-4272-9138-f99709370657
2010-03-14 21:46:25 +00:00
Rafaël Carré
db7aedf93a sd-as3525v2: do not reverse 2 times long responses, read them directly in the needed order
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25184 a1c6a512-1295-4272-9138-f99709370657
2010-03-14 21:38:36 +00:00
Rafaël Carré
291e2b1ae6 sd-as3525v2: delay a bit before reading the command response
Especially when using caches we might read the response too fast and get
the response for the previous command instead.

Now Clip+ boots fine with both instruction & data caches enabled, the
delay might need to be lowered though: boot time is a bit longer.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25183 a1c6a512-1295-4272-9138-f99709370657
2010-03-14 21:38:30 +00:00
Michael Sparmann
9b416c0652 Nano2G NAND: Don't continue reading on that bank if starting the read failed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25182 a1c6a512-1295-4272-9138-f99709370657
2010-03-14 20:55:43 +00:00
Michael Sparmann
af38e0960b Finally fast Nano2G NAND reading, also works on remapped blocks this time.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25181 a1c6a512-1295-4272-9138-f99709370657
2010-03-14 20:25:58 +00:00
Michael Sparmann
3e9222de38 Nano2G: switch over to slow writes at VFL level
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25176 a1c6a512-1295-4272-9138-f99709370657
2010-03-14 17:26:06 +00:00
Michael Sparmann
1a38f380b8 Re-enable fast reads in the Nano2G VFL/FTL. (Using the wrapper API in the NAND driver)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25175 a1c6a512-1295-4272-9138-f99709370657
2010-03-14 16:33:55 +00:00
Michael Sparmann
64b9586443 Implement Nano2G fast NAND read API as a wrapper around the slow one.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25174 a1c6a512-1295-4272-9138-f99709370657
2010-03-14 16:32:29 +00:00
Michael Sparmann
b09f624cdf Nano2G FTL: Enlarge FTL buffers for faster write operations
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25173 a1c6a512-1295-4272-9138-f99709370657
2010-03-14 16:13:15 +00:00
Michael Sparmann
c99d4fd709 Nano2G VFL/FTL: Use fast writes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25172 a1c6a512-1295-4272-9138-f99709370657
2010-03-14 16:12:28 +00:00
Michael Sparmann
4d8bf06bf3 Nano2G NAND: Detect if the chip supports interleaved and/or cached writes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25171 a1c6a512-1295-4272-9138-f99709370657
2010-03-14 16:10:53 +00:00
Michael Sparmann
7e4b53892e Revert Nano2G fast VFL reads for now. They just won't work on some hardware.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25170 a1c6a512-1295-4272-9138-f99709370657
2010-03-14 16:06:54 +00:00
Michael Sparmann
5de615132d Don't parallelize Nano2G NAND reads, just do pipelined ECC. (10% performance loss :-/ )
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25168 a1c6a512-1295-4272-9138-f99709370657
2010-03-14 15:41:40 +00:00
Michael Sparmann
183e9f1520 Nano2G VFL: reset the bank again before the second slow read try
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25167 a1c6a512-1295-4272-9138-f99709370657
2010-03-14 15:26:59 +00:00