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 | ## |
Stefan Reinauer | b89a761 | 2012-03-30 01:01:51 +0200 | [diff] [blame] | 14 | |
Kyösti Mälkki | b1b9c93 | 2013-10-17 16:38:25 +0300 | [diff] [blame] | 15 | config MAINBOARD_HAS_CHROMEOS |
| 16 | def_bool n |
| 17 | |
| 18 | menu "ChromeOS" |
| 19 | depends on MAINBOARD_HAS_CHROMEOS |
| 20 | |
Stefan Reinauer | b89a761 | 2012-03-30 01:01:51 +0200 | [diff] [blame] | 21 | config CHROMEOS |
Kyösti Mälkki | b1b9c93 | 2013-10-17 16:38:25 +0300 | [diff] [blame] | 22 | bool "Build for ChromeOS" |
Kyösti Mälkki | 04f5c4e | 2013-10-17 16:38:56 +0300 | [diff] [blame] | 23 | default n |
Aaron Durbin | d10f9d5 | 2016-08-10 11:37:14 -0500 | [diff] [blame] | 24 | select ELOG if BOOT_DEVICE_SUPPORTS_WRITES |
Stefan Reinauer | 4bddb75 | 2015-05-28 13:48:47 -0700 | [diff] [blame] | 25 | select COLLECT_TIMESTAMPS |
Furquan Shaikh | 2a12e2e | 2016-07-25 11:48:03 -0700 | [diff] [blame] | 26 | select VBOOT |
Patrick Rudolph | 28cee59 | 2018-03-08 15:43:12 +0100 | [diff] [blame] | 27 | select VPD |
Philipp Deppenwiese | a558ca9 | 2018-07-28 23:30:49 +0200 | [diff] [blame] | 28 | select VBOOT_SLOTS_RW_AB |
Stefan Reinauer | b89a761 | 2012-03-30 01:01:51 +0200 | [diff] [blame] | 29 | help |
Stefan Reinauer | 9aea04a | 2012-03-30 12:01:06 -0700 | [diff] [blame] | 30 | Enable ChromeOS specific features like the GPIO sub table in |
| 31 | the coreboot table. NOTE: Enabling this option on an unsupported |
| 32 | board will most likely break your build. |
Stefan Reinauer | b89a761 | 2012-03-30 01:01:51 +0200 | [diff] [blame] | 33 | |
Kyösti Mälkki | b1b9c93 | 2013-10-17 16:38:25 +0300 | [diff] [blame] | 34 | if CHROMEOS |
Stefan Reinauer | f17789c | 2012-04-03 11:22:15 -0700 | [diff] [blame] | 35 | |
Aaron Durbin | eeb7737 | 2017-03-08 11:23:11 -0600 | [diff] [blame] | 36 | config CR50_IMMEDIATELY_COMMIT_FW_SECDATA |
| 37 | bool |
Philipp Deppenwiese | c07f8fb | 2018-02-27 19:40:52 +0100 | [diff] [blame] | 38 | default y if TPM_CR50 |
Aaron Durbin | eeb7737 | 2017-03-08 11:23:11 -0600 | [diff] [blame] | 39 | |
Stefan Reinauer | 9aea04a | 2012-03-30 12:01:06 -0700 | [diff] [blame] | 40 | config CHROMEOS_RAMOOPS |
| 41 | bool "Reserve space for Chrome OS ramoops" |
| 42 | default y |
| 43 | |
Aaron Durbin | 06ece7d | 2014-02-14 00:30:04 -0600 | [diff] [blame] | 44 | config CHROMEOS_RAMOOPS_DYNAMIC |
| 45 | bool "Allocate RAM oops buffer in cbmem" |
| 46 | default n |
Furquan Shaikh | aed887f | 2014-11-08 17:32:38 -0800 | [diff] [blame] | 47 | depends on CHROMEOS_RAMOOPS && HAVE_ACPI_TABLES |
Aaron Durbin | 06ece7d | 2014-02-14 00:30:04 -0600 | [diff] [blame] | 48 | |
Furquan Shaikh | efb546d | 2014-11-08 17:34:27 -0800 | [diff] [blame] | 49 | config CHROMEOS_RAMOOPS_NON_ACPI |
| 50 | bool "Allocate RAM oops buffer in cbmem passed through cb tables to payload" |
Julius Werner | c7740d6 | 2016-08-10 17:30:11 -0700 | [diff] [blame] | 51 | default y if !HAVE_ACPI_TABLES |
Furquan Shaikh | efb546d | 2014-11-08 17:34:27 -0800 | [diff] [blame] | 52 | depends on CHROMEOS_RAMOOPS && !HAVE_ACPI_TABLES |
| 53 | |
Stefan Reinauer | 9aea04a | 2012-03-30 12:01:06 -0700 | [diff] [blame] | 54 | config CHROMEOS_RAMOOPS_RAM_START |
| 55 | hex "Physical address of preserved RAM" |
| 56 | default 0x00f00000 |
Aaron Durbin | 06ece7d | 2014-02-14 00:30:04 -0600 | [diff] [blame] | 57 | depends on CHROMEOS_RAMOOPS && !CHROMEOS_RAMOOPS_DYNAMIC |
Stefan Reinauer | 9aea04a | 2012-03-30 12:01:06 -0700 | [diff] [blame] | 58 | |
| 59 | config CHROMEOS_RAMOOPS_RAM_SIZE |
| 60 | hex "Size of preserved RAM" |
| 61 | default 0x00100000 |
| 62 | depends on CHROMEOS_RAMOOPS |
Stefan Reinauer | f17789c | 2012-04-03 11:22:15 -0700 | [diff] [blame] | 63 | |
Stefan Reinauer | c7fe280 | 2012-09-19 11:10:15 -0700 | [diff] [blame] | 64 | config NO_TPM_RESUME |
| 65 | bool |
| 66 | default n |
Stefan Reinauer | c7fe280 | 2012-09-19 11:10:15 -0700 | [diff] [blame] | 67 | help |
| 68 | On some boards the TPM stays powered up in S3. On those |
| 69 | boards, booting Windows will break if the TPM resume command |
| 70 | is sent during an S3 resume. |
Kyösti Mälkki | b1b9c93 | 2013-10-17 16:38:25 +0300 | [diff] [blame] | 71 | |
Felix Durairaj | 5d935b3 | 2015-11-20 16:18:42 -0800 | [diff] [blame] | 72 | config HAVE_REGULATORY_DOMAIN |
| 73 | bool "Add regulatory domain methods" |
| 74 | default n |
| 75 | help |
| 76 | This option is needed to add ACPI regulatory domain methods |
| 77 | |
Aaron Durbin | f56c778 | 2017-01-10 17:44:42 -0600 | [diff] [blame] | 78 | config CHROMEOS_DISABLE_PLATFORM_HIERARCHY_ON_RESUME |
| 79 | bool |
| 80 | default y |
| 81 | depends on TPM2 && RESUME_PATH_SAME_AS_BOOT |
| 82 | help |
| 83 | Disable the platform heirarchy on resume path if the firmware |
| 84 | is involved in resume. The hierarchy is disabled prior to jumping |
| 85 | to the OS. Note that this option is sepcific to TPM2 boards. |
| 86 | This option is auto selected if CHROMEOS because it matches with |
| 87 | vboot_reference model which disables the platform hierarchy in |
| 88 | the boot loader. However, those operations need to be symmetric |
| 89 | on normal boot as well as resume and coreboot is only involved |
| 90 | in the resume piece w.r.t. the platform hierarchy. |
| 91 | |
Daisuke Nojiri | 742fc8d | 2014-10-10 10:51:06 -0700 | [diff] [blame] | 92 | endif # CHROMEOS |
Kyösti Mälkki | b1b9c93 | 2013-10-17 16:38:25 +0300 | [diff] [blame] | 93 | endmenu |