coreboot-kgpe-d16/src/mainboard
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
..
adi mainboard: Remove useless include <device/pci_ids.h> 2018-12-19 05:23:18 +00:00
adlink
advansus amdfam10 boards: Use defaults for get_pci1234() 2019-01-04 17:24:23 +00:00
amd device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
aopen device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
apple src/mb/apple/macbookair4_2: move early_southbridge.c to romstage.c 2019-01-06 13:19:55 +00:00
asrock Kconfig: Unify power-after-failure options 2019-01-06 15:54:19 +00:00
asus Kconfig: Unify power-after-failure options 2019-01-06 15:54:19 +00:00
avalue amdfam10 boards: Use defaults for get_pci1234() 2019-01-04 17:24:23 +00:00
bap device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
biostar device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
cavium src: Get rid of duplicated includes 2018-11-16 09:50:03 +00:00
compulab cpu/intel/common: Use a common acpi/cpu.asl file 2018-11-30 22:02:35 +00:00
cubietech arch/x86: Drop spurious arch/stages.h includes 2018-12-28 06:47:31 +00:00
elmex device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
emulation device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
esd mainboard: Remove useless include <device/pci_ids.h> 2018-12-19 05:23:18 +00:00
facebook mb: Set coreboot as DSDT's manufacturer model ID 2018-11-23 11:00:40 +00:00
foxconn mb/foxconn/d41s: Program the subsystemid 2019-01-03 18:06:33 +00:00
getac device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
gigabyte device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
gizmosphere device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
google mb/google/slippy: Add a VBT for all variants 2019-01-06 15:39:16 +00:00
hp device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
ibase mb/*/*/Kconfig: Remove useless comment 2018-11-28 13:53:51 +00:00
iei amdfam10 boards: Use defaults for get_pci1234() 2019-01-04 17:24:23 +00:00
intel mb/*/chromeos.c: Fix PRE_RAM and unify style 2019-01-04 21:23:21 +00:00
jetway device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
kontron device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
lenovo device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
lippert device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
msi Kconfig: Unify power-after-failure options 2019-01-06 15:54:19 +00:00
ocp superio/*: Link early initialization into bootblock 2019-01-06 14:02:58 +00:00
opencellular mb/opencellular/elgon: Enable write protection 2018-12-04 07:11:56 +00:00
packardbell device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
pcengines device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
purism device: Use pcidev_path_on_root() 2019-01-06 13:09:54 +00:00
roda device: Use pcidev_path_behind() 2019-01-06 13:10:27 +00:00
samsung Kconfig: Unify power-after-failure options 2019-01-06 15:54:19 +00:00
sapphire cpu/intel/common: Use a common acpi/cpu.asl file 2018-11-30 22:02:35 +00:00
scaleway mainboard: Remove useless include <device/pci_ids.h> 2018-12-19 05:23:18 +00:00
siemens device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
sifive mb/sifive/hifive-unleashed: remove the definition of MAX_CPUS 2018-12-19 05:44:44 +00:00
supermicro device: Use pcidev_on_root() 2019-01-06 01:17:54 +00:00
ti mb/*/*/Kconfig: Remove useless comment 2018-11-28 13:53:51 +00:00
tyan amdfam10 boards: Use defaults for get_pci1234() 2019-01-04 17:23:56 +00:00
via mainboard: Remove useless include <device/pci_ids.h> 2018-12-19 05:23:18 +00:00
Kconfig Kconfig: Unify power-after-failure options 2019-01-06 15:54:19 +00:00