Martin Roth | a642716 | 2014-04-25 14:12:13 -0600 | [diff] [blame] | 1 | ## |
| 2 | ## This file is part of the coreboot project. |
| 3 | ## |
| 4 | ## Copyright (C) 2014 Sage Electronic Engineering, LLC. |
| 5 | ## |
| 6 | ## This program is free software; you can redistribute it and/or modify |
| 7 | ## it under the terms of the GNU General Public License as published by |
| 8 | ## the Free Software Foundation; version 2 of the License. |
| 9 | ## |
| 10 | ## This program is distributed in the hope that it will be useful, |
| 11 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | ## GNU General Public License for more details. |
| 14 | ## |
Martin Roth | a642716 | 2014-04-25 14:12:13 -0600 | [diff] [blame] | 15 | |
Marc Jones | 7868797 | 2015-04-22 23:16:31 -0600 | [diff] [blame] | 16 | if PLATFORM_USES_FSP1_0 |
Martin Roth | a642716 | 2014-04-25 14:12:13 -0600 | [diff] [blame] | 17 | |
| 18 | comment "Intel FSP" |
| 19 | |
| 20 | config HAVE_FSP_BIN |
| 21 | bool "Use Intel Firmware Support Package" |
| 22 | help |
| 23 | Select this option to add an Intel FSP binary to |
| 24 | the resulting coreboot image. |
| 25 | |
| 26 | Note: Without this binary, coreboot builds relying on the FSP |
| 27 | will not boot |
| 28 | |
| 29 | config DCACHE_RAM_BASE |
| 30 | hex |
| 31 | default 0xfef00000 |
| 32 | |
| 33 | config DCACHE_RAM_SIZE |
| 34 | hex |
| 35 | default 0x4000 |
| 36 | |
Patrick Rudolph | e77d6dc | 2019-01-08 11:37:18 +0100 | [diff] [blame] | 37 | config FSP_HEADER_PATH |
| 38 | string "Location of FSP headers" |
| 39 | help |
| 40 | The path to headers files that are released with the FSP binary. |
| 41 | |
| 42 | config FSP_SRC_PATH |
| 43 | string "Additional FSP source file" |
| 44 | help |
| 45 | Additional source files that are released with the FSP binary. |
| 46 | |
Martin Roth | a642716 | 2014-04-25 14:12:13 -0600 | [diff] [blame] | 47 | if HAVE_FSP_BIN |
| 48 | |
| 49 | config FSP_FILE |
| 50 | string "Intel FSP binary path and filename" |
| 51 | help |
| 52 | The path and filename of the Intel FSP binary for this platform. |
| 53 | |
Martin Roth | c5bb7bd | 2015-11-18 16:07:54 -0700 | [diff] [blame] | 54 | endif #HAVE_FSP_BIN |
| 55 | |
Martin Roth | a642716 | 2014-04-25 14:12:13 -0600 | [diff] [blame] | 56 | config FSP_LOC |
| 57 | hex "Intel FSP Binary location in CBFS" |
| 58 | help |
| 59 | The location in CBFS that the FSP is located. This must match the |
| 60 | value that is set in the FSP binary. If the FSP needs to be moved, |
| 61 | rebase the FSP with Intel's BCT (tool). |
| 62 | |
| 63 | config ENABLE_FSP_FAST_BOOT |
| 64 | bool "Enable Fast Boot" |
Martin Roth | 2a9b2ed | 2014-05-19 15:30:00 -0600 | [diff] [blame] | 65 | select ENABLE_MRC_CACHE |
Martin Roth | a642716 | 2014-04-25 14:12:13 -0600 | [diff] [blame] | 66 | default n |
| 67 | help |
| 68 | Enabling this feature will force the MRC data to be cached in NV |
| 69 | storage to be used for speeding up boot time on future reboots |
| 70 | and/or power cycles. |
| 71 | |
| 72 | config ENABLE_MRC_CACHE |
| 73 | bool |
Mohan D'Costa | ed0c838 | 2014-09-18 15:57:06 +0900 | [diff] [blame] | 74 | default y if HAVE_ACPI_RESUME |
Martin Roth | 2a9b2ed | 2014-05-19 15:30:00 -0600 | [diff] [blame] | 75 | default n |
Martin Roth | a642716 | 2014-04-25 14:12:13 -0600 | [diff] [blame] | 76 | help |
| 77 | Enabling this feature will cause MRC data to be cached in NV storage. |
| 78 | This can either be used for fast boot, or just because the FSP wants |
| 79 | it to be saved. |
| 80 | |
Ben Gardner | a3e4833 | 2016-02-08 12:18:09 -0600 | [diff] [blame] | 81 | config MRC_CACHE_FMAP |
| 82 | bool "Use MRC Cache in FMAP" |
| 83 | depends on ENABLE_MRC_CACHE |
| 84 | default n |
| 85 | help |
| 86 | Use the region "RW_MRC_CACHE" in FMAP instead of "mrc.cache" in CBFS. |
| 87 | You must define a region in your FMAP named "RW_MRC_CACHE". |
| 88 | |
Martin Roth | a642716 | 2014-04-25 14:12:13 -0600 | [diff] [blame] | 89 | config MRC_CACHE_SIZE |
| 90 | hex "Fast Boot Data Cache Size" |
| 91 | default 0x10000 |
| 92 | depends on ENABLE_MRC_CACHE |
Ben Gardner | a3e4833 | 2016-02-08 12:18:09 -0600 | [diff] [blame] | 93 | depends on !MRC_CACHE_FMAP |
Martin Roth | a642716 | 2014-04-25 14:12:13 -0600 | [diff] [blame] | 94 | help |
| 95 | This is the amount of space in NV storage that is reserved for the |
| 96 | fast boot data cache storage. |
| 97 | |
| 98 | WARNING: Because this area will be erased and re-written, the size |
| 99 | should be a full sector of the flash ROM chip and nothing else should |
| 100 | be included in CBFS in any sector that the fast boot cache data is in. |
| 101 | |
Martin Roth | a642716 | 2014-04-25 14:12:13 -0600 | [diff] [blame] | 102 | config VIRTUAL_ROM_SIZE |
| 103 | hex "Virtual ROM Size" |
| 104 | default ROM_SIZE |
| 105 | depends on ENABLE_MRC_CACHE |
| 106 | help |
| 107 | This is used to calculate the offset of the MRC data cache in NV |
| 108 | Storage for fast boot. If in doubt, leave this set to the default |
| 109 | which sets the virtual size equal to the ROM size. |
| 110 | |
| 111 | Example: Cougar Canyon 2 has two 8 MB SPI ROMs. When the SPI ROMs are |
| 112 | loaded with a 4 MB coreboot image, the virtual ROM size is 8 MB. When |
| 113 | the SPI ROMs are loaded with an 8 MB coreboot image, the virtual ROM |
| 114 | size is 16 MB. |
| 115 | |
Martin Roth | a642716 | 2014-04-25 14:12:13 -0600 | [diff] [blame] | 116 | config USE_GENERIC_FSP_CAR_INC |
| 117 | bool |
| 118 | default n |
| 119 | help |
| 120 | The chipset can select this to use a generic cache_as_ram.inc file |
| 121 | that should be good for all FSP based platforms. |
| 122 | |
| 123 | config FSP_USES_UPD |
| 124 | bool |
| 125 | default n |
| 126 | help |
| 127 | If this FSP uses UPD/VPD data regions, select this in the chipset Kconfig. |
Marc Jones | 7868797 | 2015-04-22 23:16:31 -0600 | [diff] [blame] | 128 | endif #PLATFORM_USES_FSP1_0 |