blob: 214a1ac231dffc1804cf3e3ca6ec3a001a9669fe [file] [log] [blame]
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -05001config SOC_INTEL_BAYTRAIL
2 bool
3 help
4 Bay Trail M/D part support.
5
6if SOC_INTEL_BAYTRAIL
7
8config CPU_SPECIFIC_OPTIONS
9 def_bool y
Furquan Shaikh99ac98f2014-04-23 10:18:48 -070010 select ARCH_BOOTBLOCK_X86_32
Stefan Reinauer77b16552015-01-14 19:51:47 +010011 select ARCH_VERSTAGE_X86_32
Furquan Shaikh99ac98f2014-04-23 10:18:48 -070012 select ARCH_ROMSTAGE_X86_32
13 select ARCH_RAMSTAGE_X86_32
Kein Yuan35110232014-02-22 12:26:55 -080014 select BACKUP_DEFAULT_SMM_REGION
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050015 select CACHE_MRC_SETTINGS
Vadim Bendeburyc04e1712013-09-27 16:21:04 -070016 select CAR_MIGRATION
Aaron Durbin794bddf2013-09-27 11:38:36 -050017 select COLLECT_TIMESTAMPS
Aaron Durbin59d1d872014-01-14 17:34:10 -060018 select CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED
Kyösti Mälkki4851bf22014-12-27 12:57:06 +020019 select SUPPORT_CPU_UCODE_IN_CBFS
Vadim Bendeburyc04e1712013-09-27 16:21:04 -070020 select HAVE_SMI_HANDLER
Aaron Durbin6ecdb682013-10-10 20:54:57 -050021 select HAVE_HARD_RESET
Vadim Bendeburyc04e1712013-09-27 16:21:04 -070022 select MMCONF_SUPPORT
23 select MMCONF_SUPPORT_DEFAULT
24 select RELOCATABLE_MODULES
Kyösti Mälkkid05d0db2014-10-16 14:54:03 +030025 select RELOCATABLE_RAMSTAGE
Aaron Durbin302cbd62013-10-21 12:36:17 -050026 select PARALLEL_MP
Duncan Lauriec6313db2014-01-16 11:18:36 -080027 select PCIEXP_ASPM
28 select PCIEXP_COMMON_CLOCK
Isaac Christensend2044cc2014-10-01 13:37:36 -060029 select REG_SCRIPT
Vadim Bendeburyc04e1712013-09-27 16:21:04 -070030 select SMM_MODULES
31 select SMM_TSEG
32 select SMP
33 select SPI_FLASH
34 select SSE2
35 select SUPPORT_CPU_UCODE_IN_CBFS
36 select TSC_CONSTANT_RATE
Aaron Durbince7ecf92013-10-24 08:42:10 -050037 select TSC_MONOTONIC_TIMER
Vadim Bendeburyc04e1712013-09-27 16:21:04 -070038 select TSC_SYNC_MFENCE
39 select UDELAY_TSC
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050040
41config BOOTBLOCK_CPU_INIT
42 string
43 default "soc/intel/baytrail/bootblock/bootblock.c"
44
45config MMCONF_BASE_ADDRESS
46 hex
47 default 0xe0000000
48
49config MAX_CPUS
50 int
51 default 4
52
53config CPU_ADDR_BITS
54 int
55 default 36
56
57config SMM_TSEG_SIZE
58 hex
59 default 0x800000
60
61config SMM_RESERVED_SIZE
62 hex
63 default 0x100000
64
65config HAVE_MRC
66 bool "Add a Memory Reference Code binary"
67 default y
68 help
69 Select this option to add a blob containing
70 memory reference code.
71 Note: Without this binary coreboot will not work
72
73if HAVE_MRC
74
75config MRC_FILE
76 string "Intel memory refeference code path and filename"
77 default "3rdparty/northbridge/intel/sandybridge/systemagent-r6.bin"
78 help
79 The path and filename of the file to use as System Agent
80 binary. Note that this points to the sandybridge binary file
81 which is will not work, but it serves its purpose to do builds.
82
83config MRC_BIN_ADDRESS
84 hex
85 default 0xfffa0000
86
Shawn Nematbakhsh13d93412013-11-26 15:37:43 -080087config MRC_RMT
88 bool "Enable MRC RMT training + debug prints"
89 default n
90
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050091endif # HAVE_MRC
92
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050093# Cache As RAM region layout:
94#
95# +-------------+ DCACHE_RAM_BASE + DCACHE_RAM_SIZE + DCACHE_RAM_MRC_VAR_SIZE
96# | MRC usage |
97# | |
98# +-------------+ DCACHE_RAM_BASE + DCACHE_RAM_SIZE
99# | Stack |\
100# | | | * DCACHE_RAM_ROMSTAGE_STACK_SIZE
101# | v |/
102# +-------------+
103# | ^ |
104# | | |
105# | CAR Globals |
106# +-------------+ DCACHE_RAM_BASE
107#
108# Note that the MRC binary is linked to assume the region marked as "MRC usage"
109# starts at DCACHE_RAM_BASE + DCACHE_RAM_SIZE. If those values change then
110# a new MRC binary needs to be produced with the updated start and size
111# information.
112
113config DCACHE_RAM_BASE
114 hex
Aaron Durbin89f52922014-03-19 11:48:33 -0500115 default 0xfe000000
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500116
117config DCACHE_RAM_SIZE
118 hex
Aaron Durbin08a46132013-10-07 16:24:44 -0500119 default 0x8000
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500120 help
121 The size of the cache-as-ram region required during bootblock
122 and/or romstage. Note DCACHE_RAM_SIZE and DCACHE_RAM_MRC_VAR_SIZE
123 must add up to a power of 2.
124
125config DCACHE_RAM_MRC_VAR_SIZE
126 hex
Aaron Durbin08a46132013-10-07 16:24:44 -0500127 default 0x8000
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500128 help
129 The amount of cache-as-ram region required by the reference code.
130
131config DCACHE_RAM_ROMSTAGE_STACK_SIZE
132 hex
133 default 0x800
134 help
135 The amount of anticipated stack usage from the data cache
Daniele Forsi53847a22014-07-22 18:00:56 +0200136 during pre-RAM ROM stage execution.
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500137
138config RESET_ON_INVALID_RAMSTAGE_CACHE
139 bool "Reset the system on S3 wake when ramstage cache invalid."
140 default n
141 depends on RELOCATABLE_RAMSTAGE
142 help
143 The baytrail romstage code caches the loaded ramstage program
144 in SMM space. On S3 wake the romstage will copy over a fresh
145 ramstage that was cached in the SMM space. This option determines
146 the action to take when the ramstage cache is invalid. If selected
147 the system will reset otherwise the ramstage will be reloaded from
148 cbfs.
149
150config CBFS_SIZE
151 hex "Size of CBFS filesystem in ROM"
152 default 0x100000
153 help
154 On Bay Trail systems the firmware image has to store a lot more
155 than just coreboot, including:
156 - a firmware descriptor
157 - Intel Management Engine firmware
158 - MRC cache information
159 This option allows to limit the size of the CBFS portion in the
160 firmware image.
161
162config ENABLE_BUILTIN_COM1
163 bool "Enable builtin COM1 Serial Port"
164 default n
165 help
166 The PMC has a legacy COM1 serial port. Choose this option to
167 configure the pads and enable it. This serial port can be used for
168 the debug console.
169
170config HAVE_ME_BIN
171 bool "Add Intel Management Engine firmware"
172 default y
173 help
174 The Intel processor in the selected system requires a special firmware
175 for an integrated controller called Management Engine (ME). The ME
176 firmware might be provided in coreboot's 3rdparty repository. If
177 not and if you don't have the firmware elsewhere, you can still
178 build coreboot without it. In this case however, you'll have to make
179 sure that you don't overwrite your ME firmware on your flash ROM.
180
181config ME_BIN_PATH
182 string "Path to management engine firmware"
183 depends on HAVE_ME_BIN
184 default "3rdparty/mainboard/$(MAINBOARDDIR)/me.bin"
185
186config HAVE_IFD_BIN
187 bool
188 default y
189
190config BUILD_WITH_FAKE_IFD
191 bool "Build with a fake IFD"
192 default y if !HAVE_IFD_BIN
193 help
194 If you don't have an Intel Firmware Descriptor (ifd.bin) for your
195 board, you can select this option and coreboot will build without it.
196 Though, the resulting coreboot.rom will not contain all parts required
197 to get coreboot running on your board. You can however write only the
198 BIOS section to your board's flash ROM and keep the other sections
199 untouched. Unfortunately the current version of flashrom doesn't
200 support this yet. But there is a patch pending [1].
201
202 WARNING: Never write a complete coreboot.rom to your flash ROM if it
203 was built with a fake IFD. It just won't work.
204
205 [1] http://www.flashrom.org/pipermail/flashrom/2013-June/011083.html
206
207config IFD_BIOS_SECTION
208 depends on BUILD_WITH_FAKE_IFD
209 string
210 default ""
211
212config IFD_ME_SECTION
213 depends on BUILD_WITH_FAKE_IFD
214 string
215 default ""
216
217config IFD_PLATFORM_SECTION
218 depends on BUILD_WITH_FAKE_IFD
219 string
220 default ""
221
222config IFD_BIN_PATH
223 string "Path to intel firmware descriptor"
224 depends on !BUILD_WITH_FAKE_IFD
225 default "3rdparty/mainboard/$(MAINBOARDDIR)/descriptor.bin"
226
Vladimir Serbinenkof1d6e7e2014-08-09 07:16:10 +0200227config HAVE_REFCODE_BLOB
228 depends on ARCH_X86
229 bool "An external reference code blob should be put into cbfs."
230 default n
231 help
232 The reference code blob will be placed into cbfs.
233
234if HAVE_REFCODE_BLOB
235
236config REFCODE_BLOB_FILE
237 string "Path and filename to reference code blob."
238 default "refcode.elf"
239 help
240 The path and filename to the file to be added to cbfs.
241
242endif # HAVE_REFCODE_BLOB
243
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500244endif