Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

# SPDX-License-Identifier: GPL-2.0-only
#
# Platform support for Chrome OS hardware (Chromebooks and Chromeboxes)
#

config CONFIG_MFD_CROS_EC
	tristate "Platform support for Chrome hardware (transitional)"
	select CONFIG_CHROME_PLATFORMS
	select CONFIG_CROS_EC
	select CONFIG_MFD_CROS_EC_DEV
	depends on CONFIG_X86 || CONFIG_ARM || CONFIG_ARM64 || CONFIG_COMPILE_TEST
	help
	  This is a transitional Kconfig option and will be removed after
	  everyone enables the parts individually.

menuconfig CONFIG_CHROME_PLATFORMS
	bool "Platform support for Chrome hardware"
	depends on CONFIG_X86 || CONFIG_ARM || CONFIG_ARM64 || CONFIG_COMPILE_TEST
	---help---
	  Say Y here to get to see options for platform support for
	  various Chromebooks and Chromeboxes. This option alone does
	  not add any kernel code.

	  If you say N, all options in this submenu will be skipped and disabled.

if CONFIG_CHROME_PLATFORMS

config CONFIG_CHROMEOS_LAPTOP
	tristate "Chrome OS Laptop"
	depends on CONFIG_I2C && CONFIG_DMI && CONFIG_X86
	---help---
	  This driver instantiates i2c and smbus devices such as
	  light sensors and touchpads.

	  If you have a supported Chromebook, choose Y or CONFIG_M here.
	  The module will be called chromeos_laptop.

config CONFIG_CHROMEOS_PSTORE
	tristate "Chrome OS pstore support"
	depends on CONFIG_X86
	---help---
	  This module instantiates the persistent storage on x86 ChromeOS
	  devices. It can be used to store away console logs and crash
	  information across reboots.

	  The range of memory used is 0xf00000-0x1000000, traditionally
	  the memory used to back VGA controller memory.

	  If you have a supported Chromebook, choose Y or CONFIG_M here.
	  The module will be called chromeos_pstore.

config CONFIG_CHROMEOS_TBMC
	tristate "ChromeOS Tablet Switch Controller"
	depends on CONFIG_ACPI
	depends on CONFIG_INPUT
	help
	  This option adds a driver for the tablet switch on
	  select Chrome OS systems.

	  To compile this driver as a module, choose CONFIG_M here: the
	  module will be called chromeos_tbmc.

config CONFIG_CROS_EC
	tristate "ChromeOS Embedded Controller"
	select CONFIG_CROS_EC_PROTO
	depends on CONFIG_X86 || CONFIG_ARM || CONFIG_ARM64 || CONFIG_COMPILE_TEST
	help
	  If you say Y here you get support for the ChromeOS Embedded
	  Controller (EC) providing keyboard, battery and power services.
	  You also need to enable the driver for the bus you are using. The
	  protocol for talking to the EC is defined by the bus driver.

	  To compile this driver as a module, choose CONFIG_M here: the
	  module will be called cros_ec.

config CONFIG_CROS_EC_I2C
	tristate "ChromeOS Embedded Controller (I2C)"
	depends on CONFIG_CROS_EC && CONFIG_I2C

	help
	  If you say Y here, you get support for talking to the ChromeOS
	  EC through an CONFIG_I2C bus. This uses a simple byte-level protocol with
	  a checksum. Failing accesses will be retried three times to
	  improve reliability.

config CONFIG_CROS_EC_RPMSG
	tristate "ChromeOS Embedded Controller (rpmsg)"
	depends on CONFIG_CROS_EC && CONFIG_RPMSG && CONFIG_OF
	help
	  If you say Y here, you get support for talking to the ChromeOS EC
	  through rpmsg. This uses a simple byte-level protocol with a
	  checksum. Also since there's no addition EC-to-host interrupt, this
	  use a byte in message to distinguish host event from host command.

	  To compile this driver as a module, choose CONFIG_M here: the
	  module will be called cros_ec_rpmsg.

config CONFIG_CROS_EC_ISHTP
	tristate "ChromeOS Embedded Controller (ISHTP)"
	depends on CONFIG_CROS_EC
	depends on CONFIG_INTEL_ISH_HID
	help
	  If you say Y here, you get support for talking to the ChromeOS EC
	  firmware running on Intel Integrated Sensor Hub (ISH), using the
	  ISH Transport protocol (ISH-TP). This uses a simple byte-level
	  protocol with a checksum.

	  To compile this driver as a module, choose CONFIG_M here: the
	  module will be called cros_ec_ishtp.

