summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525
AgeCommit message (Collapse)Author
2011-03-02Merge functionality of wakeups and semaphores-- fewer APIs and object types. ↵Michael Sevakis
semaphore_wait takes a timeout now so codecs and plugins have to be made incompatible. Don't make semaphores for targets not using them. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29492 a1c6a512-1295-4272-9138-f99709370657
2011-02-22Return valid tuner ID even when tuner is not detected properly. Fixes FS#11791Michael Chicoine
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29378 a1c6a512-1295-4272-9138-f99709370657
2011-02-04AMSv2 USB: Remove usb_enable call that occurs after core is already ↵Michael Sevakis
initialized and the usb_disable call while in ISR. Also, no point in panicing over a disconnect. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29205 a1c6a512-1295-4272-9138-f99709370657
2011-02-02Fix red. Replace remaining MEM's mit MEMORYSIZE.Andree Buschmann
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29190 a1c6a512-1295-4272-9138-f99709370657
2011-02-02Clean up multiple definitions of RAM size. Remove -DMEM (make) and MEM ↵Andree Buschmann
(code), use the already defined MEMORYSIZE instead. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29189 a1c6a512-1295-4272-9138-f99709370657
2011-01-29AMSv2 SD: Fix card insert lockups in USB mode. First, get rid of infinite ↵Michael Sevakis
loops and retry those a limited number of times-- no explaination for their dubious existence was offered in the source. Second, SD thread was no longer monitoring inserts (and it wouldn't really matter if it were). Thus, .initialized was reported as '1' despite the new card needing reinit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29169 a1c6a512-1295-4272-9138-f99709370657
2011-01-29Convert AMS target USB detection to event-based (no more polling in a tick). ↵Michael Sevakis
Seems well on my Clip v1 and Fuze v2. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29156 a1c6a512-1295-4272-9138-f99709370657
2011-01-29AMSv2 USB: Delay after sftdiscon should be far longer.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29154 a1c6a512-1295-4272-9138-f99709370657
2011-01-28AS3525v2 USB: Set disconnect before stopping module clock. Seems to cure ↵Michael Sevakis
reconnect weirdness for me and is probably the proper method anyway since otherwise the module will still be running when the clock is cut (bad). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29149 a1c6a512-1295-4272-9138-f99709370657
2011-01-27as3525v2-usb: fix logf format, don't mask the interrupt using the VIC as it ↵Amaury Pouly
seems to trigger spurious irq git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29146 a1c6a512-1295-4272-9138-f99709370657
2011-01-24as3525v2-usb: mask usb interrupt when setting up a transferAmaury Pouly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29130 a1c6a512-1295-4272-9138-f99709370657
2011-01-24as3525v2-usb: only call wakeup_signal when a thread is actually waitingAmaury Pouly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29129 a1c6a512-1295-4272-9138-f99709370657
2011-01-20Fuze v2: Do button reading more efficiently by mapping button codes directly ↵Michael Sevakis
to the GPIO pin states where possible (all but 'home' and hold). This makes plugins incompatible; up the min version and sort things. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29097 a1c6a512-1295-4272-9138-f99709370657
2011-01-20Fuze V2: Fix hold switch behavior. Add a GPIOx_PIN_MASK macro to AS3525.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29096 a1c6a512-1295-4272-9138-f99709370657
2011-01-19AS3525: Implement a true audio pause and full-resolution audio tick. Take ↵Michael Sevakis
care of a few atomic hotspots. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29088 a1c6a512-1295-4272-9138-f99709370657
2011-01-18Try to get some control over #ifdef hell in usb.c by refactoring and inline ↵Michael Sevakis
function use. SYS_USB_DISCONNECTED_ACK hasn't been doing anything useful for the USB thread; remove it. USB thread simply ignores that value. Observe only valid usb_state transitions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29084 a1c6a512-1295-4272-9138-f99709370657
2011-01-15Fix problem with AMS PCM driver that caused mpegplayer lockup. It ↵Michael Sevakis
pre-decremented the size remaining where it is supposed to be post-decremented by the last transfer size in the callback. Pending callbacks also must be cleared when stopping or pausing a channel if they happened before the lock flag was set. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29059 a1c6a512-1295-4272-9138-f99709370657
2010-12-29revert r28834 because it causes problems with uSDFred Bauer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28925 a1c6a512-1295-4272-9138-f99709370657
2010-12-26Apply FS#11798 (Files in MicroSD card aren't being shown in File Browser or ↵Bertrik Sikken
Database on Clip+) by Will Sowerbutts git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28903 a1c6a512-1295-4272-9138-f99709370657
2010-12-21Make usb_detect() return USB_UNPOWERED instead of USB_EXTRACTED. Without ↵Frank Gevaerts
that, not all needed disconnect handling is done in usb.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28874 a1c6a512-1295-4272-9138-f99709370657
2010-12-14FS#11765: Improve AMSv1 Battery Life by Lowering CPU and Peripheral clocks. ↵Fred Bauer
Unboosted CPU and peripheral clock is now 31MHz. Boosted CPU and pclk are 186MHz and 62MHz, respectively. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28834 a1c6a512-1295-4272-9138-f99709370657
2010-12-12Only return USB_POWERED if USB_DETECT_BY_DRV is actually defined, which ↵Frank Gevaerts
might not be the case for e.g. bootloaders (also fix red) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28820 a1c6a512-1295-4272-9138-f99709370657
2010-12-12Move AMSv1 USB to the USB_DETECT_BY_DRV model, so connecting to a dumb ↵Frank Gevaerts
charger works without interrupting playback git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28819 a1c6a512-1295-4272-9138-f99709370657
2010-12-12AMSv2: handle sd card ACMDs similar to how it's done for AMSv1Bertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28814 a1c6a512-1295-4272-9138-f99709370657
2010-12-12AMSv2: only switch sd cards to high speed mode for for v2 sd cards, just ↵Bertrik Sikken
like is done for AMSv1 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28808 a1c6a512-1295-4272-9138-f99709370657
2010-11-18FS#11608: switch cpu to async operation in boosted modeFred Bauer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28616 a1c6a512-1295-4272-9138-f99709370657
2010-11-09Apply FS#11729 - Remove unneeded I2SIN clock configuration for AS3525 and ↵Bertrik Sikken
AS3525v2 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28541 a1c6a512-1295-4272-9138-f99709370657
2010-11-06fix yellow and red from r28522Marcin Bukat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28523 a1c6a512-1295-4272-9138-f99709370657
2010-10-14as3525v2-usb! fix suspicious calculation of next endpoint in INs chaining codeAmaury Pouly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28281 a1c6a512-1295-4272-9138-f99709370657
2010-09-20*/app.lds: remove STUBOFFSETRafaël Carré
This is related to gdb, and gdb can only work on SH and ifp This was mistakenly kept when app.lds was forked for each SoC Side-effect: fix DEBUG builds when the rockbox binary is expected to be loaded at the start of DRAM and there is no runtime relocation git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28124 a1c6a512-1295-4272-9138-f99709370657
2010-09-12AMS USBv2: use OF settings for undocumented registerRafaël Carré
still failing git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28061 a1c6a512-1295-4272-9138-f99709370657
2010-09-08Change sd-as3525*.c to the new cache coherency function names.Thomas Martitz
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28046 a1c6a512-1295-4272-9138-f99709370657
2010-09-08USB AMSv2: use tables for usb_drv_port_speed() and usb_drv_mps_by_type()Rafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28044 a1c6a512-1295-4272-9138-f99709370657
2010-09-08USB AMSv2: split handle_ep_int()Rafaël Carré
IN & OUT interrupts have not much in common so move each to its own function git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28043 a1c6a512-1295-4272-9138-f99709370657
2010-09-08USB AMSv2: smaller struct usb_endpointRafaël Carré
- reorder members (largest members first) - int status -> int8_t status (we only use 0 or -1) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28042 a1c6a512-1295-4272-9138-f99709370657
2010-09-08USB AMSv2: only read endpoint interrupt status register onceRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28041 a1c6a512-1295-4272-9138-f99709370657
2010-09-08usb-drv-as3525v2.c: cosmetics (remove trailing spaces)Rafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28040 a1c6a512-1295-4272-9138-f99709370657
2010-09-08USB AMSv2: Reduce the size of (in/out)_ep_listRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28039 a1c6a512-1295-4272-9138-f99709370657
2010-09-08USB AMSv2: simplify FOR_EACH* macrosRafaël Carré
- use a single table to store endpoints numbers (1 table by direction) - drop __ prefix since the table isn't meant to be hidden (it is used in reset_endpoints() - the tables won't change at runtime: mark const git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28038 a1c6a512-1295-4272-9138-f99709370657
2010-09-08USB AMSv2: use status == -1 to signal errorsRafaël Carré
set status to failure before signaling usb_drv_send_nonblocking() in reset_endpoints() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28037 a1c6a512-1295-4272-9138-f99709370657
2010-09-08USB AMSv2: cosmeticsRafaël Carré
Use ep0_setup_pkt as a pointer Fix comment for CGU_USB clk source Remove comment about physical address, the macro handles that for us git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28035 a1c6a512-1295-4272-9138-f99709370657
2010-09-08USB AMSv2: update endpoint->len on transferRafaël Carré
cosmetics: x ? true : false -> x git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28034 a1c6a512-1295-4272-9138-f99709370657
2010-09-08usb-drv-as3525v2: use dump_dcache_range()Rafaël Carré
Since we'll receive data from DMA in this buffer we don't need to write-back git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28032 a1c6a512-1295-4272-9138-f99709370657
2010-09-08usb-drv-as3525v2: fixesRafaël Carré
- don't use *_dcache_range() on uncached memory - remove unused struct endpoint->buffer - use correct *_dcache_range() in usb_drv_transfer() for each direction - halve FIFO size sometimes mounts / sometimes fails git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28031 a1c6a512-1295-4272-9138-f99709370657
2010-09-07as3525v2-usb: don't disable data transfers !Amaury Pouly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28030 a1c6a512-1295-4272-9138-f99709370657
2010-09-07as3525v2-usb: fix red and fix stupid typo about endpoint statusAmaury Pouly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28029 a1c6a512-1295-4272-9138-f99709370657
2010-09-07as3525v2-usb: all control operations are working, there is a problem with ↵Amaury Pouly
UMS: the IN transfer to respond to inquiry does not start, resulting in not lun being detected - implement request_endpoint - setup nextep chain for in endpoints - remove useless dcache operation on IN transfer completion - fix transfers to use correct max packet size git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28028 a1c6a512-1295-4272-9138-f99709370657
2010-09-07as3525v2-usb:Amaury Pouly
- use uncached address to access setup packet - implement driver exit - stop forcing full speed - change fifo sizes on init - don't call invalid_dache() on setup packet because it makes everything fail git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28027 a1c6a512-1295-4272-9138-f99709370657
2010-09-07AMS: make dma_disable_channel() not inlineRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28017 a1c6a512-1295-4272-9138-f99709370657
2010-09-06debug-as3525.c : fix include, remove commentRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28016 a1c6a512-1295-4272-9138-f99709370657