1 ## SPDX-License-Identifier: GPL-2.0-only
3 comment "Important: Run 'make distclean' before switching boards"
6 prompt "Mainboard vendor"
7 default VENDOR_EMULATION
9 source "src/mainboard/*/Kconfig.name"
13 source "src/mainboard/*/Kconfig"
18 config MAINBOARD_PART_NUMBER
19 string "Mainboard part number"
21 config MAINBOARD_VENDOR
22 string "Mainboard vendor name"
27 config BOARD_ROMSIZE_KB_256
29 config BOARD_ROMSIZE_KB_512
31 config BOARD_ROMSIZE_KB_1024
33 config BOARD_ROMSIZE_KB_2048
35 config BOARD_ROMSIZE_KB_4096
37 config BOARD_ROMSIZE_KB_5120
39 config BOARD_ROMSIZE_KB_6144
41 config BOARD_ROMSIZE_KB_8192
43 config BOARD_ROMSIZE_KB_10240
45 config BOARD_ROMSIZE_KB_12288
47 config BOARD_ROMSIZE_KB_16384
49 config BOARD_ROMSIZE_KB_24576
51 config BOARD_ROMSIZE_KB_32768
53 config BOARD_ROMSIZE_KB_65536
56 # TODO: No help text possible for choice fields?
58 prompt "ROM chip size"
59 default COREBOOT_ROMSIZE_KB_256 if BOARD_ROMSIZE_KB_256
60 default COREBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512
61 default COREBOOT_ROMSIZE_KB_1024 if BOARD_ROMSIZE_KB_1024
62 default COREBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048
63 default COREBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096
64 default COREBOOT_ROMSIZE_KB_5120 if BOARD_ROMSIZE_KB_5120
65 default COREBOOT_ROMSIZE_KB_6144 if BOARD_ROMSIZE_KB_6144
66 default COREBOOT_ROMSIZE_KB_8192 if BOARD_ROMSIZE_KB_8192
67 default COREBOOT_ROMSIZE_KB_10240 if BOARD_ROMSIZE_KB_10240
68 default COREBOOT_ROMSIZE_KB_12288 if BOARD_ROMSIZE_KB_12288
69 default COREBOOT_ROMSIZE_KB_16384 if BOARD_ROMSIZE_KB_16384
70 default COREBOOT_ROMSIZE_KB_24576 if BOARD_ROMSIZE_KB_24576
71 default COREBOOT_ROMSIZE_KB_32768 if BOARD_ROMSIZE_KB_32768
72 default COREBOOT_ROMSIZE_KB_65536 if BOARD_ROMSIZE_KB_65536
74 Select the size of the ROM chip you intend to flash coreboot on.
76 The build system will take care of creating a coreboot.rom file
79 config COREBOOT_ROMSIZE_KB_256
82 Choose this option if you have a 256 KB ROM chip.
84 config COREBOOT_ROMSIZE_KB_512
87 Choose this option if you have a 512 KB ROM chip.
89 config COREBOOT_ROMSIZE_KB_1024
92 Choose this option if you have a 1024 KB (1 MB) ROM chip.
94 config COREBOOT_ROMSIZE_KB_2048
97 Choose this option if you have a 2048 KB (2 MB) ROM chip.
99 config COREBOOT_ROMSIZE_KB_4096
100 bool "4096 KB (4 MB)"
102 Choose this option if you have a 4096 KB (4 MB) ROM chip.
104 config COREBOOT_ROMSIZE_KB_5120
105 bool "5120 KB (5 MB)"
107 Choose this option if you have a 5120 KB (5 MB) ROM chip.
109 config COREBOOT_ROMSIZE_KB_6144
110 bool "6144 KB (6 MB)"
112 Choose this option if you have a 6144 KB (6 MB) ROM chip.
114 config COREBOOT_ROMSIZE_KB_8192
115 bool "8192 KB (8 MB)"
117 Choose this option if you have a 8192 KB (8 MB) ROM chip.
119 config COREBOOT_ROMSIZE_KB_10240
120 bool "10240 KB (10 MB)"
122 Choose this option if you have a 10240 KB (10 MB) ROM chip.
124 config COREBOOT_ROMSIZE_KB_12288
125 bool "12288 KB (12 MB)"
127 Choose this option if you have a 12288 KB (12 MB) ROM chip.
129 config COREBOOT_ROMSIZE_KB_16384
130 bool "16384 KB (16 MB)"
132 Choose this option if you have a 16384 KB (16 MB) ROM chip.
134 config COREBOOT_ROMSIZE_KB_24576
135 bool "24576 KB (24 MB)"
137 Choose this option if you have a 24576 KB (24 MB) ROM chip.
139 config COREBOOT_ROMSIZE_KB_32768
140 bool "32768 KB (32 MB)"
142 Choose this option if you have a 32768 KB (32 MB) ROM chip.
144 config COREBOOT_ROMSIZE_KB_65536
145 bool "65536 KB (64 MB)"
147 Choose this option if you have a 65536 KB (64 MB) ROM chip.
151 # Map the config names to an integer (KB).
152 config COREBOOT_ROMSIZE_KB
154 default 256 if COREBOOT_ROMSIZE_KB_256
155 default 512 if COREBOOT_ROMSIZE_KB_512
156 default 1024 if COREBOOT_ROMSIZE_KB_1024
157 default 2048 if COREBOOT_ROMSIZE_KB_2048
158 default 4096 if COREBOOT_ROMSIZE_KB_4096
159 default 5120 if COREBOOT_ROMSIZE_KB_5120
160 default 6144 if COREBOOT_ROMSIZE_KB_6144
161 default 8192 if COREBOOT_ROMSIZE_KB_8192
162 default 10240 if COREBOOT_ROMSIZE_KB_10240
163 default 12288 if COREBOOT_ROMSIZE_KB_12288
164 default 16384 if COREBOOT_ROMSIZE_KB_16384
165 default 24576 if COREBOOT_ROMSIZE_KB_24576
166 default 32768 if COREBOOT_ROMSIZE_KB_32768
167 default 65536 if COREBOOT_ROMSIZE_KB_65536
169 # Map the config names to a hex value (bytes).
172 default 0x00040000 if COREBOOT_ROMSIZE_KB_256
173 default 0x00080000 if COREBOOT_ROMSIZE_KB_512
174 default 0x00100000 if COREBOOT_ROMSIZE_KB_1024
175 default 0x00200000 if COREBOOT_ROMSIZE_KB_2048
176 default 0x00400000 if COREBOOT_ROMSIZE_KB_4096
177 default 0x00500000 if COREBOOT_ROMSIZE_KB_5120
178 default 0x00600000 if COREBOOT_ROMSIZE_KB_6144
179 default 0x00800000 if COREBOOT_ROMSIZE_KB_8192
180 default 0x00a00000 if COREBOOT_ROMSIZE_KB_10240
181 default 0x00c00000 if COREBOOT_ROMSIZE_KB_12288
182 default 0x01000000 if COREBOOT_ROMSIZE_KB_16384
183 default 0x01800000 if COREBOOT_ROMSIZE_KB_24576
184 default 0x02000000 if COREBOOT_ROMSIZE_KB_32768
185 default 0x04000000 if COREBOOT_ROMSIZE_KB_65536
187 config ENABLE_POWER_BUTTON
188 bool "Enable the power button" if POWER_BUTTON_IS_OPTIONAL
189 default y if POWER_BUTTON_DEFAULT_ENABLE
190 default n if POWER_BUTTON_DEFAULT_DISABLE
192 The selected mainboard can optionally have the power button tied
193 to ground with a jumper so that the button appears to be
194 constantly depressed. If this option is enabled and the jumper is
195 installed then the board will turn on, but turn off again after a
196 short timeout, usually 4 seconds.
198 Select Y here if you have removed the jumper and want to use an
199 actual power button. Select N if you have the jumper installed.
201 config ENABLE_POWER_BUTTON
202 def_bool y if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_ENABLE
203 def_bool n if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_DISABLE
205 config HAVE_POWER_STATE_AFTER_FAILURE
208 if HAVE_POWER_STATE_AFTER_FAILURE
210 config HAVE_POWER_STATE_PREVIOUS_AFTER_FAILURE
213 config POWER_STATE_DEFAULT_ON_AFTER_FAILURE
216 Selected by platforms or mainboards that want a "default on"
220 prompt "System Power State after Failure"
221 default POWER_STATE_ON_AFTER_FAILURE \
222 if POWER_STATE_DEFAULT_ON_AFTER_FAILURE
223 default POWER_STATE_OFF_AFTER_FAILURE
225 Provides a default for the power state the system should
226 go into after G3 (power loss). On many boards this can be
227 overridden by an NVRAM option.
229 config POWER_STATE_OFF_AFTER_FAILURE
232 Choose this option if you want to put system into
233 S5 after reapplying power after failure.
235 config POWER_STATE_ON_AFTER_FAILURE
238 Choose this option if you want to keep system in
239 S0 after reapplying power after failure.
241 config POWER_STATE_PREVIOUS_AFTER_FAILURE
242 bool "Keep Previous State"
243 depends on HAVE_POWER_STATE_PREVIOUS_AFTER_FAILURE
245 Choose this option if you want to keep system in the
246 same power state as before failure after reapplying
251 config MAINBOARD_POWER_FAILURE_STATE
253 default 2 if POWER_STATE_PREVIOUS_AFTER_FAILURE
254 default 1 if POWER_STATE_ON_AFTER_FAILURE
257 endif # HAVE_POWER_STATE_AFTER_FAILURE