From 789784fc7e8aeb12b8d8092d6874dee49712a156 Mon Sep 17 00:00:00 2001 From: Moritz Fischer Date: Tue, 24 Nov 2015 14:59:24 -0800 Subject: e3xx: Added FPGA loading code for speedgrade 3 devices. Signed-off-by: Moritz Fischer --- host/lib/usrp/e300/e300_impl.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'host/lib/usrp/e300/e300_impl.cpp') 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("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("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("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("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; } } -- cgit v1.2.3