src: use new libosmogsm and include/osmocom/[gsm|core] path to headers
[osmocom-bb.git] / src / target / firmware / board / gta0x / rf_power.c
1 /* Tx RF power calibration for the FIC GTA0x phones */
2
3 /* (C) 2010 by Harald Welte <laforge@gnumonks.org>
4  *
5  * All Rights Reserved
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program; if not, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  *
21  */
22
23 #include <stdint.h>
24 #include <osmocom/core/utils.h>
25
26 /* GSM900 ARFCN 33, Measurements by Steve Markgraf / May 2010 */
27 /* FIXME those are from compal ... need real GTA calibration */
28 const int16_t dbm2apc_gsm900[] = {
29         [0]     = 151,
30         [1]     = 152,
31         [2]     = 153,
32         [3]     = 155,
33         [4]     = 156,
34         [5]     = 158,
35         [6]     = 160,
36         [7]     = 162,
37         [8]     = 164,
38         [9]     = 167,
39         [10]    = 170,
40         [11]    = 173,
41         [12]    = 177,
42         [13]    = 182,
43         [14]    = 187,
44         [15]    = 192,
45         [16]    = 199,
46         [17]    = 206,
47         [18]    = 214,
48         [19]    = 223,
49         [20]    = 233,
50         [21]    = 244,
51         [22]    = 260,
52         [23]    = 271,
53         [24]    = 288,
54         [25]    = 307,
55         [26]    = 327,
56         [27]    = 350,
57         [28]    = 376,
58         [29]    = 407,
59         [30]    = 456,
60         [31]    = 575,
61 };
62
63 const int dbm2apc_gsm900_max = ARRAY_SIZE(dbm2apc_gsm900) - 1;