summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/eeprom_main.c8
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