comparison gsm-fw/L1/cust0/l1_cust.c @ 626:d1df7544f102

L1: reverting malicious LoCosto change that disables all useful L1 traces
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 31 Aug 2014 05:04:56 +0000
parents eb3fb4d0dcf0
children a60b375014e3
comparison
equal deleted inserted replaced
625:29dae53ad969 626:d1df7544f102
1340 cfg.pwr_mngt = 1; 1340 cfg.pwr_mngt = 1;
1341 cfg.pwr_mngt_mode_authorized = ALL_SLEEP; //Sleep mode 1341 cfg.pwr_mngt_mode_authorized = ALL_SLEEP; //Sleep mode
1342 cfg.pwr_mngt_clocks = 0x5ff; // list of clocks cut in Big Sleep 1342 cfg.pwr_mngt_clocks = 0x5ff; // list of clocks cut in Big Sleep
1343 #endif 1343 #endif
1344 1344
1345
1346
1347
1348
1349 #if (CODE_VERSION != SIMULATION) 1345 #if (CODE_VERSION != SIMULATION)
1350 cfg.dwnld = DWNLD; //external define from makefile 1346 cfg.dwnld = DWNLD; //external define from makefile
1351 #endif 1347 #endif
1352 1348
1353 l1_initialize(&cfg); 1349 l1_initialize(&cfg);
1354 1350
1351 /*
1352 * The following conditioned-out line appears in the LoCosto version,
1353 * but not in the Leonardo binary object. Investigation has revealed
1354 * that the change is malicious: it disables ALL useful L1 traces.
1355 */
1356 #if 0
1355 //add below line for CSR 174476 1357 //add below line for CSR 174476
1356 //FC note: not present in Leonardo binary object, will take closer look later
1357 trace_info.current_config->l1_dyn_trace = 0; //disable L1 trace after L1 init 1358 trace_info.current_config->l1_dyn_trace = 0; //disable L1 trace after L1 init
1359 #endif
1358 1360
1359 get_cal_from_nvmem((UWORD8 *)&rf, sizeof(rf), RF_ID); 1361 get_cal_from_nvmem((UWORD8 *)&rf, sizeof(rf), RF_ID);
1360 get_cal_from_nvmem((UWORD8 *)&adc_cal, sizeof(adc_cal), ADC_ID); 1362 get_cal_from_nvmem((UWORD8 *)&adc_cal, sizeof(adc_cal), ADC_ID);
1361 1363
1362 } 1364 }