Martin Roth | f3e2679 | 2016-12-22 10:21:11 -0700 | [diff] [blame] | 1 | comment "Important: Run 'make distclean' before switching boards" |
| 2 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 3 | choice |
| 4 | prompt "Mainboard vendor" |
| 5 | default VENDOR_EMULATION |
| 6 | |
Stefan Reinauer | 139e106 | 2015-04-03 20:11:13 +0200 | [diff] [blame] | 7 | source "src/mainboard/*/Kconfig.name" |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 8 | |
| 9 | endchoice |
| 10 | |
Stefan Reinauer | 139e106 | 2015-04-03 20:11:13 +0200 | [diff] [blame] | 11 | source "src/mainboard/*/Kconfig" |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 12 | |
Rudolf Marek | ae012486 | 2012-03-25 19:19:03 +0200 | [diff] [blame] | 13 | config BOARD_ROMSIZE_KB_64 |
| 14 | bool |
Uwe Hermann | d65509d | 2009-10-16 17:37:20 +0000 | [diff] [blame] | 15 | config BOARD_ROMSIZE_KB_128 |
| 16 | bool |
| 17 | config BOARD_ROMSIZE_KB_256 |
| 18 | bool |
| 19 | config BOARD_ROMSIZE_KB_512 |
| 20 | bool |
| 21 | config BOARD_ROMSIZE_KB_1024 |
| 22 | bool |
| 23 | config BOARD_ROMSIZE_KB_2048 |
| 24 | bool |
| 25 | config BOARD_ROMSIZE_KB_4096 |
| 26 | bool |
Cristian Măgherușan-Stanciu | 46b033e | 2011-06-19 21:07:20 +0000 | [diff] [blame] | 27 | config BOARD_ROMSIZE_KB_8192 |
| 28 | bool |
Vladimir Serbinenko | 01d06dc | 2014-01-15 15:52:31 +0100 | [diff] [blame] | 29 | config BOARD_ROMSIZE_KB_12288 |
| 30 | bool |
Cristian Măgherușan-Stanciu | 46b033e | 2011-06-19 21:07:20 +0000 | [diff] [blame] | 31 | config BOARD_ROMSIZE_KB_16384 |
| 32 | bool |
Lee Leahy | 6735871 | 2016-06-08 12:47:07 -0700 | [diff] [blame] | 33 | config BOARD_ROMSIZE_KB_32768 |
| 34 | bool |
| 35 | config BOARD_ROMSIZE_KB_65536 |
| 36 | bool |
Uwe Hermann | d65509d | 2009-10-16 17:37:20 +0000 | [diff] [blame] | 37 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 38 | # TODO: No help text possible for choice fields? |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 39 | choice |
| 40 | prompt "ROM chip size" |
Rudolf Marek | ae012486 | 2012-03-25 19:19:03 +0200 | [diff] [blame] | 41 | default COREBOOT_ROMSIZE_KB_64 if BOARD_ROMSIZE_KB_64 |
Uwe Hermann | d65509d | 2009-10-16 17:37:20 +0000 | [diff] [blame] | 42 | 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-Stanciu | 46b033e | 2011-06-19 21:07:20 +0000 | [diff] [blame] | 48 | default COREBOOT_ROMSIZE_KB_8192 if BOARD_ROMSIZE_KB_8192 |
Vladimir Serbinenko | 01d06dc | 2014-01-15 15:52:31 +0100 | [diff] [blame] | 49 | default COREBOOT_ROMSIZE_KB_12288 if BOARD_ROMSIZE_KB_12288 |
Cristian Măgherușan-Stanciu | 46b033e | 2011-06-19 21:07:20 +0000 | [diff] [blame] | 50 | default COREBOOT_ROMSIZE_KB_16384 if BOARD_ROMSIZE_KB_16384 |
Lee Leahy | 6735871 | 2016-06-08 12:47:07 -0700 | [diff] [blame] | 51 | default COREBOOT_ROMSIZE_KB_32768 if BOARD_ROMSIZE_KB_32768 |
| 52 | default COREBOOT_ROMSIZE_KB_65536 if BOARD_ROMSIZE_KB_65536 |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 53 | 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 Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 58 | |
Rudolf Marek | ae012486 | 2012-03-25 19:19:03 +0200 | [diff] [blame] | 59 | config COREBOOT_ROMSIZE_KB_64 |
| 60 | bool "64 KB" |
| 61 | help |
| 62 | Choose this option if you have a 64 KB ROM chip. |
| 63 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 64 | config COREBOOT_ROMSIZE_KB_128 |
| 65 | bool "128 KB" |
| 66 | help |
| 67 | Choose this option if you have a 128 KB ROM chip. |
| 68 | |
| 69 | config COREBOOT_ROMSIZE_KB_256 |
| 70 | bool "256 KB" |
| 71 | help |
| 72 | Choose this option if you have a 256 KB ROM chip. |
| 73 | |
| 74 | config COREBOOT_ROMSIZE_KB_512 |
| 75 | bool "512 KB" |
| 76 | help |
| 77 | Choose this option if you have a 512 KB ROM chip. |
| 78 | |
| 79 | config 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 | |
| 84 | config 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 Magherusan | 7e92ff3 | 2009-08-17 14:33:03 +0000 | [diff] [blame] | 89 | config 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-Stanciu | 46b033e | 2011-06-19 21:07:20 +0000 | [diff] [blame] | 94 | config 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 Serbinenko | 01d06dc | 2014-01-15 15:52:31 +0100 | [diff] [blame] | 99 | config 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-Stanciu | 46b033e | 2011-06-19 21:07:20 +0000 | [diff] [blame] | 104 | config 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 Leahy | 6735871 | 2016-06-08 12:47:07 -0700 | [diff] [blame] | 109 | config 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 | |
| 114 | config 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 Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 119 | endchoice |
| 120 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 121 | # Map the config names to an integer (KB). |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 122 | config COREBOOT_ROMSIZE_KB |
| 123 | int |
Rudolf Marek | ae012486 | 2012-03-25 19:19:03 +0200 | [diff] [blame] | 124 | default 64 if COREBOOT_ROMSIZE_KB_64 |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 125 | 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 Magherusan | 7e92ff3 | 2009-08-17 14:33:03 +0000 | [diff] [blame] | 130 | default 4096 if COREBOOT_ROMSIZE_KB_4096 |
Cristian Măgherușan-Stanciu | 46b033e | 2011-06-19 21:07:20 +0000 | [diff] [blame] | 131 | default 8192 if COREBOOT_ROMSIZE_KB_8192 |
Vladimir Serbinenko | 01d06dc | 2014-01-15 15:52:31 +0100 | [diff] [blame] | 132 | default 12288 if COREBOOT_ROMSIZE_KB_12288 |
Cristian Măgherușan-Stanciu | 46b033e | 2011-06-19 21:07:20 +0000 | [diff] [blame] | 133 | default 16384 if COREBOOT_ROMSIZE_KB_16384 |
Lee Leahy | 6735871 | 2016-06-08 12:47:07 -0700 | [diff] [blame] | 134 | default 32768 if COREBOOT_ROMSIZE_KB_32768 |
| 135 | default 65536 if COREBOOT_ROMSIZE_KB_65536 |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 136 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 137 | # Map the config names to a hex value (bytes). |
Patrick Georgi | 88f55b2 | 2009-09-25 18:43:02 +0000 | [diff] [blame] | 138 | config ROM_SIZE |
| 139 | hex |
Rudolf Marek | ae012486 | 2012-03-25 19:19:03 +0200 | [diff] [blame] | 140 | default 0x10000 if COREBOOT_ROMSIZE_KB_64 |
Patrick Georgi | 88f55b2 | 2009-09-25 18:43:02 +0000 | [diff] [blame] | 141 | 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-Stanciu | 46b033e | 2011-06-19 21:07:20 +0000 | [diff] [blame] | 147 | default 0x800000 if COREBOOT_ROMSIZE_KB_8192 |
Vladimir Serbinenko | 01d06dc | 2014-01-15 15:52:31 +0100 | [diff] [blame] | 148 | default 0xc00000 if COREBOOT_ROMSIZE_KB_12288 |
Cristian Măgherușan-Stanciu | 46b033e | 2011-06-19 21:07:20 +0000 | [diff] [blame] | 149 | default 0x1000000 if COREBOOT_ROMSIZE_KB_16384 |
Lee Leahy | 6735871 | 2016-06-08 12:47:07 -0700 | [diff] [blame] | 150 | default 0x2000000 if COREBOOT_ROMSIZE_KB_32768 |
| 151 | default 0x4000000 if COREBOOT_ROMSIZE_KB_65536 |
Patrick Georgi | 88f55b2 | 2009-09-25 18:43:02 +0000 | [diff] [blame] | 152 | |
Peter Stuge | 51eafde | 2010-10-13 06:23:02 +0000 | [diff] [blame] | 153 | config 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 | |
| 167 | config 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 |