comparison se_k200i/rf_850.c @ 394:07000c2d21cd

se_k200i: add compiled-in RF parameter table extracts
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 06 Nov 2022 02:35:54 +0000
parents
children
comparison
equal deleted inserted replaced
393:6c31d8c54ae4 394:07000c2d21cd
1 /*
2 * This compiled-in RF parameter default table has been extracted
3 * out of Vadim's flash1.bin firmware image. This SE K200i version
4 * equals Openmoko's l1_cust.obj version (which is in turn believed
5 * to be unchanged TI's internal mainline) in all parameters except
6 * Tx ramp templates.
7 *
8 * Tx ramp templates depend on the PA type and they are generally not
9 * calibrated per unit, hence most fw designs will incorporate correct
10 * ramp templates for their PA into their compiled-in RF tables.
11 * The same principle appears to hold here as well.
12 */
13
14 const T_RF_BAND rf_850 = {
15 { /* Rx structure */
16 { /* T_RX_CAL_PARAMS */
17 181,
18 40,
19 40,
20 44,
21 },
22 { /* T_RF_AGC_BANDs */
23 { 10, 0},
24 { 30, 0},
25 { 51, 0},
26 { 71, 0},
27 { 90, 0},
28 { 112, 0},
29 { 124, 0},
30 { 991, 0},
31 { 992, 0},
32 { 1023, 0},
33 },
34 { /* Rx temperature compensation */
35 { -15, 0},
36 { -5, 0},
37 { 6, 0},
38 { 16, 0},
39 { 25, 0},
40 { 35, 0},
41 { 45, 0},
42 { 56, 0},
43 { 66, 0},
44 { 75, 0},
45 { 100, 0},
46 },
47 },
48 { /* Tx structure */
49 { /* levels */
50 { 507, 0, 0}, /* 0 */
51 { 507, 0, 0}, /* 1 */
52 { 507, 0, 0}, /* 2 */
53 { 507, 0, 0}, /* 3 */
54 { 507, 0, 0}, /* 4 */
55 { 507, 0, 0}, /* 5 */
56 { 417, 1, 0}, /* 6 */
57 { 350, 2, 0}, /* 7 */
58 { 282, 3, 0}, /* 8 */
59 { 226, 4, 0}, /* 9 */
60 { 183, 5, 0}, /* 10 */
61 { 148, 6, 0}, /* 11 */
62 { 121, 7, 0}, /* 12 */
63 { 98, 8, 0}, /* 13 */
64 { 80, 9, 0}, /* 14 */
65 { 66, 10, 0}, /* 15 */
66 { 54, 11, 0}, /* 16 */
67 { 44, 12, 0}, /* 17 */
68 { 36, 13, 0}, /* 18 */
69 { 29, 14, 0}, /* 19 */
70 { 29, 14, 0}, /* 20 */
71 { 29, 14, 0}, /* 21 */
72 { 29, 14, 0}, /* 22 */
73 { 29, 14, 0}, /* 23 */
74 { 29, 14, 0}, /* 24 */
75 { 29, 14, 0}, /* 25 */
76 { 29, 14, 0}, /* 26 */
77 { 29, 14, 0}, /* 27 */
78 { 29, 14, 0}, /* 28 */
79 { 29, 14, 0}, /* 29 */
80 { 29, 14, 0}, /* 30 */
81 { 29, 14, 0}, /* 31 */
82 },
83 { /* channel calibration tables */
84 { /* calibration table 0 */
85 { 40, 128},
86 { 80, 128},
87 { 124, 128},
88 { 586, 128},
89 { 661, 128},
90 { 736, 128},
91 { 885, 128},
92 { 1023, 128},
93 },
94 { /* calibration table 1 */
95 { 554, 130},
96 { 722, 128},
97 { 746, 129},
98 { 774, 131},
99 { 808, 132},
100 { 851, 134},
101 { 870, 138},
102 { 885, 140},
103 },
104 { /* calibration table 2 */
105 { 40, 128},
106 { 80, 128},
107 { 124, 128},
108 { 586, 128},
109 { 661, 128},
110 { 736, 128},
111 { 885, 128},
112 { 1023, 128},
113 },
114 { /* calibration table 3 */
115 { 40, 128},
116 { 80, 128},
117 { 124, 128},
118 { 586, 128},
119 { 661, 128},
120 { 736, 128},
121 { 885, 128},
122 { 1023, 128},
123 },
124 },
125 { /* ramps */
126 { /* profile 0 */
127 /* ramp-up */
128 { 0, 0, 0, 0, 0, 0, 0, 0, 9, 18, 25, 31, 30, 15, 0, 0},
129 /* ramp-down */
130 { 10, 26, 31, 26, 19, 11, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0},
131 },
132 { /* profile 1 */
133 /* ramp-up */
134 { 0, 0, 0, 0, 0, 0, 0, 0, 9, 18, 25, 31, 30, 15, 0, 0},
135 /* ramp-down */
136 { 10, 26, 31, 26, 19, 11, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0},
137 },
138 { /* profile 2 */
139 /* ramp-up */
140 { 0, 0, 0, 0, 0, 0, 0, 0, 9, 18, 25, 31, 30, 15, 0, 0},
141 /* ramp-down */
142 { 0, 26, 31, 26, 29, 11, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0},
143 },
144 { /* profile 3 */
145 /* ramp-up */
146 { 0, 0, 0, 0, 0, 0, 0, 0, 9, 18, 25, 31, 30, 15, 0, 0},
147 /* ramp-down */
148 { 0, 26, 31, 26, 29, 11, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0},
149 },
150 { /* profile 4 */
151 /* ramp-up */
152 { 0, 0, 0, 0, 0, 0, 0, 0, 9, 18, 25, 31, 30, 15, 0, 0},
153 /* ramp-down */
154 { 0, 26, 31, 26, 29, 11, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0},
155 },
156 { /* profile 5 */
157 /* ramp-up */
158 { 0, 0, 0, 0, 0, 0, 0, 0, 9, 18, 25, 31, 30, 15, 0, 0},
159 /* ramp-down */
160 { 0, 26, 31, 26, 29, 11, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0},
161 },
162 { /* profile 6 */
163 /* ramp-up */
164 { 0, 0, 0, 0, 0, 0, 0, 0, 9, 18, 25, 31, 30, 15, 0, 0},
165 /* ramp-down */
166 { 0, 26, 31, 26, 29, 11, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0},
167 },
168 { /* profile 7 */
169 /* ramp-up */
170 { 0, 0, 0, 0, 0, 0, 0, 0, 9, 18, 25, 31, 30, 15, 0, 0},
171 /* ramp-down */
172 { 0, 26, 31, 26, 29, 11, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0},
173 },
174 { /* profile 8 */
175 /* ramp-up */
176 { 0, 0, 0, 0, 0, 0, 0, 0, 9, 18, 25, 31, 30, 15, 0, 0},
177 /* ramp-down */
178 { 0, 26, 31, 26, 29, 11, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0},
179 },
180 { /* profile 9 */
181 /* ramp-up */
182 { 0, 0, 0, 0, 0, 0, 0, 0, 9, 18, 25, 31, 30, 15, 0, 0},
183 /* ramp-down */
184 { 0, 26, 31, 26, 29, 11, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0},
185 },
186 { /* profile 10 */
187 /* ramp-up */
188 { 0, 0, 0, 0, 0, 0, 0, 0, 9, 18, 25, 31, 30, 15, 0, 0},
189 /* ramp-down */
190 { 0, 26, 31, 26, 29, 11, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0},
191 },
192 { /* profile 11 */
193 /* ramp-up */
194 { 0, 0, 0, 0, 0, 0, 0, 0, 9, 18, 25, 31, 30, 15, 0, 0},
195 /* ramp-down */
196 { 0, 26, 31, 26, 29, 11, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0},
197 },
198 { /* profile 12 */
199 /* ramp-up */
200 { 0, 0, 0, 0, 0, 0, 0, 0, 9, 18, 25, 31, 30, 15, 0, 0},
201 /* ramp-down */
202 { 0, 26, 31, 26, 29, 11, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0},
203 },
204 { /* profile 13 */
205 /* ramp-up */
206 { 0, 0, 0, 0, 0, 0, 0, 0, 9, 18, 25, 31, 30, 15, 0, 0},
207 /* ramp-down */
208 { 0, 26, 31, 26, 29, 11, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0},
209 },
210 { /* profile 14 */
211 /* ramp-up */
212 { 0, 0, 0, 0, 0, 0, 0, 0, 9, 18, 25, 31, 30, 15, 0, 0},
213 /* ramp-down */
214 { 0, 26, 31, 26, 29, 11, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0},
215 },
216 { /* profile 15 */
217 /* ramp-up */
218 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
219 /* ramp-down */
220 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
221 },
222 },
223 { /* Tx temperature compensation */
224 { -11, 0, 0, 0},
225 { 9, 0, 0, 0},
226 { 39, 0, 0, 0},
227 { 59, 0, 0, 0},
228 { 127, 0, 0, 0},
229 },
230 },
231 2
232 };