FreeCalypso > hg > fc-magnetite
comparison src/cs/layer1/cust0/l1_rf12.h @ 450:395e464e4005
Compal & Pirelli targets: APCOFF register setting
changed to match what the respective original firmwares set
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 05 Mar 2018 04:01:30 +0000 |
parents | 8cc745104906 |
children | e48cc313ea31 |
comparison
equal
deleted
inserted
replaced
449:3bf62c0a7f34 | 450:395e464e4005 |
---|---|
167 #define C_AFCCTLADD ((0x000 << 6) | AFCCTLADD | TRUE) // Value at reset | 167 #define C_AFCCTLADD ((0x000 << 6) | AFCCTLADD | TRUE) // Value at reset |
168 #define C_VBUCTRL ((0x0C9 << 6) | VBUCTRL | TRUE) // Uplink gain amp 3 dB, Sidetone gain to -17dB | 168 #define C_VBUCTRL ((0x0C9 << 6) | VBUCTRL | TRUE) // Uplink gain amp 3 dB, Sidetone gain to -17dB |
169 #define C_VBDCTRL ((0x006 << 6) | VBDCTRL | TRUE) // Downlink gain amp 0dB, Volume control -12 dB | 169 #define C_VBDCTRL ((0x006 << 6) | VBDCTRL | TRUE) // Downlink gain amp 0dB, Volume control -12 dB |
170 // RITA does not need an APCOFFSET because the PACTRL is internal: | 170 // RITA does not need an APCOFFSET because the PACTRL is internal: |
171 // REMOVE //#define C_APCOFF 0x1016 | (0x3c << 6) | TRUE // x2 slope 128 | 171 // REMOVE //#define C_APCOFF 0x1016 | (0x3c << 6) | TRUE // x2 slope 128 |
172 #if (RF_PA == 0 || RF_PA == 3) | 172 #if (RF_PA == 0 || RF_PA == 3) || defined(CONFIG_TARGET_PIRELLI) |
173 #define C_APCOFF ((0x040 << 6) | APCOFF | TRUE) // x2 slope 128 | 173 #define C_APCOFF ((0x040 << 6) | APCOFF | TRUE) // x2 slope 128 |
174 #elif (RF_PA == 1 || RF_PA == 2 || RF_PA == 4) | 174 #elif defined(CONFIG_TARGET_COMPAL) |
175 #define C_APCOFF ((0x070 << 6) | APCOFF | TRUE) // x2 slope 128 | 175 #define C_APCOFF ((0x060 << 6) | APCOFF | TRUE) // x2 slope 128 |
176 #elif (RF_PA == 1 || RF_PA == 2 || RF_PA == 4) | |
177 #define C_APCOFF ((0x070 << 6) | APCOFF | TRUE) // x2 slope 128 | |
176 #endif | 178 #endif |
177 #define C_BULIOFF ((0x0FF << 6) | BULIOFF | TRUE) // value at reset | 179 #define C_BULIOFF ((0x0FF << 6) | BULIOFF | TRUE) // value at reset |
178 #define C_BULQOFF ((0x0FF << 6) | BULQOFF | TRUE) // value at reset | 180 #define C_BULQOFF ((0x0FF << 6) | BULQOFF | TRUE) // value at reset |
179 #define C_DAI_ON_OFF ((0x000 << 6) | APCOFF | TRUE) // value at reset | 181 #define C_DAI_ON_OFF ((0x000 << 6) | APCOFF | TRUE) // value at reset |
180 #define C_AUXDAC ((0x000 << 6) | AUXDAC | TRUE) // value at reset | 182 #define C_AUXDAC ((0x000 << 6) | AUXDAC | TRUE) // value at reset |