smbios: Allow custom Type3 entry
Add config option for customize this value by board. BUG=chromium:366940 TEST=Manual add config for specific board and verify by dmidecode. Signed-off-by: Kevin Cheng <kevin.cheng@intel.com> Change-Id: I6deb7f07c00c899bad1eb08fa6a2410deb7a8c6a Reviewed-on: https://chromium-review.googlesource.com/203657 Reviewed-by: David Hendricks <dhendrix@chromium.org> Commit-Queue: Kevin Cheng <kevin.cheng@intel.com> Tested-by: Kevin Cheng <kevin.cheng@intel.com>
This commit is contained in:
parent
d8e5a9fdf5
commit
e14f5e80d1
2 changed files with 6 additions and 1 deletions
|
|
@ -214,7 +214,7 @@ static int smbios_write_type3(unsigned long *current, int handle)
|
|||
t->bootup_state = SMBIOS_STATE_SAFE;
|
||||
t->power_supply_state = SMBIOS_STATE_SAFE;
|
||||
t->thermal_state = SMBIOS_STATE_SAFE;
|
||||
t->_type = 3;
|
||||
t->_type = CONFIG_MAINBOARD_ENCLOSURE_TYPE;
|
||||
t->security_status = SMBIOS_STATE_SAFE;
|
||||
len = t->length + smbios_string_table_len(t->eos);
|
||||
*current += len;
|
||||
|
|
|
|||
|
|
@ -341,4 +341,9 @@ config MAINBOARD_VERSION
|
|||
default "1.0"
|
||||
help
|
||||
Define the used version number which will be used by SMBIOS tables.
|
||||
|
||||
config MAINBOARD_ENCLOSURE_TYPE
|
||||
hex "System Enclosure or Chassis type"
|
||||
depends on GENERATE_SMBIOS_TABLES
|
||||
default 0x3
|
||||
endmenu
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue