diff options
author | Angel Pons <th3fanbus@gmail.com> | 2021-06-07 18:08:23 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-06-16 09:56:54 +0000 |
commit | a15dea9ab257362306be3205460b974c5688e128 (patch) | |
tree | 8fc91b13d9b40becf55359d40b2d4c7bd212c384 /src/mainboard/prodrive/hermes/variants | |
parent | f8986a94b175d8703e18265c8c079fc73e8bcbc5 (diff) |
mb/prodrive/hermes: Use serial numbers from BMC
The BMC EEPROM layout has been updated to contain system and mainboard
serial numbers. Use these values in SMBIOS Type 1 and Type 2 tables.
Change-Id: I55b51a856b4ad28fd56b02015b2e1d49cd629735
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55275
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/prodrive/hermes/variants')
-rw-r--r-- | src/mainboard/prodrive/hermes/variants/baseboard/include/eeprom.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mainboard/prodrive/hermes/variants/baseboard/include/eeprom.h b/src/mainboard/prodrive/hermes/variants/baseboard/include/eeprom.h index 4e6557a15a..9ec4604fc2 100644 --- a/src/mainboard/prodrive/hermes/variants/baseboard/include/eeprom.h +++ b/src/mainboard/prodrive/hermes/variants/baseboard/include/eeprom.h @@ -62,6 +62,8 @@ struct __packed eeprom_bmc_settings { uint8_t hsi; }; +#define HERMES_SERIAL_NUMBER_LENGTH 32 + /* The EEPROM on address 0x57 has the following vendor defined layout: */ struct __packed eeprom_layout { union { @@ -76,7 +78,9 @@ struct __packed eeprom_layout { uint8_t RawBoardLayout[0x400]; struct eeprom_board_layout BoardLayout; }; - uint8_t BootOrder[0x900]; + char system_serial_number[HERMES_SERIAL_NUMBER_LENGTH]; + char board_serial_number[HERMES_SERIAL_NUMBER_LENGTH]; + uint8_t BootOrder[0x8c0]; union { uint8_t RawBoardSetting[0xF8]; struct eeprom_board_settings BoardSettings; |