summaryrefslogtreecommitdiff
path: root/firmware
AgeCommit message (Collapse)Author
2010-05-10HD200 - Remove checks if driver is initialized. lcd_init_device() is always ↵Marcin Bukat
called first. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25928 a1c6a512-1295-4272-9138-f99709370657
2010-05-10HD200 - Reduce wait states when writing to lcd.Marcin Bukat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25927 a1c6a512-1295-4272-9138-f99709370657
2010-05-10as3525v2: disable adjustable CPU frequencyRafaël Carré
When the rest of the code is confirmed to work properly without CPU frequency changes, it will be possible to reliabily test set_cpu_frequency() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25924 a1c6a512-1295-4272-9138-f99709370657
2010-05-09Undo a change of r25850 which broke SDL audio on some (older kernels?) systems.Thomas Martitz
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25920 a1c6a512-1295-4272-9138-f99709370657
2010-05-09Update current usage for Fuzev1/e200v2/Clipv1Rafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25912 a1c6a512-1295-4272-9138-f99709370657
2010-05-08Sansa Cliv2: calibrated discharge curveRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25901 a1c6a512-1295-4272-9138-f99709370657
2010-05-08as3525*: stop MPMCCLKOUT when all SDRAMs are idleRafaël Carré
Get a bit more battery life (between 30 minutes and 2 hours) as3525v2: only enabled in bootloader, we need a new binary release anwyway as3525v1: enabled in rockbox.sansa as well, so we can continue using the current bootloaders Flyspray: FS#11246 Author: myself git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25900 a1c6a512-1295-4272-9138-f99709370657
2010-05-08Clean the DCache just before going to main because areas were written by ↵Michael Sevakis
init code that need to be coherent (.ncbss and .sdmacode). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25896 a1c6a512-1295-4272-9138-f99709370657
2010-05-08Gigabeat S: Reclaim about 800K of memory that was laying unused. Get rid of ↵Michael Sevakis
DEVBSS_ATTR for this target and implement as NOCACHEBSS_ATTR. Plugin and codec buffers move so all that is now incompatible (do full update). No version increase for plugins/codecs because the loader will reject them. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25895 a1c6a512-1295-4272-9138-f99709370657
2010-05-07as3525v2: make sure volume is normal by writing Audioset2 registerRafaël Carré
If the bit 6 is set volume is much lower, without writing it explicitely it is undefined. According to linux sources this bit is related to mixer. Initialize Audioset2 with low power 'hph' (probably headphones) quality, as I couldn't make a difference with 'high quality' setting. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25890 a1c6a512-1295-4272-9138-f99709370657
2010-05-07Fuzev1: calibrated discharge curveRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25874 a1c6a512-1295-4272-9138-f99709370657
2010-05-07i.MX31/Gigabeat S minor cleaning: Make HW access more obvious in places I ↵Michael Sevakis
forgot to do earlier. Reduce the number of structs that need to be filled-out for some drivers just to simplify a little. Change some types. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25870 a1c6a512-1295-4272-9138-f99709370657
2010-05-07Fuzev2: calibrated discharge curveRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25869 a1c6a512-1295-4272-9138-f99709370657
2010-05-07Remove stray function prototype used only for long-ago-removed codec ↵Michael Sevakis
swapping. Function definition was removed when adding internal voice codec. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25868 a1c6a512-1295-4272-9138-f99709370657
2010-05-07i.MX31: Make some style changes to some driver code so that hardware vs. ↵Michael Sevakis
variable access is more obvious to the eye. Change a few data types and qualifiers. No functional differences. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25865 a1c6a512-1295-4272-9138-f99709370657
2010-05-07Remove last traces of sprintf.hJeffrey Goode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25864 a1c6a512-1295-4272-9138-f99709370657
2010-05-06Define size_t the way the gcc/glibc people intendedFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25862 a1c6a512-1295-4272-9138-f99709370657
2010-05-06string.h shouldn't include stddef.hFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25860 a1c6a512-1295-4272-9138-f99709370657
2010-05-06Fix last sprintf warning.Thomas Martitz
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25859 a1c6a512-1295-4272-9138-f99709370657
2010-05-06Fix the remaining reds.Thomas Martitz
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25858 a1c6a512-1295-4272-9138-f99709370657
2010-05-06Revert r25854 which was bad for the database tool (I forgot it still needs ↵Thomas Martitz
the wrappers from uisimulator/common/io.c). Fix it so it works for both. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25856 a1c6a512-1295-4272-9138-f99709370657
2010-05-06Fix gigabeat S includes so it builds againFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25855 a1c6a512-1295-4272-9138-f99709370657
2010-05-06Fix checkwps by using host system's file IO (thanks to r25843/r25844) and by ↵Thomas Martitz
including a work around for systems that try to get intN_t via sys/types.h (which should be wrong, but well). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25854 a1c6a512-1295-4272-9138-f99709370657
2010-05-06Fix some more snprintf related warnings.Thomas Martitz
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25853 a1c6a512-1295-4272-9138-f99709370657
2010-05-06Move c/h files implementing/defining standard library stuff into a new libc ↵Thomas Martitz
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
2010-05-06Ingenic Jz4740: Use lcd_putsf() instead of lcd_puts() in exception handlerMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25849 a1c6a512-1295-4272-9138-f99709370657
2010-05-06ad-as3525v2: Ask for a reponse from SD_APP_CMD to help with timing issues ↵Jack Halpin
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
2010-05-06Make open() posix compliant api-wise. A few calls (those with O_CREAT) need ↵Thomas Martitz
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
2010-05-06Make creat() posix compliant API-wise. Shouldn't affect the core as it's ↵Thomas Martitz
wrapped via a static inline. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25843 a1c6a512-1295-4272-9138-f99709370657
2010-05-06HD200 - fix stupid bug in lcd_grey_dataMarcin Bukat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25842 a1c6a512-1295-4272-9138-f99709370657
2010-05-06Gigabeat S bootloader: Fix archaic call placement in dptc_stop which hangs ↵Michael Sevakis
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
2010-05-06Gigabeat S: There's no compelling reason to start automatic scaling in the ↵Michael Sevakis
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
2010-05-06Changed a macro to a raw in int constant. Didn't mean to do that. Put it ↵Michael Sevakis
back right. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25838 a1c6a512-1295-4272-9138-f99709370657
2010-05-06i.MX31/Gigabeat S: This should fix stability problems. One problem was to ↵Michael Sevakis
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
2010-05-05sd-as3525v2.c: Set MCI interrupt mask immediately prior to enabling DMA for ↵Jack Halpin
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
2010-05-05as3525v2: don't modify audioset2 as it seems the bits have changedRafaël Carré
restore loud volume on Clip+ git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25831 a1c6a512-1295-4272-9138-f99709370657
2010-05-05Clip+: current usage estimation based on battery benchRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25830 a1c6a512-1295-4272-9138-f99709370657
2010-05-05i.MX31/Gigabeat S: The nested IRQ code was just totally wrong and not ↵Michael Sevakis
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
2010-05-05Use settings for DAC AGC, cpeaker driver bias current (which is unused in ↵Michael Giacomelli
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
2010-05-05sd-as3525v2.c: Implement 4 bit widebus for SD Transfers.Jack Halpin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25820 a1c6a512-1295-4272-9138-f99709370657
2010-05-05Fuzev2: don't disable interrupts in fm code, allow button tick to runRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25819 a1c6a512-1295-4272-9138-f99709370657
2010-05-05Fuzev2: FM - tested on 2 different modelsRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25818 a1c6a512-1295-4272-9138-f99709370657
2010-05-05as3525 FM i2c : don't assume SCL and SDA are on the same GPIORafaël Carré
This seems to be the case for the Fuzev2 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25817 a1c6a512-1295-4272-9138-f99709370657
2010-05-05Clip+: use correct 290mAh battery capacityRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25816 a1c6a512-1295-4272-9138-f99709370657
2010-05-05as3525* : all as3525(v1) use ADC_BVDD for reading batteryRafaël Carré
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
2010-05-04sd-as3525v2: Check for response timeout error in addition to response crc ↵Jack Halpin
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
2010-05-04HD200 - fix random partition corruption on USB unplug (hopefully)Marcin Bukat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25807 a1c6a512-1295-4272-9138-f99709370657
2010-05-04HD200 - move adc channel variable to iram as it is used in ISRMarcin Bukat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25805 a1c6a512-1295-4272-9138-f99709370657
2010-05-04HD200 - fix backlight flashes during startupMarcin Bukat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25804 a1c6a512-1295-4272-9138-f99709370657
2010-05-04HD200 - remove fm glue code from bootloader buildMarcin Bukat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25803 a1c6a512-1295-4272-9138-f99709370657