summaryrefslogtreecommitdiffstats
path: root/firmware
AgeCommit message (Collapse)AuthorFilesLines
2010-09-22Enlarge the button post interval against audio drop outs, Too many lcd updatesThomas Martitz1-2/+2
per seconds apparently don't very well. Not sure if it's the hardware or our threading that doesn't play well enough here (UI isn't less response despite of the audio drop outs). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28144 a1c6a512-1295-4272-9138-f99709370657
2010-09-22Touchscreen: button driver improvementsThomas Martitz1-28/+61
* Until BUTTON_REPEAT was started, coordinate changes were not exposed. Change that (post on every coordinate change) so that wiping over the screen does actually something between the first touch and BUTTON_REPEAT * Once BUTTON_REPEAT is active, further repeats are posted in an acceleration fashion (slow at the begginning), which smoothes list scrolling. But this has the contrary effect on touchscreen, as it makes swiping appear very laggy. So, remove that acceleration for touchscreen and make it equally fast at all times so the scrollbar is better usable. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28143 a1c6a512-1295-4272-9138-f99709370657
2010-09-20iap: make variable serbuf non-globalBertrik Sikken3-5/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28128 a1c6a512-1295-4272-9138-f99709370657
2010-09-20Fix typoThomas Martitz1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28126 a1c6a512-1295-4272-9138-f99709370657
2010-09-20Redirect (L)DEBUGFs to adb logcat in DEBUG enabled builds.Thomas Martitz6-15/+62
Exclude compilation of firmware/debug.c for hosted platforms. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28125 a1c6a512-1295-4272-9138-f99709370657
2010-09-20*/app.lds: remove STUBOFFSETRafaël Carré20-167/+41
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-20file_exists(): fix DEBUGF()Rafaël Carré1-2/+2
- %s was missing the argument (function name) - add %p to print the function argument - also don't call strlen() to test string nullity (and strlen() can't return a negative result) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28123 a1c6a512-1295-4272-9138-f99709370657
2010-09-20usb: remove unused variable and correctly stall on unhandled control requestsAmaury Pouly1-2/+8
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28121 a1c6a512-1295-4272-9138-f99709370657
2010-09-20format() (and its alias vuprintf) return values are uncheck -> voidRafaël Carré3-12/+8
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28119 a1c6a512-1295-4272-9138-f99709370657
2010-09-17Allow e200 to compile without HAVE_RECORDINGFrank Gevaerts3-4/+34
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28104 a1c6a512-1295-4272-9138-f99709370657
2010-09-17Simplify unnecessary baroque preprocessor condition a bitFrank Gevaerts1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28101 a1c6a512-1295-4272-9138-f99709370657
2010-09-17Only define USB_ENABLE_STORAGE if USB_HAS_BULK and USE_ROCKBOX_USB are both setFrank Gevaerts1-0/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28100 a1c6a512-1295-4272-9138-f99709370657
2010-09-17Make the call to buttonlight_on() properly depend on HAVE_BUTTON_LIGHTFrank Gevaerts1-0/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28096 a1c6a512-1295-4272-9138-f99709370657
2010-09-16usb_drv_reset() is only used in usb-drv-arc.cRafaël Carré2-2/+1
remove from usb_drv.h and mark static git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28092 a1c6a512-1295-4272-9138-f99709370657
2010-09-15button driver: make repeat timings be centiseconds and not ticksRafaël Carré1-6/+6
This doesn't change the value with the current HZ=100, but makes it easy to change HZ in custome builds and still have buttons be usable git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28086 a1c6a512-1295-4272-9138-f99709370657
2010-09-12AMS USBv2: use OF settings for undocumented registerRafaël Carré1-2/+1
still failing git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28061 a1c6a512-1295-4272-9138-f99709370657
2010-09-09Fix beast, forgot the asm label when renaming.Thomas Martitz1-4/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28058 a1c6a512-1295-4272-9138-f99709370657
2010-09-09Also rename cpucache_invalidate() function for mips. There's more in the ↵Thomas Martitz1-1/+2
target tree of mips which I have overlooked yesterday. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28057 a1c6a512-1295-4272-9138-f99709370657
2010-09-09Extend lc_open() to also being able to load overlay plugins.Thomas Martitz3-16/+72
For this it needs to look at the plugin header. Since lc_open() doesn't know it's a plugin, the header needs to be changed slightly to include the new lc_header (which needs to be the first element in plugin_header so it can be casted savely). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28054 a1c6a512-1295-4272-9138-f99709370657
2010-09-09Forgot to rename cpucache_flush/_invalidate for PP502x.Thomas Martitz1-2/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28053 a1c6a512-1295-4272-9138-f99709370657
2010-09-08Revert r27972 to fix FS#11610 (but in a way android builds still work).Thomas Martitz1-1/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28050 a1c6a512-1295-4272-9138-f99709370657
2010-09-08Change sd-as3525*.c to the new cache coherency function names.Thomas Martitz2-6/+6
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28046 a1c6a512-1295-4272-9138-f99709370657
2010-09-08Rename cache coherency functions.Thomas Martitz8-103/+191
The old cache coherency function names where wrong and misleading. The new names are (purposely different from vendor manuals) * commit_* (write-back only) * discard_* (removing lines from cache only) * commit_discard_* (write-back and removing lines from cache) It's suspected the old names have led to wrong uses. The old names still exist (as aliases) so every call via the old names need to be double checked and changed to the new name. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28045 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é1-24/+21
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é1-83/+83
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é1-3/+3
- 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é1-8/+10
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é1-15/+15
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é1-2/+2
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é1-34/+28
- 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é1-7/+10
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-s3c6400x.c : don't hardcode USB_NUM_ENDPOINTS but use the defineRafaël Carré1-3/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28036 a1c6a512-1295-4272-9138-f99709370657
2010-09-08USB AMSv2: cosmeticsRafaël Carré1-11/+10
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é1-5/+5
cosmetics: x ? true : false -> x git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28034 a1c6a512-1295-4272-9138-f99709370657
2010-09-08as3525v2 usb: define USB_HAS_BULKRafaël Carré2-2/+5
Ask for alignement of USB buffers on cache line Also remind that the hardware is identical to the hardware in nano2g git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28033 a1c6a512-1295-4272-9138-f99709370657
2010-09-08usb-drv-as3525v2: use dump_dcache_range()Rafaël Carré1-1/+1
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é1-6/+6
- 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 Pouly1-5/+6
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 Pouly1-13/+5
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 Pouly1-33/+94
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 Pouly1-56/+35
- 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-07gigabeats: remove inline from extern functionsRafaël Carré2-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28022 a1c6a512-1295-4272-9138-f99709370657
2010-09-07AMS: make dma_disable_channel() not inlineRafaël Carré2-2/+2
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é1-4/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28016 a1c6a512-1295-4272-9138-f99709370657
2010-09-06Fix set_serial_descriptor() for targets with as3543Rafaël Carré2-4/+10
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28013 a1c6a512-1295-4272-9138-f99709370657
2010-09-06Slightly reorganise the FAT driver to ensure that no more than one sector ↵Frank Gevaerts1-19/+49
buffer is ever allocated on the stack simultaneously. Fixes FS#11433 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28011 a1c6a512-1295-4272-9138-f99709370657
2010-09-06Fix sdl application buildThomas Martitz3-3/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28004 a1c6a512-1295-4272-9138-f99709370657
2010-09-05FS#11597 : decrease FCLK frequency when unboostedRafaël Carré5-27/+19
FCLK is unused because we use fastbus clocking: CPU clock = PCLK Base PCLK off PLLA and use the lowest frqeuency for FCLK (24MHz source, maximum divider) Save a bit of power, adjust Clipv1/e200v2/Fuzev1 current usage accordingly Note: the power saving (in mA) is a bit less on e200v2/Fuzev1 than on Clipv1 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28000 a1c6a512-1295-4272-9138-f99709370657
2010-09-03revert r27991Rafaël Carré1-2/+2
I misread the register defines in linux source code git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27995 a1c6a512-1295-4272-9138-f99709370657
2010-09-03powermgmt.h: include config.hRafaël Carré8-0/+21
AMS*: define CURRENT_MAX_CHG to give more correct estimation of recharge time The amount of current each target draws from the charger is defined in powermgmt-target.h git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27994 a1c6a512-1295-4272-9138-f99709370657