Thomas Martitz
c94cf3b888
Move optimized ffs to firmware/asm, using the new automatic-asm-picking infrastructure.
...
Change-Id: I5e7bdc8be7de50ef604c16078857fff1b84650dc
2012-01-22 18:46:45 +01:00
Thomas Martitz
094cbd586f
Implement a C version lcd-as-memframe.c and move it and the asm to firmware/asm.
...
Change-Id: I20c3af0368202493d54fb776530300a39d47873a
2012-01-22 18:46:45 +01:00
Thomas Martitz
a035261089
Move optimized memcpy and friends and strlen to firmware/asm,
...
using the new automatic-asm-picking infrastructure.
2012-01-22 18:46:45 +01:00
Thomas Martitz
3c17f28eca
Move pcm_mixer helper routines to firmware/asm.
2012-01-22 18:46:45 +01:00
Thomas Martitz
991ae1e395
Create fimrware/asm directory for assembly optimized stuff.
...
This dir is suitable for stuff that doesn't fit the target tree, e.g. because
it also builds on hosted or otherwise. It also has a generic subfolder for
fallback C implementations so that not all archs need to provide asm files.
SOURCES should only contain "foo.c" where foo.c includes the specific
<arch>/foo.c files from the subdirs using the preprocessor. This way automatic
selection of asm versions or generic C verion is possible.
For the start, the thread support files are moved, since ASM threads can
be used on hosted platforms as well. Since core_sleep() remains platform
specific it's moved to the corresponding system.h headers.
Change-Id: Iebff272f3407a6eaafeb7656ceb0ae9eca3f7cb9
2012-01-22 18:46:44 +01:00
Amaury Pouly
eaa83bd647
imx233: fix clkctrl code (some registers don't have a SET/CLR variant)
...
Change-Id: I3ce6a77cdc5ea89e1e43bc00c9ec43664e765fdc
2012-01-21 20:15:29 +01:00
Thomas Martitz
cf333a61c7
Move supprt-arm.S to separate library.
...
Core, codecs and plugins link it separately so this gets rid of SOURCES trickery.
Don't build it for hosted targets.
Change-Id: If15ef90e93cd218a4352ae8e89eea95d3122452f
2012-01-21 18:39:19 +01:00
Andrew Ryabinin
978e506f1b
HM-60x: Implement power off.
...
Change-Id: Ia3ae38bba09996e1d1e6043f340dbbc3a2ad68b5
2012-01-17 19:49:28 +04:00
Rafaël Carré
7b28711f6c
usb-s3c6400: store endpoint status per direction
...
Just as like all other drivers do
Confirmed to work on Nano2g
2012-01-16 18:29:38 -05:00
Amaury Pouly
66c3086ae5
imx233: oops, forgot file
...
Change-Id: I2c672b51ac24bfcea7ce2b663deef18e02bc4b1f
2012-01-15 18:43:32 +01:00
Amaury Pouly
35ba39e57f
imx233: add DCP driver (only memcpy implemented), move channel arbiter to kernel-imx233
...
Change-Id: I2bc5a49459c354027fc67a880bbf3b87c942bdd0
2012-01-15 02:29:30 +01:00
Amaury Pouly
8cadb587e8
fuzeplus: fix lcd-target.h (LCD_FRAMEBUF_ADDR must point to lcd_framebuffer and not FRAME)
...
Change-Id: Ia1f16f9b8e3041517b60336c06aedd40dfd2be12
2012-01-15 02:29:30 +01:00
Michael Sevakis
cc26850135
Cut a few instructions from lcd_copy_buffer_rect.
...
Change-Id: I5159534f90b041c6ffefc00c8f91abc68ca6eb42
2012-01-14 16:17:18 -05:00
Amaury Pouly
5ef27368f1
lcd: fix function name in comments in assembly files (lcd_write_yup_420 instead of lcd_write_yuv420)
2012-01-11 13:14:30 +01:00
Michael Sevakis
307cb04948
AS3525v1/2: Enable nested handling of interrupts
...
Mostly for the sake of reducing latency for audio servicing where other service
routines can take a long time to complete, leading to occasional drops of a
few samples, especially in recording, where they are fairly frequent.
One mystery that remains is GPIOA IRQ being interrupted causes strange
undefined instruction exceptions, most easily produced on my Fuze V2 with a
scrollwheel. Making GPIOA the top ISR for now, thus not interruptible, cures it.
SVC mode is used during the actual calls. Hopefully the SVC stack size is
sufficient. Prologue and epilogue code only uses the IRQ stack and is large
enough.
Any routine code that should not be interrupted should disable IRQ itself from
here on in.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31642 a1c6a512-1295-4272-9138-f99709370657
2012-01-08 22:29:25 +00:00
Bertrik Sikken
3d9f3f47d9
Remove duplicate #include "button.h"
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31636 a1c6a512-1295-4272-9138-f99709370657
2012-01-08 12:57:02 +00:00
Rafaël Carré
4fc27c16ae
adc-as3514.c : move to drivers
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31629 a1c6a512-1295-4272-9138-f99709370657
2012-01-08 02:33:43 +00:00
Rafaël Carré
8552824284
ascodec-target.h: remove
...
move prototypes to ascodec.h
move code to ascodec*.c
YPR0: use adc-as3514.c instead of duplicating it
TODO: merge as3514.h and ascodec.h ?
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31626 a1c6a512-1295-4272-9138-f99709370657
2012-01-08 01:43:16 +00:00
Rafaël Carré
2737a66471
lcd-target.h: remove some duplicate declarations
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31625 a1c6a512-1295-4272-9138-f99709370657
2012-01-08 00:52:55 +00:00
Rafaël Carré
7f2156661c
adc-target.h: cleanup
...
move adc_close() prototype to adc.h
don't duplicate prototypes of adc.h
remove license header and guards for a single include of another file or for empty content
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31623 a1c6a512-1295-4272-9138-f99709370657
2012-01-08 00:39:29 +00:00
Rafaël Carré
162a8b1e40
fix fuze+ build: we need stdbool.h for bool
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31622 a1c6a512-1295-4272-9138-f99709370657
2012-01-08 00:22:39 +00:00
Rafaël Carré
7c547be19d
fix previous commit
...
implement button_init_device for ondio
include button.h to get prototypes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31621 a1c6a512-1295-4272-9138-f99709370657
2012-01-08 00:18:43 +00:00
Rafaël Carré
95cf63b294
button-target.h : move prototypes to button.h
...
no need to define BUTTON_REMOTE anymore
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31620 a1c6a512-1295-4272-9138-f99709370657
2012-01-08 00:07:19 +00:00
Rafaël Carré
63ead774d5
charging_algorithm_close() declaration has moved
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31619 a1c6a512-1295-4272-9138-f99709370657
2012-01-07 22:43:53 +00:00
Rafaël Carré
f3ad239a76
cowond2's power-target.h -> rename in pmu-target.h
...
other targets (ipod nano2g / classic) use that name for pmu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31618 a1c6a512-1295-4272-9138-f99709370657
2012-01-07 22:39:14 +00:00
Rafaël Carré
19fba5fb30
powermgmt-target.h: move prototypes to powermgmt.h
...
Implement empty stubs if needed instead of empty static inline
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31617 a1c6a512-1295-4272-9138-f99709370657
2012-01-07 22:32:52 +00:00
Rafaël Carré
28d1af853c
Clean spi.h and spi-target.h
...
Only target-specific (list of SPI targets) go in spi-target.h
API go into spi.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31615 a1c6a512-1295-4272-9138-f99709370657
2012-01-07 22:04:12 +00:00
Rafaël Carré
12ef8723f8
lcd-remote-target.h: Use only in firmware/target/
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31614 a1c6a512-1295-4272-9138-f99709370657
2012-01-07 20:05:44 +00:00
Rafaël Carré
95f3ba5658
lcd_remote_powersave: unused
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31611 a1c6a512-1295-4272-9138-f99709370657
2012-01-07 19:48:49 +00:00
Rafaël Carré
56e2eea175
mr500: move remote button reading code to buttom-mr500.c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31609 a1c6a512-1295-4272-9138-f99709370657
2012-01-07 19:44:30 +00:00
Rafaël Carré
351c8b2573
move _remote_backlight_* to common header
...
remove unused REMOTE_INIT_LCD / REMOTE_DEINIT_LCD
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31607 a1c6a512-1295-4272-9138-f99709370657
2012-01-07 19:32:50 +00:00
Rafaël Carré
50f96943be
remote_detect(): move to lcd-remote.h
...
Reorganize lcd-remote.h so it works for iaudio-m3 too
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31605 a1c6a512-1295-4272-9138-f99709370657
2012-01-07 19:07:36 +00:00
Rafaël Carré
666f2e61f0
move lcd remote common declarations to lcd-remote.h
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31604 a1c6a512-1295-4272-9138-f99709370657
2012-01-07 18:34:09 +00:00
Rafaël Carré
2a5772a20c
lcd-remote-target.h: remove more duplicates
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31603 a1c6a512-1295-4272-9138-f99709370657
2012-01-07 18:22:13 +00:00
Rafaël Carré
07ee1b3729
lcd-remote-target.h: remove duplicate declarations
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31602 a1c6a512-1295-4272-9138-f99709370657
2012-01-07 18:15:32 +00:00
Amaury Pouly
4200e979fa
fuze+: workaround the power/volume+ multiplexing that would trigger a false power button detection on heavy usage (FS#12405). Thanks to Jean-Louis Biasini
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31599 a1c6a512-1295-4272-9138-f99709370657
2012-01-07 18:01:01 +00:00
Frank Gevaerts
4fcffcbdf3
Reorganise USB initialisation to not depend on a specific enumeration sequence, by Bartosz Fabianowski, with minor tweaks by Michael Sevakis (FS#12497)
...
FreeBSD apparently sends a SET_ADDRESS first, which confused our code.
This patch fixes that, and also simplifies the connection handling a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31582 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 21:55:09 +00:00
Rafaël Carré
d1dd88eb45
imx233: move dbg function declaration to system-target.h
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31573 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 06:37:25 +00:00
Rafaël Carré
606155cd20
as3525: move debug-target.h content to .c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31572 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 06:34:56 +00:00
Rafaël Carré
b619a2f424
rk27xx: move debug-target.h content to .c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31571 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 06:34:35 +00:00
Rafaël Carré
deed2fc6a6
PP: move DEBUG_CANCEL definition to .c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31570 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 06:34:29 +00:00
Rafaël Carré
3af54d7175
imx233: move DEBUG_CANCEL definition to .c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31569 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 06:34:25 +00:00
Rafaël Carré
20b1a92003
s5l8702: move debug-target.h content to .c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31568 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 06:34:20 +00:00
Rafaël Carré
ff2a7b6aa4
s5l8700: move debug-target.h content to .c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31567 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 06:34:13 +00:00
Rafaël Carré
fb9ba0b936
pnx0101: debug-target.h content is not used
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31566 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 06:34:08 +00:00
Rafaël Carré
5c3a7f012a
s3c2440: move debug-target.h content to .c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31565 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 06:34:04 +00:00
Rafaël Carré
8b69989811
imx31: move DEBUG_CANCEL definition to .c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31564 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 06:33:59 +00:00
Rafaël Carré
393f427a11
dbg_hw_info(): remove duplicate prototypes
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31560 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 05:29:30 +00:00
Rafaël Carré
b959497670
dbg_ports(): remove duplicate prototype
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31558 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 05:21:52 +00:00
Thomas Martitz
d6db4cc105
Fix beast warning.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31552 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 00:13:06 +00:00