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