1 # SPDX-License-Identifier: GPL-2.0-only
3 # Platform support for Chrome OS hardware (Chromebooks and Chromeboxes)
6 menuconfig CHROME_PLATFORMS
7 bool "Platform support for Chrome hardware"
8 depends on X86 || ARM || ARM64 || COMPILE_TEST
10 Say Y here to get to see options for platform support for
11 various Chromebooks and Chromeboxes. This option alone does
12 not add any kernel code.
14 If you say N, all options in this submenu will be skipped and disabled.
18 config CHROMEOS_LAPTOP
19 tristate "Chrome OS Laptop"
20 depends on I2C && DMI && X86
22 This driver instantiates i2c and smbus devices such as
23 light sensors and touchpads.
25 If you have a supported Chromebook, choose Y or M here.
26 The module will be called chromeos_laptop.
28 config CHROMEOS_PSTORE
29 tristate "Chrome OS pstore support"
32 This module instantiates the persistent storage on x86 ChromeOS
33 devices. It can be used to store away console logs and crash
34 information across reboots.
36 The range of memory used is 0xf00000-0x1000000, traditionally
37 the memory used to back VGA controller memory.
39 If you have a supported Chromebook, choose Y or M here.
40 The module will be called chromeos_pstore.
43 tristate "ChromeOS Tablet Switch Controller"
47 This option adds a driver for the tablet switch on
48 select Chrome OS systems.
50 To compile this driver as a module, choose M here: the
51 module will be called chromeos_tbmc.
54 tristate "ChromeOS Embedded Controller (I2C)"
55 depends on MFD_CROS_EC && I2C
58 If you say Y here, you get support for talking to the ChromeOS
59 EC through an I2C bus. This uses a simple byte-level protocol with
60 a checksum. Failing accesses will be retried three times to
64 tristate "ChromeOS Embedded Controller (rpmsg)"
65 depends on MFD_CROS_EC && RPMSG && OF
67 If you say Y here, you get support for talking to the ChromeOS EC
68 through rpmsg. This uses a simple byte-level protocol with a
69 checksum. Also since there's no addition EC-to-host interrupt, this
70 use a byte in message to distinguish host event from host command.
72 To compile this driver as a module, choose M here: the
73 module will be called cros_ec_rpmsg.
76 tristate "ChromeOS Embedded Controller (SPI)"
77 depends on MFD_CROS_EC && SPI
80 If you say Y here, you get support for talking to the ChromeOS EC
81 through a SPI bus, using a byte-level protocol. Since the EC's
82 response time cannot be guaranteed, we support ignoring
83 'pre-amble' bytes before the response actually starts.
86 tristate "ChromeOS Embedded Controller (LPC)"
87 depends on MFD_CROS_EC && ACPI && (X86 || COMPILE_TEST)
89 If you say Y here, you get support for talking to the ChromeOS EC
90 over an LPC bus. This uses a simple byte-level protocol with a
91 checksum. This is used for userspace access only. The kernel
92 typically has its own communication methods.
94 To compile this driver as a module, choose M here: the
95 module will be called cros_ec_lpc.
97 config CROS_EC_LPC_MEC
98 bool "ChromeOS Embedded Controller LPC Microchip EC (MEC) variant"
99 depends on CROS_EC_LPC
102 If you say Y here, a variant LPC protocol for the Microchip EC
103 will be used. Note that this variant is not backward compatible
104 with non-Microchip ECs.
106 If you have a ChromeOS Embedded Controller Microchip EC variant
112 ChromeOS EC communication protocol helpers.
114 config CROS_KBD_LED_BACKLIGHT
115 tristate "Backlight LED support for Chrome OS keyboards"
116 depends on LEDS_CLASS && ACPI
118 This option enables support for the keyboard backlight LEDs on
119 select Chrome OS systems.
121 To compile this driver as a module, choose M here: the
122 module will be called cros_kbd_led_backlight.
124 config CROS_EC_LIGHTBAR
125 tristate "Chromebook Pixel's lightbar support"
126 depends on MFD_CROS_EC_CHARDEV
127 default MFD_CROS_EC_CHARDEV
129 This option exposes the Chromebook Pixel's lightbar to
132 To compile this driver as a module, choose M here: the
133 module will be called cros_ec_lightbar.
136 tristate "ChromeOS EC vboot context support"
137 depends on MFD_CROS_EC_CHARDEV && OF
138 default MFD_CROS_EC_CHARDEV
140 This option exposes the ChromeOS EC vboot context nvram to
143 To compile this driver as a module, choose M here: the
144 module will be called cros_ec_vbc.
146 config CROS_EC_DEBUGFS
147 tristate "Export ChromeOS EC internals in DebugFS"
148 depends on MFD_CROS_EC_CHARDEV && DEBUG_FS
149 default MFD_CROS_EC_CHARDEV
151 This option exposes the ChromeOS EC device internals to
154 To compile this driver as a module, choose M here: the
155 module will be called cros_ec_debugfs.
158 tristate "ChromeOS EC control and information through sysfs"
159 depends on MFD_CROS_EC_CHARDEV && SYSFS
160 default MFD_CROS_EC_CHARDEV
162 This option exposes some sysfs attributes to control and get
163 information from ChromeOS EC.
165 To compile this driver as a module, choose M here: the
166 module will be called cros_ec_sysfs.
168 config CROS_USBPD_LOGGER
169 tristate "Logging driver for USB PD charger"
170 depends on CHARGER_CROS_USBPD
174 This option enables support for logging event data for the USB PD charger
175 available in the Embedded Controller on ChromeOS systems.
177 To compile this driver as a module, choose M here: the
178 module will be called cros_usbpd_logger.
180 source "drivers/platform/chrome/wilco_ec/Kconfig"
182 endif # CHROMEOS_PLATFORMS