diff options
-rw-r--r-- | board/gateworks/venice/eeprom.c | 9 | ||||
-rw-r--r-- | board/gateworks/venice/eeprom.h | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/board/gateworks/venice/eeprom.c b/board/gateworks/venice/eeprom.c index 702ab392a04..d9a87193434 100644 --- a/board/gateworks/venice/eeprom.c +++ b/board/gateworks/venice/eeprom.c @@ -449,6 +449,15 @@ int venice_eeprom_init(int quiet) venice_model[i++] = fsa_info.model[9]; } } + + /* append extra model info */ + if (som_info.config[0] >= 32 && som_info.config[0] < 0x7f) { + venice_model[i++] = '-'; + strlcpy(venice_model + i, som_info.config, (sizeof(venice_model) - i) - 1); + i += strlen(som_info.config); + if (i >= sizeof(venice_model)) + i = sizeof(venice_model) - 1; + } venice_model[i++] = 0; } diff --git a/board/gateworks/venice/eeprom.h b/board/gateworks/venice/eeprom.h index 30cd347d945..a0f449299aa 100644 --- a/board/gateworks/venice/eeprom.h +++ b/board/gateworks/venice/eeprom.h @@ -20,7 +20,7 @@ struct venice_board_info { u8 sdram_width; /* 0x2D: (8 << n) bit */ u8 res3[2]; /* 0x2E */ char model[16]; /* 0x30: model string */ - u8 res4[14]; /* 0x40 */ + u8 config[14]; /* 0x40: model config */ u8 chksum[2]; /* 0x4E */ }; |