[PATCH 12/13] board: venice: append configuration string to model
Tim Harvey
tharvey at gateworks.com
Fri May 23 19:20:17 CEST 2025
Append the optional board configuration string to the model info.
Signed-off-by: Tim Harvey <tharvey at gateworks.com>
---
board/gateworks/venice/eeprom.c | 9 +++++++++
board/gateworks/venice/eeprom.h | 2 +-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/board/gateworks/venice/eeprom.c b/board/gateworks/venice/eeprom.c
index 702ab392a047..d9a871934340 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 30cd347d9453..a0f449299aa3 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 */
};
--
2.25.1
More information about the U-Boot
mailing list