aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/e300/e300_impl.cpp
diff options
context:
space:
mode:
authorMoritz Fischer <moritz.fischer@ettus.com>2015-11-24 14:59:24 -0800
committerMartin Braun <martin.braun@ettus.com>2015-12-16 15:40:18 -0800
commit789784fc7e8aeb12b8d8092d6874dee49712a156 (patch)
tree95d48e6cdc9b323b0106042d250ec0f021c4e6f2 /host/lib/usrp/e300/e300_impl.cpp
parent10178875a154e58af6c14774621776d13e7e3daa (diff)
downloaduhd-789784fc7e8aeb12b8d8092d6874dee49712a156.tar.gz
uhd-789784fc7e8aeb12b8d8092d6874dee49712a156.tar.bz2
uhd-789784fc7e8aeb12b8d8092d6874dee49712a156.zip
e3xx: Added FPGA loading code for speedgrade 3 devices.
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Diffstat (limited to 'host/lib/usrp/e300/e300_impl.cpp')
-rw-r--r--host/lib/usrp/e300/e300_impl.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/host/lib/usrp/e300/e300_impl.cpp b/host/lib/usrp/e300/e300_impl.cpp
index 0003dddb0..a57c86c1d 100644
--- a/host/lib/usrp/e300/e300_impl.cpp
+++ b/host/lib/usrp/e300/e300_impl.cpp
@@ -277,15 +277,20 @@ void get_e3x0_fpga_images(const uhd::device_addr_t &device_addr,
//extract the FPGA path for the e300
switch(e300_eeprom_manager::get_mb_type(pid)) {
- case e300_eeprom_manager::USRP_E310_MB:
+ case e300_eeprom_manager::USRP_E310_SG1_MB:
fpga_image = device_addr.cast<std::string>("fpga",
- find_image_path(E310_FPGA_FILE_NAME));
- idle_image = find_image_path(E310_FPGA_IDLE_FILE_NAME);
+ find_image_path(E310_SG1_FPGA_FILE_NAME));
+ idle_image = find_image_path(E3XX_SG1_FPGA_IDLE_FILE_NAME);
+ break;
+ case e300_eeprom_manager::USRP_E310_SG3_MB:
+ fpga_image = device_addr.cast<std::string>("fpga",
+ find_image_path(E310_SG3_FPGA_FILE_NAME));
+ idle_image = find_image_path(E3XX_SG3_FPGA_IDLE_FILE_NAME);
break;
case e300_eeprom_manager::USRP_E300_MB:
fpga_image = device_addr.cast<std::string>("fpga",
find_image_path(E300_FPGA_FILE_NAME));
- idle_image = find_image_path(E300_FPGA_IDLE_FILE_NAME);
+ idle_image = find_image_path(E3XX_SG1_FPGA_IDLE_FILE_NAME);
break;
case e300_eeprom_manager::UNKNOWN:
default:
@@ -293,7 +298,7 @@ void get_e3x0_fpga_images(const uhd::device_addr_t &device_addr,
<< std::endl;
fpga_image = device_addr.cast<std::string>("fpga",
find_image_path(E300_FPGA_FILE_NAME));
- idle_image = find_image_path(E300_FPGA_IDLE_FILE_NAME);
+ idle_image = find_image_path(E3XX_SG1_FPGA_IDLE_FILE_NAME);
break;
}
}