config CONFIG_CROS_EC_SPI
	tristate "ChromeOS Embedded Controller (SPI)"
	depends on CONFIG_CROS_EC && CONFIG_SPI

	---help---
	  If you say Y here, you get support for talking to the ChromeOS EC
	  through a CONFIG_SPI bus, using a byte-level protocol. Since the EC's
	  response time cannot be guaranteed, we support ignoring
	  'pre-amble' bytes before the response actually starts.

config CONFIG_CROS_EC_LPC
	tristate "ChromeOS Embedded Controller (LPC)"
	depends on CONFIG_CROS_EC && CONFIG_ACPI && (CONFIG_X86 || CONFIG_COMPILE_TEST)
	help
	  If you say Y here, you get support for talking to the ChromeOS EC
	  over an LPC bus, including the LPC Microchip EC (MEC) variant.
	  This uses a simple byte-level protocol with a checksum. This is
	  used for userspace access only. The kernel typically has its own
	  communication methods.

	  To compile this driver as a module, choose CONFIG_M here: the
	  module will be called cros_ec_lpcs.

config CONFIG_CROS_EC_PROTO
        bool
        help
          ChromeOS EC communication protocol helpers.

config CONFIG_CROS_KBD_LED_BACKLIGHT
	tristate "Backlight LED support for Chrome OS keyboards"
	depends on CONFIG_LEDS_CLASS && CONFIG_ACPI
	help
	  This option enables support for the keyboard backlight LEDs on
	  select Chrome OS systems.

	  To compile this driver as a module, choose CONFIG_M here: the
	  module will be called cros_kbd_led_backlight.

config CONFIG_CROS_EC_CHARDEV
	tristate "ChromeOS EC miscdevice"
	depends on CONFIG_MFD_CROS_EC_DEV
	default CONFIG_MFD_CROS_EC_DEV
	help
	  This driver adds file operations support to talk with the
	  ChromeOS EC from userspace via a character device.

	  To compile this driver as a module, choose CONFIG_M here: the
	  module will be called cros_ec_chardev.

config CONFIG_CROS_EC_LIGHTBAR
	tristate "Chromebook Pixel's lightbar support"
	depends on CONFIG_MFD_CROS_EC_DEV
	default CONFIG_MFD_CROS_EC_DEV
	help
	  This option exposes the Chromebook Pixel's lightbar to
	  userspace.

	  To compile this driver as a module, choose CONFIG_M here: the
	  module will be called cros_ec_lightbar.

config CONFIG_CROS_EC_VBC
	tristate "ChromeOS EC vboot context support"
	depends on CONFIG_MFD_CROS_EC_DEV && CONFIG_OF
	default CONFIG_MFD_CROS_EC_DEV
	help
	  This option exposes the ChromeOS EC vboot context nvram to
	  userspace.

	  To compile this driver as a module, choose CONFIG_M here: the
	  module will be called cros_ec_vbc.

config CONFIG_CROS_EC_DEBUGFS
	tristate "Export ChromeOS EC internals in DebugFS"
	depends on CONFIG_MFD_CROS_EC_DEV && CONFIG_DEBUG_FS
	default CONFIG_MFD_CROS_EC_DEV
	help
	  This option exposes the ChromeOS EC device internals to
	  userspace.

	  To compile this driver as a module, choose CONFIG_M here: the
	  module will be called cros_ec_debugfs.

config CONFIG_CROS_EC_SYSFS
	tristate "ChromeOS EC control and information through sysfs"
	depends on CONFIG_MFD_CROS_EC_DEV && CONFIG_SYSFS
	default CONFIG_MFD_CROS_EC_DEV
	help
	  This option exposes some sysfs attributes to control and get
	  information from ChromeOS EC.

	  To compile this driver as a module, choose CONFIG_M here: the
	  module will be called cros_ec_sysfs.

config CONFIG_CROS_USBPD_LOGGER
	tristate "Logging driver for USB PD charger"
	depends on CONFIG_CHARGER_CROS_USBPD
	default y
	select CONFIG_RTC_LIB
	help
	  This option enables support for logging event data for the CONFIG_USB PD charger
	  available in the Embedded Controller on ChromeOS systems.

	  To compile this driver as a module, choose CONFIG_M here: the
	  module will be called cros_usbpd_logger.

source "drivers/platform/chrome/wilco_ec/Kconfig"

endif # CHROMEOS_PLATFORMS