Stefan Reinauer | d6682e8 | 2013-02-21 15:39:35 -0800 | [diff] [blame] | 1 | config EC_GOOGLE_CHROMEEC |
| 2 | bool |
| 3 | help |
| 4 | Google's Chrome EC |
| 5 | |
Shawn Nematbakhsh | 37b7a66 | 2015-03-24 11:07:51 -0700 | [diff] [blame] | 6 | config 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 Shaikh | a209483 | 2017-09-25 08:04:49 -0700 | [diff] [blame] | 14 | config 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 Lin | 6bfbb33 | 2013-04-15 18:27:24 +0800 | [diff] [blame] | 20 | config EC_GOOGLE_CHROMEEC_I2C |
Gabe Black | 3fb30ee | 2013-07-09 13:15:05 -0700 | [diff] [blame] | 21 | depends on EC_GOOGLE_CHROMEEC |
Hung-Te Lin | a904f9e | 2013-04-11 15:58:12 +0800 | [diff] [blame] | 22 | bool |
Gabe Black | 3fb30ee | 2013-07-09 13:15:05 -0700 | [diff] [blame] | 23 | default n |
Hung-Te Lin | 6bfbb33 | 2013-04-15 18:27:24 +0800 | [diff] [blame] | 24 | help |
| 25 | Google's Chrome EC via I2C bus. |
| 26 | |
| 27 | config EC_GOOGLE_CHROMEEC_I2C_BUS |
| 28 | depends on EC_GOOGLE_CHROMEEC_I2C |
| 29 | hex "I2C bus for Google's Chrome EC" |
| 30 | |
| 31 | config EC_GOOGLE_CHROMEEC_I2C_CHIP |
| 32 | depends on EC_GOOGLE_CHROMEEC_I2C |
| 33 | hex |
| 34 | default 0x1e |
| 35 | |
Aaron Durbin | aee78f0 | 2014-08-06 14:38:52 -0500 | [diff] [blame] | 36 | config 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 Lin | 6bfbb33 | 2013-04-15 18:27:24 +0800 | [diff] [blame] | 43 | config EC_GOOGLE_CHROMEEC_LPC |
Shawn Nematbakhsh | 37b7a66 | 2015-03-24 11:07:51 -0700 | [diff] [blame] | 44 | depends on EC_GOOGLE_CHROMEEC && ARCH_X86 # Needs Plug-and-play. |
Hung-Te Lin | 0ee7062 | 2013-06-26 19:42:12 +0800 | [diff] [blame] | 45 | def_bool y |
Hung-Te Lin | a904f9e | 2013-04-11 15:58:12 +0800 | [diff] [blame] | 46 | help |
| 47 | Google Chrome EC via LPC bus. |
Hung-Te Lin | 0ee7062 | 2013-06-26 19:42:12 +0800 | [diff] [blame] | 48 | |
Shawn Nematbakhsh | 5725ea3 | 2015-04-01 16:52:37 -0700 | [diff] [blame] | 49 | config 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 Laurie | ab40b91 | 2015-09-04 10:14:18 -0700 | [diff] [blame] | 55 | config 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 Lin | 0ee7062 | 2013-06-26 19:42:12 +0800 | [diff] [blame] | 61 | config 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 | |
| 67 | config EC_GOOGLE_CHROMEEC_SPI_BUS |
| 68 | depends on EC_GOOGLE_CHROMEEC_SPI |
Vladimir Serbinenko | 42f42ff | 2016-03-04 09:31:14 +0100 | [diff] [blame] | 69 | hex |
Hung-Te Lin | 0ee7062 | 2013-06-26 19:42:12 +0800 | [diff] [blame] | 70 | |
David Hendricks | 767d245 | 2014-09-27 20:04:49 -0700 | [diff] [blame] | 71 | config 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 Lin | 0ee7062 | 2013-06-26 19:42:12 +0800 | [diff] [blame] | 78 | config EC_GOOGLE_CHROMEEC_SPI_CHIP |
| 79 | depends on EC_GOOGLE_CHROMEEC_SPI |
| 80 | hex |
Martin Roth | 3b87812 | 2016-09-30 14:43:01 -0600 | [diff] [blame] | 81 | default 0x0 |
Patrick Georgi | e995dad2 | 2016-02-01 15:26:26 +0100 | [diff] [blame] | 82 | |
Patrick Georgi | e995dad2 | 2016-02-01 15:26:26 +0100 | [diff] [blame] | 83 | config EC_GOOGLE_CHROMEEC_BOARDNAME |
Paul Kocialkowski | 8ff2480 | 2016-08-02 14:28:26 +0200 | [diff] [blame] | 84 | depends on EC_GOOGLE_CHROMEEC |
Patrick Georgi | e995dad2 | 2016-02-01 15:26:26 +0100 | [diff] [blame] | 85 | 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 | |
| 92 | config EC_GOOGLE_CHROMEEC_PD_BOARDNAME |
Paul Kocialkowski | 8ff2480 | 2016-08-02 14:28:26 +0200 | [diff] [blame] | 93 | depends on EC_GOOGLE_CHROMEEC_PD |
Patrick Georgi | e995dad2 | 2016-02-01 15:26:26 +0100 | [diff] [blame] | 94 | 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 Glass | 7865932 | 2016-06-10 20:58:24 -0600 | [diff] [blame] | 100 | |
| 101 | config 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 Kocialkowski | 8ff2480 | 2016-08-02 14:28:26 +0200 | [diff] [blame] | 107 | |
| 108 | choice |
| 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 | |
| 130 | endchoice |
| 131 | |
| 132 | config 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 | |
| 138 | choice |
| 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 | |
| 160 | endchoice |
| 161 | |
| 162 | config 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 Shaikh | cd2afc0 | 2016-11-15 20:33:29 -0800 | [diff] [blame] | 167 | |
| 168 | config EC_GOOGLE_CHROMEEC_SWITCHES |
Julius Werner | 58c3938 | 2017-02-13 17:53:29 -0800 | [diff] [blame] | 169 | depends on EC_GOOGLE_CHROMEEC && VBOOT |
Furquan Shaikh | cd2afc0 | 2016-11-15 20:33:29 -0800 | [diff] [blame] | 170 | bool |
| 171 | help |
| 172 | Enable support for Chrome OS mode switches provided by the Chrome OS |
| 173 | EC. |