Commit 7998985d authored by Florian Kaltenberger's avatar Florian Kaltenberger
Browse files

10 MHz configurations for SoDeRa.

parent 92987e4c
......@@ -645,25 +645,26 @@ int trx_lms_start(openair0_device *device){
// Set TX filter
printf("Tuning TX filter\n");
opStatus = lms7->TuneTxFilter(LMS7002M::TxFilter::TX_HIGHBAND,28.0);
opStatus = lms7->TuneTxFilter(LMS7002M::TxFilter::TX_HIGHBAND,device->openair0_cfg[0].tx_bw/1e6);
if (opStatus != LIBLMS7_SUCCESS) {
printf("Warning: Could not tune TX filter\n");
printf("Warning: Could not tune TX filter to %f MHz\n",device->openair0_cfg[0].tx_bw/1e6);
}
printf("Tuning RX filter\n");
opStatus = lms7->TuneRxFilter(LMS7002M::RxFilter::RX_LPF_LOWBAND,5.0);
opStatus = lms7->TuneRxFilter(LMS7002M::RxFilter::RX_LPF_LOWBAND,device->openair0_cfg[0].rx_bw/1e6);
if (opStatus != LIBLMS7_SUCCESS) {
printf("Warning: Could not tune RX filter\n");
printf("Warning: Could not tune RX filter to %f MHz\n",device->openair0_cfg[0].rx_bw/1e6);
}
printf("Tuning TIA filter\n");
/* printf("Tuning TIA filter\n");
opStatus = lms7->TuneRxFilter(LMS7002M::RxFilter::RX_TIA,7.0);
if (opStatus != LIBLMS7_SUCCESS) {
printf("Warning: Could not tune RX TIA filter\n");
}
}*/
opStatus = lms7->SetInterfaceFrequency(lms7->GetFrequencyCGEN_MHz(),
lms7->Get_SPI_Reg_bits(HBI_OVR_TXTSP),
......@@ -683,7 +684,9 @@ int trx_lms_start(openair0_device *device){
lmsStream = new LMS_StreamBoard(usbport);
LMS_StreamBoard::Status opStreamStatus;
// this will configure that sampling rate at output of FPGA
opStreamStatus = lmsStream->ConfigurePLL(usbport,device->openair0_cfg[0].sample_rate,device->openair0_cfg[0].sample_rate,90);
opStreamStatus = lmsStream->ConfigurePLL(usbport,
device->openair0_cfg[0].sample_rate,
device->openair0_cfg[0].sample_rate,90);
if (opStatus != LIBLMS7_SUCCESS){
printf("Sample rate programming failed\n");
exit(-1);
......@@ -827,16 +830,16 @@ int openair0_dev_init_lms(openair0_device *device, openair0_config_t *openair0_c
case 15360000:
openair0_cfg[0].samples_per_packet = 2048;
openair0_cfg[0].tx_sample_advance = 45;
openair0_cfg[0].tx_bw = 15.36e6;
openair0_cfg[0].rx_bw = 15.36e6;
openair0_cfg[0].tx_scheduling_advance = 5*openair0_cfg[0].samples_per_packet;
openair0_cfg[0].tx_bw = 28e6;
openair0_cfg[0].rx_bw = 10e6;
openair0_cfg[0].tx_scheduling_advance = 8*openair0_cfg[0].samples_per_packet;
break;
case 7680000:
openair0_cfg[0].samples_per_packet = 1024;
openair0_cfg[0].tx_sample_advance = 70;
openair0_cfg[0].tx_bw = 7.68e6;
openair0_cfg[0].rx_bw = 7.68e6;
openair0_cfg[0].tx_scheduling_advance = 12*openair0_cfg[0].samples_per_packet;
openair0_cfg[0].tx_bw = 28e6;
openair0_cfg[0].rx_bw = 5.0e6;
openair0_cfg[0].tx_scheduling_advance = 5*openair0_cfg[0].samples_per_packet;
break;
case 1920000:
openair0_cfg[0].samples_per_packet = 256;
......
[file_info]
type=lms7002m_minimal_config
version=1
[lms7002_registers_a]
0x0493=0x0000
0x0492=0x0000
0x0491=0x0000
0x029B=0x0000
0x048E=0x0000
0x0022=0x07FF
0x0283=0x0000
0x0487=0x0000
0x0486=0x0000
0x045F=0x0000
0x0480=0x0000
0x0460=0x0000
0x0447=0x0000
0x045A=0x0000
0x02DA=0x0000
0x0458=0x0000
0x0314=0x0000
0x0456=0x0000
0x0559=0xACB9
0x0451=0x0000
0x0390=0x0000
0x044B=0x0000
0x0448=0x0000
0x0454=0x0000
0x0446=0x0000
0x04CA=0x0000
0x0444=0x0000
0x0443=0x0000
0x0508=0xEF99
0x0441=0x0000
0x040D=0x0000
0x040B=0x000F
0x0409=0x0000
0x0580=0xEFF2
0x0407=0x0000
0x0405=0x0000
0x0254=0x0000
0x0404=0x0000
0x00A0=0x6565
0x0560=0x174B
0x0403=0x0013
0x0402=0x07D9
0x055E=0xDB10
0x03A7=0x0000
0x0520=0x174B
0x03A5=0x0000
0x03A4=0x0000
0x03A3=0x0000
0x03A2=0x0000
0x051C=0x0000
0x048D=0x0000
0x059A=0x0000
0x03A1=0x0000
0x02A2=0x0000
0x04E1=0x0000
0x039F=0x0000
0x0248=0x0000
0x039B=0x0000
0x0408=0x0000
0x0398=0x0000
0x0393=0x0000
0x0305=0x0000
0x038E=0x0000
0x0324=0x0000
0x02E7=0x0000
0x038D=0x0000
0x0387=0x0000
0x03A0=0x0000
0x02D0=0x0000
0x009A=0x658C
0x054E=0x8184
0x0386=0x0000
0x040F=0x43E4
0x04E3=0x0000
0x0389=0x0000
0x054F=0x18C9
0x0385=0x0000
0x0315=0x0000
0x0384=0x0000
0x0382=0x0000
0x0288=0x0000
0x0366=0x0000
0x0365=0x0000
0x0364=0x0000
0x0325=0x0000
0x0081=0x0000
0x0362=0x0000
0x038A=0x0000
0x035E=0x0000
0x035D=0x0000
0x0442=0x0000
0x0449=0x0000
0x035A=0x0000
0x02C8=0x0000
0x0452=0x0000
0x0299=0x0000
0x0359=0x0000
0x0358=0x0000
0x048B=0x0000
0x0354=0x0000
0x0351=0x0000
0x03A6=0x0000
0x0293=0x0000
0x034E=0x0000
0x035C=0x0000
0x034D=0x0000
0x034B=0x0000
0x011A=0x2E14
0x0455=0x0000
0x034A=0x0000
0x0348=0x0000
0x0084=0x0400
0x0498=0x0000
0x035B=0x0000
0x0505=0x00D8
0x0345=0x0000
0x0484=0x0000
0x0586=0x196B
0x0344=0x0000
0x0561=0xAB08
0x0343=0x0000
0x0342=0x0000
0x0380=0x0000
0x0327=0x0000
0x0322=0x0000
0x059B=0x0000
0x0321=0x0000
0x045E=0x0000
0x0440=0x0024
0x031D=0x0000
0x0363=0x0000
0x031A=0x0000
0x031C=0x0000
0x028F=0x0000
0x0341=0x0000
0x0287=0x0000
0x0318=0x0000
0x031F=0x0000
0x0316=0x0000
0x030D=0x0000
0x040E=0x0003
0x0352=0x0000
0x028C=0x0000
0x0360=0x0000
0x0313=0x0000
0x0461=0x0000
0x010A=0x104C
0x051B=0xB77F
0x0312=0x0000
0x0346=0x0000
0x024E=0x0000
0x0311=0x0000
0x02D6=0x0000
0x030C=0x0000
0x04DF=0x0000
0x030B=0x0000
0x0392=0x0000
0x030A=0x0000
0x029F=0x0000
0x0309=0x0000
0x048A=0x0000
0x0308=0x0000
0x0588=0xE6C7
0x0397=0x0000
0x02E3=0x0000
0x049C=0x0000
0x044A=0x0000
0x04A4=0x0000
0x0306=0x0000
0x0304=0x0000
0x04D5=0x0000
0x0303=0x0000
0x0302=0x0000
0x0510=0xE6C7
0x044E=0x0000
0x0300=0x0000
0x034F=0x0000
0x045B=0x0000
0x02E6=0x0000
0x00A3=0x6565
0x04DA=0x0000
0x025E=0x0000
0x020A=0x0080
0x0102=0x3180
0x020C=0x8000
0x05A2=0x0000
0x040A=0x1000
0x0556=0xA2B5
0x0243=0x0000
0x051D=0x4F91
0x0259=0x0000
0x02D5=0x0000
0x02E1=0x0000
0x011D=0xAAAA
0x039E=0x0000
0x0252=0x0000
0x0204=0xC016
0x0255=0x0000
0x0281=0x0000
0x0200=0x0301
0x0594=0xF40D
0x02C5=0x0000
0x0406=0x0000
0x030F=0x0000
0x025D=0x0000
0x0319=0x0000
0x0121=0x3760
0x0101=0x7800
0x025B=0x0000
0x02C6=0x0000
0x0558=0x5009
0x0021=0x0E9F
0x04C2=0x0000
0x0290=0x0000
0x02DF=0x0000
0x0291=0x0000
0x0296=0x0000
0x029C=0x0000
0x028D=0x0000
0x02A1=0x0000
0x008B=0x2756
0x02A3=0x0000
0x05A4=0x0000
0x02A7=0x0000
0x0483=0x0000
0x0201=0x07FF
0x02C2=0x0000
0x02C4=0x0000
0x044D=0x0000
0x02E2=0x0000
0x02D1=0x0000
0x0546=0x8D44
0x04C8=0x0000
0x0207=0x0000
0x04C6=0x0000
0x0096=0x0000
0x0093=0x0000
0x0250=0x0000
0x02CB=0x0000
0x02D3=0x0000
0x0494=0x0000
0x04CF=0x0000
0x025F=0x0000
0x0251=0x0000
0x0488=0x0000
0x0496=0x0000
0x04C3=0x0000
0x0100=0x3409
0x04CC=0x0000
0x02A5=0x0000
0x0257=0x0000
0x04D6=0x0000
0x04A6=0x0000
0x049A=0x0000
0x049B=0x0000
0x0097=0x0000
0x011E=0x0A2A
0x0285=0x0000
0x0280=0x0000
0x049E=0x0000
0x0020=0xFFFD
0x02DD=0x0000
0x0297=0x0000
0x049F=0x0000
0x0522=0xDB10
0x044C=0x0000
0x0355=0x0000
0x04A0=0x0000
0x02CF=0x0000
0x04D1=0x0000
0x0526=0xBE2A
0x0092=0x0001
0x031B=0x0000
0x0541=0x4C24
0x0518=0xEFF2
0x0543=0xBD96
0x02C0=0x0000
0x0499=0x0000
0x04A1=0x0000
0x058D=0xF5EF
0x02D7=0x0000
0x0513=0xDAA2
0x0549=0x18C9
0x0552=0x8D44
0x0521=0x5852
0x0509=0x0605
0x0286=0x0000
0x024F=0x0000
0x04E0=0x0000
0x0545=0x364E
0x0349=0x0000
0x0555=0xBD96
0x04E4=0x0000
0x02E4=0x0000
0x0551=0xD7B7
0x055D=0xA6B5
0x0298=0x0000
0x055F=0x5852
0x009E=0x658C
0x0547=0xD7B7
0x0598=0xF61D
0x0123=0x067B
0x0497=0x0000
0x04A5=0x0000
0x0565=0xB77F
0x0124=0x0000
0x0592=0x0DF1
0x0591=0xFCFE
0x0548=0x79FA
0x04D2=0x0000
0x0599=0x0000
0x0511=0x1D10
0x0506=0x0DF1
0x0595=0x00BC
0x0584=0xE7E2
0x0242=0x0000
0x025A=0x0000
0x04E2=0x0000
0x04C5=0x0000
0x058C=0xEA50
0x0450=0x0000
0x0596=0x0A94
0x05A7=0x0000
0x058A=0x17DC
0x059D=0x0000
0x0485=0x0000
0x058E=0x1316
0x0550=0x79FA
0x0554=0x6901
0x0593=0x00D8
0x0542=0xA2B5
0x0553=0x364E
0x0563=0x4F91
0x024D=0x0000
0x0567=0x4049
0x055A=0xBE2A
0x0295=0x0000
0x0566=0x0906
0x028A=0x0000
0x059C=0x0000
0x04DD=0x0000
0x054C=0x7FFF
0x0582=0x150F
0x0585=0xDAA2
0x0109=0x8CC1
0x04A2=0x0000
0x0292=0x0000
0x059F=0x0000
0x0583=0x2E45
0x050E=0x17DC
0x0516=0x150F
0x0523=0xA6B5
0x0525=0x57AC
0x0206=0x0000
0x051A=0x0906
0x055C=0x3347
0x0514=0xE7E2
0x050F=0xEA5F
0x05A6=0x0000
0x051E=0xF524
0x050A=0x1316
0x04C7=0x0000
0x049D=0x0000
0x0527=0xACB9
0x050C=0xEA50
0x0087=0x0000
0x0399=0x0000
0x050B=0xF5EF
0x0507=0xFCFE
0x010D=0x00DE
0x04C4=0x0000
0x0495=0x0000
0x0246=0x0000
0x0503=0x00BC
0x0320=0x0000
0x0323=0x0000
0x02E5=0x0000
0x055B=0x57AC
0x0114=0x0110
0x04D8=0x0000
0x04E7=0x0000
0x04D0=0x0000
0x04E6=0x0000
0x00AE=0x0000
0x0544=0x6901
0x0258=0x0000
0x0502=0x0A94
0x04DE=0x0000
0x058B=0x0F45
0x0028=0x0101
0x029E=0x0000
0x04DC=0x0000
0x04D9=0x0000
0x0557=0x4C24
0x058F=0x0605
0x04DB=0x0000
0x04D7=0x0000
0x059E=0x0000
0x024C=0x0000
0x02DC=0x0000
0x04D4=0x0000
0x0504=0xF40D
0x02C3=0x0000
0x04C1=0x0000
0x04D3=0x0000
0x0590=0xEF99
0x04CE=0x0000
0x05A5=0x0000
0x04A7=0x0000
0x0489=0x0000
0x02E0=0x0000
0x0118=0x018C
0x002A=0x0086
0x0245=0x0000
0x045D=0x0000
0x0581=0xC89D
0x02D2=0x0000
0x039C=0x0000
0x002B=0x4032
0x02A0=0x0000
0x010E=0x0285
0x0394=0x0000
0x0459=0x0000
0x0088=0x04F0
0x0085=0x0001
0x0089=0x0048
0x0256=0x0000
0x0111=0x0099
0x0095=0x0000
0x0203=0x2F99
0x030E=0x0000
0x0482=0x0000
0x05A0=0x0000
0x009C=0x658C
0x0381=0x0000
0x0122=0x033F
0x0110=0x0BFF
0x0026=0x0101
0x0294=0x0000
0x009D=0x6565
0x0524=0x3347
0x0106=0x3182
0x028E=0x0000
0x0326=0x0000
0x0113=0x03C3
0x0391=0x0000
0x04CB=0x0000
0x010F=0x3042
0x0119=0x18DF
0x02A6=0x0000
0x05A1=0x0000
0x02C9=0x0000
0x0500=0xF61D
0x039D=0x0000
0x011F=0x3600
0x0395=0x0000
0x024B=0x0000
0x045C=0x0000
0x0247=0x0000
0x0512=0x196B
0x04E5=0x0000
0x0024=0x50D8
0x0353=0x0000
0x050D=0x0F45
0x02CD=0x0000
0x0490=0x0000
0x0501=0xFDFB
0x034C=0x0000
0x00AA=0x0000
0x0350=0x0000
0x0445=0x0000
0x048F=0x0000
0x008A=0x0491
0x0453=0x0000
0x0260=0x0000
0x00A1=0x6565
0x0356=0x0000
0x0241=0x0000
0x008C=0x267B
0x038F=0x0000
0x054A=0x8184
0x00A4=0x6565
0x0401=0x07FF
0x04CD=0x0000
0x0249=0x0000
0x002C=0x0000
0x054D=0xF7A3
0x00A6=0x0001
0x002D=0xFFFF
0x00AC=0x2000
0x0253=0x0000
0x028B=0x0000
0x040C=0x40F8
0x0310=0x0000
0x0099=0x6565
0x00A2=0x6565
0x0589=0xEA5F
0x002F=0x3840
0x035F=0x0000
0x0597=0xFDFB
0x0116=0x8180
0x02CC=0x0000
0x0025=0x0101
0x0562=0xF524
0x011C=0xA941
0x0289=0x0000
0x0282=0x0000
0x0307=0x0000
0x038C=0x0000
0x02C7=0x0000
0x054B=0xF7A3
0x0519=0x4049
0x009F=0x658C
0x025C=0x0000
0x0515=0x2E45
0x00A5=0x6565
0x0301=0x0000
0x02C1=0x0000
0x0481=0x0000
0x0517=0xC89D
0x00A8=0x0000
0x0564=0x0000
0x00AB=0x0040
0x0261=0x0000
0x002E=0x0000
0x02DE=0x0000
0x02A4=0x0000
0x0540=0x5009
0x00AD=0x03FF
0x0029=0x0101
0x024A=0x0000
0x00A7=0x6565
0x0027=0x05E4
0x0117=0x100C
0x0098=0x0000
0x0108=0xFC26