# SPDX-License-Identifier: GPL-2.0-only
#
# Platform support for Chrome OS hardware (Chromebooks and Chromeboxes)
#
config [31mCONFIG_MFD_CROS_EC[0m
tristate "Platform support for Chrome hardware (transitional)"
select [31mCONFIG_CHROME_PLATFORMS[0m
select [31mCONFIG_CROS_EC[0m
select CONFIG_MFD_CROS_EC_DEV
depends on [31mCONFIG_X86[0m || [31mCONFIG_ARM[0m || [31mCONFIG_ARM64[0m || [31mCONFIG_COMPILE_TEST[0m
help
This is a transitional Kconfig option and will be removed after
everyone enables the parts individually.
menuconfig [31mCONFIG_CHROME_PLATFORMS[0m
bool "Platform support for Chrome hardware"
depends on [31mCONFIG_X86[0m || [31mCONFIG_ARM[0m || [31mCONFIG_ARM64[0m || [31mCONFIG_COMPILE_TEST[0m
---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 [31mCONFIG_CHROME_PLATFORMS[0m
config [31mCONFIG_CHROMEOS_LAPTOP[0m
tristate "Chrome OS Laptop"
depends on [31mCONFIG_I2C[0m && [31mCONFIG_DMI[0m && [31mCONFIG_X86[0m
---help---
This driver instantiates i2c and smbus devices such as
light sensors and touchpads.
If you have a supported Chromebook, choose Y or [31mCONFIG_M[0m here.
The module will be called chromeos_laptop.
config [31mCONFIG_CHROMEOS_PSTORE[0m
tristate "Chrome OS pstore support"
depends on [31mCONFIG_X86[0m
---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 [31mCONFIG_M[0m here.
The module will be called chromeos_pstore.
config [31mCONFIG_CHROMEOS_TBMC[0m
tristate "ChromeOS Tablet Switch Controller"
depends on [31mCONFIG_ACPI[0m
depends on [31mCONFIG_INPUT[0m
help
This option adds a driver for the tablet switch on
select Chrome OS systems.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called chromeos_tbmc.
config [31mCONFIG_CROS_EC[0m
tristate "ChromeOS Embedded Controller"
select [31mCONFIG_CROS_EC_PROTO[0m
depends on [31mCONFIG_X86[0m || [31mCONFIG_ARM[0m || [31mCONFIG_ARM64[0m || [31mCONFIG_COMPILE_TEST[0m
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 [31mCONFIG_M[0m here: the
module will be called cros_ec.
config [31mCONFIG_CROS_EC_I2C[0m
tristate "ChromeOS Embedded Controller (I2C)"
depends on [31mCONFIG_CROS_EC[0m && [31mCONFIG_I2C[0m
help
If you say Y here, you get support for talking to the ChromeOS
EC through an [31mCONFIG_I2C[0m bus. This uses a simple byte-level protocol with
a checksum. Failing accesses will be retried three times to
improve reliability.
config [31mCONFIG_CROS_EC_RPMSG[0m
tristate "ChromeOS Embedded Controller (rpmsg)"
depends on [31mCONFIG_CROS_EC[0m && [31mCONFIG_RPMSG[0m && [31mCONFIG_OF[0m
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 [31mCONFIG_M[0m here: the
module will be called cros_ec_rpmsg.
config [31mCONFIG_CROS_EC_ISHTP[0m
tristate "ChromeOS Embedded Controller (ISHTP)"
depends on [31mCONFIG_CROS_EC[0m
depends on [31mCONFIG_INTEL_ISH_HID[0m
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 [31mCONFIG_M[0m here: the
module will be called cros_ec_ishtp.
config [31mCONFIG_CROS_EC_SPI[0m
tristate "ChromeOS Embedded Controller (SPI)"
depends on [31mCONFIG_CROS_EC[0m && [31mCONFIG_SPI[0m
---help---
If you say Y here, you get support for talking to the ChromeOS EC
through a [31mCONFIG_SPI[0m 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 [31mCONFIG_CROS_EC_LPC[0m
tristate "ChromeOS Embedded Controller (LPC)"
depends on [31mCONFIG_CROS_EC[0m && [31mCONFIG_ACPI[0m && ([31mCONFIG_X86[0m || [31mCONFIG_COMPILE_TEST[0m)
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 [31mCONFIG_M[0m here: the
module will be called cros_ec_lpcs.
config [31mCONFIG_CROS_EC_PROTO[0m
bool
help
ChromeOS EC communication protocol helpers.
config [31mCONFIG_CROS_KBD_LED_BACKLIGHT[0m
tristate "Backlight LED support for Chrome OS keyboards"
depends on [31mCONFIG_LEDS_CLASS[0m && [31mCONFIG_ACPI[0m
help
This option enables support for the keyboard backlight LEDs on
select Chrome OS systems.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called cros_kbd_led_backlight.
config [31mCONFIG_CROS_EC_CHARDEV[0m
tristate "ChromeOS EC miscdevice"
depends on [31mCONFIG_MFD_CROS_EC_DEV[0m
default [31mCONFIG_MFD_CROS_EC_DEV[0m
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 [31mCONFIG_M[0m here: the
module will be called cros_ec_chardev.
config [31mCONFIG_CROS_EC_LIGHTBAR[0m
tristate "Chromebook Pixel's lightbar support"
depends on [31mCONFIG_MFD_CROS_EC_DEV[0m
default [31mCONFIG_MFD_CROS_EC_DEV[0m
help
This option exposes the Chromebook Pixel's lightbar to
userspace.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called cros_ec_lightbar.
config [31mCONFIG_CROS_EC_VBC[0m
tristate "ChromeOS EC vboot context support"
depends on [31mCONFIG_MFD_CROS_EC_DEV[0m && [31mCONFIG_OF[0m
default [31mCONFIG_MFD_CROS_EC_DEV[0m
help
This option exposes the ChromeOS EC vboot context nvram to
userspace.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called cros_ec_vbc.
config [31mCONFIG_CROS_EC_DEBUGFS[0m
tristate "Export ChromeOS EC internals in DebugFS"
depends on [31mCONFIG_MFD_CROS_EC_DEV[0m && [31mCONFIG_DEBUG_FS[0m
default [31mCONFIG_MFD_CROS_EC_DEV[0m
help
This option exposes the ChromeOS EC device internals to
userspace.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called cros_ec_debugfs.
config [31mCONFIG_CROS_EC_SYSFS[0m
tristate "ChromeOS EC control and information through sysfs"
depends on [31mCONFIG_MFD_CROS_EC_DEV[0m && [31mCONFIG_SYSFS[0m
default [31mCONFIG_MFD_CROS_EC_DEV[0m
help
This option exposes some sysfs attributes to control and get
information from ChromeOS EC.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called cros_ec_sysfs.
config [31mCONFIG_CROS_USBPD_LOGGER[0m
tristate "Logging driver for USB PD charger"
depends on [31mCONFIG_CHARGER_CROS_USBPD[0m
default y
select [31mCONFIG_RTC_LIB[0m
help
This option enables support for logging event data for the [31mCONFIG_USB[0m PD charger
available in the Embedded Controller on ChromeOS systems.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called cros_usbpd_logger.
source "drivers/platform/chrome/wilco_ec/Kconfig"
endif # CHROMEOS_PLATFORMS