blob: 4ce528fb77dee5adf211f8d7175fff20af9f4de7 [file] [log] [blame]
Martin Rotha6427162014-04-25 14:12:13 -06001##
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 Rotha6427162014-04-25 14:12:13 -060015
Marc Jones78687972015-04-22 23:16:31 -060016if PLATFORM_USES_FSP1_0
Martin Rotha6427162014-04-25 14:12:13 -060017
18comment "Intel FSP"
19
20config 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
29config DCACHE_RAM_BASE
30 hex
31 default 0xfef00000
32
33config DCACHE_RAM_SIZE
34 hex
35 default 0x4000
36
Patrick Rudolphe77d6dc2019-01-08 11:37:18 +010037config 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
42config FSP_SRC_PATH
43 string "Additional FSP source file"
44 help
45 Additional source files that are released with the FSP binary.
46
Martin Rotha6427162014-04-25 14:12:13 -060047if HAVE_FSP_BIN
48
49config 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 Rothc5bb7bd2015-11-18 16:07:54 -070054endif #HAVE_FSP_BIN
55
Martin Rotha6427162014-04-25 14:12:13 -060056config 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
63config ENABLE_FSP_FAST_BOOT
64 bool "Enable Fast Boot"
Martin Roth2a9b2ed2014-05-19 15:30:00 -060065 select ENABLE_MRC_CACHE
Martin Rotha6427162014-04-25 14:12:13 -060066 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
72config ENABLE_MRC_CACHE
73 bool
Mohan D'Costaed0c8382014-09-18 15:57:06 +090074 default y if HAVE_ACPI_RESUME
Martin Roth2a9b2ed2014-05-19 15:30:00 -060075 default n
Martin Rotha6427162014-04-25 14:12:13 -060076 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 Gardnera3e48332016-02-08 12:18:09 -060081config 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 Rotha6427162014-04-25 14:12:13 -060089config MRC_CACHE_SIZE
90 hex "Fast Boot Data Cache Size"
91 default 0x10000
92 depends on ENABLE_MRC_CACHE
Ben Gardnera3e48332016-02-08 12:18:09 -060093 depends on !MRC_CACHE_FMAP
Martin Rotha6427162014-04-25 14:12:13 -060094 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 Rotha6427162014-04-25 14:12:13 -0600102config 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 Rotha6427162014-04-25 14:12:13 -0600116config 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
123config 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 Jones78687972015-04-22 23:16:31 -0600128endif #PLATFORM_USES_FSP1_0