summaryrefslogtreecommitdiffstats
path: root/firmware
AgeCommit message (Collapse)AuthorFilesLines
2010-05-02FS#11149: alternative fix for ipod startup/shutdown issueTorne Wuff1-19/+10
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
2010-05-02Fix wrong udelay logic that made it be way off.Thomas Martitz2-8/+8
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25770 a1c6a512-1295-4272-9138-f99709370657
2010-04-30HD200 - implement blit functionsMarcin Bukat2-19/+117
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25767 a1c6a512-1295-4272-9138-f99709370657
2010-04-30HD200 - small fix in backlight codeMarcin Bukat1-1/+6
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25766 a1c6a512-1295-4272-9138-f99709370657
2010-04-30HD200 - remove moving average filtering of ADC readoutsMarcin Bukat1-12/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25765 a1c6a512-1295-4272-9138-f99709370657
2010-04-30sd-as3525v2: cosmeticsRafaël Carré1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25762 a1c6a512-1295-4272-9138-f99709370657
2010-04-29HD200 - add FM support.Marcin Bukat3-8/+346
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25757 a1c6a512-1295-4272-9138-f99709370657
2010-04-29as3525v2: crashless cpufreq switchingRafaël Carré1-8/+3
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
2010-04-29as3525v2: effect of CGU_PROC on fclk is instantRafaël Carré1-5/+0
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
2010-04-28as3525v2: do not use IRAM for pluginsRafaël Carré1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25750 a1c6a512-1295-4272-9138-f99709370657
2010-04-28Fuzev2: revert r25741 and r25746Rafaël Carré1-4/+2
Use longer delays instead git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25747 a1c6a512-1295-4272-9138-f99709370657
2010-04-27fix r25741: the 2nd delay needs to be present when the CPU is boostedRafaël Carré1-0/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25746 a1c6a512-1295-4272-9138-f99709370657
2010-04-27Fuzev2 button fixesRafaël Carré1-3/+2
- 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
2010-04-27as3525v2: fix udelay()Rafaël Carré1-2/+18
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
2010-04-27Two corrections to the previous commit (wrong timer was used, ↵Thomas Martitz1-2/+2
KERNEL_TIMER_FREQ is a more trustworthy). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25737 a1c6a512-1295-4272-9138-f99709370657
2010-04-27FS#11172 - Fuzev2: Read the scrollwheel scrollwheel via IRQThomas Martitz9-54/+238
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25736 a1c6a512-1295-4272-9138-f99709370657
2010-04-27as3525(v2): Add a somewhat inaccurate udelay (-0.5/+1.0µs). It should work ↵Thomas Martitz5-25/+68
good for some huge delays. Use it in fuzev2 to improve some big delays (correct the biggest one to actually wait for the fifo to empty), and use it in the sd drivers. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25734 a1c6a512-1295-4272-9138-f99709370657
2010-04-27Remove pcm_mute() which has been unused since r19308Rafaël Carré17-114/+92
Remove audiohw_mute from header as well, and make this function static to each driver (commented out when it was unused) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25733 a1c6a512-1295-4272-9138-f99709370657
2010-04-26as3525v2: fix volume setting (can now go very low)Rafaël Carré2-2/+6
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25732 a1c6a512-1295-4272-9138-f99709370657
2010-04-26as3514: detail bit of AS3543_DAC_IFRafaël Carré2-11/+7
it lets you select internal PLL or external MCLK and is not related to mute git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25731 a1c6a512-1295-4272-9138-f99709370657
2010-04-26as3514: no need to cache volumeRafaël Carré1-18/+9
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25730 a1c6a512-1295-4272-9138-f99709370657
2010-04-26Add MPIO HD200 port - new filesMarcin Bukat23-0/+2757
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25725 a1c6a512-1295-4272-9138-f99709370657
2010-04-26Add MPIO HD200 port - changed filesMarcin Bukat10-10/+122
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25724 a1c6a512-1295-4272-9138-f99709370657
2010-04-26Fuzev2: button_read_dbop() doesn't existRafaël Carré1-1/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25723 a1c6a512-1295-4272-9138-f99709370657
2010-04-26Fuzev2: fix screen corruptionRafaël Carré1-19/+10
Revive the delay removed by r25636 (and make it longer so it works when boosted) Also read GPIOA pins 7 & 6 in one load git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25722 a1c6a512-1295-4272-9138-f99709370657
2010-04-26remove some useless linesNils Wallménius1-4/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25721 a1c6a512-1295-4272-9138-f99709370657
2010-04-25Fix yellowsThomas Martitz1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25720 a1c6a512-1295-4272-9138-f99709370657
2010-04-25Remove lots of simulator-speficic #ifdef'ing in sound.c to allow for DSP ↵Thomas Martitz4-130/+33
effects in the sims, e.g. for bass and treble (targets that do those effects in HW don't simulate using dsp). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25719 a1c6a512-1295-4272-9138-f99709370657
2010-04-25DM320 UART: Enable clock in UART module since it will not be done in system ↵Karl Kurbjun1-0/+3
initialization. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25716 a1c6a512-1295-4272-9138-f99709370657
2010-04-25M:Robe 500 Power: Update battery Curve and simplify calculations.Karl Kurbjun1-12/+19
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25715 a1c6a512-1295-4272-9138-f99709370657
2010-04-25M:Robe 500 USB: Go back to OF timings for upcoming clock changesKarl Kurbjun1-7/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25714 a1c6a512-1295-4272-9138-f99709370657
2010-04-23Gigabeat S: All the target backlight functions are currently called on the ↵Michael Sevakis1-23/+1
backlight thread whereas that wasn't the case when the hardware fading was added. Now there's no danger of setting brightness interfering while setting up fades, so get rid of the superfluous mutex. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25700 a1c6a512-1295-4272-9138-f99709370657
2010-04-23i.MX31/Gigabeat S: Implement frequency and voltage scaling-- 1.6V for ↵Michael Sevakis20-125/+1311
528MHz, and 1.35V for 264MHz and 132MHz. Keep DPTC overdrive ( > 400MHz) voltage scaling off for now because of uncertainties. Simplify the (working) mess later. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25699 a1c6a512-1295-4272-9138-f99709370657
2010-04-23i.MX31: Add some enums and a couple helper functions to make dealing with ↵Michael Sevakis5-281/+482
pin muxing and pad configuration a bit more sane. Convert any existing code which changes mux/pad settings to use helpers. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25698 a1c6a512-1295-4272-9138-f99709370657
2010-04-22dircache: increase stack size to handle the worse case path during rebuild ↵Amaury Pouly1-1/+1
(dircache->fat->ata-sd-pp+sdhc) and allows directory with depth up to 20 approximately git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25697 a1c6a512-1295-4272-9138-f99709370657
2010-04-22ata-sd-pp: reduce size of the buffer used to switch bank, no functional ↵Amaury Pouly1-3/+5
change intended. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25696 a1c6a512-1295-4272-9138-f99709370657
2010-04-18Sansa as3525: Add missing lcd-clip.h header file to sansa clip lcd drivers. ↵Bertrik Sikken3-0/+3
Set svn:keywords on scrollwheel-as3525.c. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25674 a1c6a512-1295-4272-9138-f99709370657
2010-04-18Clean up IAP / ipod remote tuner a bit.Bertrik Sikken2-6/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25672 a1c6a512-1295-4272-9138-f99709370657
2010-04-18Use boolean instead of int for keeping track of mutex signalled state and ↵Bertrik Sikken2-11/+11
wakeup signalled state git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25671 a1c6a512-1295-4272-9138-f99709370657
2010-04-18Move audio_peek_track declaration from skin_display.c to audio.hBertrik Sikken1-0/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25670 a1c6a512-1295-4272-9138-f99709370657
2010-04-18Add the guard where it should be used. The net effect is zero now but it ↵Alexander Levin1-0/+6
might be not in the future if the definitions are changed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25669 a1c6a512-1295-4272-9138-f99709370657
2010-04-18Fix red from r25666 (forgot to use macro to not use core variable on single ↵Michael Sevakis1-5/+5
core), update a comment and remove core check for setting THREAD_SWITCH upon wakeup which is irrelevant to the idea behind the change. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25667 a1c6a512-1295-4272-9138-f99709370657
2010-04-18Threads of PRIORITY_REALTIME and above are no longer subject to being ↵Michael Sevakis1-10/+18
switched away based upon aging of lower priority threads. Now, recommend a thread switch in wakeup_thread of any thread of higher priority is ready to run. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25666 a1c6a512-1295-4272-9138-f99709370657
2010-04-17Use a more natural guard for the callback definitionAlexander Levin1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25664 a1c6a512-1295-4272-9138-f99709370657
2010-04-16Cleanup thread_entry definition a bit. Reorder members so that related ones ↵Thomas Martitz2-10/+6
are next to each other and move a pretty hidden define into config.h. Doesn't make a binsize difference (the comment says the order should be optimized for size). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25659 a1c6a512-1295-4272-9138-f99709370657
2010-04-16Convert macro to inline function and move it into .c file.Thomas Martitz2-15/+29
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25658 a1c6a512-1295-4272-9138-f99709370657
2010-04-16Use API call instead of accessing a global variable for receiving the ↵Thomas Martitz2-14/+11
current thread. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25657 a1c6a512-1295-4272-9138-f99709370657
2010-04-16workaround DBOP noise issue on C200v2 cause it's really annoying if your ↵Tobias Diedrich2-1/+52
buttons don't work in the debug menu... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25655 a1c6a512-1295-4272-9138-f99709370657
2010-04-14Make builds with MAX_PHYS_SECTOR_SIZE defined (ipod video) work with larger ↵Torne Wuff1-14/+26
sizes if the drive is sane. The ipod video build has a MAX_PHYS_SECTOR_SIZE of 1024. This meant it would refuse to boot on drives with sectors larger than 1024 bytes, even if those drives don't actually require the workaround originally intended for the 80GB 5.5G's drive. ata_init() will now, if the drive claims to have >512 byte sectors, try and read sector 1 to determine if the drive is capable of emulating 512-byte sector accesses. If this succeeds, we assume the drive is better at it than us (this is very likely to be true) and set phys_sector_mult to 1, disabling the workaround and ensuring the drive will work regardless of sector size. Making use of this change requires that you build and install an updated bootloader as well as the main build; a new iPod bootloader will be released soon, so if you can't do this yourself, be patient. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25646 a1c6a512-1295-4272-9138-f99709370657
2010-04-13s3c2440: fix a typo, 4|1 == 5, not 0x41Rafaël Carré1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25642 a1c6a512-1295-4272-9138-f99709370657