smbios: Mark laptops as such
Change-Id: I179a4cede2f826f72a400208748798737216c01a Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/7071 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
2adb297cf9
commit
a9db82fbaf
|
@ -236,6 +236,10 @@ config BOOTBLOCK_NORMAL
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
config SYSTEM_TYPE_LAPTOP
|
||||||
|
default n
|
||||||
|
bool
|
||||||
|
|
||||||
config BOOTBLOCK_SOURCE
|
config BOOTBLOCK_SOURCE
|
||||||
string
|
string
|
||||||
default "bootblock_simple.c" if BOOTBLOCK_SIMPLE
|
default "bootblock_simple.c" if BOOTBLOCK_SIMPLE
|
||||||
|
|
|
@ -253,7 +253,11 @@ static int smbios_write_type3(unsigned long *current, int handle)
|
||||||
t->bootup_state = SMBIOS_STATE_SAFE;
|
t->bootup_state = SMBIOS_STATE_SAFE;
|
||||||
t->power_supply_state = SMBIOS_STATE_SAFE;
|
t->power_supply_state = SMBIOS_STATE_SAFE;
|
||||||
t->thermal_state = SMBIOS_STATE_SAFE;
|
t->thermal_state = SMBIOS_STATE_SAFE;
|
||||||
t->_type = SMBIOS_ENCLOSURE_DESKTOP;
|
if(IS_ENABLED(CONFIG_SYSTEM_TYPE_LAPTOP)) {
|
||||||
|
t->_type = SMBIOS_ENCLOSURE_NOTEBOOK;
|
||||||
|
} else {
|
||||||
|
t->_type = SMBIOS_ENCLOSURE_DESKTOP;
|
||||||
|
}
|
||||||
t->security_status = SMBIOS_STATE_SAFE;
|
t->security_status = SMBIOS_STATE_SAFE;
|
||||||
len = t->length + smbios_string_table_len(t->eos);
|
len = t->length + smbios_string_table_len(t->eos);
|
||||||
*current += len;
|
*current += len;
|
||||||
|
|
|
@ -2,6 +2,7 @@ if BOARD_APPLE_MACBOOK11 || BOARD_APPLE_MACBOOK21
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select SYSTEM_TYPE_LAPTOP
|
||||||
select ARCH_X86
|
select ARCH_X86
|
||||||
select CPU_INTEL_SOCKET_MFCPGA478
|
select CPU_INTEL_SOCKET_MFCPGA478
|
||||||
select NORTHBRIDGE_INTEL_I945
|
select NORTHBRIDGE_INTEL_I945
|
||||||
|
|
|
@ -20,6 +20,7 @@ if BOARD_GETAC_P470
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select SYSTEM_TYPE_LAPTOP
|
||||||
select CPU_INTEL_SOCKET_MFCPGA478
|
select CPU_INTEL_SOCKET_MFCPGA478
|
||||||
select NORTHBRIDGE_INTEL_I945
|
select NORTHBRIDGE_INTEL_I945
|
||||||
select NORTHBRIDGE_INTEL_SUBTYPE_I945GM
|
select NORTHBRIDGE_INTEL_SUBTYPE_I945GM
|
||||||
|
|
|
@ -2,6 +2,7 @@ if BOARD_GOOGLE_BUTTERFLY
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select SYSTEM_TYPE_LAPTOP
|
||||||
select CPU_INTEL_SOCKET_RPGA989
|
select CPU_INTEL_SOCKET_RPGA989
|
||||||
select NORTHBRIDGE_INTEL_IVYBRIDGE
|
select NORTHBRIDGE_INTEL_IVYBRIDGE
|
||||||
select SOUTHBRIDGE_INTEL_C216
|
select SOUTHBRIDGE_INTEL_C216
|
||||||
|
|
|
@ -2,6 +2,7 @@ if BOARD_GOOGLE_FALCO
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select SYSTEM_TYPE_LAPTOP
|
||||||
select CPU_INTEL_SOCKET_RPGA989
|
select CPU_INTEL_SOCKET_RPGA989
|
||||||
select NORTHBRIDGE_INTEL_HASWELL
|
select NORTHBRIDGE_INTEL_HASWELL
|
||||||
select SOUTHBRIDGE_INTEL_LYNXPOINT
|
select SOUTHBRIDGE_INTEL_LYNXPOINT
|
||||||
|
|
|
@ -2,6 +2,7 @@ if BOARD_GOOGLE_LINK
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select SYSTEM_TYPE_LAPTOP
|
||||||
select CPU_INTEL_SOCKET_RPGA989
|
select CPU_INTEL_SOCKET_RPGA989
|
||||||
select NORTHBRIDGE_INTEL_IVYBRIDGE
|
select NORTHBRIDGE_INTEL_IVYBRIDGE
|
||||||
select SOUTHBRIDGE_INTEL_C216
|
select SOUTHBRIDGE_INTEL_C216
|
||||||
|
|
|
@ -2,6 +2,7 @@ if BOARD_GOOGLE_PARROT
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select SYSTEM_TYPE_LAPTOP
|
||||||
select CPU_INTEL_SOCKET_RPGA989
|
select CPU_INTEL_SOCKET_RPGA989
|
||||||
select NORTHBRIDGE_INTEL_IVYBRIDGE
|
select NORTHBRIDGE_INTEL_IVYBRIDGE
|
||||||
select SOUTHBRIDGE_INTEL_C216
|
select SOUTHBRIDGE_INTEL_C216
|
||||||
|
|
|
@ -2,6 +2,7 @@ if BOARD_GOOGLE_PEPPY
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select SYSTEM_TYPE_LAPTOP
|
||||||
select CPU_INTEL_SOCKET_RPGA989
|
select CPU_INTEL_SOCKET_RPGA989
|
||||||
select NORTHBRIDGE_INTEL_HASWELL
|
select NORTHBRIDGE_INTEL_HASWELL
|
||||||
select SOUTHBRIDGE_INTEL_LYNXPOINT
|
select SOUTHBRIDGE_INTEL_LYNXPOINT
|
||||||
|
|
|
@ -2,6 +2,7 @@ if BOARD_GOOGLE_STOUT
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select SYSTEM_TYPE_LAPTOP
|
||||||
select CPU_INTEL_SOCKET_RPGA989
|
select CPU_INTEL_SOCKET_RPGA989
|
||||||
select NORTHBRIDGE_INTEL_IVYBRIDGE
|
select NORTHBRIDGE_INTEL_IVYBRIDGE
|
||||||
select SOUTHBRIDGE_INTEL_C216
|
select SOUTHBRIDGE_INTEL_C216
|
||||||
|
|
|
@ -21,6 +21,7 @@ if BOARD_HP_PAVILION_M6_1035DX
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select SYSTEM_TYPE_LAPTOP
|
||||||
select CPU_AMD_AGESA_FAMILY15_TN
|
select CPU_AMD_AGESA_FAMILY15_TN
|
||||||
select NORTHBRIDGE_AMD_AGESA_FAMILY15_TN
|
select NORTHBRIDGE_AMD_AGESA_FAMILY15_TN
|
||||||
select SOUTHBRIDGE_AMD_AGESA_HUDSON
|
select SOUTHBRIDGE_AMD_AGESA_HUDSON
|
||||||
|
|
|
@ -2,6 +2,7 @@ if BOARD_LENOVO_T520
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select SYSTEM_TYPE_LAPTOP
|
||||||
select CPU_INTEL_SOCKET_RPGA988B
|
select CPU_INTEL_SOCKET_RPGA988B
|
||||||
select NORTHBRIDGE_INTEL_SANDYBRIDGE
|
select NORTHBRIDGE_INTEL_SANDYBRIDGE
|
||||||
select SOUTHBRIDGE_INTEL_BD82X6X
|
select SOUTHBRIDGE_INTEL_BD82X6X
|
||||||
|
|
|
@ -2,6 +2,7 @@ if BOARD_LENOVO_T530
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select SYSTEM_TYPE_LAPTOP
|
||||||
select CPU_INTEL_SOCKET_RPGA989
|
select CPU_INTEL_SOCKET_RPGA989
|
||||||
select NORTHBRIDGE_INTEL_IVYBRIDGE_NATIVE
|
select NORTHBRIDGE_INTEL_IVYBRIDGE_NATIVE
|
||||||
select SOUTHBRIDGE_INTEL_C216
|
select SOUTHBRIDGE_INTEL_C216
|
||||||
|
|
|
@ -2,6 +2,7 @@ if BOARD_LENOVO_T60
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select SYSTEM_TYPE_LAPTOP
|
||||||
select CPU_INTEL_SOCKET_MFCPGA478
|
select CPU_INTEL_SOCKET_MFCPGA478
|
||||||
select NORTHBRIDGE_INTEL_I945
|
select NORTHBRIDGE_INTEL_I945
|
||||||
select NORTHBRIDGE_INTEL_SUBTYPE_I945GM
|
select NORTHBRIDGE_INTEL_SUBTYPE_I945GM
|
||||||
|
|
|
@ -2,6 +2,7 @@ if BOARD_LENOVO_X200
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select SYSTEM_TYPE_LAPTOP
|
||||||
select CPU_INTEL_SOCKET_BGA956
|
select CPU_INTEL_SOCKET_BGA956
|
||||||
select NORTHBRIDGE_INTEL_GM45
|
select NORTHBRIDGE_INTEL_GM45
|
||||||
select SOUTHBRIDGE_INTEL_I82801IX
|
select SOUTHBRIDGE_INTEL_I82801IX
|
||||||
|
|
|
@ -2,6 +2,7 @@ if BOARD_LENOVO_X201
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select SYSTEM_TYPE_LAPTOP
|
||||||
select NORTHBRIDGE_INTEL_NEHALEM
|
select NORTHBRIDGE_INTEL_NEHALEM
|
||||||
select SOUTHBRIDGE_INTEL_IBEXPEAK
|
select SOUTHBRIDGE_INTEL_IBEXPEAK
|
||||||
select EC_LENOVO_PMH7
|
select EC_LENOVO_PMH7
|
||||||
|
|
|
@ -2,6 +2,7 @@ if BOARD_LENOVO_X220
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select SYSTEM_TYPE_LAPTOP
|
||||||
select CPU_INTEL_SOCKET_RPGA989
|
select CPU_INTEL_SOCKET_RPGA989
|
||||||
select NORTHBRIDGE_INTEL_SANDYBRIDGE_NATIVE
|
select NORTHBRIDGE_INTEL_SANDYBRIDGE_NATIVE
|
||||||
select SOUTHBRIDGE_INTEL_C216
|
select SOUTHBRIDGE_INTEL_C216
|
||||||
|
|
|
@ -2,6 +2,7 @@ if BOARD_LENOVO_X230
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select SYSTEM_TYPE_LAPTOP
|
||||||
select CPU_INTEL_SOCKET_RPGA989
|
select CPU_INTEL_SOCKET_RPGA989
|
||||||
select NORTHBRIDGE_INTEL_IVYBRIDGE_NATIVE
|
select NORTHBRIDGE_INTEL_IVYBRIDGE_NATIVE
|
||||||
select SOUTHBRIDGE_INTEL_C216
|
select SOUTHBRIDGE_INTEL_C216
|
||||||
|
|
|
@ -2,6 +2,7 @@ if BOARD_LENOVO_X60
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select SYSTEM_TYPE_LAPTOP
|
||||||
select CPU_INTEL_SOCKET_MFCPGA478
|
select CPU_INTEL_SOCKET_MFCPGA478
|
||||||
select NORTHBRIDGE_INTEL_I945
|
select NORTHBRIDGE_INTEL_I945
|
||||||
select NORTHBRIDGE_INTEL_SUBTYPE_I945GM
|
select NORTHBRIDGE_INTEL_SUBTYPE_I945GM
|
||||||
|
|
|
@ -2,6 +2,7 @@ if BOARD_PACKARDBELL_MS2290
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select SYSTEM_TYPE_LAPTOP
|
||||||
select ARCH_BOOTBLOCK_X86_32
|
select ARCH_BOOTBLOCK_X86_32
|
||||||
select ARCH_ROMSTAGE_X86_32
|
select ARCH_ROMSTAGE_X86_32
|
||||||
select ARCH_RAMSTAGE_X86_32
|
select ARCH_RAMSTAGE_X86_32
|
||||||
|
|
|
@ -2,6 +2,7 @@ if BOARD_RODA_RK886EX
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select SYSTEM_TYPE_LAPTOP
|
||||||
select CPU_INTEL_SOCKET_MFCPGA478
|
select CPU_INTEL_SOCKET_MFCPGA478
|
||||||
select NORTHBRIDGE_INTEL_I945
|
select NORTHBRIDGE_INTEL_I945
|
||||||
select NORTHBRIDGE_INTEL_SUBTYPE_I945GM
|
select NORTHBRIDGE_INTEL_SUBTYPE_I945GM
|
||||||
|
|
|
@ -2,6 +2,7 @@ if BOARD_RODA_RK9
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select SYSTEM_TYPE_LAPTOP
|
||||||
select CPU_INTEL_SOCKET_BGA956
|
select CPU_INTEL_SOCKET_BGA956
|
||||||
select NORTHBRIDGE_INTEL_GM45
|
select NORTHBRIDGE_INTEL_GM45
|
||||||
select SOUTHBRIDGE_INTEL_I82801IX
|
select SOUTHBRIDGE_INTEL_I82801IX
|
||||||
|
|
|
@ -2,6 +2,7 @@ if BOARD_SAMSUNG_LUMPY
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select SYSTEM_TYPE_LAPTOP
|
||||||
select BOARD_ROMSIZE_KB_8192
|
select BOARD_ROMSIZE_KB_8192
|
||||||
select MAINBOARD_HAS_CHROMEOS
|
select MAINBOARD_HAS_CHROMEOS
|
||||||
select CPU_INTEL_SOCKET_RPGA989
|
select CPU_INTEL_SOCKET_RPGA989
|
||||||
|
|
Loading…
Reference in New Issue