blob: ab8ee26a9dc004ee0eba63fed8ae01cb0961d978 [file] [log] [blame]
Patrick Georgi0588d192009-08-12 15:00:51 +00001choice
2 prompt "Mainboard vendor"
3 default VENDOR_EMULATION
4
Stefan Reinauer139e1062015-04-03 20:11:13 +02005source "src/mainboard/*/Kconfig.name"
Patrick Georgi0588d192009-08-12 15:00:51 +00006
7endchoice
8
Stefan Reinauer139e1062015-04-03 20:11:13 +02009source "src/mainboard/*/Kconfig"
Patrick Georgi0588d192009-08-12 15:00:51 +000010
Rudolf Marekae0124862012-03-25 19:19:03 +020011config BOARD_ROMSIZE_KB_64
12 bool
Uwe Hermannd65509d2009-10-16 17:37:20 +000013config BOARD_ROMSIZE_KB_128
14 bool
15config BOARD_ROMSIZE_KB_256
16 bool
17config BOARD_ROMSIZE_KB_512
18 bool
19config BOARD_ROMSIZE_KB_1024
20 bool
21config BOARD_ROMSIZE_KB_2048
22 bool
23config BOARD_ROMSIZE_KB_4096
24 bool
Cristian Măgherușan-Stanciu46b033e2011-06-19 21:07:20 +000025config BOARD_ROMSIZE_KB_8192
26 bool
Vladimir Serbinenko01d06dc2014-01-15 15:52:31 +010027config BOARD_ROMSIZE_KB_12288
28 bool
Cristian Măgherușan-Stanciu46b033e2011-06-19 21:07:20 +000029config BOARD_ROMSIZE_KB_16384
30 bool
Uwe Hermannd65509d2009-10-16 17:37:20 +000031
Uwe Hermann168b11b2009-10-07 16:15:40 +000032# TODO: No help text possible for choice fields?
Patrick Georgi0588d192009-08-12 15:00:51 +000033choice
34 prompt "ROM chip size"
Rudolf Marekae0124862012-03-25 19:19:03 +020035 default COREBOOT_ROMSIZE_KB_64 if BOARD_ROMSIZE_KB_64
Uwe Hermannd65509d2009-10-16 17:37:20 +000036 default COREBOOT_ROMSIZE_KB_128 if BOARD_ROMSIZE_KB_128
37 default COREBOOT_ROMSIZE_KB_256 if BOARD_ROMSIZE_KB_256
38 default COREBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512
39 default COREBOOT_ROMSIZE_KB_1024 if BOARD_ROMSIZE_KB_1024
40 default COREBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048
41 default COREBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096
Cristian Măgherușan-Stanciu46b033e2011-06-19 21:07:20 +000042 default COREBOOT_ROMSIZE_KB_8192 if BOARD_ROMSIZE_KB_8192
Vladimir Serbinenko01d06dc2014-01-15 15:52:31 +010043 default COREBOOT_ROMSIZE_KB_12288 if BOARD_ROMSIZE_KB_12288
Cristian Măgherușan-Stanciu46b033e2011-06-19 21:07:20 +000044 default COREBOOT_ROMSIZE_KB_16384 if BOARD_ROMSIZE_KB_16384
Uwe Hermann168b11b2009-10-07 16:15:40 +000045 help
46 Select the size of the ROM chip you intend to flash coreboot on.
47
48 The build system will take care of creating a coreboot.rom file
49 of the matching size.
Patrick Georgi0588d192009-08-12 15:00:51 +000050
Rudolf Marekae0124862012-03-25 19:19:03 +020051config COREBOOT_ROMSIZE_KB_64
52 bool "64 KB"
53 help
54 Choose this option if you have a 64 KB ROM chip.
55
Patrick Georgi0588d192009-08-12 15:00:51 +000056config COREBOOT_ROMSIZE_KB_128
57 bool "128 KB"
58 help
59 Choose this option if you have a 128 KB ROM chip.
60
61config COREBOOT_ROMSIZE_KB_256
62 bool "256 KB"
63 help
64 Choose this option if you have a 256 KB ROM chip.
65
66config COREBOOT_ROMSIZE_KB_512
67 bool "512 KB"
68 help
69 Choose this option if you have a 512 KB ROM chip.
70
71config COREBOOT_ROMSIZE_KB_1024
72 bool "1024 KB (1 MB)"
73 help
74 Choose this option if you have a 1024 KB (1 MB) ROM chip.
75
76config COREBOOT_ROMSIZE_KB_2048
77 bool "2048 KB (2 MB)"
78 help
79 Choose this option if you have a 2048 KB (2 MB) ROM chip.
80
Cristi Magherusan7e92ff32009-08-17 14:33:03 +000081config COREBOOT_ROMSIZE_KB_4096
82 bool "4096 KB (4 MB)"
83 help
84 Choose this option if you have a 4096 KB (4 MB) ROM chip.
85
Cristian Măgherușan-Stanciu46b033e2011-06-19 21:07:20 +000086config COREBOOT_ROMSIZE_KB_8192
87 bool "8192 KB (8 MB)"
88 help
89 Choose this option if you have a 8192 KB (8 MB) ROM chip.
90
Vladimir Serbinenko01d06dc2014-01-15 15:52:31 +010091config COREBOOT_ROMSIZE_KB_12288
92 bool "12288 KB (12 MB)"
93 help
94 Choose this option if you have a 12288 KB (12 MB) ROM chip.
95
Cristian Măgherușan-Stanciu46b033e2011-06-19 21:07:20 +000096config COREBOOT_ROMSIZE_KB_16384
97 bool "16384 KB (16 MB)"
98 help
99 Choose this option if you have a 16384 KB (16 MB) ROM chip.
100
Patrick Georgi0588d192009-08-12 15:00:51 +0000101endchoice
102
Uwe Hermann168b11b2009-10-07 16:15:40 +0000103# Map the config names to an integer (KB).
Patrick Georgi0588d192009-08-12 15:00:51 +0000104config COREBOOT_ROMSIZE_KB
105 int
Rudolf Marekae0124862012-03-25 19:19:03 +0200106 default 64 if COREBOOT_ROMSIZE_KB_64
Patrick Georgi0588d192009-08-12 15:00:51 +0000107 default 128 if COREBOOT_ROMSIZE_KB_128
108 default 256 if COREBOOT_ROMSIZE_KB_256
109 default 512 if COREBOOT_ROMSIZE_KB_512
110 default 1024 if COREBOOT_ROMSIZE_KB_1024
111 default 2048 if COREBOOT_ROMSIZE_KB_2048
Cristi Magherusan7e92ff32009-08-17 14:33:03 +0000112 default 4096 if COREBOOT_ROMSIZE_KB_4096
Cristian Măgherușan-Stanciu46b033e2011-06-19 21:07:20 +0000113 default 8192 if COREBOOT_ROMSIZE_KB_8192
Vladimir Serbinenko01d06dc2014-01-15 15:52:31 +0100114 default 12288 if COREBOOT_ROMSIZE_KB_12288
Cristian Măgherușan-Stanciu46b033e2011-06-19 21:07:20 +0000115 default 16384 if COREBOOT_ROMSIZE_KB_16384
Patrick Georgi0588d192009-08-12 15:00:51 +0000116
Uwe Hermann168b11b2009-10-07 16:15:40 +0000117# Map the config names to a hex value (bytes).
Patrick Georgi88f55b22009-09-25 18:43:02 +0000118config ROM_SIZE
119 hex
Rudolf Marekae0124862012-03-25 19:19:03 +0200120 default 0x10000 if COREBOOT_ROMSIZE_KB_64
Patrick Georgi88f55b22009-09-25 18:43:02 +0000121 default 0x20000 if COREBOOT_ROMSIZE_KB_128
122 default 0x40000 if COREBOOT_ROMSIZE_KB_256
123 default 0x80000 if COREBOOT_ROMSIZE_KB_512
124 default 0x100000 if COREBOOT_ROMSIZE_KB_1024
125 default 0x200000 if COREBOOT_ROMSIZE_KB_2048
126 default 0x400000 if COREBOOT_ROMSIZE_KB_4096
Cristian Măgherușan-Stanciu46b033e2011-06-19 21:07:20 +0000127 default 0x800000 if COREBOOT_ROMSIZE_KB_8192
Vladimir Serbinenko01d06dc2014-01-15 15:52:31 +0100128 default 0xc00000 if COREBOOT_ROMSIZE_KB_12288
Cristian Măgherușan-Stanciu46b033e2011-06-19 21:07:20 +0000129 default 0x1000000 if COREBOOT_ROMSIZE_KB_16384
Patrick Georgi88f55b22009-09-25 18:43:02 +0000130
Peter Stuge51eafde2010-10-13 06:23:02 +0000131config ENABLE_POWER_BUTTON
132 bool "Enable the power button" if POWER_BUTTON_IS_OPTIONAL
133 default y if POWER_BUTTON_DEFAULT_ENABLE
134 default n if POWER_BUTTON_DEFAULT_DISABLE
135 help
136 The selected mainboard can optionally have the power button tied
137 to ground with a jumper so that the button appears to be
138 constantly depressed. If this option is enabled and the jumper is
139 installed then the board will turn on, but turn off again after a
140 short timeout, usually 4 seconds.
141
142 Select Y here if you have removed the jumper and want to use an
143 actual power button. Select N if you have the jumper installed.
144
145config ENABLE_POWER_BUTTON
146 def_bool y if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_ENABLE
147 def_bool n if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_DISABLE