board: venice: append configuration string to model

Append the optional board configuration string to the model info.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
Tim Harvey
2025-05-23 10:20:17 -07:00
committed by Fabio Estevam
parent 41bc2d5334
commit 314469b6ba
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -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;
}
+1 -1
View File
@@ -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 */
};