1
0

Kconfig 2.7 KB

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