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
Rafaël Carré
9c0847fc27
fix a typo in comment
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24885 a1c6a512-1295-4272-9138-f99709370657
2010-02-24 17:06:39 +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
Andree Buschmann
0b7dcd69c8
Remove tabs in firmware path (taking into account the original spacing).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24864 a1c6a512-1295-4272-9138-f99709370657
2010-02-22 21:24:09 +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é
233316914e
Clip+: show the same real time in OF and rockbox
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24859 a1c6a512-1295-4272-9138-f99709370657
2010-02-22 10:25:02 +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é
0880349fa8
as3525v2: use iram (might need to be disabled for clipv2)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24857 a1c6a512-1295-4272-9138-f99709370657
2010-02-22 10:02:15 +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é
bb3a8291f2
Fix model number for Clipv2 & Clip+ (same than in scramble.c)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24850 a1c6a512-1295-4272-9138-f99709370657
2010-02-22 07:31:40 +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é
054253ab33
as3525v2: core_sleep()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24839 a1c6a512-1295-4272-9138-f99709370657
2010-02-22 02:42:50 +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
Amaury Pouly
4832c3ce42
Fix a dircache NULL-pointer dereference.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24835 a1c6a512-1295-4272-9138-f99709370657
2010-02-21 22:48:54 +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
Jonathan Gordon
f85103e8f2
remote multifont fixes. it shoud be working again (blame AlexP! he made me break it last week!)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24812 a1c6a512-1295-4272-9138-f99709370657
2010-02-21 19:10:09 +00:00
Szymon Dziok
8ecced28cb
Packard Bell Vibe 500: Enable recording.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24805 a1c6a512-1295-4272-9138-f99709370657
2010-02-21 12:29:14 +00:00
Tomer Shalev
bc8cefd1a4
Comment out lcd_drawline() DEBUGF messages which show in various simulators
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24784 a1c6a512-1295-4272-9138-f99709370657
2010-02-20 06:42:45 +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
Andree Buschmann
a20d3fa3a4
Allow batteries with higher capacity for iPod Mini1G, Mini2G and Video (FS#8973).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24732 a1c6a512-1295-4272-9138-f99709370657
2010-02-17 20:46:22 +00:00
Amaury Pouly
eb54ede182
Fix error handling in dircache generation.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24730 a1c6a512-1295-4272-9138-f99709370657
2010-02-17 19:31:07 +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
Szymon Dziok
d3d29edbf3
Packard Bell Vibe 500: add RTC alarm.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24728 a1c6a512-1295-4272-9138-f99709370657
2010-02-17 18:42:19 +00:00
Szymon Dziok
b4e1cae3d6
Packard Bell Vibe 500: Full RTC support.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24726 a1c6a512-1295-4272-9138-f99709370657
2010-02-17 18:18:20 +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