mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-27 23:20:26 +09:00
smbios: Set BIOS release version
We may as well include the U-Boot release information in the type-0 table since it is designed for that purpose. U-Boot uses release versions based on the year and month. The year cannot fit in a byte, so drop the century. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
dc090586a0
commit
7617f996e6
@ -143,8 +143,9 @@ static int smbios_write_type0(ulong *current, int handle, ofnode node)
|
||||
#endif
|
||||
t->bios_characteristics_ext2 = BIOS_CHARACTERISTICS_EXT2_TARGET;
|
||||
|
||||
t->bios_major_release = 0xff;
|
||||
t->bios_minor_release = 0xff;
|
||||
/* bios_major_release has only one byte, so drop century */
|
||||
t->bios_major_release = U_BOOT_VERSION_NUM % 100;
|
||||
t->bios_minor_release = U_BOOT_VERSION_NUM_PATCH;
|
||||
t->ec_major_release = 0xff;
|
||||
t->ec_minor_release = 0xff;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user