summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/rf
Commit message (Collapse)AuthorAgeFilesLines
* [rf] Adding rffe_set_gain() and rffe_get_gain() to get/set computed gainAndreas Eversberg2011-07-171-42/+64
| | | | | | | | | rffe_compute_gain() is the new name for rffe_set_gain(). I needed to change this, to solve the name collision with the rffe_set_gain() function, which actually sets the absolute gain. rffe_get_gain() will now read the absolute gain which has been computed by rffe_compute_gain() or set by rffe_set_gain().
* fw/trf6151: Use a #define to enable/disable out-of-spec warningsSylvain Munaut2011-05-291-0/+10
| | | | | | | | | We also disable them by default because: - It can operate fine out of spec - Some phone will actually do it (like using the DCS port for PCS) - It's verbose for nothing for most people anyway Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* fw/trf6151: Better PLL settings routinesSylvain Munaut2011-05-291-89/+155
| | | | | | | | | * We actually support TX 850/1900 now * We try to find the better settings for a given frequency, no matter if it's in spec or not ... (for e.g. TXin in DCS downlink is better done with PCS config) Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* src: use new libosmogsm and include/osmocom/[gsm|core] path to headersPablo Neira Ayuso2011-04-262-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 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: set the TRF6151 tsp IDs from the rffe initializationSteve Markgraf2011-01-241-11/+11
| | | Signed-off-by: Steve Markgraf <steve@steve-m.de>
* fixed typos in commentsThomas Waldmann2011-01-111-2/+2
| | | | Signed-off-by: Steve Markgraf <steve@steve-m.de>
* [mtk] Add initial / unfinished MT6139 driverHarald Welte2010-12-121-0/+205
|
* fw/rf: Use printd for the trf6151_set_gain debug messageSylvain Munaut2010-07-251-1/+1
| | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* [firmware] TRF6151: fix VGA gain calculation bugHarald Welte2010-07-191-7/+8
| | | | | | | | We've had two sets of TRF6151 GAIN related #defines which were used in an incorrect manner, resulting in a vga_gain of 60, which is outside of the allowed gain range. Thanks to Dieter Spaar for spotting this bug
* [layer1] fix AGC computation (dbm vs. dbm8 mistakes)Harald Welte2010-06-251-13/+21
| | | | Also, separate the rx window function from the AGC LNA value computation
* [layer1] An actual AGC implementationHarald Welte2010-06-251-0/+35
| | | | | | | | | | | We introduce trf6151_compute_gain() to compute the gain setting that leads to the ideal analog baseband power input level. This function is called from rffe_set_gain() for both the compal and the gta0x rf frontend, as there are no other amplifiers inside those phone designs. The new AGC function is not used yet from the regular layer1 code.
* start to use libosmocore within the firmwareHarald Welte2010-03-071-9/+9
| | | | | | | | | * remove linuxlist.h copy and use osmocore * don't put 'struct gsm_time' into l1ctl packets * include rx_level and snr for each burst in l1ctl * properly build libosmocore.a for target * move gsmtime functions into libosmocore * move ctype.h to standard location
* remove unused variablesHarald Welte2010-03-071-2/+0Star
|
* Introduce CONFIG_TX_ENABLE and disable Tx support by defaultHarald Welte2010-03-021-0/+2
| | | | | | | | | | Tx support is considered experimental and potentially dangerous. Thus, the default build of the firmware does not have Tx support enabled. If you want Tx support, compile with -DCONFIG_TX_ENABLE by uncommenting the apropriate line in Makefile.inc
* TRF6151: Add new trf6151_tx_window() functionHarald Welte2010-03-011-0/+15
| | | | This function takes care of starting a Tx (Uplink) window
* TRF6151: add Uplink supportHarald Welte2010-03-011-2/+66
|
* TRF6151: move PLL and AGC configuration to right sequence in timeHarald Welte2010-02-231-4/+4
|
* fix typo in commentHarald Welte2010-02-231-1/+1
|
* Initial import of OsmocomBB into git repositoryHarald Welte2010-02-181-0/+380