diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-05-09 16:25:11 -0700 |
---|---|---|
committer | michael-west <michael.west@ettus.com> | 2019-05-21 21:37:20 -0700 |
commit | b14adeaae605cbb1c1af592ae0a7f58e40f28776 (patch) | |
tree | e382b1d29300cb1c603a20954a45e2b9506327e9 /mpm/tools/eeprom.h | |
parent | 62e6e2899d6bc2c709473ffe059e6ff786a813f0 (diff) | |
download | uhd-b14adeaae605cbb1c1af592ae0a7f58e40f28776.tar.gz uhd-b14adeaae605cbb1c1af592ae0a7f58e40f28776.tar.bz2 uhd-b14adeaae605cbb1c1af592ae0a7f58e40f28776.zip |
mpm: Add MB-EEPROMv3
This includes a rev_compat field, which we can use to identify the last
hardware revision this hardware is compatible with. Example: Say the
current hardware revision is 7, but it is compatible with version 5,
then we store 7 as the current rev, and 5 as the rev_compat. Software
can now check the rev_compat rather than the current rev for
compatibility. This makes MPM more future-proof against minor,
compatible hardware changes.
Diffstat (limited to 'mpm/tools/eeprom.h')
-rw-r--r-- | mpm/tools/eeprom.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mpm/tools/eeprom.h b/mpm/tools/eeprom.h index 04f468dd9..39301327f 100644 --- a/mpm/tools/eeprom.h +++ b/mpm/tools/eeprom.h @@ -33,7 +33,7 @@ struct usrp_sulfur_eeprom { u8 eth_addr1[ETH_ALEN]; u16 mcu_compat; u8 eth_addr2[ETH_ALEN]; - u8 __pad_2[2]; + u16 rev_compat; u32 crc; } __attribute__((packed)); @@ -63,7 +63,8 @@ struct usrp_sulfur_eeprom *usrp_sulfur_eeprom_new(const u32 *mcu_flags, const char *eth_addr1, const char *eth_addr2, const u16 dt_compat, - const u16 mcu_compat); + const u16 mcu_compat, + const u16 rev_compat); void usrp_sulfur_eeprom_to_i2c(struct usrp_sulfur_eeprom *ep, const char *path); |