summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips
AgeCommit message (Collapse)AuthorFilesLines
2010-06-06Remove card_enable_monitoring() and use a mutex instead. The ↵Frank Gevaerts1-8/+0
card_enable_monitoring() method actually didn't eliminate the possible race conditions it was meant to fix. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26627 a1c6a512-1295-4272-9138-f99709370657
2010-06-05remane hotswap.* to sdmmc.*. The contents have nothing at all to do with ↵Frank Gevaerts2-2/+2
hotswapping things git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26598 a1c6a512-1295-4272-9138-f99709370657
2010-06-02Threading: Split processor support code into respective target files. C ↵Michael Sevakis1-0/+133
files from /target/xxx are included into thread.c because of essential inlining and files are code, not declarations. Copyrights in each new file go to whoever implemented the first functional support. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26479 a1c6a512-1295-4272-9138-f99709370657
2010-05-24Cleanup r26253 red and yellow.Michael Sevakis1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26254 a1c6a512-1295-4272-9138-f99709370657
2010-05-24Make PCM->driver interface about as simple as it will get. Registered ↵Michael Sevakis1-17/+4
callback, zero data, alignment and stops are handled entirely inside pcm.c; driver merely calls fixed pcm.c callback. Remove pcm_record_more and do it just like playback; the original reason behind it isn't very practical in general. Everything checks out on supported targets. There wer some compat changes I can't check out on many unsupoorted but if there's a problem it will be a minor oops. Plugins become incompatible due to recording tweak-- full update. Sorted API. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26253 a1c6a512-1295-4272-9138-f99709370657
2010-05-21ata: do some threading-related corrections (some sync related where it ↵Michael Sevakis1-1/+1
matters). Make sure 'sleeping' is 'false' before the powerup sequence (throws-off powermgmt and it *is* about to woken again and powermgmt will need to compensate). Avoid looking at mutex flag directly; there's no tangible benefit I can discern and changes to the kernel that alter the meaning shouldn't be able to break anything. For that, in the jz sd driver, have sd_disk_is_active just return 'false' like all the other SD drivers do. If it *must* return this, it should implement it's own method but it seems to not matter. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26234 a1c6a512-1295-4272-9138-f99709370657
2010-05-15Hopefully finish off the red from r26051.Michael Sevakis1-1/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26053 a1c6a512-1295-4272-9138-f99709370657
2010-05-12PCM bottom layer simplification. pcm_rec_peak_addr variable no longer has to ↵Michael Sevakis1-3/+2
be handled there. Driver can just return current pointer for recording peaks. A new define, HAVE_PCM_REC_DMA_ADDRESS, specifies that physical addresses are being used for recording and translation is needed before starting a new block. The drivers need not worry about aligning start and size nor should care if either will be zero. All this will be checked in the logical layer first. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25970 a1c6a512-1295-4272-9138-f99709370657
2010-05-06Move c/h files implementing/defining standard library stuff into a new libc ↵Thomas Martitz2-2/+1
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 Cuelenaere1-5/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25849 a1c6a512-1295-4272-9138-f99709370657
2010-05-03Ingenic Jz4740: eliminate EP0 state machine + small cleanupsMaurus Cuelenaere1-66/+33
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25797 a1c6a512-1295-4272-9138-f99709370657
2010-05-03Ingenic Jz4740: cleanup USB driver a bit (no externally visible functional ↵Maurus Cuelenaere1-118/+119
changes) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25796 a1c6a512-1295-4272-9138-f99709370657
2010-04-27Remove pcm_mute() which has been unused since r19308Rafaël Carré1-1/+1
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-01-03Onda VX747/VX777: only enable SD clock when transferring dataMaurus Cuelenaere1-8/+19
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24172 a1c6a512-1295-4272-9138-f99709370657
2010-01-03Onda VX747/VX777: fix not closing I²C all timesMaurus Cuelenaere1-0/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24171 a1c6a512-1295-4272-9138-f99709370657
2010-01-03Onda VX747/VX777: update battery charge cycleMaurus Cuelenaere1-2/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24170 a1c6a512-1295-4272-9138-f99709370657
2010-01-03Onda VX747/VX777: cleanup linker files a bitMaurus Cuelenaere1-24/+10
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24169 a1c6a512-1295-4272-9138-f99709370657
2010-01-03Onda VX747/VX777: centralise LCD clock en-/disabling.Maurus Cuelenaere3-8/+29
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24168 a1c6a512-1295-4272-9138-f99709370657
2010-01-03Onda VX747/VX777: disable LCD when backlight is off (saves power)Maurus Cuelenaere2-4/+18
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24167 a1c6a512-1295-4272-9138-f99709370657
2010-01-03Onda VX747: fix USB charging detectionMaurus Cuelenaere1-3/+7
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24160 a1c6a512-1295-4272-9138-f99709370657
2009-12-18Onda VX747/VX777: fix FM radioMaurus Cuelenaere1-0/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24074 a1c6a512-1295-4272-9138-f99709370657
2009-12-08Onda VX747(+)/VX777: update battery discharge curveMaurus Cuelenaere1-5/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23894 a1c6a512-1295-4272-9138-f99709370657
2009-12-05Ingenic Jz4740: fix CPU boosting (was reversed)Maurus Cuelenaere1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23864 a1c6a512-1295-4272-9138-f99709370657
2009-11-27Jz4740: init I²C GPIO pinsMaurus Cuelenaere1-0/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23771 a1c6a512-1295-4272-9138-f99709370657
2009-11-26Define sd_drive_nr also when HAVE_HOTSWAP is defined (fix red).Maurus Cuelenaere1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23764 a1c6a512-1295-4272-9138-f99709370657
2009-11-26 - Split off strip_volume() to a separate fileMaurus Cuelenaere1-0/+2
- fix some yellows git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23762 a1c6a512-1295-4272-9138-f99709370657
2009-11-26Fix Onda VX767Maurus Cuelenaere1-1/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23761 a1c6a512-1295-4272-9138-f99709370657
2009-11-26Merge branch 'hotswap'Maurus Cuelenaere3-121/+252
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23759 a1c6a512-1295-4272-9138-f99709370657
2009-11-26Remove unused card_detect(), and make card_detect_target() static inline in ↵Thomas Martitz1-1/+1
each sd driver. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23757 a1c6a512-1295-4272-9138-f99709370657
2009-11-14Set DRMODE_SOLID, uniform colors, and sysfont before clearing LCD to display ↵Andrew Mahone1-1/+9
panic or exception messages - see FS#10665. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23623 a1c6a512-1295-4272-9138-f99709370657
2009-11-09Removed unneeded includesJeffrey Goode1-1/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23578 a1c6a512-1295-4272-9138-f99709370657
2009-11-03Comment out LOGF_ENABLE defines everywhere, replace evil commentsJeffrey Goode2-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23497 a1c6a512-1295-4272-9138-f99709370657
2009-10-28The Onda VX777 has only one button, add it to the keymap.Maurus Cuelenaere1-1/+1
Also fix a typo that erroneously enabled button_hold in button-target.h Flyspray: FS#10732 Author: Yann Muller git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23383 a1c6a512-1295-4272-9138-f99709370657
2009-10-20Convert lcd_activation callbacks to use the event system to allow for ↵Thomas Martitz1-1/+1
multiple parallel callbacks (for custom statusbar). Increase maximum event count as we need more (I actually had a report about it during custom statusbar testing). Removed corresponding functions from the core and plugin api. Bump min version and sort. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23302 a1c6a512-1295-4272-9138-f99709370657
2009-10-09Core changes to allow storage drivers to do cleanup on shutdown, and iPod ↵Michael Sparmann1-0/+7
Nano 2G shutdown code rework (FS#10668) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23057 a1c6a512-1295-4272-9138-f99709370657
2009-08-21Add a BTN_MASK for the VX777 (aka fix red)Maurus Cuelenaere1-3/+8
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22461 a1c6a512-1295-4272-9138-f99709370657
2009-08-21 * Onda VX777: add support for its single physical buttonMaurus Cuelenaere2-49/+55
* Use real wakeup events in the battery ADC driver * Adjust battery charge information a bit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22458 a1c6a512-1295-4272-9138-f99709370657
2009-08-19fix redNils Wallménius1-1/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22432 a1c6a512-1295-4272-9138-f99709370657
2009-08-19Onda's: add touchscreen boot menu for targets without/not much physical ↵Maurus Cuelenaere1-0/+3
buttons (VX777) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22416 a1c6a512-1295-4272-9138-f99709370657
2009-08-14Fix YellowKarl Kurbjun1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22315 a1c6a512-1295-4272-9138-f99709370657
2009-08-14Hopefully get all of the touchscreen drivers to act the same so release ↵Karl Kurbjun1-0/+5
events get the appropriate data. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22314 a1c6a512-1295-4272-9138-f99709370657
2009-08-01Fix red: only use SW_VOLUME_MIN if HAVE_SW_VOLUME_CONTROL is definedMaurus Cuelenaere1-1/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22107 a1c6a512-1295-4272-9138-f99709370657
2009-08-01 * Move DSP_CALLBACK_* enum to sound.hMaurus Cuelenaere1-14/+13
* Add software based volume control for a certain range (SW_VOLUME_MIN -> SW_VOLUME_MAX) * Make Onda VX747 use it * Don't change volume or frequency in Ingenic Jz4740 codec driver when they're already set git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22106 a1c6a512-1295-4272-9138-f99709370657
2009-08-01Ingenic Jz4740 timer driver: fix stupid mistakeMaurus Cuelenaere1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22096 a1c6a512-1295-4272-9138-f99709370657
2009-07-27Jz4740 timer driver: only init timer in timer_set() when start is trueMaurus Cuelenaere1-12/+19
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22075 a1c6a512-1295-4272-9138-f99709370657
2009-07-27Jz4740 PCM driver: do 32-bit or 16-bit burst sizes if 16-byte ones won't fit ↵Maurus Cuelenaere1-8/+56
(improves PDBox) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22074 a1c6a512-1295-4272-9138-f99709370657
2009-07-27Jz4740 PCM driver: check whether pcm_callback_for_more isn't NULL (fixes ↵Maurus Cuelenaere1-3/+5
metronome) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22072 a1c6a512-1295-4272-9138-f99709370657
2009-07-26Ingenic Jz4740 targets: turn backlight on when an exception occurs and ↵Maurus Cuelenaere1-0/+2
EXTENDED_EXCEPTION_DESC is defined git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22052 a1c6a512-1295-4272-9138-f99709370657
2009-07-26Onda VX747: don't fully init the LCD when not doing an USB_BOOT compile ↵Maurus Cuelenaere1-10/+19
(fixes flashes when booting up) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22051 a1c6a512-1295-4272-9138-f99709370657
2009-07-20Make sd_present() and mmc_present() look only at the actual presence of a ↵Frank Gevaerts1-2/+2
card, not at initialisation state git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21981 a1c6a512-1295-4272-9138-f99709370657