summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/calypso/dsp.c
Commit message (Collapse)AuthorAgeFilesLines
* fw/calypso/dsp: Fix wrong hardcoded boot code constantSylvain Munaut2011-08-031-1/+1
| | | | | | | | No functional impact tough. Thanks to Job <baseband@hackwerk.org> on the ML for pointing this out Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* src: use new libosmogsm and include/osmocom/[gsm|core] path to headersPablo Neira Ayuso2011-04-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch changes include paths to get osmocom-bb working with the current libosmocore tree. Among all these renames, you can notice several tweaks that I added on purpose, and that require some explanation, they are: * hexdump() in osmocon.c and osmoload.c has been renamed to avoid clashing with hexdump() defined in libosmocore. * gsmmap now depends on libosmogsm. Actually I had to cleanup Makefile.am because I was experiencing weird linking problems, probably due to a bug in the autotools. With the change included in this patch, I got it compiled and linked here correctly. This patch has been tested with the phone Motorola C123 and the following images files: * firmware/board/compal_e88/hello_world.compalram.bin * firmware/board/compal_e88/layer1.compalram.bin Using the osmocon, bcch_scan and mobile tools. Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
* target/fw/dsp: add delay as workaround for dsp_dumpSteve Markgraf2011-03-191-0/+3
| | | | | | Without the delay we would fill the sercomm buffer faster than its content can be sent, and the phone would end up in a panic and hang. Signed-off-by: Steve Markgraf <steve@steve-m.de>
* fw/calypso/dsp: Add comment about meaning of bit 11 of ndb->d_tch_modeSylvain Munaut2011-01-121-1/+1
| | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* fixed typos in commentsThomas Waldmann2011-01-111-6/+6
| | | | Signed-off-by: Steve Markgraf <steve@steve-m.de>
* target/fw/dsp: Implement section loading with bootloaderSylvain Munaut2010-11-071-0/+35
| | | | | | | | | This works for both the default ROM bootloader and for our custom one. This will allow to implement easy patch loading. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* target/fw/dsp: Create a common function to start running codeSylvain Munaut2010-11-071-8/+10
| | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* target/fw/calypso: Fix dsp_load_tch_param to set fn_report for TCH/HSylvain Munaut2010-10-251-3/+22
| | | | | | The previous code was only valid for TCH/F ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* target/fw/dsp: Add utility function to memcpy to/from the APISylvain Munaut2010-10-251-0/+57
| | | | | | | | | | | Copying to/from the DSP API shared memory must be done using 16 bits word only. Using those method, we avoid the hassle of repeating the code when we copy buffer back and forth. API address must be 16 bits aligned but for our purpose, it's good enough. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* target/dsp: Add dsp audio initializationDieter Spaar2010-09-281-0/+77
| | | | | Written-by: Dieter Spaar <spaar@mirider.augusta.de> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* fw/dsp: Add function to load dsp ciphering parametersSylvain Munaut2010-09-171-0/+16
| | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* fw: Update dsl_load_tch_params to set the fn_sid, fn_report and fn_a5Sylvain Munaut2010-09-171-12/+31
| | | | | | Mix between Dieter's version in tch branch and how the TSM30 does it. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* fix compiler warningsHarald Welte2010-03-071-7/+7
|
* move macros to where they belongHarald Welte2010-03-011-10/+1Star
|
* Prepare DSP functions needed for Uplink (Tx)Harald Welte2010-03-011-1/+84
| | | | | | | | * Tell DSP to properly initialize ABB(TWL3025) registers at first DSP interrupt * Initialize the entire API RAM to zero on dsp_power_on() * Tell DSP to initialize the APCRAM to all-zero to preven accidential Tx * Set number of GUARD bits to 8 * Add function to configure TCH parameters: dsp_load_tch_param()
* calypso/dsp: Fix printf format string in dumpSylvain Munaut2010-02-231-2/+2
| | | | | | | | | | | | | | In commit 9a18ba40d940c9bf173504b941e10f9638032823 (old git), this was changed to 'fix compiler warnings'. But %ux is not a valid format specifier at all so that produces wrong output ! %lx is the correct format AFAICT because uint32_t is typedef'd from unsigned long in my toolchain (ARM GCC 4.3.3 - newlib 1.17.0). This doesn't produce any warning here. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* Initial import of OsmocomBB into git repositoryHarald Welte2010-02-181-0/+391