aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/tools
diff options
context:
space:
mode:
authorMoritz Fischer <moritz.fischer@ettus.com>2018-07-11 12:23:50 -0700
committerBrent Stapleton <bstapleton@g.hmc.edu>2018-07-18 15:37:27 -0700
commit23ff5c277fd0149aae19e6b03304bfe71c3c4f76 (patch)
tree05ad828b719d8d51aa5a2a2b2220272fae69e036 /mpm/tools
parent59b4e8f89271dd2878c94a06e42c5e798c0ce812 (diff)
downloaduhd-23ff5c277fd0149aae19e6b03304bfe71c3c4f76.tar.gz
uhd-23ff5c277fd0149aae19e6b03304bfe71c3c4f76.tar.bz2
uhd-23ff5c277fd0149aae19e6b03304bfe71c3c4f76.zip
mpm: tools: eeprom-id: Add E320 product id to eeprom-id
Add E320 product id to eeprom-id executable Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Diffstat (limited to 'mpm/tools')
-rw-r--r--mpm/tools/eeprom-id.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mpm/tools/eeprom-id.c b/mpm/tools/eeprom-id.c
index 151b38aff..24d34fdb8 100644
--- a/mpm/tools/eeprom-id.c
+++ b/mpm/tools/eeprom-id.c
@@ -11,6 +11,7 @@
#define N310_PID 0x4242
#define N300_PID 0x4240
+#define E320_PID 0xe320
static void usrp_sulfur_eeprom_print_id(struct usrp_sulfur_eeprom *ep)
{
@@ -18,6 +19,8 @@ static void usrp_sulfur_eeprom_print_id(struct usrp_sulfur_eeprom *ep)
printf("product=ni,n310-rev%x\n", ntohs(ep->rev)+1);
else if (ntohs(ep->pid) == N300_PID)
printf("product=ni,n300-rev%x\n", ntohs(ep->rev)+1);
+ else if (ntohs(ep->pid) == E320_PID)
+ printf("product=ni,e320-rev%x\n", ntohs(ep->rev)+1);
else
printf("product=unknown-(%04x)\n", ntohs(ep->pid));