Message ID | 20240208104952.19964-3-heinrich.schuchardt@canonical.com |
---|---|
State | Changes Requested |
Delegated to: | Tom Rini |
Headers | show |
Series | smbios: fill wake-up type | expand |
diff --git a/include/smbios.h b/include/smbios.h index 3df8827b60d..704d7e5dc86 100644 --- a/include/smbios.h +++ b/include/smbios.h @@ -108,6 +108,8 @@ struct __packed smbios_type0 { char eos[SMBIOS_STRUCT_EOS_BYTES]; }; +#define SMBIOS_WAKEUP_TYPE_POWER_SWITCH 0x06 + struct __packed smbios_type1 { u8 type; u8 length; diff --git a/lib/smbios.c b/lib/smbios.c index c83af730a91..8599743738a 100644 --- a/lib/smbios.c +++ b/lib/smbios.c @@ -394,6 +394,7 @@ static int smbios_write_type1(ulong *current, int handle, } else { t->serial_number = smbios_add_prop(ctx, "serial", NULL); } + t->wakeup_type = SMBIOS_WAKEUP_TYPE_POWER_SWITCH; t->sku_number = smbios_add_prop(ctx, "sku", NULL); t->family = smbios_add_prop(ctx, "family", NULL);
We should not use the reserved value 0x00 for the wake up type but use 0x06 (Power Switch). Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> --- include/smbios.h | 2 ++ lib/smbios.c | 1 + 2 files changed, 3 insertions(+)