blob: bdaa9e75c9452b91a1484ef59f6597b68494b157 [file] [log] [blame]
Martin Rothf3e26792016-12-22 10:21:11 -07001comment "Important: Run 'make distclean' before switching boards"
2
Patrick Georgi0588d192009-08-12 15:00:51 +00003choice
4 prompt "Mainboard vendor"
5 default VENDOR_EMULATION
6
Stefan Reinauer139e1062015-04-03 20:11:13 +02007source "src/mainboard/*/Kconfig.name"
Patrick Georgi0588d192009-08-12 15:00:51 +00008
9endchoice
10
Stefan Reinauer139e1062015-04-03 20:11:13 +020011source "src/mainboard/*/Kconfig"
Patrick Georgi0588d192009-08-12 15:00:51 +000012
Rudolf Marekae0124862012-03-25 19:19:03 +020013config BOARD_ROMSIZE_KB_64
14 bool
Uwe Hermannd65509d2009-10-16 17:37:20 +000015config BOARD_ROMSIZE_KB_128
16 bool
17config BOARD_ROMSIZE_KB_256
18 bool
19config BOARD_ROMSIZE_KB_512
20 bool
21config BOARD_ROMSIZE_KB_1024
22 bool
23config BOARD_ROMSIZE_KB_2048
24 bool
25config BOARD_ROMSIZE_KB_4096
26 bool
Cristian Măgherușan-Stanciu46b033e2011-06-19 21:07:20 +000027config BOARD_ROMSIZE_KB_8192
28 bool
Vladimir Serbinenko01d06dc2014-01-15 15:52:31 +010029config BOARD_ROMSIZE_KB_12288
30 bool
Cristian Măgherușan-Stanciu46b033e2011-06-19 21:07:20 +000031config BOARD_ROMSIZE_KB_16384
32 bool
Lee Leahy67358712016-06-08 12:47:07 -070033config BOARD_ROMSIZE_KB_32768
34 bool
35config BOARD_ROMSIZE_KB_65536
36 bool
Uwe Hermannd65509d2009-10-16 17:37:20 +000037
Uwe Hermann168b11b2009-10-07 16:15:40 +000038# TODO: No help text possible for choice fields?
Patrick Georgi0588d192009-08-12 15:00:51 +000039choice
40 prompt "ROM chip size"
Rudolf Marekae0124862012-03-25 19:19:03 +020041 default COREBOOT_ROMSIZE_KB_64 if BOARD_ROMSIZE_KB_64
Uwe Hermannd65509d2009-10-16 17:37:20 +000042 default COREBOOT_ROMSIZE_KB_128 if BOARD_ROMSIZE_KB_128
43 default COREBOOT_ROMSIZE_KB_256 if BOARD_ROMSIZE_KB_256
44 default COREBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512
45 default COREBOOT_ROMSIZE_KB_1024 if BOARD_ROMSIZE_KB_1024
46 default COREBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048
47 default COREBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096
Cristian Măgherușan-Stanciu46b033e2011-06-19 21:07:20 +000048 default COREBOOT_ROMSIZE_KB_8192 if BOARD_ROMSIZE_KB_8192
Vladimir Serbinenko01d06dc2014-01-15 15:52:31 +010049 default COREBOOT_ROMSIZE_KB_12288 if BOARD_ROMSIZE_KB_12288
Cristian Măgherușan-Stanciu46b033e2011-06-19 21:07:20 +000050 default COREBOOT_ROMSIZE_KB_16384 if BOARD_ROMSIZE_KB_16384
Lee Leahy67358712016-06-08 12:47:07 -070051 default COREBOOT_ROMSIZE_KB_32768 if BOARD_ROMSIZE_KB_32768
52 default COREBOOT_ROMSIZE_KB_65536 if BOARD_ROMSIZE_KB_65536
Uwe Hermann168b11b2009-10-07 16:15:40 +000053 help
54 Select the size of the ROM chip you intend to flash coreboot on.
55
56 The build system will take care of creating a coreboot.rom file
57 of the matching size.
Patrick Georgi0588d192009-08-12 15:00:51 +000058
Rudolf Marekae0124862012-03-25 19:19:03 +020059config COREBOOT_ROMSIZE_KB_64
60 bool "64 KB"
61 help
62 Choose this option if you have a 64 KB ROM chip.
63
Patrick Georgi0588d192009-08-12 15:00:51 +000064config COREBOOT_ROMSIZE_KB_128
65 bool "128 KB"
66 help
67 Choose this option if you have a 128 KB ROM chip.
68
69config COREBOOT_ROMSIZE_KB_256
70 bool "256 KB"
71 help
72 Choose this option if you have a 256 KB ROM chip.
73
74config COREBOOT_ROMSIZE_KB_512
75 bool "512 KB"
76 help
77 Choose this option if you have a 512 KB ROM chip.
78
79config COREBOOT_ROMSIZE_KB_1024
80 bool "1024 KB (1 MB)"
81 help
82 Choose this option if you have a 1024 KB (1 MB) ROM chip.
83
84config COREBOOT_ROMSIZE_KB_2048
85 bool "2048 KB (2 MB)"
86 help
87 Choose this option if you have a 2048 KB (2 MB) ROM chip.
88
Cristi Magherusan7e92ff32009-08-17 14:33:03 +000089config COREBOOT_ROMSIZE_KB_4096
90 bool "4096 KB (4 MB)"
91 help
92 Choose this option if you have a 4096 KB (4 MB) ROM chip.
93
Cristian Măgherușan-Stanciu46b033e2011-06-19 21:07:20 +000094config COREBOOT_ROMSIZE_KB_8192
95 bool "8192 KB (8 MB)"
96 help
97 Choose this option if you have a 8192 KB (8 MB) ROM chip.
98
Vladimir Serbinenko01d06dc2014-01-15 15:52:31 +010099config COREBOOT_ROMSIZE_KB_12288
100 bool "12288 KB (12 MB)"
101 help
102 Choose this option if you have a 12288 KB (12 MB) ROM chip.
103
Cristian Măgherușan-Stanciu46b033e2011-06-19 21:07:20 +0000104config COREBOOT_ROMSIZE_KB_16384
105 bool "16384 KB (16 MB)"
106 help
107 Choose this option if you have a 16384 KB (16 MB) ROM chip.
108
Lee Leahy67358712016-06-08 12:47:07 -0700109config COREBOOT_ROMSIZE_KB_32768
110 bool "32768 KB (32 MB)"
111 help
112 Choose this option if you have a 32768 KB (32 MB) ROM chip.
113
114config COREBOOT_ROMSIZE_KB_65536
115 bool "65536 KB (64 MB)"
116 help
117 Choose this option if you have a 65536 KB (64 MB) ROM chip.
118
Patrick Georgi0588d192009-08-12 15:00:51 +0000119endchoice
120
Uwe Hermann168b11b2009-10-07 16:15:40 +0000121# Map the config names to an integer (KB).
Patrick Georgi0588d192009-08-12 15:00:51 +0000122config COREBOOT_ROMSIZE_KB
123 int
Rudolf Marekae0124862012-03-25 19:19:03 +0200124 default 64 if COREBOOT_ROMSIZE_KB_64
Patrick Georgi0588d192009-08-12 15:00:51 +0000125 default 128 if COREBOOT_ROMSIZE_KB_128
126 default 256 if COREBOOT_ROMSIZE_KB_256
127 default 512 if COREBOOT_ROMSIZE_KB_512
128 default 1024 if COREBOOT_ROMSIZE_KB_1024
129 default 2048 if COREBOOT_ROMSIZE_KB_2048
Cristi Magherusan7e92ff32009-08-17 14:33:03 +0000130 default 4096 if COREBOOT_ROMSIZE_KB_4096
Cristian Măgherușan-Stanciu46b033e2011-06-19 21:07:20 +0000131 default 8192 if COREBOOT_ROMSIZE_KB_8192
Vladimir Serbinenko01d06dc2014-01-15 15:52:31 +0100132 default 12288 if COREBOOT_ROMSIZE_KB_12288
Cristian Măgherușan-Stanciu46b033e2011-06-19 21:07:20 +0000133 default 16384 if COREBOOT_ROMSIZE_KB_16384
Lee Leahy67358712016-06-08 12:47:07 -0700134 default 32768 if COREBOOT_ROMSIZE_KB_32768
135 default 65536 if COREBOOT_ROMSIZE_KB_65536
Patrick Georgi0588d192009-08-12 15:00:51 +0000136
Uwe Hermann168b11b2009-10-07 16:15:40 +0000137# Map the config names to a hex value (bytes).
Patrick Georgi88f55b22009-09-25 18:43:02 +0000138config ROM_SIZE
139 hex
Rudolf Marekae0124862012-03-25 19:19:03 +0200140 default 0x10000 if COREBOOT_ROMSIZE_KB_64
Patrick Georgi88f55b22009-09-25 18:43:02 +0000141 default 0x20000 if COREBOOT_ROMSIZE_KB_128
142 default 0x40000 if COREBOOT_ROMSIZE_KB_256
143 default 0x80000 if COREBOOT_ROMSIZE_KB_512
144 default 0x100000 if COREBOOT_ROMSIZE_KB_1024
145 default 0x200000 if COREBOOT_ROMSIZE_KB_2048
146 default 0x400000 if COREBOOT_ROMSIZE_KB_4096
Cristian Măgherușan-Stanciu46b033e2011-06-19 21:07:20 +0000147 default 0x800000 if COREBOOT_ROMSIZE_KB_8192
Vladimir Serbinenko01d06dc2014-01-15 15:52:31 +0100148 default 0xc00000 if COREBOOT_ROMSIZE_KB_12288
Cristian Măgherușan-Stanciu46b033e2011-06-19 21:07:20 +0000149 default 0x1000000 if COREBOOT_ROMSIZE_KB_16384
Lee Leahy67358712016-06-08 12:47:07 -0700150 default 0x2000000 if COREBOOT_ROMSIZE_KB_32768
151 default 0x4000000 if COREBOOT_ROMSIZE_KB_65536
Patrick Georgi88f55b22009-09-25 18:43:02 +0000152
Peter Stuge51eafde2010-10-13 06:23:02 +0000153config ENABLE_POWER_BUTTON
154 bool "Enable the power button" if POWER_BUTTON_IS_OPTIONAL
155 default y if POWER_BUTTON_DEFAULT_ENABLE
156 default n if POWER_BUTTON_DEFAULT_DISABLE
157 help
158 The selected mainboard can optionally have the power button tied
159 to ground with a jumper so that the button appears to be
160 constantly depressed. If this option is enabled and the jumper is
161 installed then the board will turn on, but turn off again after a
162 short timeout, usually 4 seconds.
163
164 Select Y here if you have removed the jumper and want to use an
165 actual power button. Select N if you have the jumper installed.
166
167config ENABLE_POWER_BUTTON
168 def_bool y if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_ENABLE
169 def_bool n if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_DISABLE