Rafaël Carré
f4dcc69b51
as3525*: set up CGU_COUNT register before turning on / modifying PLLs
...
Write the setting before enabling the PLL
Fix booting problem (black screen) with Clip+
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25415 a1c6a512-1295-4272-9138-f99709370657
2010-04-01 03:22:49 +00:00
Rafaël Carré
39e78993f3
as3525v2: adjustable CPU freq : CGU_PROC is identical to as3525 after all
...
Instead of modifying CGU_PROC to get 24MHz pclk, just switch to fastbus else Clip+ wouldn't boot
Tested on fuzev1/Clip+
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25413 a1c6a512-1295-4272-9138-f99709370657
2010-04-01 02:39:25 +00:00
Rafaël Carré
124188f41c
Clipv2/Clip+ : use CHG_IN adc channel, it seems to work better than BVDD and RTCSUP
...
They're all the same when charger is unplugged, but when it's plugged:
- BVDD is way too high
- RTCSUP oscillates between 2 values
- CHG_IN acts like RTCSUP on some models but seems to works fine on my Clip+
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25405 a1c6a512-1295-4272-9138-f99709370657
2010-03-31 01:22:23 +00:00
Thomas Martitz
33e7e1d1c3
Fix bootloader red, it doesn't have backlight handling.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25394 a1c6a512-1295-4272-9138-f99709370657
2010-03-29 23:14:44 +00:00
Rafaël Carré
d2fec68fb0
fuzev2 FM doesn't work (yet), don't try to record from it
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25393 a1c6a512-1295-4272-9138-f99709370657
2010-03-29 23:10:00 +00:00
Thomas Martitz
71393c701c
Fuzev2: Preliminary button support. Scrollwheel does not work yet.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25392 a1c6a512-1295-4272-9138-f99709370657
2010-03-29 23:03:06 +00:00
Rafaël Carré
dedf08a6e1
as3525: CGU_USB has only 3 bits for the divider
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25381 a1c6a512-1295-4272-9138-f99709370657
2010-03-29 17:12:16 +00:00
Rafaël Carré
ba76e2870e
as3525v2: factorize writing to ascodec PMU
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25380 a1c6a512-1295-4272-9138-f99709370657
2010-03-29 13:00:33 +00:00
Rafaël Carré
1bfffbcaaa
as3543: name 0x1b & 0x1c registers
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25379 a1c6a512-1295-4272-9138-f99709370657
2010-03-29 12:54:07 +00:00
Rafaël Carré
cc1f6033de
Clipv2/Clip+ : turn off backlight in 0x1b register
...
Rename clipv2 file
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25378 a1c6a512-1295-4272-9138-f99709370657
2010-03-29 12:43:50 +00:00
Rafaël Carré
60cfc1ddff
Fuzev2: fix backlight brightness
...
PMU registers are write-only
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25377 a1c6a512-1295-4272-9138-f99709370657
2010-03-29 12:10:43 +00:00
Rafaël Carré
f04ee9436c
Fuzev2: it seems we need to set bit 3 when selecting PMU subregister
...
backlight still not working properly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25371 a1c6a512-1295-4272-9138-f99709370657
2010-03-28 06:05:48 +00:00
Rafaël Carré
ce3d38c0fa
Fuzev2: cleanup backlight code (still not working correctly)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25370 a1c6a512-1295-4272-9138-f99709370657
2010-03-28 04:33:26 +00:00
Rafaël Carré
a8adcf36f1
Fuzev2: fix LCD
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25368 a1c6a512-1295-4272-9138-f99709370657
2010-03-28 04:10:36 +00:00
Rafaël Carré
7cd24fa13d
Fuzev2: fix lcd
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25360 a1c6a512-1295-4272-9138-f99709370657
2010-03-28 01:53:42 +00:00
Rafaël Carré
6fa93436ea
Fuzev2: fix normal build: enable charging properly, disable FM, use as3525v2 cpu
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25354 a1c6a512-1295-4272-9138-f99709370657
2010-03-27 16:53:13 +00:00
Rafaël Carré
148a5fb631
Fuzev2: µSD detect pin is A2 like Clip+, but the meaning is reversed
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25353 a1c6a512-1295-4272-9138-f99709370657
2010-03-27 16:53:08 +00:00
Jack Halpin
4b0c43da8f
sd-as3525v2.c Organize construction of MCI_COMMAND so it is more apparent which bits are being set and why.
...
I have also made the CMD_CHECK_CRC_BIT unused for now since we do not check any response crc values yet.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25343 a1c6a512-1295-4272-9138-f99709370657
2010-03-26 17:00:25 +00:00
Rafaël Carré
d3312b7f16
Fuzev2: fix build, use suited bitmap tool
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25342 a1c6a512-1295-4272-9138-f99709370657
2010-03-26 11:41:15 +00:00
Rafaël Carré
ea1b3676de
Clip+: fix battery voltage reading when charging : use ADC_RTCSUP like e200v1
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25340 a1c6a512-1295-4272-9138-f99709370657
2010-03-26 07:11:03 +00:00
Rafaël Carré
b6065a8ceb
Use STORAGE_WANTS_ALIGN to make clear it's not a strict necessity
...
Define PROC_NEEDS_CACHEALIGN only for PP
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25339 a1c6a512-1295-4272-9138-f99709370657
2010-03-26 00:11:50 +00:00
Rafaël Carré
a8d1690ffe
Make storage alignement use cache alignement macros
...
Introduce STORAGE_ALIGN_DOWN, STORAGE_PAD (using new CACHE_PAD) and
STORAGE_OVERLAP (using new CACHE_OVERLAP), make them useful only when
PROC_NEEDS_CACHEALIGN and STORAGE_NEEDS_ALIGN are defined
Modify PP and nano2g system-target.h accordingly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25336 a1c6a512-1295-4272-9138-f99709370657
2010-03-25 23:01:56 +00:00
Amaury Pouly
1dd216ba06
Fix usb-arc driver: the driver would prematurely mark a transfer as complete whereas only a part of it actually is, check the active of the TDs to avoid that. This should fix some HID+UMS bugs.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25328 a1c6a512-1295-4272-9138-f99709370657
2010-03-25 13:45:19 +00:00
Jack Halpin
9d9c090cba
sd-as3525v2.c Implement HS timings for those cards that are capable.
...
The internal card does not appear to be HS capable, at least not in 2GB clip+
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25316 a1c6a512-1295-4272-9138-f99709370657
2010-03-24 05:41:33 +00:00
Jack Halpin
0466a11028
sd-as3525v2.c Don't reset controller on every pass through the transfer loop.
...
The controller only needs to be reset if we had an error to clean up any leftover trash...
Move comment pertaining to retry variable so it's actually nearby.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25315 a1c6a512-1295-4272-9138-f99709370657
2010-03-24 05:41:25 +00:00
Jack Halpin
66f011e8c1
sd-as3525v2.c Adjust comments for MCI_INT bits to show if they are related to CMD, DATA, or a termination signal.
...
Adjust the initial MCI_MASK value to also mask the MCI_INT_RXDR and MCI_INT_TXDR bits as it seems we don't use them for dma transfers.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25314 a1c6a512-1295-4272-9138-f99709370657
2010-03-24 02:48:38 +00:00
Jack Halpin
19fc7297ba
SansaAMSv2: Give register CGU_BASE + 0x3C the name CGU_SDSLOT.
...
Move CLKDIV macros into clock-target.h.
Only enable the necessary interfaces for the 3 clock registers used for SD.
Add MEMSTICK and SDSLOT registers to bottom of register display in View HW info debug page.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25309 a1c6a512-1295-4272-9138-f99709370657
2010-03-23 17:00:59 +00:00
Björn Stenberg
2d174af443
No intentional warnings.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25308 a1c6a512-1295-4272-9138-f99709370657
2010-03-23 13:21:19 +00:00
Tobias Diedrich
06653d982a
Make this properly dependend on the right defines instead of a blacklist.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25306 a1c6a512-1295-4272-9138-f99709370657
2010-03-23 11:22:21 +00:00
Tobias Diedrich
c4e4ffb541
Limit AUDIO_IRQ handling to AS3525, since it doesn't work on the newer SoC in SANSA_CLIPPLUS yet.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25305 a1c6a512-1295-4272-9138-f99709370657
2010-03-23 11:13:17 +00:00
Rafaël Carré
f5988d4fbd
fix previous revision by using correct definition of i2c prescaler
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25304 a1c6a512-1295-4272-9138-f99709370657
2010-03-23 09:22:03 +00:00
Rafaël Carré
e4972b08f7
as3525: do not read i2c2_cpsr* registers because the clock might be disabled
...
The registers value does not change so we don't need to read them
This avoids dividing by 0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25303 a1c6a512-1295-4272-9138-f99709370657
2010-03-23 09:20:12 +00:00
Rafaël Carré
83fe35f4a1
fix r25297 : make ascodec-target.h empty when building sim
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25301 a1c6a512-1295-4272-9138-f99709370657
2010-03-23 07:52:55 +00:00
Tobias Diedrich
62ff88b717
Implement software pwm to control c200v2 display brightness.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25300 a1c6a512-1295-4272-9138-f99709370657
2010-03-23 05:27:32 +00:00
Tobias Diedrich
47ab95904e
Add handler for audio irq.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25299 a1c6a512-1295-4272-9138-f99709370657
2010-03-23 05:02:37 +00:00
Tobias Diedrich
946d3d177e
Rewrite ascodec_as3514.c to use interrupts.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25297 a1c6a512-1295-4272-9138-f99709370657
2010-03-23 04:40:38 +00:00
Rafaël Carré
1657174561
sd-as3525v2: read cid & csd in the correct order, fix disk info
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25292 a1c6a512-1295-4272-9138-f99709370657
2010-03-22 12:12:09 +00:00
Jack Halpin
beaa292199
sd-as3525v2.c We don't need to disable/enable MCI_CLKENA in send_cmd().
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25286 a1c6a512-1295-4272-9138-f99709370657
2010-03-22 06:09:19 +00:00
Jack Halpin
2a75da37ae
sd-as3525v2.c Enable disk access icon.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25285 a1c6a512-1295-4272-9138-f99709370657
2010-03-22 06:09:14 +00:00
Jack Halpin
d2a264e7da
sd-as3525v2.c Use MCI_MASK instead of data_transfer flag to determine if data transfer is happening.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25284 a1c6a512-1295-4272-9138-f99709370657
2010-03-22 06:09:08 +00:00
Jack Halpin
3ee301248d
sd-as3525v2.c Add macros to distinguish between a CMD error and a DATA error.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25283 a1c6a512-1295-4272-9138-f99709370657
2010-03-22 02:30:00 +00:00
Jack Halpin
48b8080330
sd-as3525v2 Remove post transfer wait for state call and move pre transfer wait for state call inside the transfer loop.
...
We don't need the post transfer call this way. We check on TRAN state before each partial transfer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25282 a1c6a512-1295-4272-9138-f99709370657
2010-03-22 02:29:53 +00:00
Jack Halpin
6357c5a085
sd-as3525v2.c Use SD_DESELECT_CARD instead of SD_SELECT_CARD to make the code easier to understand. There is no functional difference.
...
Add comment to explain why we need to do this.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25281 a1c6a512-1295-4272-9138-f99709370657
2010-03-22 02:29:40 +00:00
Andree Buschmann
091fc75034
Update battery discharge curve and current consumption for iRiver h10 5GB. Thanks to Danny Attar for measuring.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25279 a1c6a512-1295-4272-9138-f99709370657
2010-03-21 19:02:09 +00:00
Andree Buschmann
18e7c1f4af
Use atomic operation for GPIOx_ENABLEs in ide_power_enable() for iPod Video. Thanks to Jens Arnold for this one.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25273 a1c6a512-1295-4272-9138-f99709370657
2010-03-21 13:50:38 +00:00
Jack Halpin
da325b6270
sd-as3525v2.c: Correct SD_APP_OP_COND command to send full voltage range for v1 SD cards.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25266 a1c6a512-1295-4272-9138-f99709370657
2010-03-21 06:49:42 +00:00
Jack Halpin
f1d9491e9c
sd-as3525v2.c: Only manipulate MCI_CLKENA for drive being used.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25265 a1c6a512-1295-4272-9138-f99709370657
2010-03-21 06:10:44 +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