^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: GPL-2.0-only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) # Platform support for Chrome OS hardware (Chromebooks and Chromeboxes)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) menuconfig CHROME_PLATFORMS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) bool "Platform support for Chrome hardware"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) depends on X86 || ARM || ARM64 || COMPILE_TEST
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) Say Y here to get to see options for platform support for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) various Chromebooks and Chromeboxes. This option alone does
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) not add any kernel code.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) If you say N, all options in this submenu will be skipped and disabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) if CHROME_PLATFORMS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) config CHROMEOS_LAPTOP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) tristate "Chrome OS Laptop"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) depends on I2C && DMI && X86
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) This driver instantiates i2c and smbus devices such as
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) light sensors and touchpads.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) If you have a supported Chromebook, choose Y or M here.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) The module will be called chromeos_laptop.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) config CHROMEOS_PSTORE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) tristate "Chrome OS pstore support"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) depends on X86
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) This module instantiates the persistent storage on x86 ChromeOS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) devices. It can be used to store away console logs and crash
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) information across reboots.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) The range of memory used is 0xf00000-0x1000000, traditionally
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) the memory used to back VGA controller memory.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) If you have a supported Chromebook, choose Y or M here.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) The module will be called chromeos_pstore.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) config CHROMEOS_TBMC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) tristate "ChromeOS Tablet Switch Controller"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) depends on ACPI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) depends on INPUT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) This option adds a driver for the tablet switch on
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) select Chrome OS systems.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) To compile this driver as a module, choose M here: the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) module will be called chromeos_tbmc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) config CROS_EC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) tristate "ChromeOS Embedded Controller"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) select CROS_EC_PROTO
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) depends on X86 || ARM || ARM64 || COMPILE_TEST
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) If you say Y here you get support for the ChromeOS Embedded
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) Controller (EC) providing keyboard, battery and power services.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) You also need to enable the driver for the bus you are using. The
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) protocol for talking to the EC is defined by the bus driver.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) To compile this driver as a module, choose M here: the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) module will be called cros_ec.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) config CROS_EC_I2C
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) tristate "ChromeOS Embedded Controller (I2C)"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) depends on CROS_EC && I2C
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) If you say Y here, you get support for talking to the ChromeOS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) EC through an I2C bus. This uses a simple byte-level protocol with
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) a checksum. Failing accesses will be retried three times to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) improve reliability.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) config CROS_EC_RPMSG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) tristate "ChromeOS Embedded Controller (rpmsg)"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) depends on CROS_EC && RPMSG && OF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) If you say Y here, you get support for talking to the ChromeOS EC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) through rpmsg. This uses a simple byte-level protocol with a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) checksum. Also since there's no addition EC-to-host interrupt, this
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) use a byte in message to distinguish host event from host command.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) To compile this driver as a module, choose M here: the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) module will be called cros_ec_rpmsg.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) config CROS_EC_ISHTP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) tristate "ChromeOS Embedded Controller (ISHTP)"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) depends on CROS_EC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) depends on INTEL_ISH_HID
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) If you say Y here, you get support for talking to the ChromeOS EC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) firmware running on Intel Integrated Sensor Hub (ISH), using the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) ISH Transport protocol (ISH-TP). This uses a simple byte-level
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) protocol with a checksum.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) To compile this driver as a module, choose M here: the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) module will be called cros_ec_ishtp.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) config CROS_EC_SPI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) tristate "ChromeOS Embedded Controller (SPI)"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) depends on CROS_EC && SPI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) If you say Y here, you get support for talking to the ChromeOS EC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) through a SPI bus, using a byte-level protocol. Since the EC's
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) response time cannot be guaranteed, we support ignoring
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 'pre-amble' bytes before the response actually starts.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) config CROS_EC_LPC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) tristate "ChromeOS Embedded Controller (LPC)"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) depends on CROS_EC && ACPI && (X86 || COMPILE_TEST)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) If you say Y here, you get support for talking to the ChromeOS EC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) over an LPC bus, including the LPC Microchip EC (MEC) variant.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) This uses a simple byte-level protocol with a checksum. This is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) used for userspace access only. The kernel typically has its own
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) communication methods.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) To compile this driver as a module, choose M here: the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) module will be called cros_ec_lpcs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) config CROS_EC_PROTO
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) ChromeOS EC communication protocol helpers.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) config CROS_KBD_LED_BACKLIGHT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) tristate "Backlight LED support for Chrome OS keyboards"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) depends on LEDS_CLASS && ACPI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) This option enables support for the keyboard backlight LEDs on
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) select Chrome OS systems.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) To compile this driver as a module, choose M here: the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) module will be called cros_kbd_led_backlight.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) config CROS_EC_CHARDEV
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) tristate "ChromeOS EC miscdevice"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) depends on MFD_CROS_EC_DEV
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) default MFD_CROS_EC_DEV
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) This driver adds file operations support to talk with the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) ChromeOS EC from userspace via a character device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) To compile this driver as a module, choose M here: the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) module will be called cros_ec_chardev.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) config CROS_EC_LIGHTBAR
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) tristate "Chromebook Pixel's lightbar support"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) depends on MFD_CROS_EC_DEV
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) default MFD_CROS_EC_DEV
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) This option exposes the Chromebook Pixel's lightbar to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) userspace.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) To compile this driver as a module, choose M here: the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) module will be called cros_ec_lightbar.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) config CROS_EC_VBC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) tristate "ChromeOS EC vboot context support"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) depends on MFD_CROS_EC_DEV && OF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) default MFD_CROS_EC_DEV
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) This option exposes the ChromeOS EC vboot context nvram to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) userspace.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) To compile this driver as a module, choose M here: the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) module will be called cros_ec_vbc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) config CROS_EC_DEBUGFS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) tristate "Export ChromeOS EC internals in DebugFS"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) depends on MFD_CROS_EC_DEV && DEBUG_FS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) default MFD_CROS_EC_DEV
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) This option exposes the ChromeOS EC device internals to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) userspace.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) To compile this driver as a module, choose M here: the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) module will be called cros_ec_debugfs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) config CROS_EC_SENSORHUB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) tristate "ChromeOS EC MEMS Sensor Hub"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) depends on MFD_CROS_EC_DEV
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) default MFD_CROS_EC_DEV
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) Allow loading IIO sensors. This driver is loaded by MFD and will in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) turn query the EC and register the sensors.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) It also spreads the sensor data coming from the EC to the IIO sensor
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) object.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) To compile this driver as a module, choose M here: the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) module will be called cros_ec_sensorhub.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) config CROS_EC_SYSFS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) tristate "ChromeOS EC control and information through sysfs"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) depends on MFD_CROS_EC_DEV && SYSFS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) default MFD_CROS_EC_DEV
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) This option exposes some sysfs attributes to control and get
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) information from ChromeOS EC.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) To compile this driver as a module, choose M here: the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) module will be called cros_ec_sysfs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) config CROS_EC_TYPEC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) tristate "ChromeOS EC Type-C Connector Control"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) depends on MFD_CROS_EC_DEV && TYPEC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) depends on CROS_USBPD_NOTIFY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) depends on USB_ROLE_SWITCH
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) default MFD_CROS_EC_DEV
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) If you say Y here, you get support for accessing Type C connector
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) information from the Chrome OS EC.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) To compile this driver as a module, choose M here: the module will be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) called cros_ec_typec.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) config CROS_USBPD_LOGGER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) tristate "Logging driver for USB PD charger"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) depends on CHARGER_CROS_USBPD
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) default y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) select RTC_LIB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) This option enables support for logging event data for the USB PD charger
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) available in the Embedded Controller on ChromeOS systems.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) To compile this driver as a module, choose M here: the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) module will be called cros_usbpd_logger.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232) config CROS_USBPD_NOTIFY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233) tristate "ChromeOS Type-C power delivery event notifier"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) depends on MFD_CROS_EC_DEV
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) default MFD_CROS_EC_DEV
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) If you say Y here, you get support for Type-C PD event notifications
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238) from the ChromeOS EC. On ACPI platorms this driver will bind to the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239) GOOG0003 ACPI device, and on platforms which don't have this device it
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240) will get initialized on ECs which support the feature
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241) EC_FEATURE_USB_PD.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 243) To compile this driver as a module, choose M here: the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 244) module will be called cros_usbpd_notify.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 245)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 246) source "drivers/platform/chrome/wilco_ec/Kconfig"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 247)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 248) endif # CHROMEOS_PLATFORMS