Commit graph

617 commits

Author SHA1 Message Date
Rafaël Carré
8b8e1081c6 build usb-s3c6400x according to CONFIG_USBOTG
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31302 a1c6a512-1295-4272-9138-f99709370657
2011-12-15 21:46:46 +00:00
Rafaël Carré
213b8ce74b SOURCES: factorize TCC77x files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31300 a1c6a512-1295-4272-9138-f99709370657
2011-12-15 21:26:03 +00:00
Rafaël Carré
8859c69bb3 SOURCES: factorize common iriver files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31299 a1c6a512-1295-4272-9138-f99709370657
2011-12-15 21:10:22 +00:00
Rafaël Carré
1b5788819f SOURCES: factorize common iaudio x5/m5 files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31298 a1c6a512-1295-4272-9138-f99709370657
2011-12-15 21:03:32 +00:00
Rafaël Carré
9ee0035733 move wmcodec-coldfire inside MPIO files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31297 a1c6a512-1295-4272-9138-f99709370657
2011-12-15 20:59:05 +00:00
Rafaël Carré
160d9f6908 SOURCES: factorize target/coldfire/ata-as-coldfire.S
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31295 a1c6a512-1295-4272-9138-f99709370657
2011-12-15 20:48:15 +00:00
Rafaël Carré
96d1aff8b4 typo
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31294 a1c6a512-1295-4272-9138-f99709370657
2011-12-15 20:45:03 +00:00
Rafaël Carré
78368f7268 MPIO: factorize source files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31293 a1c6a512-1295-4272-9138-f99709370657
2011-12-15 20:39:55 +00:00
Rafaël Carré
d46da0d396 SOURCES: factorize archos drivers
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31292 a1c6a512-1295-4272-9138-f99709370657
2011-12-15 20:34:32 +00:00
Rafaël Carré
2b81667876 SOURCES: factorize as3514 files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31291 a1c6a512-1295-4272-9138-f99709370657
2011-12-15 20:34:16 +00:00
Rafaël Carré
c6b9d3dcc9 There's not much to be shared between gigabeatf and gigabeats lcd code
Give the gigabeats a new lcd type

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31290 a1c6a512-1295-4272-9138-f99709370657
2011-12-15 20:16:05 +00:00
Rafaël Carré
7aff922682 SOURCES: factorize build of some adc drivers
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31289 a1c6a512-1295-4272-9138-f99709370657
2011-12-15 20:15:54 +00:00
Rafaël Carré
c8d45e0b1c factorize build conditions of adc-as3514.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31287 a1c6a512-1295-4272-9138-f99709370657
2011-12-15 19:48:55 +00:00
Rafaël Carré
6a09b39eb8 SOURCES: select lcd driver based on CONFIG_LCD
Only done for files shared across multiple targets

