blob: e81f31d19663b8ee16065fd7e9be22150a954927 [file] [log] [blame]
Patrick Georgic49d7a32020-05-08 22:50:46 +02001## SPDX-License-Identifier: GPL-2.0-only
Stefan Reinauerb89a7612012-03-30 01:01:51 +02002
Kyösti Mälkkib1b9c932013-10-17 16:38:25 +03003config MAINBOARD_HAS_CHROMEOS
4 def_bool n
5
6menu "ChromeOS"
7 depends on MAINBOARD_HAS_CHROMEOS
8
Stefan Reinauerb89a7612012-03-30 01:01:51 +02009config CHROMEOS
Kyösti Mälkkib1b9c932013-10-17 16:38:25 +030010 bool "Build for ChromeOS"
Kyösti Mälkki04f5c4e2013-10-17 16:38:56 +030011 default n
Aaron Durbind10f9d52016-08-10 11:37:14 -050012 select ELOG if BOOT_DEVICE_SUPPORTS_WRITES
Stefan Reinauer4bddb752015-05-28 13:48:47 -070013 select COLLECT_TIMESTAMPS
Furquan Shaikh2a12e2e2016-07-25 11:48:03 -070014 select VBOOT
Patrick Rudolph28cee592018-03-08 15:43:12 +010015 select VPD
Philipp Deppenwiesea558ca92018-07-28 23:30:49 +020016 select VBOOT_SLOTS_RW_AB
Stefan Reinauerb89a7612012-03-30 01:01:51 +020017 help
Stefan Reinauer9aea04a2012-03-30 12:01:06 -070018 Enable ChromeOS specific features like the GPIO sub table in
19 the coreboot table. NOTE: Enabling this option on an unsupported
20 board will most likely break your build.
Stefan Reinauerb89a7612012-03-30 01:01:51 +020021
Kyösti Mälkkib1b9c932013-10-17 16:38:25 +030022if CHROMEOS
Stefan Reinauerf17789c2012-04-03 11:22:15 -070023
Aaron Durbineeb77372017-03-08 11:23:11 -060024config CR50_IMMEDIATELY_COMMIT_FW_SECDATA
25 bool
Philipp Deppenwiesec07f8fb2018-02-27 19:40:52 +010026 default y if TPM_CR50
Aaron Durbineeb77372017-03-08 11:23:11 -060027
Stefan Reinauer9aea04a2012-03-30 12:01:06 -070028config CHROMEOS_RAMOOPS
29 bool "Reserve space for Chrome OS ramoops"
30 default y
31
Stefan Reinauer9aea04a2012-03-30 12:01:06 -070032config CHROMEOS_RAMOOPS_RAM_SIZE
33 hex "Size of preserved RAM"
34 default 0x00100000
35 depends on CHROMEOS_RAMOOPS
Stefan Reinauerf17789c2012-04-03 11:22:15 -070036
Felix Durairaj5d935b32015-11-20 16:18:42 -080037config HAVE_REGULATORY_DOMAIN
38 bool "Add regulatory domain methods"
39 default n
40 help
41 This option is needed to add ACPI regulatory domain methods
42
Aaron Durbinf56c7782017-01-10 17:44:42 -060043config CHROMEOS_DISABLE_PLATFORM_HIERARCHY_ON_RESUME
44 bool
45 default y
46 depends on TPM2 && RESUME_PATH_SAME_AS_BOOT
47 help
48 Disable the platform heirarchy on resume path if the firmware
49 is involved in resume. The hierarchy is disabled prior to jumping
50 to the OS. Note that this option is sepcific to TPM2 boards.
51 This option is auto selected if CHROMEOS because it matches with
52 vboot_reference model which disables the platform hierarchy in
53 the boot loader. However, those operations need to be symmetric
54 on normal boot as well as resume and coreboot is only involved
55 in the resume piece w.r.t. the platform hierarchy.
56
You-Cheng Syu85bb8742019-03-12 13:02:18 +080057config CHROMEOS_USE_EC_WATCHDOG_FLAG
58 bool
59 default n
60 help
61 Use the AP watchdog flag stored in EC.
62
Cheng-Yi Chiangcfde82c2019-10-14 12:10:51 +080063config CHROMEOS_DSM_CALIB
64 bool
65 default n
66 help
67 On some boards, there are calibrated parameters for Dynamic Speaker Management(DSM)
68 stored in VPD. Enable this config to read and parse these VPD values and write them
69 to ACPI DSD table in device driver. These parameters will be applied by kernel driver
70 through device property at boot.
71
Karthikeyan Ramasubramanianb9042cb2020-08-20 16:04:58 -060072config CHROMEOS_CSE_BOARD_RESET_OVERRIDE
73 bool
74 default n
75 depends on SOC_INTEL_CSE_LITE_SKU
76 help
77 On some boards that run old firmware version in cr50, Embedded Controller (EC) needs
78 to trigger the cold reset of Application Processor (AP) when CSE jumps from RO to RW
79 so that cr50 resets the TPM state. This is required on boards where the cr50 firmware
80 does not understand the new cr50 strap config (applicable only to boards using strap
81 config 0xe). Enabling this config will help to override the default global reset.
82
Nick Vaccaroedecf462020-09-22 17:15:49 -070083config CHROMEOS_DRAM_PART_NUMBER_IN_CBI
84 def_bool n
85 depends on EC_GOOGLE_CHROMEEC
86 help
87 Some boards declare the DRAM part number in the CBI instead of the SPD. This option
88 allows those boards to declare that their DRAM part number is stored in the CBI.
89
Daisuke Nojiri742fc8d2014-10-10 10:51:06 -070090endif # CHROMEOS
Kyösti Mälkkib1b9c932013-10-17 16:38:25 +030091endmenu