xref: /openbmc/u-boot/drivers/misc/Kconfig (revision 6fb9ac15ebac4bcc4864be7958bf9b2b2b7420de)
1*6fb9ac15SSimon Glassconfig CMD_CROS_EC
2*6fb9ac15SSimon Glass	bool "Enable crosec command"
3*6fb9ac15SSimon Glass	depends on CROS_EC
4*6fb9ac15SSimon Glass	help
5*6fb9ac15SSimon Glass	  Enable command-line access to the Chrome OS EC (Embedded
6*6fb9ac15SSimon Glass	  Controller). This provides the 'crosec' command which has
7*6fb9ac15SSimon Glass	  a number of sub-commands for performing EC tasks such as
8*6fb9ac15SSimon Glass	  updating its flash, accessing a small saved context area
9*6fb9ac15SSimon Glass	  and talking to the I2C bus behind the EC (if there is one).
10*6fb9ac15SSimon Glass
11*6fb9ac15SSimon Glassconfig CROS_EC
12*6fb9ac15SSimon Glass	bool "Enable Chrome OS EC"
13*6fb9ac15SSimon Glass	help
14*6fb9ac15SSimon Glass	  Enable access to the Chrome OS EC. This is a separate
15*6fb9ac15SSimon Glass	  microcontroller typically available on a SPI bus on Chromebooks. It
16*6fb9ac15SSimon Glass	  provides access to the keyboard, some internal storage and may
17*6fb9ac15SSimon Glass	  control access to the battery and main PMIC depending on the
18*6fb9ac15SSimon Glass	  device. You can use the 'crosec' command to access it.
19*6fb9ac15SSimon Glass
20*6fb9ac15SSimon Glassconfig CROS_EC_I2C
21*6fb9ac15SSimon Glass	bool "Enable Chrome OS EC I2C driver"
22*6fb9ac15SSimon Glass	depends on CROS_EC
23*6fb9ac15SSimon Glass	help
24*6fb9ac15SSimon Glass	  Enable I2C access to the Chrome OS EC. This is used on older
25*6fb9ac15SSimon Glass	  ARM Chromebooks such as snow and spring before the standard bus
26*6fb9ac15SSimon Glass	  changed to SPI. The EC will accept commands across the I2C using
27*6fb9ac15SSimon Glass	  a special message protocol, and provide responses.
28*6fb9ac15SSimon Glass
29*6fb9ac15SSimon Glassconfig CROS_EC_LPC
30*6fb9ac15SSimon Glass	bool "Enable Chrome OS EC LPC driver"
31*6fb9ac15SSimon Glass	depends on CROS_EC
32*6fb9ac15SSimon Glass	help
33*6fb9ac15SSimon Glass	  Enable I2C access to the Chrome OS EC. This is used on x86
34*6fb9ac15SSimon Glass	  Chromebooks such as link and falco. The keyboard is provided
35*6fb9ac15SSimon Glass	  through a legacy port interface, so on x86 machines the main
36*6fb9ac15SSimon Glass	  function of the EC is power and thermal management.
37*6fb9ac15SSimon Glass
38*6fb9ac15SSimon Glassconfig CROS_EC_SPI
39*6fb9ac15SSimon Glass	bool "Enable Chrome OS EC SPI driver"
40*6fb9ac15SSimon Glass	depends on CROS_EC
41*6fb9ac15SSimon Glass	help
42*6fb9ac15SSimon Glass	  Enable SPI access to the Chrome OS EC. This is used on newer
43*6fb9ac15SSimon Glass	  ARM Chromebooks such as pit, pi and nyan-big. The SPI interface
44*6fb9ac15SSimon Glass	  provides a faster and more robust interface than I2C but the bugs
45*6fb9ac15SSimon Glass	  are less interesting.
46*6fb9ac15SSimon Glass
47f94a1bedSSimon Glassconfig DM_CROS_EC
48f94a1bedSSimon Glass	bool "Enable Driver Model for Chrome OS EC"
49f94a1bedSSimon Glass	depends on DM
50f94a1bedSSimon Glass	help
51f94a1bedSSimon Glass	  Enable driver model for the Chrome OS EC interface. This
52f94a1bedSSimon Glass	  allows the cros_ec SPI driver to operate with CONFIG_DM_SPI
53f94a1bedSSimon Glass	  but otherwise makes few changes. Since cros_ec also supports
54*6fb9ac15SSimon Glass	  LPC (which doesn't support driver model yet), a full
55f94a1bedSSimon Glass	  conversion is not yet possible.
56