Note that several targets share the same CONFIG_LCD but use completely
different drivers

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31285 a1c6a512-1295-4272-9138-f99709370657
2011-12-15 19:38:29 +00:00
Rafaël Carré
521512f88a tuner-as3525v2.c: only build what's needed
add a comment about why we don't return 0 when no tuner was detected
build the file on all as3525v2 targets

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31284 a1c6a512-1295-4272-9138-f99709370657
2011-12-15 19:38:11 +00:00
Rafaël Carré
2b648d3896 revert pcfg5060x part of r31279
pcf5060*.c has the same name than the RTC driver, but it's not the RTC driver itself

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31280 a1c6a512-1295-4272-9138-f99709370657
2011-12-15 18:29:28 +00:00
Rafaël Carré
67d9c42c9c SOURCES: remove duplicate entries
tuner and rtcs are already included by CONFIG_TUNER and CONFIG_RTC
It's not possible to remove all duplicates, because some models must support 2 RTCs.
a bitfield could be used instead, like is done for CONFIG_TUNER

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31279 a1c6a512-1295-4272-9138-f99709370657
2011-12-15 18:20:11 +00:00
Rafaël Carré
33467a64a5 move back CPU specific code outside of #ifndef SIMULATOR
it contains fallback files when CPU is not defined

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31278 a1c6a512-1295-4272-9138-f99709370657
2011-12-15 18:05:15 +00:00
Rafaël Carré
82c998e5a2 firmware/SOURCES: factorize #ifndef SIMULATOR
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31276 a1c6a512-1295-4272-9138-f99709370657
2011-12-15 17:50:29 +00:00
Rafaël Carré
dfff88562e Sansa Clip: simplify matrix key scan
Merge clipv1/clipv2 code since they use the same 3x3 matrix
clipzip keyscan buttons now work in bootloader
clipplus untouched (no matrix)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31235 a1c6a512-1295-4272-9138-f99709370657
2011-12-13 23:12:21 +00:00
Tomasz Moń
2ee9facc11 Power management is to be kept in target tree due to being target specific.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31136 a1c6a512-1295-4272-9138-f99709370657
2011-12-04 09:48:10 +00:00
Tomasz Moń
de712eebbd Sansa Connect: Add TPS65021 (Power Management) driver.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31135 a1c6a512-1295-4272-9138-f99709370657
2011-12-04 08:24:08 +00:00
Boris Gjenero
d51e598335 FS#12412 : Delete old buffer allocation code which has been replaced by core_alloc, and move buffer setup code to core_alloc.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31088 a1c6a512-1295-4272-9138-f99709370657
2011-11-29 00:42:27 +00:00
Tomasz Moń
e8a8a1be43 Sandisk Sansa Connect port (FS #12363)
Included are drivers for buttons, backlight, lcd, audio and storage.



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31000 a1c6a512-1295-4272-9138-f99709370657
2011-11-16 14:08:01 +00:00
Jonathan Gordon
be716c0be8 Finally commit FS#5111 - piezo clicker for ipods!
Origional implementation by Robert Keevil with contributions from Frederik Vestre,  Stoyan Stratev, Craig Elliott, Michael Sparmann,  Thomas Schott, Rosso Maltese, and syncs from a bunch of other people!

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30995 a1c6a512-1295-4272-9138-f99709370657
2011-11-16 10:25:43 +00:00
Amaury Pouly
0407d92c65 imx233: don't include debug-imx233.c in bootloader
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30914 a1c6a512-1295-4272-9138-f99709370657
2011-11-06 13:30:09 +00:00
Andrew Ryabinin
2164aab902 Added HiFiMAN HM-801 target. FS#12355. This also renames tda1543.{ch} used by HM-60x to dummy_codec.{ch} as it works for PCM1704 used by HM-801.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30891 a1c6a512-1295-4272-9138-f99709370657
2011-11-03 11:53:02 +00:00
Amaury Pouly
623cbd6e02 imx233/fuze+: implement pcm out and audio codec, update SOURCES
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30800 a1c6a512-1295-4272-9138-f99709370657
2011-10-18 22:08:41 +00:00
Marcin Bukat
32f763c39a Add HiFiMAN HM-60x target(s). FS#12319 by Andrew Ryabinin with some (small) modification by me. This also splits rk27xx lcd driver into lcdif-rk27xx and lcd controller specific part. Some modifications to the pcm driver have been made to allow using codecs in slave mode (as TDA1543 used in hifiman is slave only i2s codec).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30765 a1c6a512-1295-4272-9138-f99709370657
2011-10-17 10:32:19 +00:00
Bertrik Sikken
f323300b82 Sansa clipzip: make main build compile (plugins still disabled)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30588 a1c6a512-1295-4272-9138-f99709370657
2011-09-24 11:21:01 +00:00
Amaury Pouly
e55394521b imx233/fuze+: implement various audio stubs and update source
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30535 a1c6a512-1295-4272-9138-f99709370657
2011-09-13 23:40:12 +00:00
Marcin Bukat
2d2eec466a rk27xx - update firmware/SOURCES
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30457 a1c6a512-1295-4272-9138-f99709370657
2011-09-06 12:39:37 +00:00
Amaury Pouly
2ac668e44c imx233/fuze+: implement user time api, implement a stub function, protect timrot against irq
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30437 a1c6a512-1295-4272-9138-f99709370657
2011-09-06 00:27:38 +00:00
Thomas Martitz
d0b72e2590 GSoC/Buflib: Add buflib memory alocator to the core.
The buflib memory allocator is handle based and can free and
compact, move or resize memory on demand. This allows to effeciently
allocate memory dynamically without an MMU, by avoiding fragmentation
through memory compaction.

This patch adds the buflib library to the core, along with
convinience wrappers to omit the context parameter. Compaction is
not yet enabled, but will be in a later patch. Therefore, this acts as a
replacement for buffer_alloc/buffer_get_buffer() with the benifit of a debug
menu.

See buflib.h for some API documentation.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30380 a1c6a512-1295-4272-9138-f99709370657
2011-08-30 14:01:33 +00:00
Bertrik Sikken
463b3ed8b2 Initial framework for the Sandisk Sansa Clip Zip
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30365 a1c6a512-1295-4272-9138-f99709370657
2011-08-27 16:21:19 +00:00
Amaury Pouly
eb90d95693 imx233/fuze+: huge rework
- enable MMU
-rework lcd frame buffer
- add rtc/adc/power stubs (or not)
- fix a few MMC related defines (hopefully)
- implement cache handling for DMA
- more SD work
- add keymap (based on clip)
- add virtual buttons
- update linker scripts
- big step toward apps actually compiling

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30200 a1c6a512-1295-4272-9138-f99709370657
2011-07-23 11:45:22 +00:00
Amaury Pouly
85c32dbd12 imx233/fuze+: add pin irq support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30195 a1c6a512-1295-4272-9138-f99709370657
2011-07-22 15:45:50 +00:00
Frank Gevaerts
6c5c3495ca Disable ipod video battery capacity default detection for bootloader and simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30171 a1c6a512-1295-4272-9138-f99709370657
2011-07-19 20:55:59 +00:00
Frank Gevaerts
aa27d47782 Set the default battery capacity for ipod video properly depending on detected RAM size.
Also set up a callback for the battery capacity setting (for all players) so changes take effect without having to reboot.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30170 a1c6a512-1295-4272-9138-f99709370657
2011-07-19 20:48:16 +00:00
Thomas Martitz
1b7ff725c6 Revert "Introduce bsearch() and use it in tagtree.c."
It was committed by accident (it's on FS still).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30157 a1c6a512-1295-4272-9138-f99709370657
2011-07-18 18:57:50 +00:00
Thomas Martitz
74ab227b58 Introduce bsearch() and use it in tagtree.c.
bsearch() is a general purpose binary search function for arrays.
It's supposedly faster than looping over arrays.
The array needs to be sorted in ascending order under the provided
comparison function. If the key and array element are of the same kind,
then the same compare function can be used for qsort() and bsearch().

Code taken from glibc.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30155 a1c6a512-1295-4272-9138-f99709370657
2011-07-18 18:55:20 +00:00
Amaury Pouly
5a2681161b imx233/fuze+: make SOURCES more correct, implement i2c for fmradio
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30135 a1c6a512-1295-4272-9138-f99709370657
2011-07-09 17:14:05 +00:00
Amaury Pouly
e36b20c4a1 imx233/fuze+: replace software i2c by hardware i2c, make some code more correct, reduce code size of lcd init sequences
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30120 a1c6a512-1295-4272-9138-f99709370657
2011-07-03 15:18:41 +00:00
Amaury Pouly
88f75d096e imx233/fuze+: don't compile {touchpad code,sd} in bootloader mode, fix style in mmc
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30112 a1c6a512-1295-4272-9138-f99709370657
2011-07-02 02:21:06 +00:00
Michael Sevakis
a2b6703a36 Commit FS#12150 - Fully-functional audio mixer - and finally whip old limitations about playback of voice and other sounds when paused. Channels are independent in state and amplitude. Fade on stop/pause is handled by the channel's volume control rather than global volume which means it now works from anywhere. Opens up the possibility of plugin sounds during music playback by merely adding an additional channel enum. If any PCM drivers were not properly modified, see one of the last comments in the task for a description of the simple change that is expected. Some params are tunable in firmware/export/pcm-mixer.h as well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30097 a1c6a512-1295-4272-9138-f99709370657
2011-06-29 06:37:04 +00:00
Amaury Pouly
2cf3313382 fuze+: add more clocking code, add dma code, add ssp code, add stub usb code, update storage to SD + MMC, beginning of the driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30010 a1c6a512-1295-4272-9138-f99709370657
2011-06-17 22:30:58 +00:00
Marcin Bukat
976a1699da Rockchip rk27xx port initial commit. This is still work in progress.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29935 a1c6a512-1295-4272-9138-f99709370657
2011-05-30 21:10:37 +00:00
Amaury Pouly
86e8c28330 fuze+: implement Synaptics RMI driver on top of i2c, add touchpad debug screen, bootloader enters debug screen by default
Since the bootloader currently always fails at storage point (unimplemented), always enter touchpad debug screen and power off which pressing power button.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29859 a1c6a512-1295-4272-9138-f99709370657
2011-05-11 22:38:09 +00:00
Amaury Pouly
08fb3f6574 Sansa Fuze+: initial commit (bootloader only, LCD basically working)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29808 a1c6a512-1295-4272-9138-f99709370657
2011-05-01 13:02:46 +00:00
Bertrik Sikken
55a7a31ce3 Split off target-specific parts from firmware/drivers/serial.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29768 a1c6a512-1295-4272-9138-f99709370657
2011-04-23 08:23:07 +00:00