summaryrefslogtreecommitdiffstats
path: root/host/utils
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-10-10 17:18:14 -0700
committerJosh Blum <josh@joshknows.com>2011-10-10 17:18:14 -0700
commitda8a6ff1ee9ac9eb14cb290a8fed9a95f5232a21 (patch)
tree1d5f0a6eacc8f6ae9c0f7a7a4188bd7bb3d5c90d /host/utils
parentee917d28ff0d0cb42941651fc2d074ad8866dd7a (diff)
downloaduhd-da8a6ff1ee9ac9eb14cb290a8fed9a95f5232a21.tar.gz
uhd-da8a6ff1ee9ac9eb14cb290a8fed9a95f5232a21.tar.bz2
uhd-da8a6ff1ee9ac9eb14cb290a8fed9a95f5232a21.zip
usrp: added revision field to the dboard id class
Diffstat (limited to 'host/utils')
-rw-r--r--host/utils/usrp_burn_db_eeprom.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/host/utils/usrp_burn_db_eeprom.cpp b/host/utils/usrp_burn_db_eeprom.cpp
index 253b73262..b6b2dc4d6 100644
--- a/host/utils/usrp_burn_db_eeprom.cpp
+++ b/host/utils/usrp_burn_db_eeprom.cpp
@@ -44,6 +44,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
("unit", po::value<std::string>(&unit)->default_value(""), "which unit [RX, TX, or GDB]")
("id", po::value<std::string>(), "dboard id to burn, omit for readback")
("ser", po::value<std::string>(), "serial to burn, omit for readback")
+ ("rev", po::value<std::string>(), "revision to burn, omit for readback")
;
po::variables_map vm;
@@ -87,6 +88,13 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
}
std::cout << boost::format(" Current serial: \"%s\"") % db_eeprom.serial << std::endl;
+ //------------- handle the dboard revision------------------------//
+ if (vm.count("rev")){
+ db_eeprom.revision = vm["rev"].as<std::string>();
+ tree->access<dboard_eeprom_t>(db_path).set(db_eeprom);
+ }
+ std::cout << boost::format(" Current revision: \"%s\"") % db_eeprom.revision << std::endl;
+
std::cout << " Done" << std::endl << std::endl;
return 0;
}