summaryrefslogtreecommitdiff
path: root/firmware (follow)
Commit message (Collapse)AuthorAge
...
* Fix some more snprintf related warnings.Thomas Martitz2010-05-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25853 a1c6a512-1295-4272-9138-f99709370657
* Move c/h files implementing/defining standard library stuff into a new libc ↵Thomas Martitz2010-05-06
| | | | | | | | directory, also standard'ify some parts of the code base (almost entirely #include fixes). This is to a) to cleanup firmware/common and firmware/include a bit, but also b) for Rockbox as an application which should use the host system's c library and headers, separating makes it easy to exclude our files from the build. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25850 a1c6a512-1295-4272-9138-f99709370657
* Ingenic Jz4740: Use lcd_putsf() instead of lcd_puts() in exception handlerMaurus Cuelenaere2010-05-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25849 a1c6a512-1295-4272-9138-f99709370657
* ad-as3525v2: Ask for a reponse from SD_APP_CMD to help with timing issues ↵Jack Halpin2010-05-06
| | | | | | | | | when switching to 4 bit widebus. Some SD cards were having problems switching to 4 Bit widebus and this solution appears to remedy that. Thanks to Luca_S! git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25846 a1c6a512-1295-4272-9138-f99709370657
* Make open() posix compliant api-wise. A few calls (those with O_CREAT) need ↵Thomas Martitz2010-05-06
| | | | | | the additional optional mode parameter so add it. Impact for the core is almost zero, as open() is a wrapper macro for the real open function which doesn't take the variable parameter. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25844 a1c6a512-1295-4272-9138-f99709370657
* Make creat() posix compliant API-wise. Shouldn't affect the core as it's ↵Thomas Martitz2010-05-06
| | | | | | wrapped via a static inline. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25843 a1c6a512-1295-4272-9138-f99709370657
* HD200 - fix stupid bug in lcd_grey_dataMarcin Bukat2010-05-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25842 a1c6a512-1295-4272-9138-f99709370657
* Gigabeat S bootloader: Fix archaic call placement in dptc_stop which hangs ↵Michael Sevakis2010-05-06
| | | | | | the bootloader before jumping to FW. Let the backlight LED ramp up after unplugging USB which just looks better. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25840 a1c6a512-1295-4272-9138-f99709370657
* Gigabeat S: There's no compelling reason to start automatic scaling in the ↵Michael Sevakis2010-05-06
| | | | | | bootloader only stop it milliseconds later. Do init to default frequency and working point, however. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25839 a1c6a512-1295-4272-9138-f99709370657
* Changed a macro to a raw in int constant. Didn't mean to do that. Put it ↵Michael Sevakis2010-05-06
| | | | | | back right. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25838 a1c6a512-1295-4272-9138-f99709370657
* i.MX31/Gigabeat S: This should fix stability problems. One problem was to ↵Michael Sevakis2010-05-06
| | | | | | start using the DVFS controller properly so that interrupts will be masked at the lowest and highest frequency indexes. Millions of useless interrupts were occurring at 132MHz because its index was 2, not 3, which masks it automatically when it can't go slower. Stopping the flood was enough to actually see the difference in general. IRQ must be disabled when fiddling with the CCM registers and only enabled when waiting for voltage ramp as having them enables also causes spurious DVFS ints. Implement interruptible ISR pro/epilogue more safely (always using IRQ stack even in SVC mode handling). Fix an improper inequality in DVFS code (which set regs for down when going up and v.v.). Misc. support changes. Have internal tables take less RAM. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25837 a1c6a512-1295-4272-9138-f99709370657
* sd-as3525v2.c: Set MCI interrupt mask immediately prior to enabling DMA for ↵Jack Halpin2010-05-05
| | | | | | | | the transfer. These INT's shouldn't be unmasked until the transfer is just about to happen. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25836 a1c6a512-1295-4272-9138-f99709370657
* as3525v2: don't modify audioset2 as it seems the bits have changedRafaël Carré2010-05-05
| | | | | | restore loud volume on Clip+ git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25831 a1c6a512-1295-4272-9138-f99709370657
* Clip+: current usage estimation based on battery benchRafaël Carré2010-05-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25830 a1c6a512-1295-4272-9138-f99709370657
* i.MX31/Gigabeat S: The nested IRQ code was just totally wrong and not ↵Michael Sevakis2010-05-05
| | | | | | actually working anyway (which is why it wasn't crashing). AVIC doesn't seem truthful about priority of current ISR either :\. Sometimes there were channel swaps during really active DVFS due to FIFO underflow from a needed long delay in the ISR (100us, and IIS TX only has 45us reserve) and DMARQ *must* be serviced low-latency. Get it doing as was intended. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25822 a1c6a512-1295-4272-9138-f99709370657
* Use settings for DAC AGC, cpeaker driver bias current (which is unused in ↵Michael Giacomelli2010-05-05
| | | | | | rockbox), dither, and headphone bias current taken from c200v2 firmware. These should result in several mA power savings on all as3525, and probably an improvement on AS3525v2 as well as the c200v1 and e200v1. RMAA tests on the e200v1, clipv1 and clipv2 show no measurable difference in output when driving a 16 ohm load. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25821 a1c6a512-1295-4272-9138-f99709370657
* sd-as3525v2.c: Implement 4 bit widebus for SD Transfers.Jack Halpin2010-05-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25820 a1c6a512-1295-4272-9138-f99709370657
* Fuzev2: don't disable interrupts in fm code, allow button tick to runRafaël Carré2010-05-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25819 a1c6a512-1295-4272-9138-f99709370657
* Fuzev2: FM - tested on 2 different modelsRafaël Carré2010-05-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25818 a1c6a512-1295-4272-9138-f99709370657
* as3525 FM i2c : don't assume SCL and SDA are on the same GPIORafaël Carré2010-05-05
| | | | | | This seems to be the case for the Fuzev2 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25817 a1c6a512-1295-4272-9138-f99709370657
* Clip+: use correct 290mAh battery capacityRafaël Carré2010-05-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25816 a1c6a512-1295-4272-9138-f99709370657
* as3525* : all as3525(v1) use ADC_BVDD for reading batteryRafaël Carré2010-05-05
| | | | | | | all as3525v2 use ADC_CHG_IN because ADC_BVDD is way too high when charging Fuzev2 now displays battery icon correctly when charging git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25815 a1c6a512-1295-4272-9138-f99709370657
* sd-as3525v2: Check for response timeout error in addition to response crc ↵Jack Halpin2010-05-04
| | | | | | | | | error. Remove TODO comment. Change SD_SELECT/DESELECT_CARD commands to MCI_NO_RESP as we don't need a response here. Renumber some command errors. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25811 a1c6a512-1295-4272-9138-f99709370657
* HD200 - fix random partition corruption on USB unplug (hopefully)Marcin Bukat2010-05-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25807 a1c6a512-1295-4272-9138-f99709370657
* HD200 - move adc channel variable to iram as it is used in ISRMarcin Bukat2010-05-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25805 a1c6a512-1295-4272-9138-f99709370657
* HD200 - fix backlight flashes during startupMarcin Bukat2010-05-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25804 a1c6a512-1295-4272-9138-f99709370657
* HD200 - remove fm glue code from bootloader buildMarcin Bukat2010-05-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25803 a1c6a512-1295-4272-9138-f99709370657
* Merely correct a comment.Michael Sevakis2010-05-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25802 a1c6a512-1295-4272-9138-f99709370657
* i.MX31/Gigabeat S: Just a little paranoid change to switcher write to active ↵Michael Sevakis2010-05-04
| | | | | | regulators method, to keep things localized a bit more from global data pool, for safety's sake. It's going to Mars afterall. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25801 a1c6a512-1295-4272-9138-f99709370657
* i.MX31/Gigabeat S: Actually enable DPTC which can set optimal voltage for ↵Michael Sevakis2010-05-04
| | | | | | 528MHz. Requires an SPI and PMIC interface rework because of the low-latency needs for the DPTC to work best with minimal panicing. SPI can work with multitasking and asynchronously from interrupt handlers or normal code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25800 a1c6a512-1295-4272-9138-f99709370657
* as3525v2: Use CD Interrupt vs. CD polling in send_cmd()Rafaël Carré2010-05-03
| | | | | | | | | Also enable write support, test_disk passes on all targets Flyspray: FS#11140 Authors: Jack Halpin and myself git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25799 a1c6a512-1295-4272-9138-f99709370657
* rolo: make PP code pp6100-compatibleRafaël Carré2010-05-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25798 a1c6a512-1295-4272-9138-f99709370657
* Ingenic Jz4740: eliminate EP0 state machine + small cleanupsMaurus Cuelenaere2010-05-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25797 a1c6a512-1295-4272-9138-f99709370657
* Ingenic Jz4740: cleanup USB driver a bit (no externally visible functional ↵Maurus Cuelenaere2010-05-03
| | | | | | changes) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25796 a1c6a512-1295-4272-9138-f99709370657
* Gigabeat S: Those odd calls to irq_handler can still happen rarely after ↵Michael Sevakis2010-05-03
| | | | | | executing WFI. With no explanation forthcoming after trying many things, hide head in sand and ignore them and the IRQ will get vectored to the correct handler anyway. Have vector tables execute an immediate return and remove irq_handler from compilation altogether. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25792 a1c6a512-1295-4272-9138-f99709370657
* Save a few instructions by better use of conditions.Jens Arnold2010-05-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25786 a1c6a512-1295-4272-9138-f99709370657
* FS#11149: alternative fix for ipod startup/shutdown issueTorne Wuff2010-05-02
| | | | | | | | | Instead of using the OF's low-battery handler to force a shutdown which appears to have numerous unwanted side effects, just clear the end of IRAM before shutting down which appears to solve the original "ipod sometimes needs hard reset to turn on" issue. If you experience the "need hard reset" issue after this commit, please let us know. It has been tested on several models but we still don't know for sure what the original problem was. ;) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25772 a1c6a512-1295-4272-9138-f99709370657
* Fix wrong udelay logic that made it be way off.Thomas Martitz2010-05-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25770 a1c6a512-1295-4272-9138-f99709370657
* HD200 - implement blit functionsMarcin Bukat2010-04-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25767 a1c6a512-1295-4272-9138-f99709370657
* HD200 - small fix in backlight codeMarcin Bukat2010-04-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25766 a1c6a512-1295-4272-9138-f99709370657
* HD200 - remove moving average filtering of ADC readoutsMarcin Bukat2010-04-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25765 a1c6a512-1295-4272-9138-f99709370657
* sd-as3525v2: cosmeticsRafaël Carré2010-04-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25762 a1c6a512-1295-4272-9138-f99709370657
* HD200 - add FM support.Marcin Bukat2010-04-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25757 a1c6a512-1295-4272-9138-f99709370657
* as3525v2: crashless cpufreq switchingRafaël Carré2010-04-29
| | | | | | | | delays after modifying the registers seems not to be needed moving RAM operation (cpu_frequency variable) before modifying the register also seems to help git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25754 a1c6a512-1295-4272-9138-f99709370657
* as3525v2: effect of CGU_PROC on fclk is instantRafaël Carré2010-04-29
| | | | | | | We do not need any delay after modifying it in system_init(), so the same applies in set_cpu_frequency() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25753 a1c6a512-1295-4272-9138-f99709370657
* as3525v2: do not use IRAM for pluginsRafaël Carré2010-04-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25750 a1c6a512-1295-4272-9138-f99709370657
* Fuzev2: revert r25741 and r25746Rafaël Carré2010-04-28
| | | | | | Use longer delays instead git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25747 a1c6a512-1295-4272-9138-f99709370657
* fix r25741: the 2nd delay needs to be present when the CPU is boostedRafaël Carré2010-04-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25746 a1c6a512-1295-4272-9138-f99709370657
* Fuzev2 button fixesRafaël Carré2010-04-27
| | | | | | | | - remove udelay(1) and use the previous busy loop : the delay was too long for proper hold detection - remove the 2nd delay (unneeded) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25741 a1c6a512-1295-4272-9138-f99709370657
* as3525v2: fix udelay()Rafaël Carré2010-04-27
| | | | | | | detect wraps so we don't miss the value we were waiting for fix audio stuttering on fuzev2 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25740 a1c6a512-1295-4272-9138-f99709370657