Stefan Reinauer | b89a761 | 2012-03-30 01:01:51 +0200 | [diff] [blame] | 1 | ## This file is part of the coreboot project. |
| 2 | ## |
| 3 | ## Copyright (C) 2011 The ChromiumOS Authors. All rights reserved. |
| 4 | ## |
| 5 | ## This program is free software; you can redistribute it and/or modify |
| 6 | ## it under the terms of the GNU General Public License as published by |
| 7 | ## the Free Software Foundation; version 2 of the License. |
| 8 | ## |
| 9 | ## This program is distributed in the hope that it will be useful, |
| 10 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | ## GNU General Public License for more details. |
| 13 | ## |
| 14 | ## You should have received a copy of the GNU General Public License |
| 15 | ## along with this program; if not, write to the Free Software |
Patrick Georgi | b890a12 | 2015-03-26 15:17:45 +0100 | [diff] [blame] | 16 | ## Foundation, Inc. |
Stefan Reinauer | b89a761 | 2012-03-30 01:01:51 +0200 | [diff] [blame] | 17 | ## |
| 18 | |
Kyösti Mälkki | b1b9c93 | 2013-10-17 16:38:25 +0300 | [diff] [blame] | 19 | config MAINBOARD_HAS_CHROMEOS |
| 20 | def_bool n |
| 21 | |
| 22 | menu "ChromeOS" |
| 23 | depends on MAINBOARD_HAS_CHROMEOS |
| 24 | |
Stefan Reinauer | b89a761 | 2012-03-30 01:01:51 +0200 | [diff] [blame] | 25 | config CHROMEOS |
Kyösti Mälkki | b1b9c93 | 2013-10-17 16:38:25 +0300 | [diff] [blame] | 26 | bool "Build for ChromeOS" |
Kyösti Mälkki | 04f5c4e | 2013-10-17 16:38:56 +0300 | [diff] [blame] | 27 | default n |
Stefan Reinauer | b89a761 | 2012-03-30 01:01:51 +0200 | [diff] [blame] | 28 | select TPM |
Vladimir Serbinenko | 0e90dae | 2015-05-18 10:29:06 +0200 | [diff] [blame^] | 29 | select TPM_INIT_FAILURE_IS_FATAL |
| 30 | select SKIP_TPM_STARTUP_ON_NORMAL_BOOT |
Kyösti Mälkki | 5687fc9 | 2013-11-28 18:11:49 +0200 | [diff] [blame] | 31 | select BOOTMODE_STRAPS |
Patrick Georgi | cfba609 | 2015-04-22 18:25:37 +0200 | [diff] [blame] | 32 | select ELOG |
Stefan Reinauer | b89a761 | 2012-03-30 01:01:51 +0200 | [diff] [blame] | 33 | help |
Stefan Reinauer | 9aea04a | 2012-03-30 12:01:06 -0700 | [diff] [blame] | 34 | Enable ChromeOS specific features like the GPIO sub table in |
| 35 | the coreboot table. NOTE: Enabling this option on an unsupported |
| 36 | board will most likely break your build. |
Stefan Reinauer | b89a761 | 2012-03-30 01:01:51 +0200 | [diff] [blame] | 37 | |
Kyösti Mälkki | b1b9c93 | 2013-10-17 16:38:25 +0300 | [diff] [blame] | 38 | if CHROMEOS |
Stefan Reinauer | f17789c | 2012-04-03 11:22:15 -0700 | [diff] [blame] | 39 | |
Stefan Reinauer | 9aea04a | 2012-03-30 12:01:06 -0700 | [diff] [blame] | 40 | config VBNV_OFFSET |
| 41 | hex |
| 42 | default 0x26 |
Stefan Reinauer | 3e4e303 | 2013-03-20 14:08:04 -0700 | [diff] [blame] | 43 | depends on PC80_SYSTEM |
Stefan Reinauer | 9aea04a | 2012-03-30 12:01:06 -0700 | [diff] [blame] | 44 | help |
| 45 | CMOS offset for VbNv data. This value must match cmos.layout |
| 46 | in the mainboard directory, minus 14 bytes for the RTC. |
Stefan Reinauer | b89a761 | 2012-03-30 01:01:51 +0200 | [diff] [blame] | 47 | |
Stefan Reinauer | 9aea04a | 2012-03-30 12:01:06 -0700 | [diff] [blame] | 48 | config VBNV_SIZE |
| 49 | hex |
| 50 | default 0x10 |
Stefan Reinauer | 3e4e303 | 2013-03-20 14:08:04 -0700 | [diff] [blame] | 51 | depends on PC80_SYSTEM |
Stefan Reinauer | 9aea04a | 2012-03-30 12:01:06 -0700 | [diff] [blame] | 52 | help |
| 53 | CMOS storage size for VbNv data. This value must match cmos.layout |
| 54 | in the mainboard directory. |
Stefan Reinauer | b89a761 | 2012-03-30 01:01:51 +0200 | [diff] [blame] | 55 | |
David Hendricks | dad16b1 | 2014-08-22 15:40:15 -0700 | [diff] [blame] | 56 | config CHROMEOS_VBNV_CMOS |
| 57 | bool "Vboot non-volatile storage in CMOS." |
| 58 | default n |
| 59 | help |
| 60 | VBNV is stored in CMOS |
| 61 | |
| 62 | config CHROMEOS_VBNV_EC |
| 63 | bool "Vboot non-volatile storage in EC." |
| 64 | default n |
| 65 | help |
| 66 | VBNV is stored in EC |
| 67 | |
Daisuke Nojiri | 477dd18 | 2014-10-08 11:32:23 -0700 | [diff] [blame] | 68 | config CHROMEOS_VBNV_FLASH |
| 69 | def_bool n |
| 70 | help |
| 71 | VBNV is stored in flash storage |
| 72 | |
Stefan Reinauer | 9aea04a | 2012-03-30 12:01:06 -0700 | [diff] [blame] | 73 | config CHROMEOS_RAMOOPS |
| 74 | bool "Reserve space for Chrome OS ramoops" |
| 75 | default y |
| 76 | |
Aaron Durbin | 06ece7d | 2014-02-14 00:30:04 -0600 | [diff] [blame] | 77 | config CHROMEOS_RAMOOPS_DYNAMIC |
| 78 | bool "Allocate RAM oops buffer in cbmem" |
| 79 | default n |
Furquan Shaikh | aed887f | 2014-11-08 17:32:38 -0800 | [diff] [blame] | 80 | depends on CHROMEOS_RAMOOPS && HAVE_ACPI_TABLES |
Aaron Durbin | 06ece7d | 2014-02-14 00:30:04 -0600 | [diff] [blame] | 81 | |
Furquan Shaikh | efb546d | 2014-11-08 17:34:27 -0800 | [diff] [blame] | 82 | config CHROMEOS_RAMOOPS_NON_ACPI |
| 83 | bool "Allocate RAM oops buffer in cbmem passed through cb tables to payload" |
| 84 | default n |
| 85 | depends on CHROMEOS_RAMOOPS && !HAVE_ACPI_TABLES |
| 86 | |
Stefan Reinauer | 9aea04a | 2012-03-30 12:01:06 -0700 | [diff] [blame] | 87 | config CHROMEOS_RAMOOPS_RAM_START |
| 88 | hex "Physical address of preserved RAM" |
| 89 | default 0x00f00000 |
Aaron Durbin | 06ece7d | 2014-02-14 00:30:04 -0600 | [diff] [blame] | 90 | depends on CHROMEOS_RAMOOPS && !CHROMEOS_RAMOOPS_DYNAMIC |
Stefan Reinauer | 9aea04a | 2012-03-30 12:01:06 -0700 | [diff] [blame] | 91 | |
| 92 | config CHROMEOS_RAMOOPS_RAM_SIZE |
| 93 | hex "Size of preserved RAM" |
| 94 | default 0x00100000 |
| 95 | depends on CHROMEOS_RAMOOPS |
Stefan Reinauer | f17789c | 2012-04-03 11:22:15 -0700 | [diff] [blame] | 96 | |
Aaron Durbin | fd79562 | 2013-03-01 17:12:26 -0600 | [diff] [blame] | 97 | config EC_SOFTWARE_SYNC |
| 98 | bool "Enable EC software sync" |
| 99 | default n |
Aaron Durbin | 1124cec | 2015-04-22 10:41:42 -0500 | [diff] [blame] | 100 | depends on VBOOT_VERIFY_FIRMWARE |
Aaron Durbin | fd79562 | 2013-03-01 17:12:26 -0600 | [diff] [blame] | 101 | help |
| 102 | EC software sync is a mechanism where the AP helps the EC verify its |
| 103 | firmware similar to how vboot verifies the main system firmware. This |
| 104 | option selects whether depthcharge should support EC software sync. |
| 105 | |
Duncan Laurie | 338c617 | 2014-10-16 17:00:23 -0700 | [diff] [blame] | 106 | config VBOOT_EC_SLOW_UPDATE |
| 107 | bool "EC is slow to update" |
| 108 | default n |
| 109 | depends on EC_SOFTWARE_SYNC |
| 110 | help |
| 111 | Whether the EC (or PD) is slow to update and needs to display a |
| 112 | screen that informs the user the update is happening. |
| 113 | |
| 114 | config VBOOT_OPROM_MATTERS |
| 115 | bool "Video option ROM matters" |
| 116 | default n |
| 117 | depends on VBOOT_VERIFY_FIRMWARE |
| 118 | help |
| 119 | Whether the video option ROM has run matters on this platform. |
| 120 | |
Aaron Durbin | fd79562 | 2013-03-01 17:12:26 -0600 | [diff] [blame] | 121 | config VIRTUAL_DEV_SWITCH |
| 122 | bool "Virtual developer switch support" |
| 123 | default n |
Aaron Durbin | 1124cec | 2015-04-22 10:41:42 -0500 | [diff] [blame] | 124 | depends on VBOOT_VERIFY_FIRMWARE |
Aaron Durbin | fd79562 | 2013-03-01 17:12:26 -0600 | [diff] [blame] | 125 | help |
| 126 | Whether this platform has a virtual developer switch. |
| 127 | |
Aaron Durbin | 6d65f79 | 2015-04-21 15:33:01 -0500 | [diff] [blame] | 128 | config VBOOT_VERIFY_FIRMWARE |
| 129 | bool "Verify firmware with vboot." |
| 130 | default n |
Aaron Durbin | 1124cec | 2015-04-22 10:41:42 -0500 | [diff] [blame] | 131 | depends on CHROMEOS && HAVE_HARD_RESET |
Aaron Durbin | 6d65f79 | 2015-04-21 15:33:01 -0500 | [diff] [blame] | 132 | help |
| 133 | Enabling VBOOT_VERIFY_FIRMWARE will use vboot to verify the components |
| 134 | of the firmware (stages, payload, etc). |
| 135 | |
Stefan Reinauer | c7fe280 | 2012-09-19 11:10:15 -0700 | [diff] [blame] | 136 | config NO_TPM_RESUME |
| 137 | bool |
| 138 | default n |
Stefan Reinauer | c7fe280 | 2012-09-19 11:10:15 -0700 | [diff] [blame] | 139 | help |
| 140 | On some boards the TPM stays powered up in S3. On those |
| 141 | boards, booting Windows will break if the TPM resume command |
| 142 | is sent during an S3 resume. |
Kyösti Mälkki | b1b9c93 | 2013-10-17 16:38:25 +0300 | [diff] [blame] | 143 | |
Daisuke Nojiri | 2624c8d | 2014-11-13 11:35:52 -0800 | [diff] [blame] | 144 | config PHYSICAL_REC_SWITCH |
| 145 | bool "Physical recovery switch is present" |
| 146 | default n |
| 147 | help |
| 148 | Whether this platform has a physical recovery switch |
| 149 | |
Vadim Bendebury | fe4253c | 2015-03-12 19:22:51 -0700 | [diff] [blame] | 150 | config WIPEOUT_SUPPORTED |
| 151 | bool "User is able to request factory reset" |
| 152 | default n |
| 153 | help |
| 154 | When this option is enabled, the firmware provides the ability to |
| 155 | signal the application the need for factory reset (a.k.a. wipe |
| 156 | out) of the device |
| 157 | |
Daisuke Nojiri | 742fc8d | 2014-10-10 10:51:06 -0700 | [diff] [blame] | 158 | source src/vendorcode/google/chromeos/vboot2/Kconfig |
| 159 | |
| 160 | endif # CHROMEOS |
Stefan Reinauer | 3d28479 | 2015-04-04 03:05:17 +0200 | [diff] [blame] | 161 | if !CHROMEOS |
| 162 | config VIRTUAL_DEV_SWITCH |
| 163 | bool |
| 164 | default n |
| 165 | depends on MAINBOARD_HAS_CHROMEOS |
| 166 | help |
| 167 | Whether this platform has a virtual developer switch. |
| 168 | endif |
Kyösti Mälkki | b1b9c93 | 2013-10-17 16:38:25 +0300 | [diff] [blame] | 169 | endmenu |