From 96fd20c5e0a5be604ddde6788ad7e40cb827df3d Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Sun, 20 Apr 2025 17:27:19 -0500 Subject: [PATCH] soc/intel/broadwell: Add CFR objects for existing options Add a header with CFR objects for existing configuration options, so that supported boards can make use of them without duplication. TEST=build/boot google/guado with CFR options enabled. Change-Id: Iaf9950a3b446b1b55d836e54e8b231d047571768 Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/87387 Reviewed-by: Maximilian Brune Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/soc/intel/broadwell/include/soc/cfr.h | 38 +++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/soc/intel/broadwell/include/soc/cfr.h diff --git a/src/soc/intel/broadwell/include/soc/cfr.h b/src/soc/intel/broadwell/include/soc/cfr.h new file mode 100644 index 0000000000..91dc9048c7 --- /dev/null +++ b/src/soc/intel/broadwell/include/soc/cfr.h @@ -0,0 +1,38 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +/* + * CFR enums and structs for soc/intel/broadwell + */ + +#ifndef _BROADWELL_CFR_H_ +#define _BROADWELL_CFR_H_ + +#include +#include "pm.h" + +/* Power state after power loss */ +static const struct sm_object power_on_after_fail = SM_DECLARE_ENUM({ + .opt_name = "power_on_after_fail", + .ui_name = "Restore AC Power Loss", + .ui_helptext = "Specify what to do when power is re-applied after a power loss.", + .default_value = CONFIG_MAINBOARD_POWER_FAILURE_STATE, + .values = (const struct sm_enum_value[]) { + { "Power off (S5)", MAINBOARD_POWER_OFF }, + { "Power on (S0)", MAINBOARD_POWER_ON }, + { "Previous state", MAINBOARD_POWER_KEEP }, + SM_ENUM_VALUE_END }, +}); + +/* Intel ME State */ +static const struct sm_object me_disable = SM_DECLARE_ENUM({ + .opt_name = "me_disable", + .ui_name = "Intel Management Engine", + .ui_helptext = "Enable or disable the PCI/HECI interface of the Intel Management Engine", + .default_value = 0, + .values = (const struct sm_enum_value[]) { + { "Disabled", 1 }, + { "Enabled", 0 }, + SM_ENUM_VALUE_END }, +}); + +#endif /* _BROADWELL_CFR_H_ */