blob: 889e811aee188c58a6d69bda865847950487f21f [file] [log] [blame]
Stefan Reinauer425b61e2015-03-15 04:29:35 +01001##
2## This file is part of the coreboot project.
3##
4## Copyright (C) 2009-2010 coresystems GmbH
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##
15
Stefan Reinauera48ca842015-04-04 01:58:28 +020016config ARCH_X86
17 bool
18 default n
19 select PCI
20
Stefan Reinauer68671202015-03-15 04:34:03 +010021# stage selectors for x86
22
Furquan Shaikh99ac98f2014-04-23 10:18:48 -070023config ARCH_BOOTBLOCK_X86_32
Gabe Black5fbfc912013-07-07 13:52:37 -070024 bool
Furquan Shaikh99ac98f2014-04-23 10:18:48 -070025 default n
26 select ARCH_X86
Andrey Petrov3bc543a2016-02-08 17:46:31 -080027 select BOOTBLOCK_CUSTOM if !C_ENVIRONMENT_BOOTBLOCK
Furquan Shaikh99ac98f2014-04-23 10:18:48 -070028
Stefan Reinauer77b16552015-01-14 19:51:47 +010029config ARCH_VERSTAGE_X86_32
30 bool
31 default n
32
Furquan Shaikh99ac98f2014-04-23 10:18:48 -070033config ARCH_ROMSTAGE_X86_32
34 bool
35 default n
36
37config ARCH_RAMSTAGE_X86_32
38 bool
39 default n
Gabe Black5fbfc912013-07-07 13:52:37 -070040
Stefan Reinauer68671202015-03-15 04:34:03 +010041# stage selectors for x64
42
43config ARCH_BOOTBLOCK_X86_64
44 bool
45 default n
46 select ARCH_X86
Andrey Petrov3bc543a2016-02-08 17:46:31 -080047 select BOOTBLOCK_CUSTOM if !C_ENVIRONMENT_BOOTBLOCK
Stefan Reinauer68671202015-03-15 04:34:03 +010048
49config ARCH_VERSTAGE_X86_64
50 bool
51 default n
52
53config ARCH_ROMSTAGE_X86_64
54 bool
55 default n
56
57config ARCH_RAMSTAGE_X86_64
58 bool
59 default n
60
Martin Roth0cd9ff82016-02-01 17:33:37 -070061config USE_MARCH_586
62 def_bool n
63 help
64 Allow a platform or processor to select to be compiled using
65 the '-march=i586' option instead of the typical '-march=i686'
66
Uwe Hermann168b11b2009-10-07 16:15:40 +000067# This is an SMP option. It relates to starting up APs.
68# It is usually set in mainboard/*/Kconfig.
69# TODO: Improve description.
Sven Schnelle51676b12012-07-29 19:18:03 +020070config AP_IN_SIPI_WAIT
71 bool
72 default n
Stefan Reinauer2a6f3902012-10-15 13:38:09 -070073 depends on ARCH_X86 && SMP
Ronald G. Minnich6ed39d92009-08-29 02:59:35 +000074
Kyösti Mälkkif8c7c232012-04-06 04:03:50 +030075# Aligns 16bit entry code in bootblock so that hyper-threading CPUs
76# can boot AP CPUs to enable their shared caches.
77config SIPI_VECTOR_IN_ROM
78 bool
79 default n
80 depends on ARCH_X86
81
Patrick Georgi0588d192009-08-12 15:00:51 +000082config RAMBASE
83 hex
84 default 0x100000
85
Ronald G. Minnichb5e777c2013-07-22 20:17:18 +020086# This is something you almost certainly don't want to mess with.
87# How many SIPIs do we send when starting up APs and cores?
88# The answer in 2000 or so was '2'. Nowadays, on many systems,
89# it is 1. Set a safe default here, and you can override it
90# on reasonable platforms.
91config NUM_IPI_STARTS
92 int
93 default 2
94
Patrick Georgi2063197a2010-02-09 12:21:10 +000095config ROMCC
96 bool
97 default n
98
Kyösti Mälkki91fac612014-12-31 20:55:19 +020099config LATE_CBMEM_INIT
100 def_bool n
Kyösti Mälkki91fac612014-12-31 20:55:19 +0200101 help
102 Enable this in chipset's Kconfig if northbridge does not implement
103 early get_top_of_ram() call for romstage. CBMEM tables will be
104 allocated late in ramstage, after PCI devices resources are known.
105
Stefan Reinauer8aedcbc2010-12-16 23:37:17 +0000106config PC80_SYSTEM
107 bool
Furquan Shaikh99ac98f2014-04-23 10:18:48 -0700108 default y if ARCH_X86
Stefan Reinauer8aedcbc2010-12-16 23:37:17 +0000109
Kyösti Mälkki48e21ec2012-11-14 08:08:50 +0200110config BOOTBLOCK_MAINBOARD_INIT
111 string
112
Patrick Georgi1bb68282009-12-31 12:56:53 +0000113config BOOTBLOCK_NORTHBRIDGE_INIT
114 string
115
Lee Leahy5f31f492015-02-09 21:09:49 -0800116config BOOTBLOCK_RESETS
117 string
118
Patrick Georgia865b172011-01-14 07:40:24 +0000119config HAVE_CMOS_DEFAULT
120 def_bool n
121
122config CMOS_DEFAULT_FILE
123 string
Denis 'GNUtoo' Carikli29a43552013-05-28 13:46:12 +0200124 default "src/mainboard/$(MAINBOARDDIR)/cmos.default"
Patrick Georgia865b172011-01-14 07:40:24 +0000125 depends on HAVE_CMOS_DEFAULT
126
Patrick Georgi1bb68282009-12-31 12:56:53 +0000127config BOOTBLOCK_SOUTHBRIDGE_INIT
128 string
Stefan Reinauer1b342262011-01-05 02:27:53 +0000129
Patrick Georgid4d5e4d2012-03-16 19:28:15 +0100130config IOAPIC_INTERRUPTS_ON_FSB
131 bool
132 default y if !IOAPIC_INTERRUPTS_ON_APIC_SERIAL_BUS
133
134config IOAPIC_INTERRUPTS_ON_APIC_SERIAL_BUS
135 bool
136 default n
137
Patrick Georgi9aeb6942012-10-05 21:54:38 +0200138config HPET_ADDRESS
139 hex
140 default 0xfed00000 if !HPET_ADDRESS_OVERRIDE
141
Stefan Reinauer84833442012-11-13 15:04:12 -0800142config ID_SECTION_OFFSET
143 hex
144 default 0x80
Patrick Georgic32a52c2015-06-22 21:10:34 +0200145
146config COMPILE_IN_DSDT
147 bool "compile in DSDT and use that over DSDT in CBFS"
148 default n