diff options
author | Mike Nicholson <mike.nicholson@multitech.com> | 2021-05-07 14:02:11 -0500 |
---|---|---|
committer | Mike Nicholson <mike.nicholson@multitech.com> | 2021-05-07 14:02:11 -0500 |
commit | c20e979fb0e13f0360496f6f0a2269c212dd1e9b (patch) | |
tree | eef0143790abc6022962e7294ee6aeed14e82a8f | |
parent | 96be76305c6353fe85305e5933031f1444b74fac (diff) | |
download | mts-id-eeprom-c20e979fb0e13f0360496f6f0a2269c212dd1e9b.tar.gz mts-id-eeprom-c20e979fb0e13f0360496f6f0a2269c212dd1e9b.tar.bz2 mts-id-eeprom-c20e979fb0e13f0360496f6f0a2269c212dd1e9b.zip |
Add device-id and hw-version to CDT3ACDC
-rw-r--r-- | src/eeprom_main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/eeprom_main.c b/src/eeprom_main.c index 66a510e..a4bf4f1 100644 --- a/src/eeprom_main.c +++ b/src/eeprom_main.c @@ -351,6 +351,8 @@ static int mtcdt3dc_yaml_out(const char *name, struct mtcdt3dc_eeprom_layout *mt fprintf(file, "\n"); fprintf(file, "vendor-id: \"%.32s\"\n", mtcdt3dc_eeprom->vendor_id); fprintf(file, "product-id: \"%.32s\"\n", mtcdt3dc_eeprom->product_id); + fprintf(file, "device-id: \"%.32s\"\n", mtcdt3dc_eeprom->device_id); + fprintf(file, "hardware-id: \"%.32s\"\n", mtcdt3dc_eeprom->hw_version); fprintf(file, "capa-mei-serial: %.32s\n", DEVICE_CAPA(mtcdt3dc_eeprom->capa, MTCDT3DC_CAPA_SERIAL) ? "true" : "false"); fprintf(file, "capa-mtac: %.32s\n", DEVICE_CAPA(mtcdt3dc_eeprom->capa, MTCDT3DC_CAPA_MTAC) ? "true" : "false"); fprintf(file, "mei-serial count: %hu\n", mtcdt3dc_eeprom->serial_cnt); @@ -541,6 +543,8 @@ static void mtcdt3dc_eeprom_inspect(struct mtcdt3dc_eeprom_layout *mtcdt3dc_eepr { log_info("vendor-id: %.32s", mtcdt3dc_eeprom->vendor_id); log_info("product-id: %.32s", mtcdt3dc_eeprom->product_id); + log_info("hw-version: %.32s", mtcdt3dc_eeprom->hw_version); + log_info("device-id: %.32s", mtcdt3dc_eeprom->device_id); log_info("capa-mei-serial: %.32s", DEVICE_CAPA(mtcdt3dc_eeprom->capa, MTCDT3DC_CAPA_MTAC) ? "true" : "false"); log_info("capa-mtac: %.32s", DEVICE_CAPA(mtcdt3dc_eeprom->capa, MTCDT3DC_CAPA_SERIAL) ? "true" : "false"); log_info("mei-serial count: %hu", mtcdt3dc_eeprom->serial_cnt); @@ -1195,6 +1199,8 @@ int main(int argc, char *argv[]) { #ifdef MTCDT3B else if (base_board) EEPROM_SET(mtcdt3b_eeprom,device_id) + else if (dc_board) + EEPROM_SET(mtcdt3dc_eeprom,device_id) #endif else @@ -1206,6 +1212,8 @@ int main(int argc, char *argv[]) { #ifdef MTCDT3B else if (base_board) EEPROM_SET(mtcdt3b_eeprom,hw_version) + else if (dc_board) + EEPROM_SET(mtcdt3dc_eeprom,hw_version) #endif else |