Michael Sparmann
9f8e76bf22
Hopefully fix the latest Nano2G NAND issues. (FS#11092) Transfers for some of the chips apple is using will be slow until someone implements cached writes.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25137 a1c6a512-1295-4272-9138-f99709370657
2010-03-12 20:44:03 +00:00
Amaury Pouly
c7517f5662
Add experimental support for isochronous transfers in the usb ARC driver. There are several details to tweaks however.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25130 a1c6a512-1295-4272-9138-f99709370657
2010-03-12 10:59:34 +00:00
Jack Halpin
405f6e6dbc
SansaAMS: debug-as3525.c Allow View HW info page to display correct info for both V1 & V2 versions of as3525.
...
calc_freq(CLK_PLLA) for as3525v2 simply returns 240MHz instead of calculating until we understand how it is calculated.
Now displays 922T or 926ejs depending on version.
Remove SD and uSD info from as3525v2 as it is not useful due to different SD controller.
Increased the lines used for each page of display on clip screen size.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25120 a1c6a512-1295-4272-9138-f99709370657
2010-03-11 19:01:49 +00:00
Michael Sparmann
e39b653947
Fix Nano2G rolo once again
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25117 a1c6a512-1295-4272-9138-f99709370657
2010-03-11 18:08:28 +00:00
Michael Sparmann
72f0d265bc
Fix scrolling direction in the Nano2G __dbg_hw_info screen
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25115 a1c6a512-1295-4272-9138-f99709370657
2010-03-11 15:18:43 +00:00
Michael Sparmann
462bdfe612
Implement (unused) ADC wrapper for Nano2G to fix the red
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25114 a1c6a512-1295-4272-9138-f99709370657
2010-03-11 14:02:59 +00:00
Michael Sparmann
52b4a1ef38
Remove a bunch of superfluous stuff from the Nano2G bootloader and fix __dbg_hw_info for Nano2G yet again
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25113 a1c6a512-1295-4272-9138-f99709370657
2010-03-11 13:51:24 +00:00
Michael Sparmann
db569e6bbc
Fix bootloader red
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25112 a1c6a512-1295-4272-9138-f99709370657
2010-03-11 03:22:43 +00:00
Michael Sparmann
20980e6e72
Nano2G __dbg_hw_info (courtesy of Franz-Josef Haider)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25111 a1c6a512-1295-4272-9138-f99709370657
2010-03-11 03:07:51 +00:00
Michael Sparmann
14b1f00244
Increase Nano2G main stack size to 16K again. We won't get rid of the stkov's at 8K easily.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25110 a1c6a512-1295-4272-9138-f99709370657
2010-03-11 02:58:39 +00:00
Michael Sparmann
62c011c8fb
Even more Nano2G FTL speedup. Now 8% faster than disk mode, 10% slower than the OFW. 4.5MB/s sustained (contiguous) write, 6.0MB/s read for me now.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25109 a1c6a512-1295-4272-9138-f99709370657
2010-03-11 00:59:17 +00:00
Michael Sparmann
6945aa9914
Fix bootloader red
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25101 a1c6a512-1295-4272-9138-f99709370657
2010-03-10 03:11:39 +00:00
Michael Sparmann
0592704ab7
Detect iPod Nano 2G charging state correctly
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25100 a1c6a512-1295-4272-9138-f99709370657
2010-03-10 03:01:02 +00:00
Michael Sparmann
287eff2149
iPod Nano 2G FTL performance enhancements. Still not quite as fast as the OFW, but way better than before.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25099 a1c6a512-1295-4272-9138-f99709370657
2010-03-10 03:00:43 +00:00
Szymon Dziok
ec73e790c8
Packard Bell Vibe 500: reset all allowed devices like in the OF.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25089 a1c6a512-1295-4272-9138-f99709370657
2010-03-09 19:09:17 +00:00
Rafaël Carré
8d720f4d4e
Display Fault status address register on data/prefetch aborts
...
Display Address status address register on data aborts
Work on all ARM cpus but arm7tdmi (no MMU/MPU there)
FlySpray: FS#10296
Author: myself with help of Torne Wuff
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25087 a1c6a512-1295-4272-9138-f99709370657
2010-03-09 16:19:50 +00:00
Michael Sparmann
226cd04f74
Nano2G battery calibration
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25086 a1c6a512-1295-4272-9138-f99709370657
2010-03-09 05:12:20 +00:00
Thomas Martitz
61320ce0eb
Make mini2440 compile again.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25081 a1c6a512-1295-4272-9138-f99709370657
2010-03-08 23:43:11 +00:00
Thomas Martitz
a2e788b557
Fix red.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25080 a1c6a512-1295-4272-9138-f99709370657
2010-03-08 23:32:46 +00:00
Thomas Martitz
d581b23b8d
Use ldr instead of adr, so that it compiles with a newer ld, although setting lr at that point hardly matters anyway.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25079 a1c6a512-1295-4272-9138-f99709370657
2010-03-08 23:17:03 +00:00
Thomas Martitz
02660557ad
Fix a bunch of boot.lds files so that they build with newer ld. The stack/bss sections need NOLOAD. otherwise the linker would try to include those into the binary. I don't know why this ever worked with our current ld version.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25078 a1c6a512-1295-4272-9138-f99709370657
2010-03-08 23:16:57 +00:00
Andree Buschmann
260c0184de
Set IRAM split to 48KB / 80KB (apps / plugins) for M5 and X5. This way codecs can be optimized further.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25057 a1c6a512-1295-4272-9138-f99709370657
2010-03-07 20:22:49 +00:00
Andree Buschmann
7901505dc3
Higher responsiveness for iPod clickwheel acceleration.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25047 a1c6a512-1295-4272-9138-f99709370657
2010-03-06 15:53:45 +00:00
Rafaël Carré
8653c0a567
Sansa AMS: do not pretend we can power off the tuner
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25029 a1c6a512-1295-4272-9138-f99709370657
2010-03-05 01:43:47 +00:00
Thomas Martitz
2ac962aceb
Fix as3525 lowmem targets. They put the init code into the plugin buffer, but some init functions are grabbing it.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25023 a1c6a512-1295-4272-9138-f99709370657
2010-03-04 12:32:12 +00:00
Thomas Martitz
05c082267d
Fix ipodvideo64mb by making the branch to main a long call.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25019 a1c6a512-1295-4272-9138-f99709370657
2010-03-04 00:24:28 +00:00
Thomas Martitz
9b810734f8
Really fix bootloaders now.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25017 a1c6a512-1295-4272-9138-f99709370657
2010-03-03 23:52:36 +00:00
Thomas Martitz
617ff557e8
Fix remaining reds. I forgot to change the app.lds of the other PP targets (it's the same file as for e200/c200 though).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25016 a1c6a512-1295-4272-9138-f99709370657
2010-03-03 23:48:51 +00:00
Thomas Martitz
f8edc32589
FS#10756 - Free unused init code
...
Introduce a new .init section for initialisation code, so that it can be copied to an area which is later overwritten before calling. The stack/bss can then overwrite that code, effectively freeing the code size that the initialisation routines need. Gives a few kB ram usage back.
Only implemented for PP and as3525 so far. More targets could be added, as well as more functions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25013 a1c6a512-1295-4272-9138-f99709370657
2010-03-03 23:20:32 +00:00
Michael Sparmann
aadecdd77e
Fix numerous non-critical iPod Nano 2G FTL bugs
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24999 a1c6a512-1295-4272-9138-f99709370657
2010-03-03 02:36:15 +00:00
Szymon Dziok
f67e3559c6
Packard Bell Vibe 500: clean up the power off, enable poweroff while charging.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24987 a1c6a512-1295-4272-9138-f99709370657
2010-03-01 22:24:17 +00:00
Jack Halpin
a872587a8d
sd-as3525v2: Load CID info to cardinfo.cid[] correctly.
...
SD_ALL_SEND_CID was using cardinfo.cid to store the response instead of the temp array used for long responses.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24944 a1c6a512-1295-4272-9138-f99709370657
2010-02-27 17:07:54 +00:00
Thomas Martitz
0094b0500c
Add Sansa Fuzev2 to the target tree. Bootloader builds, but is completely untested.
...
Compilation shows a warning for the first argument of the lcd_bitmap() call in show_logo().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24911 a1c6a512-1295-4272-9138-f99709370657
2010-02-25 13:26:46 +00:00
Jack Halpin
d95211a23d
sd-as3525v2: Controller and card init much more reliably now.
...
Remove MCI_HCON read from init_controller() as it now appears unneccesary.
Make sd-init_card() use similar init sequence to the one in sd-as3525.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24903 a1c6a512-1295-4272-9138-f99709370657
2010-02-25 06:46:16 +00:00
Michael Chicoine
b6033c9aa0
Revert r24898 and fix yellow properly so that register is still read
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24899 a1c6a512-1295-4272-9138-f99709370657
2010-02-25 00:02:58 +00:00
Michael Chicoine
abacbbda6c
Comment out unused variable (fix yellow)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24898 a1c6a512-1295-4272-9138-f99709370657
2010-02-24 23:22:19 +00:00
Jack Halpin
241abf4bc5
sd-as3525v2.c: Correct some #defines, add comments, attempt to lower sd frequency to 400 khz during init.
...
I've left in some commented out code for now as this is still a bit experimental.....
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24891 a1c6a512-1295-4272-9138-f99709370657
2010-02-24 20:24:48 +00:00
Jack Halpin
1c09c037f9
sd-as3525v2: Add some register bit descriptions.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24872 a1c6a512-1295-4272-9138-f99709370657
2010-02-23 21:31:54 +00:00
Rafaël Carré
8ca62f32aa
sd-as3525v2: correct CGU_MEMSTICK setting, shift divider
...
Add a note about the unknown clock register
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24869 a1c6a512-1295-4272-9138-f99709370657
2010-02-23 07:08:33 +00:00
Rafaël Carré
e32e180244
as3525v2: share more of system_init() between the 2 SoCs
...
Differences remaining:
- list of peripherals reset
- CGU_PROC isn't modified on as3525v2
- CGU_PLLA bits aren't known, but we use a known setting for 240MHz
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24868 a1c6a512-1295-4272-9138-f99709370657
2010-02-23 06:59:58 +00:00
Rafaël Carré
0af879c21a
sd-as3525v2: unaligned transfers are handled properly (with memcpy)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24866 a1c6a512-1295-4272-9138-f99709370657
2010-02-23 01:00:21 +00:00
Rafaël Carré
adf5bbdc46
Clip+: greylib
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24860 a1c6a512-1295-4272-9138-f99709370657
2010-02-22 10:35:51 +00:00
Rafaël Carré
355f38d30a
sd-as3525v2: use an uncached buffer, disable write for the moment
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24858 a1c6a512-1295-4272-9138-f99709370657
2010-02-22 10:02:20 +00:00
Rafaël Carré
a92a059abe
Clip+: fix buttons driver
...
Do not use a static variable for buttons, else they're never reset
Remove unneeded code
Move GPIO_DIR setting to init function
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24855 a1c6a512-1295-4272-9138-f99709370657
2010-02-22 10:02:05 +00:00
Rafaël Carré
ed55520985
as3525v2: do not modify CGU_PERI in rockbox.sansa
...
this prevented booting, we need to figure out CGU_PROC bits
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24854 a1c6a512-1295-4272-9138-f99709370657
2010-02-22 08:29:02 +00:00
Rafaël Carré
9db0e78ac0
crt0: init correctly as3525v2
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24853 a1c6a512-1295-4272-9138-f99709370657
2010-02-22 08:28:58 +00:00
Rafaël Carré
21ac9d23d0
sd-as3525v2: working bootloader
...
check all error bits
only signal wakeup on data transfers, not on commands
trim down send_cmd
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24851 a1c6a512-1295-4272-9138-f99709370657
2010-02-22 07:31:45 +00:00
Rafaël Carré
b347245d7c
as3525v2: init sdram
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24849 a1c6a512-1295-4272-9138-f99709370657
2010-02-22 07:31:37 +00:00
Rafaël Carré
c2c01ac34c
Clip+ boots with iram mapped at 0x0, only the clipv2 is different
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24842 a1c6a512-1295-4272-9138-f99709370657
2010-02-22 05:41:05 +00:00
Rafaël Carré
31eda59720
as3525v2: build normal firmware properly (Clipv2/+)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24840 a1c6a512-1295-4272-9138-f99709370657
2010-02-22 02:42:58 +00:00
Rafaël Carré
a012b185ac
sd-as3525v2: working transfers, still awfully slow
...
not touching MCI_CTYPE (leaving bus width to 1) gives data transfers
ignore the hardware locked up while error bit for now
remove printf() helper & debug code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24838 a1c6a512-1295-4272-9138-f99709370657
2010-02-22 02:42:46 +00:00
Rafaël Carré
1ae6307a5a
sd-as3525v2: panic in case of error in the isr
...
Disable errors on response timeout since it can happen on SD_SEND_IF_COND
Disable errors on start bit error : it's ignored by the linux driver
No panic on my side with those 2 bits unchecked, but no transfer
completion either.
Note: the Linux driver doesn't implement DMA
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24837 a1c6a512-1295-4272-9138-f99709370657
2010-02-21 22:49:57 +00:00
Rafaël Carré
c6af5c962d
sd-as3525v2: describe interrupt mask bits
...
Reset DMA before transfers and check data transfer over bit in isr
Still no error or data transfer over conditions
Read the correct status register in isr : there is a masked interrupt
status register and a general status register
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24836 a1c6a512-1295-4272-9138-f99709370657
2010-02-21 22:49:53 +00:00
Rafaël Carré
e9cd0f1c7a
sd-as3525v2: no limits on the amount of sectors to transfer
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24832 a1c6a512-1295-4272-9138-f99709370657
2010-02-21 22:01:37 +00:00
Rafaël Carré
f857fe1450
sd-as3525v2: MCI_HCON bits
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24831 a1c6a512-1295-4272-9138-f99709370657
2010-02-21 22:01:33 +00:00
Rafaël Carré
95f063cc6f
sd-as3525v2: MCI_FIFOTH bits
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24830 a1c6a512-1295-4272-9138-f99709370657
2010-02-21 22:01:29 +00:00
Rafaël Carré
ad7d84d315
sd-as3525v2: command register bits
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24829 a1c6a512-1295-4272-9138-f99709370657
2010-02-21 22:01:23 +00:00
Rafaël Carré
d19705f7fc
sd-as3525v2: name interrupt bits (no description yet)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24828 a1c6a512-1295-4272-9138-f99709370657
2010-02-21 22:01:18 +00:00
Rafaël Carré
ceae8748b8
sd-as3525v2: describe CTYPE bit
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24827 a1c6a512-1295-4272-9138-f99709370657
2010-02-21 22:01:13 +00:00
Rafaël Carré
4be56226c1
sd-as3525v2: detail MCI_CTRL bits
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24826 a1c6a512-1295-4272-9138-f99709370657
2010-02-21 22:01:09 +00:00
Rafaël Carré
48ed5ad66e
as3525v2: full list of registers + description
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24825 a1c6a512-1295-4272-9138-f99709370657
2010-02-21 22:01:05 +00:00
Andrew Mahone
950b2dfa2c
Clarify comments in ARMv6 divider regarding special-case handling of large (high bit set) numerators.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24783 a1c6a512-1295-4272-9138-f99709370657
2010-02-20 06:29:23 +00:00
Michael Giacomelli
aea6dd036c
Commit FS#11034 by Andrew Engelbrecht. Fixes default contrast value on ipod 3G.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24742 a1c6a512-1295-4272-9138-f99709370657
2010-02-18 04:21:15 +00:00
Rafaël Carré
8b4ee2cfdd
as3525: make clear the CCU bit we can't reset is the IDE interface
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24738 a1c6a512-1295-4272-9138-f99709370657
2010-02-17 23:27:35 +00:00
Rafaël Carré
9f228d7662
as3525v2: use CGU_BASE instead of hardcoded address for unknown register
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24737 a1c6a512-1295-4272-9138-f99709370657
2010-02-17 23:27:31 +00:00
Rafaël Carré
04fef58210
as3525v2: make clear the SD code is debug only and display a message
...
comment out printing of registers in the isr
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24736 a1c6a512-1295-4272-9138-f99709370657
2010-02-17 23:09:56 +00:00
Rafaël Carré
020322665b
Clip+: LCD display (with FlynDice help)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24729 a1c6a512-1295-4272-9138-f99709370657
2010-02-17 18:43:13 +00:00
Michael Sparmann
9ba7cff6c1
Reduce Nano2G main thread stack size to the default value again. The huge sector buffers of the FTL have been moved to the bss some time ago, so this isn't needed any more.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24725 a1c6a512-1295-4272-9138-f99709370657
2010-02-17 16:31:19 +00:00
Michael Sparmann
04ea85fb88
Revert accidental changes from r24723
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24724 a1c6a512-1295-4272-9138-f99709370657
2010-02-17 16:12:21 +00:00
Michael Sparmann
e5c815272d
Add more information to the battery debug screen for Nano2G
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24723 a1c6a512-1295-4272-9138-f99709370657
2010-02-17 15:57:53 +00:00
Michael Sparmann
b3c18aeb4d
Somewhat calibrated battery parameters for Nano2G - still not very accurate though, especially while charging.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24722 a1c6a512-1295-4272-9138-f99709370657
2010-02-17 15:56:30 +00:00
Michael Sparmann
8f33879fed
Enable iPod Nano 2G boosting (without undervolting for now)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24721 a1c6a512-1295-4272-9138-f99709370657
2010-02-17 15:54:48 +00:00
Michael Sparmann
48e38b8759
Increase iPod Nano2G NAND stack size (fixes FS#11030)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24720 a1c6a512-1295-4272-9138-f99709370657
2010-02-17 15:49:19 +00:00
Michael Sparmann
6b22614944
Hopefully fix Nano2G rolo again. We have enough IRAM anyways.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24710 a1c6a512-1295-4272-9138-f99709370657
2010-02-16 22:57:49 +00:00
Andree Buschmann
909e4c6c06
Add iPod 3G and iPod Color/Photo (FS#9072) current consumption and battery discharge curves to allow reasonable runtime estimation.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24709 a1c6a512-1295-4272-9138-f99709370657
2010-02-16 22:53:54 +00:00
Jack Halpin
3a60a6aa23
Sansa Clip+: Implement button driver.
...
Initial button driver for clip+. I've followed the steps the OF uses to read the buttons.
There is no hold button on the clip+ so for now calling button_hold() siply returns false.
The OF actually sets an additional flag for the 2nd read from D6 and not BUTTON_POWER as I have done here.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24669 a1c6a512-1295-4272-9138-f99709370657
2010-02-15 19:29:47 +00:00
Michael Sparmann
3d7983e5c7
Fix iPod Nano 2G channel swapping issues
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24589 a1c6a512-1295-4272-9138-f99709370657
2010-02-10 21:20:51 +00:00
Szymon Dziok
698609f672
Packard Bell Vibe 500: Improve/fix scrollstrip scrolling. The idea was taken from the ipod's clickweel source.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24584 a1c6a512-1295-4272-9138-f99709370657
2010-02-10 18:42:48 +00:00
Rafaël Carré
3f43765925
Sansa Clip+: use 8 bits transfers, like DMA transfers
...
The code assumed LCD pixels were packed on 16 bits values but for the
Clip we use 8 bits values.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24563 a1c6a512-1295-4272-9138-f99709370657
2010-02-08 08:20:42 +00:00
Rafaël Carré
ec39555290
Add DMA line for SSP as used in Clip+
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24562 a1c6a512-1295-4272-9138-f99709370657
2010-02-08 08:13:52 +00:00
Rafaël Carré
71e77aaff8
Sansa Clip+: use correct SSP settings
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24559 a1c6a512-1295-4272-9138-f99709370657
2010-02-08 03:36:53 +00:00
Rafaël Carré
fbc59e2e28
Sansa Clip+ has no button light
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24558 a1c6a512-1295-4272-9138-f99709370657
2010-02-08 02:35:42 +00:00
Rafaël Carré
1e6847db75
Sansa AMS AS3525v2 SD: remove a case which is never run
...
Reindent
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24552 a1c6a512-1295-4272-9138-f99709370657
2010-02-07 19:09:59 +00:00
Rafaël Carré
bd0b7363ca
Sansa AMS: do not init memory for AS3525v2
...
(#ifdef rule was broken)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24549 a1c6a512-1295-4272-9138-f99709370657
2010-02-07 18:37:15 +00:00
Andree Buschmann
dfe46436b1
Remove tabs
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24547 a1c6a512-1295-4272-9138-f99709370657
2010-02-07 17:50:24 +00:00
Szymon Dziok
8a36f0bad4
Packard Bell Vibe 500: touchpad code rework. Improve touch sensivity a bit by setting the MEP parameters in the power_init() function. Implement new function in synaptics-mep driver (touchpad_set_parameter) necessary for it. Move the button lights code to the target backlight file.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24541 a1c6a512-1295-4272-9138-f99709370657
2010-02-06 19:15:43 +00:00
Bertrik Sikken
8d234fc9a3
as3525: add a few more CGU_PERI definitions
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24537 a1c6a512-1295-4272-9138-f99709370657
2010-02-06 14:33:40 +00:00
Rafaël Carré
c8ea43f095
Untested attempt at a Clip+ LCD driver using SSP (PrimeCell PL022)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24523 a1c6a512-1295-4272-9138-f99709370657
2010-02-05 15:12:08 +00:00
Rafaël Carré
f0d53ea8d6
Sansa ASM: clock-target.h needs to know the CPU
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24521 a1c6a512-1295-4272-9138-f99709370657
2010-02-05 12:48:39 +00:00
Rafaël Carré
12af2926e5
Make Clip+ bootloader build
...
Now making the Fuzev2 bootloader build should be pretty easy
TODO:
- write button driver (FlynDice found all buttons already)
- find button light
- decide if lcd-ssd1303.c must be modified for Clip+ using SSP or forked
- check if backlight code works (I copied Clipv2 code)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24520 a1c6a512-1295-4272-9138-f99709370657
2010-02-05 12:40:25 +00:00
Andrew Mahone
5e9282829a
Label dma_callback in pcm-s5l8700.c as used so that gcc won't discard it, and cause a link failure on eabi.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24487 a1c6a512-1295-4272-9138-f99709370657
2010-02-03 16:36:55 +00:00
Andrew Mahone
e77cdd147c
Correct ARMv5/6 signed divider, which was not saving return address to stack before using lr for calculation.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24457 a1c6a512-1295-4272-9138-f99709370657
2010-02-02 15:55:10 +00:00
Andrew Mahone
e2b7721db6
Some sort of issue in the signed divider is causing Gigabeat S to abort on startup, disable this routine until it's fixed.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24436 a1c6a512-1295-4272-9138-f99709370657
2010-02-01 04:50:25 +00:00
Andrew Mahone
e457ccfea5
Missing colon in support-arm.S for EABI.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24434 a1c6a512-1295-4272-9138-f99709370657
2010-02-01 02:35:35 +00:00
Andrew Mahone
18ae2af68c
Remove heaps of trailing whitespace from new file.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24433 a1c6a512-1295-4272-9138-f99709370657
2010-02-01 02:35:28 +00:00
Andrew Mahone
bff5a35c3c
FS#10943, optimized division and clz routines to replace libgcc routines for ARM. Replaces libgcc support functions for unsigned and signed 32-bit division on ARMv4 and up, and leading-zero count on ARMv4.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24432 a1c6a512-1295-4272-9138-f99709370657
2010-02-01 01:36:46 +00:00
Michael Sparmann
40a3e80697
Fix iPod Nano 2G bank detection broken in r24414.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24431 a1c6a512-1295-4272-9138-f99709370657
2010-02-01 01:23:43 +00:00
Michael Sparmann
12e302262d
iPod Nano 2G NAND fixes by Franz-Josef Haider
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24414 a1c6a512-1295-4272-9138-f99709370657
2010-01-31 13:46:25 +00:00
Torne Wuff
533cf7737b
Enable ATA DMA on pp5020 based players with ATA drives.
...
DMA is only used for reading because writing seems to be slower with DMA.
Only requests which are cacheline aligned (16 bytes) will use DMA, so many
requests will still use PIO at this point; a later change will align more
reads.
Part of FS#9708, original DMA code by Boris Gjenero (dreamlayers).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24405 a1c6a512-1295-4272-9138-f99709370657
2010-01-31 11:07:29 +00:00
Rafaël Carré
dc3cc55b65
sd as3535v2 : remove functions already present in sd.c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24364 a1c6a512-1295-4272-9138-f99709370657
2010-01-28 12:04:17 +00:00
Thomas Martitz
fbc8f0c469
Update on even pixel boundaries on the e200v2 for best performance (was forgotten in r24198).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24337 a1c6a512-1295-4272-9138-f99709370657
2010-01-26 21:31:53 +00:00
Rafaël Carré
b2323be33b
ARM: lr addresses the next instruction after the failing one in undefined instruction vector
...
Substract 4 before passing the argument to UIE so the correct address is displayed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24321 a1c6a512-1295-4272-9138-f99709370657
2010-01-24 15:04:21 +00:00
Rafaël Carré
46d6fe363e
vibe500: do not use float arithmetic, even if gcc would reduce this expression to a constant at compile time
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24304 a1c6a512-1295-4272-9138-f99709370657
2010-01-21 08:57:07 +00:00
Michael Sparmann
49592128b2
Fix yellow
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24296 a1c6a512-1295-4272-9138-f99709370657
2010-01-20 11:41:18 +00:00
Michael Sparmann
9631f815ac
iPod Nano 2G: Fix FTL panics caused by a bogus check
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24295 a1c6a512-1295-4272-9138-f99709370657
2010-01-20 11:25:21 +00:00
Frank Gevaerts
f2a0f9905f
Make the tcc usb driver compile without warnings. No functional changes
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24286 a1c6a512-1295-4272-9138-f99709370657
2010-01-19 21:17:32 +00:00
Frank Gevaerts
553626a958
Add initial Packard Bell Vibe 500 port, by Szymon Dziok
...
Author: Szymon Dziok
Flyspray: FS#10912
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24276 a1c6a512-1295-4272-9138-f99709370657
2010-01-18 19:05:20 +00:00
Karl Kurbjun
26542ddc84
M:Robe 500 - Correct a comment, and make charger detect pin an input as it should be.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24274 a1c6a512-1295-4272-9138-f99709370657
2010-01-18 16:28:39 +00:00
Michael Sparmann
5b94d44cc0
Fix iPod Nano 2G USB:
...
1. Fix a copy paste bug (thanks for catching that one, liar)
2. Use a dummy DMA address for zero-length transfers as some devices seem to need this, and it can't hurt.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24263 a1c6a512-1295-4272-9138-f99709370657
2010-01-17 19:05:42 +00:00
Bertrik Sikken
51cb7eb5f2
Sansa c200v2: enable battery charging
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24257 a1c6a512-1295-4272-9138-f99709370657
2010-01-17 14:19:31 +00:00
Rafaël Carré
6c93570b90
Sansa AMS: remove "ata" from SD drivers filenames
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24237 a1c6a512-1295-4272-9138-f99709370657
2010-01-15 14:03:41 +00:00
Bertrik Sikken
b3cba9021f
Meizu M6SP: add stubs so the meizu m6sp binary compiles and links
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24228 a1c6a512-1295-4272-9138-f99709370657
2010-01-14 20:16:03 +00:00
Bertrik Sikken
75400545be
Meizu M6SP: fix incorrect readout of button on P1.3 (this is an output to the power controller)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24226 a1c6a512-1295-4272-9138-f99709370657
2010-01-14 17:35:45 +00:00
Rafaël Carré
7478cfcbf7
Sansa as3525v2: move SD embryo code to a common dir
...
Select it based on as3535/as3525v2 so Clip+/Fuzev2 will be able to use
it too
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24222 a1c6a512-1295-4272-9138-f99709370657
2010-01-13 06:44:45 +00:00
Jack Halpin
fefafebed6
SansaAMS: Disable voltage scaling.
...
Voltage scaling seems to be causing various problems mostly related to issues with the uSD cards.
The increased runtime benefit only amounts to ~30 minutes as currently implemented so it seems prudent to disable it once again at this time.
We still don't understand why the core voltage being lowered would impact the uSD card but in fact it does. The internal cards do not seem to have problems.
I have simply #ifdef'd the voltage scaling code with HAVE_ADJUSTABLE_CPU_VOLTAGE so if you want to use voltage scaling simply define that and the voltage scaling code should run.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24217 a1c6a512-1295-4272-9138-f99709370657
2010-01-12 23:56:59 +00:00
Bertrik Sikken
f5f6af2fee
Fix svn:keywords property in as3525 target tree
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24212 a1c6a512-1295-4272-9138-f99709370657
2010-01-10 14:53:53 +00:00
Bertrik Sikken
ba9040a82b
Sansa AMS: allow use of PLL B for more accurate audio sample rate (0.04% instead 0.15% error)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24211 a1c6a512-1295-4272-9138-f99709370657
2010-01-10 14:24:45 +00:00
Torne Wuff
d4bfc15232
FS#10107: work around the issue on some ipods where after shutdown they do not power on.
...
Some ipods do not power on correctly after being shut down and require a hard
reset before they work again. This workaround shuts the device down via the OF
which prevents the problem from occurring. There is a cosmetic effect: the low
battery symbol appears briefly on power of.
Change applies to PP502x ipods: 4G/photo/video/mini1g/mini2g/nano1g
Patch by Boris Gjenero (dreamlayers), manual changes by me.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24207 a1c6a512-1295-4272-9138-f99709370657
2010-01-09 19:04:51 +00:00
Thomas Martitz
32b15fc08f
Sansa e200v2/Fuze: Optimize YUV blitting by writing 2 pixel at once to the DBOP and removing a few unneeded busy polling status register for fifo empty. Speed up between 50% and 80%.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24202 a1c6a512-1295-4272-9138-f99709370657
2010-01-08 16:41:36 +00:00
Rafaël Carré
64566ce775
Clivp2: Fix typo when applying FS#10047
...
Make LCD work again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24199 a1c6a512-1295-4272-9138-f99709370657
2010-01-08 08:11:50 +00:00
Thomas Martitz
dc07c79263
Sansa AMS: Time has shown that switching between 16 and 32bit mode costs much time (due to the micro delay needed), so do 32bit transfers unconditionally for lcd updates at the cost of updating slightly larger rectangles (gives upto 15% speed up, nearly at maximum now).
...
Unify this optimized dbop transfer function and re-use it more often (it still handles 16bit transfers).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24198 a1c6a512-1295-4272-9138-f99709370657
2010-01-07 22:21:41 +00:00
Thomas Martitz
5fd54dee4f
e200v2/Fuze: Correct and simplify clipping clipping code in lcd_update_rect().
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24197 a1c6a512-1295-4272-9138-f99709370657
2010-01-07 19:35:36 +00:00
Rafaël Carré
57667c51cf
Sansa AMS: refactor DBOP button reading (e200v2/Fuze/c200v2)
...
This gets rid of LCD glitches on Sansa Fuze, and now LCD transfers can
get interrupted by button reading
Flyspray: FS #10603
Author: Bertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24192 a1c6a512-1295-4272-9138-f99709370657
2010-01-06 23:41:36 +00:00
Rafaël Carré
3992f18982
Sansa e200v2: LCD
...
- Cosmetics change to reduce the diff with lcd-fuze.c:
- remove useless headers
- move/remove/change comments
- rename functions
- fix casts
Now the differences with fuze lcd code are mostly:
- lcd_window* code
- _display_on() / as3525_dbop_init()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24182 a1c6a512-1295-4272-9138-f99709370657
2010-01-04 21:35:31 +00:00
Rafaël Carré
98fa13cb29
Sansa Fuze: LCD
...
- add lcd_set_invert()
- add lcd_set_flip() commented out since not working fine yet:
mpegplayer isn't flipped, and statusbar display is buggy
- use the registers list from e200v2
- cosmetics (indentation fix, comments changes, function names, casts,
function moves, ...) to make the diff with lcd-e200v2.c shorter
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24181 a1c6a512-1295-4272-9138-f99709370657
2010-01-04 21:35:26 +00:00
Karl Kurbjun
2f2fa0ffa6
Commit FS#10594 - Remove duplicated buttonlight code for Gigabeat F/X.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24175 a1c6a512-1295-4272-9138-f99709370657
2010-01-04 05:38:04 +00:00
Maurus Cuelenaere
443cba7507
Onda VX747/VX777: only enable SD clock when transferring data
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24172 a1c6a512-1295-4272-9138-f99709370657
2010-01-03 17:32:15 +00:00
Maurus Cuelenaere
69b182dc9a
Onda VX747/VX777: fix not closing I²C all times
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24171 a1c6a512-1295-4272-9138-f99709370657
2010-01-03 17:32:11 +00:00
Maurus Cuelenaere
338b1dec5f
Onda VX747/VX777: update battery charge cycle
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24170 a1c6a512-1295-4272-9138-f99709370657
2010-01-03 16:55:18 +00:00
Maurus Cuelenaere
6acbff4673
Onda VX747/VX777: cleanup linker files a bit
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24169 a1c6a512-1295-4272-9138-f99709370657
2010-01-03 16:34:56 +00:00
Maurus Cuelenaere
d3bbe51629
Onda VX747/VX777: centralise LCD clock en-/disabling.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24168 a1c6a512-1295-4272-9138-f99709370657
2010-01-03 16:28:15 +00:00
Maurus Cuelenaere
4fdf4ad728
Onda VX747/VX777: disable LCD when backlight is off (saves power)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24167 a1c6a512-1295-4272-9138-f99709370657
2010-01-03 15:57:09 +00:00
Maurus Cuelenaere
f15e6ff061
Onda VX747: fix USB charging detection
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24160 a1c6a512-1295-4272-9138-f99709370657
2010-01-03 13:07:30 +00:00
Andree Buschmann
bfc129a592
Fix even more tabs
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24155 a1c6a512-1295-4272-9138-f99709370657
2010-01-03 10:35:31 +00:00
Andree Buschmann
56d972ad57
Fix tabs
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24153 a1c6a512-1295-4272-9138-f99709370657
2010-01-03 10:19:43 +00:00
Bertrik Sikken
5c4ef78cc9
Simplify some expressions using the ? operator
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24136 a1c6a512-1295-4272-9138-f99709370657
2010-01-01 22:47:25 +00:00
Rafaël Carré
2392bb4199
FS#10047 : Clipv2
...
Reuse some code from Clip (LCD) and a lot of code from AS3525
Add a new CPU type : AS3525v2, identical to AS3525 except it's an ARMv5 (arm926-ejs)
SD code still not working
For an unknown reason LCD doesn't work anymore (to be investigated)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24131 a1c6a512-1295-4272-9138-f99709370657
2009-12-31 19:15:20 +00:00
Andrew Mahone
becdbaa12d
Enable and initialize VFP on imx31. VFP state is not saved on thread change, and it is initialized for scalar operations, rounding toward zero, with exception/error handling and "correct" handling of NaN and denormal values disabled. In this mode it should still be usable for integer divisions (by casting operands to double and result to int or unsigned).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24129 a1c6a512-1295-4272-9138-f99709370657
2009-12-31 08:32:05 +00:00
Jens Arnold
099ab1f731
ARM <= v5: Tiny optimisation exploiting the location of the table.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24116 a1c6a512-1295-4272-9138-f99709370657
2009-12-26 13:22:51 +00:00
Mark Arigo
6908cc5235
Merry Christmas Gogear HDD6330 owners! This is the start of the HDD6330 port. At the moment, it's essentially a copy of the HDD1630 port with a minimal LCD driver. The touchpad doesn't work as expected, but you can still kind of navigate and listen to music/radio.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24112 a1c6a512-1295-4272-9138-f99709370657
2009-12-25 04:05:01 +00:00
Bertrik Sikken
151c2b25b2
Make Meizu M3 bootloader compile again
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24084 a1c6a512-1295-4272-9138-f99709370657
2009-12-20 17:15:03 +00:00
Bertrik Sikken
5698674ece
Code police: add missing header file, make some local functions static
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24083 a1c6a512-1295-4272-9138-f99709370657
2009-12-20 16:28:15 +00:00
Robert Kukla
275d960b04
FS#8286 - utilise the buttons on the gigabeat cradle
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24080 a1c6a512-1295-4272-9138-f99709370657
2009-12-19 19:37:06 +00:00
Maurus Cuelenaere
d42cdfd91c
Onda VX747/VX777: fix FM radio
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24074 a1c6a512-1295-4272-9138-f99709370657
2009-12-18 12:41:12 +00:00
Jack Halpin
5a4ca2f04d
Sansa AMS: Fix Red. Write delay is not included for non HAVE_MULTIDRIVE.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24055 a1c6a512-1295-4272-9138-f99709370657
2009-12-17 19:57:08 +00:00
Jack Halpin
7bce743218
Sansa AMS: Revert 4 bit widebus
...
For some reason 4 bit widebus is creating issues when writing to the .rockbox directory so revert 4 bit widebus and the revision to the write delay that was added as a fix.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24054 a1c6a512-1295-4272-9138-f99709370657
2009-12-17 19:17:53 +00:00
Nils Wallménius
aa32e55ce7
Remove unneeded instruction from the coldfire ffs function and fix a wrong comment
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24030 a1c6a512-1295-4272-9138-f99709370657
2009-12-16 16:39:24 +00:00
Jack Halpin
d24ebd1613
Sansa AMS: Make write delay work for non-MULTIDRIVE.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24020 a1c6a512-1295-4272-9138-f99709370657
2009-12-16 06:56:44 +00:00
Jack Halpin
7d6ec7bb6f
Sansa AMS: Use small write delay for all non-HS cards including the internal SD to prevent data corruption.
...
Making this delay apply to all non-HS SD cards seems to fix some data corruption issues that came up with the switch to 4-bit widebus.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24019 a1c6a512-1295-4272-9138-f99709370657
2009-12-16 06:32:22 +00:00
Alexander Levin
492c377fbf
Fix typo in the comment
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24004 a1c6a512-1295-4272-9138-f99709370657
2009-12-15 12:09:14 +00:00