summaryrefslogtreecommitdiff
path: root/firmware (follow)
Commit message (Collapse)AuthorAge
...
* usb-as3525v2:Amaury Pouly2010-05-20
| | | | | | | | | | - forgot a ccu undocumented thing in init - finish init code (following linux patch) - enable interrupts - don't use dynanmic fifo sizing by default - move to a more static configuration of usb hardware parameters (it might be necessary to move them to config* files later). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26195 a1c6a512-1295-4272-9138-f99709370657
* disk/file: Do not use & on arraysRafaël Carré2010-05-20
| | | | | | it might be valid C but is confusing, and not consistent with the rest of file.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26191 a1c6a512-1295-4272-9138-f99709370657
* fuzev2: charging curve and voltage limitsRafaël Carré2010-05-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26190 a1c6a512-1295-4272-9138-f99709370657
* fix commentsMarcin Bukat2010-05-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26189 a1c6a512-1295-4272-9138-f99709370657
* HD200 - increase sligtly wait states for lcd. This removes clicks in ↵Marcin Bukat2010-05-20
| | | | | | playback and lcd updates are fast anyway git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26188 a1c6a512-1295-4272-9138-f99709370657
* HD200 - fix button readings afrer PLL settings changeMarcin Bukat2010-05-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26186 a1c6a512-1295-4272-9138-f99709370657
* HD200 - fix PLL settings. This fixes looong standing bug heavily affecting ↵Marcin Bukat2010-05-20
| | | | | | performance git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26185 a1c6a512-1295-4272-9138-f99709370657
* Gigabeat S: Use longer battery filter; lag is not a problem with voltage for ↵Michael Sevakis2010-05-19
| | | | | | charging since it's I-controlled. Initialize local copy of last_inputs for the power routines in target init otherwise the battery filter is reinitialized too soon. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26180 a1c6a512-1295-4272-9138-f99709370657
* sd-as3525v2: masked interrupts and block size won't change, and DMA won't be ↵Rafaël Carré2010-05-19
| | | | | | disabled, so we can just set these in the controller init once for all git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26179 a1c6a512-1295-4272-9138-f99709370657
* as3525: hide our UNCACHED_ADDR from usb_storage.cRafaël Carré2010-05-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26178 a1c6a512-1295-4272-9138-f99709370657
* revert part of r26176 to avoid large static allocationRafaël Carré2010-05-19
| | | | | | we still need to convert uncached addresses to physical addresses git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26177 a1c6a512-1295-4272-9138-f99709370657
* as3525: don't use IRAM for usb, and avoid usb storage using uncached ↵Rafaël Carré2010-05-19
| | | | | | | | addresses behind our back No need for special address handling, all addresses are equal to their physical address git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26176 a1c6a512-1295-4272-9138-f99709370657
* Revert r26060. A better fix was found. The acceleration should be fixed once ↵Thomas Martitz2010-05-19
| | | | | | for all now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26175 a1c6a512-1295-4272-9138-f99709370657
* as3514.c: clean upRafaël Carré2010-05-19
| | | | | | | | | | | | | | - enhance registers description in header file with respect to the as3543 registers: point which one are present or not in the as3543, which bits change (i didn't detail all registers) - cache less registers, only up to the ones which are written to multiple times - use ascodec_readbytes() to cache all needed registers in a row - separate the as3543 bits from as3514/as3515 in audiohw_preinit() - comment out unused audiohw_set_lineout_vol - some cosmetics git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26174 a1c6a512-1295-4272-9138-f99709370657
* Handshake still grinds to a halt at some point, but it works better now.Tobias Diedrich2010-05-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26167 a1c6a512-1295-4272-9138-f99709370657
* fix previous commitRafaël Carré2010-05-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26166 a1c6a512-1295-4272-9138-f99709370657
* better preprocessor conditions for enabling GPIOA interruptRafaël Carré2010-05-19
| | | | | | | it's only needed if we hotswap the µSD or if we build the fuzev2 scrollwheel code without irq (which we don't do anyway) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26165 a1c6a512-1295-4272-9138-f99709370657
* sd-as3525: wait 100µs before disabling SD clocksRafaël Carré2010-05-19
| | | | | | test_disk doesn't freeze anymore when closing the file between writing & reading git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26164 a1c6a512-1295-4272-9138-f99709370657
* as3525v2: fix end of charge detectionRafaël Carré2010-05-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26163 a1c6a512-1295-4272-9138-f99709370657
* sd-as3525: avoid division when calculating current bank, we only deal with 1 ↵Rafaël Carré2010-05-19
| | | | | | or 2 banks git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26161 a1c6a512-1295-4272-9138-f99709370657
* as3525: reorder vectored interruptsRafaël Carré2010-05-19
| | | | | | | | | | | | | The list is ordered by priority, put the DMA and SD interrupts at the top This seems to fix the random freezes on heavy storage operation like building database or pictureflow cache The recently added audio interrupt had a priority higher than SD slot on as3525v1, give it a lower priority git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26160 a1c6a512-1295-4272-9138-f99709370657
* sd-as3525: give timeout in HZ units, not in ticksRafaël Carré2010-05-19
| | | | | | remove a TODO fixed in r26029 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26159 a1c6a512-1295-4272-9138-f99709370657
* HD200 - lm339 response time is at best 300 ns so adcclk can not be too highMarcin Bukat2010-05-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26158 a1c6a512-1295-4272-9138-f99709370657
* as3525v2: add partial usb init codeAmaury Pouly2010-05-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26157 a1c6a512-1295-4272-9138-f99709370657
* Gigabeat S: Wrong thing messing with IPU_CONF. No fiddling is needed just yet.Michael Sevakis2010-05-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26155 a1c6a512-1295-4272-9138-f99709370657
* Gigabeat S: Implement LCD contrast, invert and flip modes. Enhance LCD power ↵Michael Sevakis2010-05-18
| | | | | | management. Include init data but it's not needed yet (identical to Gigabeat F). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26154 a1c6a512-1295-4272-9138-f99709370657
* as3525v2: show adc channels in the debug menuRafaël Carré2010-05-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26150 a1c6a512-1295-4272-9138-f99709370657
* Fuzev1: calibrated charging curveRafaël Carré2010-05-18
| | | | | | | Show all the adc channels in the IO ports debug menu (not for as3525v2 since the channels are different) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26149 a1c6a512-1295-4272-9138-f99709370657
* Clip+: reboot on USB insertRafaël Carré2010-05-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26148 a1c6a512-1295-4272-9138-f99709370657
* don't let logf() and DEBUGF() be empty statementsRafaël Carré2010-05-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26146 a1c6a512-1295-4272-9138-f99709370657
* Enable/disable second pll dynamically on usb plugin/remove.Tobias Diedrich2010-05-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26145 a1c6a512-1295-4272-9138-f99709370657
* Build overlay plugins for all targets with PLUGIN_BUFFER <= 0x10000 bytesRafaël Carré2010-05-18
| | | | | | | | | Bring Clipv1 & m200v4 plugin buffer down to this limit zxbox, chessbox and rockboy build on the clip rockboy doesn't build on m200v4 due to not enough buttons to make a keymap Some gameboy roms won't run on Clipv1: tetris does but not pokemon for example git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26144 a1c6a512-1295-4272-9138-f99709370657
* as3525 usb: build as3525v2 file based on CONFIG_USBOTG, and fix warningsRafaël Carré2010-05-18
| | | | | | | | build it on fuzev2 and clipv2 too, it should be the same controller as3525v1 file is only build for CONFIG_USBOTG == USBOTG_AS3525, no need to check for it in the .c file git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26142 a1c6a512-1295-4272-9138-f99709370657
* plugins: changes for targets with small plugin buffer (Clipv1)Rafaël Carré2010-05-18
| | | | | | | | | | | | | | | | | | | | | | | - only enable overlays for targets with very small plugin buffer (<= 0x10000 bytes, i.e. archos) - change the condition for rockboy to reflect exactly why it can be built or not - Some plugins need a large plugin buffer, only enable them if the buffer is big enough (sizes measured on Clipv1) - disable MIDI if we have 2MB (or less), we won't be able to load the instruments in the audio buffer - remove unusable lua overlay loader - sokoban code is bigger on clipv1 than on SH, assume it code is 20kB on anything but SH so it builds with buffer smaller than 192kB - reduce the Clipv1 plugin buffer size from 288kB to 96kb, disabling zxbox, chessbox, and fft zxbox and chessbox have overlays which run on archos, we just need to enable them on other targets. We'll also be able to run rockboy. fft won't run as it needs a large plugin buffer for greylib git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26141 a1c6a512-1295-4272-9138-f99709370657
* HD200 - change how adc is scanned (inspired by amiconn)Marcin Bukat2010-05-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26138 a1c6a512-1295-4272-9138-f99709370657
* Rename sdl lcd initialization to (remote_)lcd_init_device which enables ↵Thomas Martitz2010-05-18
| | | | | | removing two #ifdef SIMULATOR and makes it happen as on target. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26137 a1c6a512-1295-4272-9138-f99709370657
* config: revert an embarrassing change.Amaury Pouly2010-05-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26133 a1c6a512-1295-4272-9138-f99709370657
* as3525v2: add usb driver stub, enable usb phy&core initAmaury Pouly2010-05-18
| | | | | | clip+: add USBOTG_ define and enable usb stack git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26132 a1c6a512-1295-4272-9138-f99709370657
* Ok, this time I double-checked for warnings...Tobias Diedrich2010-05-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26131 a1c6a512-1295-4272-9138-f99709370657
* And don't forget the return values...Tobias Diedrich2010-05-18
| | | | | | | Note to self: Next time don't forget to check a AMSv2 build before committing... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26130 a1c6a512-1295-4272-9138-f99709370657
* And of course the stubs still need to be there...Tobias Diedrich2010-05-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26129 a1c6a512-1295-4272-9138-f99709370657
* Obviously this should not be built on AS353x...Tobias Diedrich2010-05-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26128 a1c6a512-1295-4272-9138-f99709370657
* This change wasn't supposed to be in there yet.Tobias Diedrich2010-05-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26127 a1c6a512-1295-4272-9138-f99709370657
* Not quite working yet, but almost.Tobias Diedrich2010-05-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26126 a1c6a512-1295-4272-9138-f99709370657
* A bit further cleanup in system-sdl.c.Thomas Martitz2010-05-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26123 a1c6a512-1295-4272-9138-f99709370657
* Clip+: boot to OF if USB is connectedRafaël Carré2010-05-17
| | | | | | | To be sure that there is no mistake in this code, it is run *after* the known to work HOME & LEFT buttons checks, unlike other Sansas git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26122 a1c6a512-1295-4272-9138-f99709370657
* Fix another warning which strangely only occurs on cygwin.Thomas Martitz2010-05-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26121 a1c6a512-1295-4272-9138-f99709370657
* Restore changes of r25809 that got lost in the target tree movement and fix ↵Thomas Martitz2010-05-17
| | | | | | simulator build on cygwin. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26120 a1c6a512-1295-4272-9138-f99709370657
* as3525: correctly detect usb status if we boot with USB pluggedRafaël Carré2010-05-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26118 a1c6a512-1295-4272-9138-f99709370657
* as3514/as3543 fixesRafaël Carré2010-05-17
| | | | | | | | | | | | | | | | | | | | | | | - Enable end of charge monitoring once, it doesn't need to be disabled - Acknowledge the first (wrong) end of charge interrupt on charger enable (this had been broken in r25299) - Centralize reads to ENRD* registers and cache the results when needed - on PP it is not needed because reads are atomic, we only check for end of charge when the charging, and for charger presence when discharging as3525v2 (using as3543) specifics - I got the datasheet today from AMS, thanks to them for being so fast and not require me to sign tons of papers! - USB detection now works on as3525v2 using the as3543. Clip+ won't reboot to OF yet, it needs mkamsboot support first (usbstack disabled) - Charging should work, the CHARGER register is at a different place, it is an extended PMU register -> use ascodec_read/write_charger() to access it - real interrupts are not used yet for ENRD, we get thousands of interrupts per second, apparently only limited by the i2c clock. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26116 a1c6a512-1295-4272-9138-f99709370657