coreboot-kgpe-d16/src/mainboard/asus/kcma-d8
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 mb/asus: Get rid of whitespace before tab 2018-06-04 08:55:37 +00:00
acpi_tables.c device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
board_info.txt mainboard/asus/[kgpe-di6|kcma-d8]: Fix board ROM information 2016-05-09 23:45:59 +02:00
bootblock.c mainboard/[a-e]: add IS_ENABLED() around Kconfig symbol references 2017-07-06 00:19:48 +00:00
cmos.default mb/*/*/cmos.default: Harmonise CMOS files syntax 2018-08-16 16:44:42 +00:00
cmos.layout mb/*/*: Remove rtc nvram configurable baud rate 2017-09-23 11:06:25 +00:00
devicetree.cb mb/asus/[kgpe-d16|kcma-d8]: Fix whitespace errors in devicetree.cb 2016-08-21 21:40:07 +02:00
dsdt.asl mb: Set coreboot as DSDT's manufacturer model ID 2018-11-23 11:00:40 +00:00
get_bus_conf.c amdfam10 boards: Use defaults for get_pci1234() 2019-01-04 17:24:23 +00:00
irq_tables.c amdfam10 boards: Drop array bus_sp5100 2019-01-04 17:23:17 +00:00
Kconfig Kconfig: Unify power-after-failure options 2019-01-06 15:54:19 +00:00
Kconfig.name
mainboard.c device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
Makefile.inc amdfam10 boards: Add Makefiles and fix resourcemap.c 2019-01-04 17:20:08 +00:00
mptable.c device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
resourcemap.c amdfam10 boards: Add Makefiles and fix resourcemap.c 2019-01-04 17:20:08 +00:00
romstage.c amdfam10 boards: Add Makefiles and fix resourcemap.c 2019-01-04 17:20:08 +00:00
spd_notes.txt Add newlines at the end of all coreboot files 2016-08-01 21:43:56 +02:00