blob: f05f15749edd17b3000feb4790704470fb328031 [file] [log] [blame]
Stefan Reinauerd6682e82013-02-21 15:39:35 -08001config EC_GOOGLE_CHROMEEC
2 bool
3 help
4 Google's Chrome EC
5
Shawn Nematbakhsh37b7a662015-03-24 11:07:51 -07006config EC_GOOGLE_CHROMEEC_ACPI_MEMMAP
7 depends on EC_GOOGLE_CHROMEEC_LPC
8 def_bool n
9 help
10 When defined, ACPI accesses EC memmap data on ports 66h/62h. When
11 not defined, the memmap data is instead accessed on 900h-9ffh via
12 the LPC bus.
13
Furquan Shaikha2094832017-09-25 08:04:49 -070014config EC_GOOGLE_CHROMEEC_BOARDID
15 depends on EC_GOOGLE_CHROMEEC
16 def_bool n
17 help
18 Provides common routine for reading boardid from Chrome EC.
19
Hung-Te Lin6bfbb332013-04-15 18:27:24 +080020config EC_GOOGLE_CHROMEEC_I2C
Gabe Black3fb30ee2013-07-09 13:15:05 -070021 depends on EC_GOOGLE_CHROMEEC
Hung-Te Lina904f9e2013-04-11 15:58:12 +080022 bool
Gabe Black3fb30ee2013-07-09 13:15:05 -070023 default n
Hung-Te Lin6bfbb332013-04-15 18:27:24 +080024 help
25 Google's Chrome EC via I2C bus.
26
27config EC_GOOGLE_CHROMEEC_I2C_BUS
28 depends on EC_GOOGLE_CHROMEEC_I2C
29 hex "I2C bus for Google's Chrome EC"
30
31config EC_GOOGLE_CHROMEEC_I2C_CHIP
32 depends on EC_GOOGLE_CHROMEEC_I2C
33 hex
34 default 0x1e
35
Aaron Durbinaee78f02014-08-06 14:38:52 -050036config EC_GOOGLE_CHROMEEC_I2C_PROTO3
37 depends on EC_GOOGLE_CHROMEEC_I2C
38 bool
39 default n
40 help
41 Use only proto3 for i2c EC communication.
42
Hung-Te Lin6bfbb332013-04-15 18:27:24 +080043config EC_GOOGLE_CHROMEEC_LPC
Shawn Nematbakhsh37b7a662015-03-24 11:07:51 -070044 depends on EC_GOOGLE_CHROMEEC && ARCH_X86 # Needs Plug-and-play.
Hung-Te Lin0ee70622013-06-26 19:42:12 +080045 def_bool y
Hung-Te Lina904f9e2013-04-11 15:58:12 +080046 help
47 Google Chrome EC via LPC bus.
Hung-Te Lin0ee70622013-06-26 19:42:12 +080048
Shawn Nematbakhsh5725ea32015-04-01 16:52:37 -070049config EC_GOOGLE_CHROMEEC_MEC
50 depends on EC_GOOGLE_CHROMEEC_LPC
51 def_bool n
52 help
53 Microchip EC variant for LPC register access.
54
Duncan Laurieab40b912015-09-04 10:14:18 -070055config EC_GOOGLE_CHROMEEC_PD
56 depends on EC_GOOGLE_CHROMEEC
57 def_bool n
58 help
59 Indicates that Google's Chrome USB PD chip is present.
60
Hung-Te Lin0ee70622013-06-26 19:42:12 +080061config EC_GOOGLE_CHROMEEC_SPI
62 depends on EC_GOOGLE_CHROMEEC
63 def_bool n
64 help
65 Google's Chrome EC via SPI bus.
66
67config EC_GOOGLE_CHROMEEC_SPI_BUS
68 depends on EC_GOOGLE_CHROMEEC_SPI
Vladimir Serbinenko42f42ff2016-03-04 09:31:14 +010069 hex
Hung-Te Lin0ee70622013-06-26 19:42:12 +080070
David Hendricks767d2452014-09-27 20:04:49 -070071config EC_GOOGLE_CHROMEEC_SPI_WAKEUP_DELAY_US
72 depends on EC_GOOGLE_CHROMEEC_SPI
73 int
74 default 0
75 help
76 Force delay after asserting /CS to allow EC to wakeup.
77
Hung-Te Lin0ee70622013-06-26 19:42:12 +080078config EC_GOOGLE_CHROMEEC_SPI_CHIP
79 depends on EC_GOOGLE_CHROMEEC_SPI
80 hex
Martin Roth3b878122016-09-30 14:43:01 -060081 default 0x0
Patrick Georgie995dad22016-02-01 15:26:26 +010082
Patrick Georgie995dad22016-02-01 15:26:26 +010083config EC_GOOGLE_CHROMEEC_BOARDNAME
Paul Kocialkowski8ff24802016-08-02 14:28:26 +020084 depends on EC_GOOGLE_CHROMEEC
Patrick Georgie995dad22016-02-01 15:26:26 +010085 string "Chrome EC board name for EC"
86 default ""
87 help
88 The board name used in the Chrome EC code base to build
89 the EC firmware. If set, the coreboot build with also
90 build the EC firmware and add it to the image.
91
92config EC_GOOGLE_CHROMEEC_PD_BOARDNAME
Paul Kocialkowski8ff24802016-08-02 14:28:26 +020093 depends on EC_GOOGLE_CHROMEEC_PD
Patrick Georgie995dad22016-02-01 15:26:26 +010094 string "Chrome EC board name for PD"
95 default ""
96 help
97 The board name used in the Chrome EC code base to build
98 the PD firmware. If set, the coreboot build with also
99 build the EC firmware and add it to the image.
Simon Glass78659322016-06-10 20:58:24 -0600100
101config EC_GOOGLE_CHROMEEC_RTC
102 depends on EC_GOOGLE_CHROMEEC
103 bool "Enable Chrome OS EC RTC"
104 help
105 Enable support for the real-time clock on the Chrome OS EC. This
106 uses the EC_CMD_RTC_GET_VALUE command to read the current time.
Paul Kocialkowski8ff24802016-08-02 14:28:26 +0200107
108choice
109 prompt "Chrome EC firmware source"
110 depends on EC_GOOGLE_CHROMEEC
111 default EC_GOOGLE_CHROMEEC_FIRMWARE_BUILTIN if EC_GOOGLE_CHROMEEC_BOARDNAME != ""
112 default EC_GOOGLE_CHROMEEC_FIRMWARE_NONE
113
114 config EC_GOOGLE_CHROMEEC_FIRMWARE_NONE
115 bool "No EC firmware is included"
116 help
117 Disable building and including any EC firmware in the image.
118
119 config EC_GOOGLE_CHROMEEC_FIRMWARE_EXTERNAL
120 bool "External EC firmware is included"
121 help
122 Include EC firmware binary in the image from an external source.
123 It is expected to be built externally.
124
125 config EC_GOOGLE_CHROMEEC_FIRMWARE_BUILTIN
126 bool "Builtin EC firmware is included"
127 help
128 Build and include EC firmware binary in the image.
129
130endchoice
131
132config EC_GOOGLE_CHROMEEC_FIRMWARE_FILE
133 string "Chrome EC firmware path and filename"
134 depends on EC_GOOGLE_CHROMEEC_FIRMWARE_EXTERNAL
135 help
136 The path and filename of the EC firmware file to use.
137
138choice
139 prompt "Chrome EC firmware source for PD"
140 depends on EC_GOOGLE_CHROMEEC_PD
141 default EC_GOOGLE_CHROMEEC_PD_FIRMWARE_BUILTIN if EC_GOOGLE_CHROMEEC_PD_BOARDNAME != ""
142 default EC_GOOGLE_CHROMEEC_PD_FIRMWARE_NONE
143
144 config EC_GOOGLE_CHROMEEC_PD_FIRMWARE_NONE
145 bool "No PD firmware is included"
146 help
147 Disable building and including any PD firmware in the image.
148
149 config EC_GOOGLE_CHROMEEC_PD_FIRMWARE_EXTERNAL
150 bool "External PD firmware is included"
151 help
152 Include PD firmware binary in the image from an external source.
153 It is expected to be built externally.
154
155 config EC_GOOGLE_CHROMEEC_PD_FIRMWARE_BUILTIN
156 bool "Builtin PD firmware is included"
157 help
158 Build and include PD firmware binary in the image.
159
160endchoice
161
162config EC_GOOGLE_CHROMEEC_PD_FIRMWARE_FILE
163 string "Chrome EC firmware path and filename for PD"
164 depends on EC_GOOGLE_CHROMEEC_PD_FIRMWARE_EXTERNAL
165 help
166 The path and filename of the PD firmware file to use.
Furquan Shaikhcd2afc02016-11-15 20:33:29 -0800167
168config EC_GOOGLE_CHROMEEC_SWITCHES
Julius Werner58c39382017-02-13 17:53:29 -0800169 depends on EC_GOOGLE_CHROMEEC && VBOOT
Furquan Shaikhcd2afc02016-11-15 20:33:29 -0800170 bool
171 help
172 Enable support for Chrome OS mode switches provided by the Chrome OS
173 EC.