summaryrefslogtreecommitdiffstats
path: root/firmware
AgeCommit message (Collapse)AuthorFilesLines
2010-03-31Clipv2/Clip+ : use CHG_IN adc channel, it seems to work better than BVDD and ↵Rafaël Carré1-3/+5
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-29Fix bootloader red, it doesn't have backlight handling.Thomas Martitz1-0/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25394 a1c6a512-1295-4272-9138-f99709370657
2010-03-29fuzev2 FM doesn't work (yet), don't try to record from itRafaël Carré2-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25393 a1c6a512-1295-4272-9138-f99709370657
2010-03-29Fuzev2: Preliminary button support. Scrollwheel does not work yet.Thomas Martitz1-2/+92
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25392 a1c6a512-1295-4272-9138-f99709370657
2010-03-29as3525v2: microphone recordingRafaël Carré1-0/+10
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25391 a1c6a512-1295-4272-9138-f99709370657
2010-03-29as3525v2 : recording (FM only, no microphone yet)Rafaël Carré5-68/+79
Add HAVE_AS3543 config define to differentiate the bits changed since as3514/as3517 Enable recording on Fuzev2/Clipv2/Clip+, although it was tested on Clip+ only Note: storage is still read-only so I tested by listening to headphones loopback and watching the recording level in recscreen git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25390 a1c6a512-1295-4272-9138-f99709370657
2010-03-29as3525v2: FM playback (only tested on Clip+)Rafaël Carré2-3/+21
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25383 a1c6a512-1295-4272-9138-f99709370657
2010-03-29as3525: CGU_USB has only 3 bits for the dividerRafaël Carré1-6/+6
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25381 a1c6a512-1295-4272-9138-f99709370657
2010-03-29as3525v2: factorize writing to ascodec PMURafaël Carré4-18/+18
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25380 a1c6a512-1295-4272-9138-f99709370657
2010-03-29as3543: name 0x1b & 0x1c registersRafaël Carré4-18/+22
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25379 a1c6a512-1295-4272-9138-f99709370657
2010-03-29Clipv2/Clip+ : turn off backlight in 0x1b registerRafaël Carré3-5/+7
Rename clipv2 file git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25378 a1c6a512-1295-4272-9138-f99709370657
2010-03-29Fuzev2: fix backlight brightnessRafaël Carré2-21/+11
PMU registers are write-only git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25377 a1c6a512-1295-4272-9138-f99709370657
2010-03-28Fuzev2: it seems we need to set bit 3 when selecting PMU subregisterRafaël Carré1-4/+4
backlight still not working properly git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25371 a1c6a512-1295-4272-9138-f99709370657
2010-03-28Fuzev2: cleanup backlight code (still not working correctly)Rafaël Carré1-6/+8
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25370 a1c6a512-1295-4272-9138-f99709370657
2010-03-28Fuzev2: fix LCDRafaël Carré1-20/+20
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25368 a1c6a512-1295-4272-9138-f99709370657
2010-03-28Fuzev2: edit configRafaël Carré1-4/+1
correct USB product ID remove a define which is common to all as3525v2 and then built-in in the driver git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25367 a1c6a512-1295-4272-9138-f99709370657
2010-03-28Fuzev2: fix lcdRafaël Carré1-47/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25360 a1c6a512-1295-4272-9138-f99709370657
2010-03-27Remove unnecessary (and incorrect) acks after stalling the control endpointFrank Gevaerts1-10/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25359 a1c6a512-1295-4272-9138-f99709370657
2010-03-27Fuzev2: fix normal build: enable charging properly, disable FM, use as3525v2 cpuRafaël Carré2-5/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25354 a1c6a512-1295-4272-9138-f99709370657
2010-03-27Fuzev2: µSD detect pin is A2 like Clip+, but the meaning is reversedRafaël Carré1-0/+6
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25353 a1c6a512-1295-4272-9138-f99709370657
2010-03-26sd-as3525v2.c Organize construction of MCI_COMMAND so it is more apparent ↵Jack Halpin1-20/+22
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-26Fuzev2: fix build, use suited bitmap toolRafaël Carré1-0/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25342 a1c6a512-1295-4272-9138-f99709370657
2010-03-26Clip+: fix battery voltage reading when charging : use ADC_RTCSUP like e200v1Rafaël Carré1-0/+6
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25340 a1c6a512-1295-4272-9138-f99709370657
2010-03-26Use STORAGE_WANTS_ALIGN to make clear it's not a strict necessityRafaël Carré3-20/+15
Define PROC_NEEDS_CACHEALIGN only for PP git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25339 a1c6a512-1295-4272-9138-f99709370657
2010-03-25Accept expressions in CACHE_OVERLAP() macroRafaël Carré1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25337 a1c6a512-1295-4272-9138-f99709370657
2010-03-25Make storage alignement use cache alignement macrosRafaël Carré5-18/+28
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-25Commit a HID fix by gevaerts that prevent the HID driver to call ↵Amaury Pouly1-0/+14
usb_drv_send_nonblocking while the previous transfer has not finished because the current stack doesn't support transfer queueing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25329 a1c6a512-1295-4272-9138-f99709370657
2010-03-25Fix usb-arc driver: the driver would prematurely mark a transfer as complete ↵Amaury Pouly1-4/+17
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-24sd-as3525v2.c Implement HS timings for those cards that are capable.bootloader_sansaclipv2_sansaclipplus_v1Jack Halpin1-2/+21
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-24sd-as3525v2.c Don't reset controller on every pass through the transfer loop.Jack Halpin1-5/+8
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-24sd-as3525v2.c Adjust comments for MCI_INT bits to show if they are related ↵Jack Halpin1-18/+18
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-23Packard Bell Vibe 500: remove the old bootloader code (actually a lack of ↵Szymon Dziok1-1/+1
code) and make the main-pp.c acting like a true bootloader for the DAP. It's the first step to integrate the DAP with the RBUtil. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25311 a1c6a512-1295-4272-9138-f99709370657
2010-03-23SansaAMSv2: Give register CGU_BASE + 0x3C the name CGU_SDSLOT.Jack Halpin4-9/+19
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-23No intentional warnings.Björn Stenberg1-4/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25308 a1c6a512-1295-4272-9138-f99709370657
2010-03-23Make this properly dependend on the right defines instead of a blacklist.Tobias Diedrich1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25306 a1c6a512-1295-4272-9138-f99709370657
2010-03-23Limit AUDIO_IRQ handling to AS3525, since it doesn't work on the newer SoC ↵Tobias Diedrich4-11/+48
in SANSA_CLIPPLUS yet. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25305 a1c6a512-1295-4272-9138-f99709370657
2010-03-23fix previous revision by using correct definition of i2c prescalerRafaël Carré1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25304 a1c6a512-1295-4272-9138-f99709370657
2010-03-23as3525: do not read i2c2_cpsr* registers because the clock might be disabledRafaël Carré1-1/+1
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-23fix r25297 : make ascodec-target.h empty when building simRafaël Carré1-0/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25301 a1c6a512-1295-4272-9138-f99709370657
2010-03-23Implement software pwm to control c200v2 display brightness.Tobias Diedrich3-5/+161
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25300 a1c6a512-1295-4272-9138-f99709370657
2010-03-23Add handler for audio irq.Tobias Diedrich9-25/+208
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25299 a1c6a512-1295-4272-9138-f99709370657
2010-03-23Rewrite ascodec_as3514.c to use interrupts.Tobias Diedrich3-47/+314
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25297 a1c6a512-1295-4272-9138-f99709370657
2010-03-22sd-as3525v2: read cid & csd in the correct order, fix disk infoRafaël Carré1-4/+6
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25292 a1c6a512-1295-4272-9138-f99709370657
2010-03-22FS#11118: reduce the number of cached sector in FAT code because some are ↵Amaury Pouly2-119/+99
useless after a rewrite of LFN entries handling. Also makes LFN handling more robust. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25290 a1c6a512-1295-4272-9138-f99709370657
2010-03-22sd-as3525v2.c We don't need to disable/enable MCI_CLKENA in send_cmd().Jack Halpin1-6/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25286 a1c6a512-1295-4272-9138-f99709370657
2010-03-22sd-as3525v2.c Enable disk access icon.Jack Halpin1-0/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25285 a1c6a512-1295-4272-9138-f99709370657
2010-03-22sd-as3525v2.c Use MCI_MASK instead of data_transfer flag to determine if ↵Jack Halpin1-7/+4
data transfer is happening. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25284 a1c6a512-1295-4272-9138-f99709370657
2010-03-22sd-as3525v2.c Add macros to distinguish between a CMD error and a DATA error.Jack Halpin1-7/+18
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25283 a1c6a512-1295-4272-9138-f99709370657
2010-03-22sd-as3525v2 Remove post transfer wait for state call and move pre transfer ↵Jack Halpin1-20/+14
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-22sd-as3525v2.c Use SD_DESELECT_CARD instead of SD_SELECT_CARD to make the ↵Jack Halpin1-2/+3
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