xref: /aosp_15_r20/external/coreboot/src/drivers/elog/Kconfig (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1## SPDX-License-Identifier: GPL-2.0-only
2
3config ELOG
4	bool "Support for flash based event log"
5	default n
6	depends on BOOT_DEVICE_SUPPORTS_WRITES
7	help
8	  Enable support for flash based event logging.
9
10if ELOG
11
12config ELOG_DEBUG
13	bool "Enable debug output for event logging"
14	default n
15
16config ELOG_CBMEM
17	bool "Store a copy of ELOG in CBMEM"
18	default n
19	help
20	 This option will have ELOG store a copy of the flash event log
21	 in a CBMEM region and export that address in SMBIOS to the OS.
22	 This is useful if the ELOG location is not in memory mapped flash,
23	 but it means that events added at runtime via the SMI handler
24	 will not be reflected in the CBMEM copy of the log.
25
26config ELOG_GSMI
27	depends on HAVE_SMI_HANDLER
28	bool "SMI interface to write and clear event log"
29	select SPI_FLASH_SMM if BOOT_DEVICE_SPI_FLASH_RW_NOMMAP
30	default n
31	help
32	  This interface is compatible with the linux kernel driver
33	  available with CONFIG_GOOGLE_GSMI and can be used to write
34	  kernel reset/shutdown messages to the event log.
35
36config ELOG_BOOT_COUNT
37	bool "Maintain a monotonic boot number in CMOS"
38	default n
39	help
40	  Store a monotonic boot number in CMOS and provide an interface
41	  to read the current value and increment the counter.  This boot
42	  counter will be logged as part of the System Boot event.
43
44config ELOG_BOOT_COUNT_CMOS_OFFSET
45	depends on ELOG_BOOT_COUNT && !USE_OPTION_TABLE
46	int "Offset in CMOS to store the boot count"
47	default 0
48	help
49	  This value must be greater than 16 bytes so as not to interfere
50	  with the standard RTC region.  Requires 8 bytes.
51
52endif
53