Enable or disable the power button in Kconfig
[coreboot.git] / src / mainboard / Kconfig
1 menu "Mainboard"
2
3 choice
4         prompt "Mainboard vendor"
5         default VENDOR_EMULATION
6
7 config VENDOR_ABIT
8         bool "Abit"
9 config VENDOR_ADVANTECH
10         bool "Advantech"
11 config VENDOR_AMD
12         bool "AMD"
13 config VENDOR_ARIMA
14         bool "Arima"
15 config VENDOR_ARTEC_GROUP
16         bool "Artec Group"
17 config VENDOR_ASI
18         bool "ASI"
19 config VENDOR_ASROCK
20         bool "ASROCK"
21 config VENDOR_ASUS
22         bool "ASUS"
23 config VENDOR_A_TREND
24         bool "A-Trend"
25 config VENDOR_AXUS
26         bool "AXUS"
27 config VENDOR_AZZA
28         bool "AZZA"
29 config VENDOR_BCOM
30         bool "BCOM"
31 config VENDOR_BIOSTAR
32         bool "Biostar"
33 config VENDOR_BROADCOM
34         bool "Broadcom"
35 config VENDOR_COMPAQ
36         bool "Compaq"
37 config VENDOR_DELL
38         bool "Dell"
39 config VENDOR_DIGITAL_LOGIC
40         bool "DIGITAL-LOGIC"
41 config VENDOR_EAGLELION
42         bool "EagleLion"
43 config VENDOR_ECS
44         bool "ECS"
45 config VENDOR_EMULATION
46         bool "Emulation"
47 config VENDOR_GETAC
48         bool "Getac"
49 config VENDOR_GIGABYTE
50         bool "GIGABYTE"
51 config VENDOR_HP
52         bool "HP"
53 config VENDOR_IBASE
54         bool "iBase"
55 config VENDOR_IBM
56         bool "IBM"
57 config VENDOR_IEI
58         bool "IEI"
59 config VENDOR_INTEL
60         bool "Intel"
61 config VENDOR_IWILL
62         bool "IWILL"
63 config VENDOR_JETWAY
64         bool "Jetway"
65 config VENDOR_KONTRON
66         bool "Kontron"
67 config VENDOR_LANNER
68         bool "Lanner"
69 config VENDOR_LIPPERT
70         bool "Lippert"
71 config VENDOR_MITAC
72         bool "Mitac"
73 config VENDOR_MSI
74         bool "MSI"
75 config VENDOR_NEC
76         bool "NEC"
77 config VENDOR_NEWISYS
78         bool "Newisys"
79 config VENDOR_NOKIA
80         bool "Nokia"
81 config VENDOR_NVIDIA
82         bool "NVIDIA"
83 config VENDOR_PC_ENGINES
84         bool "PC Engines"
85 config VENDOR_RCA
86         bool "RCA"
87 config VENDOR_RODA
88         bool "Roda"
89 config VENDOR_SOYO
90         bool "Soyo"
91 config VENDOR_SUNW
92         bool "Sun"
93 config VENDOR_SUPERMICRO
94         bool "Supermicro"
95 config VENDOR_TECHNEXION
96         bool "Technexion"
97 config VENDOR_TECHNOLOGIC
98         bool "Technologic"
99 config VENDOR_TELEVIDEO
100         bool "TeleVideo"
101 config VENDOR_THOMSON
102         bool "Thomson"
103 config VENDOR_TRAVERSE
104         bool "Traverse Technologies"
105 config VENDOR_TYAN
106         bool "Tyan"
107 config VENDOR_VIA
108         bool "VIA"
109 config VENDOR_WINENT
110         bool "Win Enterprises"
111 config VENDOR_WYSE
112         bool "Wyse"
113
114 endchoice
115
116 source "src/mainboard/a-trend/Kconfig"
117 source "src/mainboard/abit/Kconfig"
118 source "src/mainboard/advantech/Kconfig"
119 source "src/mainboard/amd/Kconfig"
120 source "src/mainboard/arima/Kconfig"
121 source "src/mainboard/artecgroup/Kconfig"
122 source "src/mainboard/asi/Kconfig"
123 source "src/mainboard/asrock/Kconfig"
124 source "src/mainboard/asus/Kconfig"
125 source "src/mainboard/axus/Kconfig"
126 source "src/mainboard/azza/Kconfig"
127 source "src/mainboard/bcom/Kconfig"
128 source "src/mainboard/biostar/Kconfig"
129 source "src/mainboard/broadcom/Kconfig"
130 source "src/mainboard/compaq/Kconfig"
131 source "src/mainboard/dell/Kconfig"
132 source "src/mainboard/digitallogic/Kconfig"
133 source "src/mainboard/eaglelion/Kconfig"
134 source "src/mainboard/ecs/Kconfig"
135 source "src/mainboard/emulation/Kconfig"
136 source "src/mainboard/getac/Kconfig"
137 source "src/mainboard/gigabyte/Kconfig"
138 source "src/mainboard/hp/Kconfig"
139 source "src/mainboard/ibase/Kconfig"
140 source "src/mainboard/ibm/Kconfig"
141 source "src/mainboard/iei/Kconfig"
142 source "src/mainboard/intel/Kconfig"
143 source "src/mainboard/iwill/Kconfig"
144 source "src/mainboard/jetway/Kconfig"
145 source "src/mainboard/kontron/Kconfig"
146 source "src/mainboard/lanner/Kconfig"
147 source "src/mainboard/lippert/Kconfig"
148 source "src/mainboard/mitac/Kconfig"
149 source "src/mainboard/msi/Kconfig"
150 source "src/mainboard/nec/Kconfig"
151 source "src/mainboard/newisys/Kconfig"
152 source "src/mainboard/nokia/Kconfig"
153 source "src/mainboard/nvidia/Kconfig"
154 source "src/mainboard/pcengines/Kconfig"
155 source "src/mainboard/rca/Kconfig"
156 source "src/mainboard/roda/Kconfig"
157 source "src/mainboard/soyo/Kconfig"
158 source "src/mainboard/sunw/Kconfig"
159 source "src/mainboard/supermicro/Kconfig"
160 source "src/mainboard/technexion/Kconfig"
161 source "src/mainboard/technologic/Kconfig"
162 source "src/mainboard/televideo/Kconfig"
163 source "src/mainboard/thomson/Kconfig"
164 source "src/mainboard/traverse/Kconfig"
165 source "src/mainboard/tyan/Kconfig"
166 source "src/mainboard/via/Kconfig"
167 source "src/mainboard/winent/Kconfig"
168 source "src/mainboard/wyse/Kconfig"
169
170 config BOARD_ROMSIZE_KB_128
171         bool
172 config BOARD_ROMSIZE_KB_256
173         bool
174 config BOARD_ROMSIZE_KB_512
175         bool
176 config BOARD_ROMSIZE_KB_1024
177         bool
178 config BOARD_ROMSIZE_KB_2048
179         bool
180 config BOARD_ROMSIZE_KB_4096
181         bool
182
183 # TODO: No help text possible for choice fields?
184 choice
185         prompt "ROM chip size"
186         default COREBOOT_ROMSIZE_KB_128 if BOARD_ROMSIZE_KB_128
187         default COREBOOT_ROMSIZE_KB_256 if BOARD_ROMSIZE_KB_256
188         default COREBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512
189         default COREBOOT_ROMSIZE_KB_1024 if BOARD_ROMSIZE_KB_1024
190         default COREBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048
191         default COREBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096
192         help
193           Select the size of the ROM chip you intend to flash coreboot on.
194
195           The build system will take care of creating a coreboot.rom file
196           of the matching size.
197
198 config COREBOOT_ROMSIZE_KB_128
199         bool "128 KB"
200         help
201           Choose this option if you have a 128 KB ROM chip.
202
203 config COREBOOT_ROMSIZE_KB_256
204         bool "256 KB"
205         help
206           Choose this option if you have a 256 KB ROM chip.
207
208 config COREBOOT_ROMSIZE_KB_512
209         bool "512 KB"
210         help
211           Choose this option if you have a 512 KB ROM chip.
212
213 config COREBOOT_ROMSIZE_KB_1024
214         bool "1024 KB (1 MB)"
215         help
216           Choose this option if you have a 1024 KB (1 MB) ROM chip.
217
218 config COREBOOT_ROMSIZE_KB_2048
219         bool "2048 KB (2 MB)"
220         help
221           Choose this option if you have a 2048 KB (2 MB) ROM chip.
222
223 config COREBOOT_ROMSIZE_KB_4096
224         bool "4096 KB (4 MB)"
225         help
226           Choose this option if you have a 4096 KB (4 MB) ROM chip.
227
228 endchoice
229
230 # Map the config names to an integer (KB).
231 config COREBOOT_ROMSIZE_KB
232         int
233         default 128 if COREBOOT_ROMSIZE_KB_128
234         default 256 if COREBOOT_ROMSIZE_KB_256
235         default 512 if COREBOOT_ROMSIZE_KB_512
236         default 1024 if COREBOOT_ROMSIZE_KB_1024
237         default 2048 if COREBOOT_ROMSIZE_KB_2048
238         default 4096 if COREBOOT_ROMSIZE_KB_4096
239
240 # Map the config names to a hex value (bytes).
241 config ROM_SIZE
242         hex
243         default 0x20000 if COREBOOT_ROMSIZE_KB_128
244         default 0x40000 if COREBOOT_ROMSIZE_KB_256
245         default 0x80000 if COREBOOT_ROMSIZE_KB_512
246         default 0x100000 if COREBOOT_ROMSIZE_KB_1024
247         default 0x200000 if COREBOOT_ROMSIZE_KB_2048
248         default 0x400000 if COREBOOT_ROMSIZE_KB_4096
249
250 config ENABLE_POWER_BUTTON
251         bool "Enable the power button" if POWER_BUTTON_IS_OPTIONAL
252         default y if POWER_BUTTON_DEFAULT_ENABLE
253         default n if POWER_BUTTON_DEFAULT_DISABLE
254         help
255           The selected mainboard can optionally have the power button tied
256           to ground with a jumper so that the button appears to be
257           constantly depressed. If this option is enabled and the jumper is
258           installed then the board will turn on, but turn off again after a
259           short timeout, usually 4 seconds.
260
261           Select Y here if you have removed the jumper and want to use an
262           actual power button. Select N if you have the jumper installed.
263
264 config ENABLE_POWER_BUTTON
265         def_bool y if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_ENABLE
266         def_bool n if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_DISABLE
267
268 endmenu