coreboot-kgpe-d16/src/soc/intel/broadwell
Nico Huber 9faae2b939 Kconfig: Unify power-after-failure options
The newest and most useful incarnation was hiding in soc/intel/common/.
We move it into the Mainboard menu and extend it with various flags to
be selected to control the default and which options are visible. Also
add a new `int` config MAINBOARD_POWER_FAILURE_STATE that moves the
boolean to int conversion into Kconfig:
  0 - S5
  1 - S0
  2 - previous state

This patch focuses on the Kconfig code. The C code could be unified as
well, e.g. starting with a common enum and safe wrapper around the
get_option() call.

TEST=Did what-jenkins-does with and without this commit and compared
     binaries. Nothing changed for the default configurations.

Change-Id: I61259f864c8a8cfc7099cc2699059f972fa056c0
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/29680
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
2019-01-06 15:54:19 +00:00
..
acpi cpu/intel/common: Use a common acpi/cpu.asl file 2018-11-30 22:02:35 +00:00
bootblock arch/x86: Use a common timestamp.inc with romcc bootblocks 2018-12-30 12:30:55 +00:00
include/soc cpu/intel/car: Drop remains of setup_stack_and_mtrrs() 2018-12-30 11:42:07 +00:00
romstage soc/intel: Drop romstage_after_car() 2018-12-28 05:27:20 +00:00
acpi.c soc/intel/broadwell: implement RMRR ACPI table 2018-12-20 22:19:29 +00:00
adsp.c
chip.c src: Remove unneeded include <console/console.h> 2018-11-16 09:50:29 +00:00
chip.h src: Add missing include <stdint.h> 2018-11-01 11:25:07 +00:00
cpu.c cpu/intel/common: decouple IA32_FEATURE_CONTROL lock from set_vmx() 2018-12-20 22:18:05 +00:00
cpu_info.c src: Remove unneeded include <console/console.h> 2018-11-16 09:50:29 +00:00
ehci.c src: Remove unneeded include <console/console.h> 2018-11-16 09:50:29 +00:00
elog.c
finalize.c
gpio.c
hda.c
igd.c soc/intel/broadwell: add support for Intel GMA OpRegion 2018-03-15 14:15:29 +00:00
iobp.c
Kconfig Kconfig: Unify power-after-failure options 2019-01-06 15:54:19 +00:00
lpc.c Kconfig: Unify power-after-failure options 2019-01-06 15:54:19 +00:00
Makefile.inc usbdebug: Make the EHCI debug console work in the bootblock 2019-01-06 14:05:20 +00:00
me.c src/soc/intel/broadwell/me.c: Correct HMRFPO misspelling 2018-10-02 11:13:44 +00:00
me_status.c soc: Remove useless include <device/pci_ids.h> 2018-12-19 05:20:49 +00:00
memmap.c
minihd.c
monotonic_timer.c
pch.c soc/broadwell: Don't use device_t 2018-09-21 14:05:04 +00:00
pcie.c soc/intel/broadwell: Get rid of device_t 2018-06-01 16:26:09 +00:00
pei_data.c
pmutil.c vboot: fix CONFIG_RESUME_PATH_SAME_AS_BOOT S3 resume logic 2018-10-24 09:07:43 +00:00
ramstage.c src: Remove unneeded include <console/console.h> 2018-11-16 09:50:29 +00:00
refcode.c src: Get rid of duplicated includes 2018-11-16 09:50:03 +00:00
sata.c soc/intel/broadwell: Get rid of device_t 2018-06-01 16:26:09 +00:00
serialio.c
smbus.c src: Remove unneeded include <console/console.h> 2018-11-16 09:50:29 +00:00
smbus_common.c soc: Remove useless include <device/pci_ids.h> 2018-12-19 05:20:49 +00:00
smi.c src: Remove unneeded include "{arch,cpu}/cpu.h" 2018-11-12 09:22:18 +00:00
smihandler.c Kconfig: Unify power-after-failure options 2019-01-06 15:54:19 +00:00
smmrelocate.c src: Remove unneeded include "{arch,cpu}/cpu.h" 2018-11-12 09:22:18 +00:00
spi.c soc: Remove useless include <device/pci_ids.h> 2018-12-19 05:20:49 +00:00
stage_cache.c
systemagent.c soc/intel/broadwell: implement RMRR ACPI table 2018-12-20 22:19:29 +00:00
tsc_freq.c
usb_debug.c src: Remove unneeded include <console/console.h> 2018-11-16 09:50:29 +00:00
xhci.c src: Remove unneeded include <console/console.h> 2018-11-16 09:50:29 +00:00