xref: /linux/drivers/firmware/google/Kconfig (revision 4a57e0913e8c7fff407e97909f4ae48caa84d612)
1# SPDX-License-Identifier: GPL-2.0-only
2menuconfig GOOGLE_FIRMWARE
3	bool "Google Firmware Drivers"
4	default n
5	help
6	  These firmware drivers are used by Google servers,
7	  Chromebooks and other devices using coreboot firmware.
8	  If in doubt, say "N".
9
10if GOOGLE_FIRMWARE
11
12config GOOGLE_SMI
13	tristate "SMI interface for Google platforms"
14	depends on X86 && ACPI && DMI
15	help
16	  Say Y here if you want to enable SMI callbacks for Google
17	  platforms.  This provides an interface for writing to and
18	  clearing the event log.  If CONFIG_EFI is also enabled this
19	  driver provides an interface for reading and writing NVRAM
20	  variables.
21
22config GOOGLE_CBMEM
23	tristate "CBMEM entries in sysfs"
24	depends on GOOGLE_COREBOOT_TABLE
25	help
26	  CBMEM is a downwards-growing memory region created by the
27	  Coreboot BIOS containing tagged data structures from the
28	  BIOS.  These data structures expose things like the verified
29	  boot firmware variables, flash layout, firmware event log,
30	  and more.
31
32	  This option enables the cbmem module, which causes the
33	  kernel to search for Coreboot CBMEM entries, and expose the
34	  memory for each entry in sysfs under
35	  /sys/bus/coreboot/devices/cbmem-<id>.
36
37config GOOGLE_COREBOOT_TABLE
38	tristate "Coreboot Table Access"
39	depends on HAS_IOMEM && (ACPI || OF)
40	help
41	  This option enables the coreboot_table module, which provides other
42	  firmware modules access to the coreboot table. The coreboot table
43	  pointer is accessed through the ACPI "GOOGCB00" object or the
44	  device tree node /firmware/coreboot.
45	  If unsure say N.
46
47config GOOGLE_MEMCONSOLE
48	tristate
49	depends on GOOGLE_MEMCONSOLE_X86_LEGACY || GOOGLE_MEMCONSOLE_COREBOOT
50
51config GOOGLE_MEMCONSOLE_X86_LEGACY
52	tristate "Firmware Memory Console - X86 Legacy support"
53	depends on X86 && ACPI && DMI
54	select GOOGLE_MEMCONSOLE
55	help
56	  This option enables the kernel to search for a firmware log in
57	  the EBDA on Google servers.  If found, this log is exported to
58	  userland in the file /sys/firmware/log.
59
60config GOOGLE_FRAMEBUFFER_COREBOOT
61	tristate "Coreboot Framebuffer"
62	depends on GOOGLE_COREBOOT_TABLE
63	help
64	  This option enables the kernel to search for a framebuffer in
65	  the coreboot table.  If found, it is registered with a platform
66	  device of type coreboot-framebuffer. Using the old device of
67	  type simple-framebuffer is deprecated.
68
69config GOOGLE_MEMCONSOLE_COREBOOT
70	tristate "Firmware Memory Console"
71	depends on GOOGLE_COREBOOT_TABLE
72	select GOOGLE_MEMCONSOLE
73	help
74	  This option enables the kernel to search for a firmware log in
75	  the coreboot table.  If found, this log is exported to userland
76	  in the file /sys/firmware/log.
77
78config GOOGLE_VPD
79	tristate "Vital Product Data"
80	depends on GOOGLE_COREBOOT_TABLE
81	help
82	  This option enables the kernel to expose the content of Google VPD
83	  under /sys/firmware/vpd.
84
85endif # GOOGLE_FIRMWARE
86