Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 1 | choice |
| 2 | prompt "Mainboard vendor" |
| 3 | default VENDOR_EMULATION |
| 4 | |
Stefan Reinauer | 139e106 | 2015-04-03 20:11:13 +0200 | [diff] [blame] | 5 | source "src/mainboard/*/Kconfig.name" |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 6 | |
| 7 | endchoice |
| 8 | |
Stefan Reinauer | 139e106 | 2015-04-03 20:11:13 +0200 | [diff] [blame] | 9 | source "src/mainboard/*/Kconfig" |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 10 | |
Rudolf Marek | ae012486 | 2012-03-25 19:19:03 +0200 | [diff] [blame] | 11 | config BOARD_ROMSIZE_KB_64 |
| 12 | bool |
Uwe Hermann | d65509d | 2009-10-16 17:37:20 +0000 | [diff] [blame] | 13 | config BOARD_ROMSIZE_KB_128 |
| 14 | bool |
| 15 | config BOARD_ROMSIZE_KB_256 |
| 16 | bool |
| 17 | config BOARD_ROMSIZE_KB_512 |
| 18 | bool |
| 19 | config BOARD_ROMSIZE_KB_1024 |
| 20 | bool |
| 21 | config BOARD_ROMSIZE_KB_2048 |
| 22 | bool |
| 23 | config BOARD_ROMSIZE_KB_4096 |
| 24 | bool |
Cristian Măgherușan-Stanciu | 46b033e | 2011-06-19 21:07:20 +0000 | [diff] [blame] | 25 | config BOARD_ROMSIZE_KB_8192 |
| 26 | bool |
Vladimir Serbinenko | 01d06dc | 2014-01-15 15:52:31 +0100 | [diff] [blame] | 27 | config BOARD_ROMSIZE_KB_12288 |
| 28 | bool |
Cristian Măgherușan-Stanciu | 46b033e | 2011-06-19 21:07:20 +0000 | [diff] [blame] | 29 | config BOARD_ROMSIZE_KB_16384 |
| 30 | bool |
Uwe Hermann | d65509d | 2009-10-16 17:37:20 +0000 | [diff] [blame] | 31 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 32 | # TODO: No help text possible for choice fields? |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 33 | choice |
| 34 | prompt "ROM chip size" |
Rudolf Marek | ae012486 | 2012-03-25 19:19:03 +0200 | [diff] [blame] | 35 | default COREBOOT_ROMSIZE_KB_64 if BOARD_ROMSIZE_KB_64 |
Uwe Hermann | d65509d | 2009-10-16 17:37:20 +0000 | [diff] [blame] | 36 | 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-Stanciu | 46b033e | 2011-06-19 21:07:20 +0000 | [diff] [blame] | 42 | default COREBOOT_ROMSIZE_KB_8192 if BOARD_ROMSIZE_KB_8192 |
Vladimir Serbinenko | 01d06dc | 2014-01-15 15:52:31 +0100 | [diff] [blame] | 43 | 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] | 44 | default COREBOOT_ROMSIZE_KB_16384 if BOARD_ROMSIZE_KB_16384 |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 45 | 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 Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 50 | |
Rudolf Marek | ae012486 | 2012-03-25 19:19:03 +0200 | [diff] [blame] | 51 | config COREBOOT_ROMSIZE_KB_64 |
| 52 | bool "64 KB" |
| 53 | help |
| 54 | Choose this option if you have a 64 KB ROM chip. |
| 55 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 56 | config COREBOOT_ROMSIZE_KB_128 |
| 57 | bool "128 KB" |
| 58 | help |
| 59 | Choose this option if you have a 128 KB ROM chip. |
| 60 | |
| 61 | config COREBOOT_ROMSIZE_KB_256 |
| 62 | bool "256 KB" |
| 63 | help |
| 64 | Choose this option if you have a 256 KB ROM chip. |
| 65 | |
| 66 | config COREBOOT_ROMSIZE_KB_512 |
| 67 | bool "512 KB" |
| 68 | help |
| 69 | Choose this option if you have a 512 KB ROM chip. |
| 70 | |
| 71 | config 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 | |
| 76 | config 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 Magherusan | 7e92ff3 | 2009-08-17 14:33:03 +0000 | [diff] [blame] | 81 | config 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-Stanciu | 46b033e | 2011-06-19 21:07:20 +0000 | [diff] [blame] | 86 | config 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 Serbinenko | 01d06dc | 2014-01-15 15:52:31 +0100 | [diff] [blame] | 91 | config 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-Stanciu | 46b033e | 2011-06-19 21:07:20 +0000 | [diff] [blame] | 96 | config 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 Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 101 | endchoice |
| 102 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 103 | # Map the config names to an integer (KB). |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 104 | config COREBOOT_ROMSIZE_KB |
| 105 | int |
Rudolf Marek | ae012486 | 2012-03-25 19:19:03 +0200 | [diff] [blame] | 106 | default 64 if COREBOOT_ROMSIZE_KB_64 |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 107 | 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 Magherusan | 7e92ff3 | 2009-08-17 14:33:03 +0000 | [diff] [blame] | 112 | default 4096 if COREBOOT_ROMSIZE_KB_4096 |
Cristian Măgherușan-Stanciu | 46b033e | 2011-06-19 21:07:20 +0000 | [diff] [blame] | 113 | default 8192 if COREBOOT_ROMSIZE_KB_8192 |
Vladimir Serbinenko | 01d06dc | 2014-01-15 15:52:31 +0100 | [diff] [blame] | 114 | default 12288 if COREBOOT_ROMSIZE_KB_12288 |
Cristian Măgherușan-Stanciu | 46b033e | 2011-06-19 21:07:20 +0000 | [diff] [blame] | 115 | default 16384 if COREBOOT_ROMSIZE_KB_16384 |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 116 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 117 | # Map the config names to a hex value (bytes). |
Patrick Georgi | 88f55b2 | 2009-09-25 18:43:02 +0000 | [diff] [blame] | 118 | config ROM_SIZE |
| 119 | hex |
Rudolf Marek | ae012486 | 2012-03-25 19:19:03 +0200 | [diff] [blame] | 120 | default 0x10000 if COREBOOT_ROMSIZE_KB_64 |
Patrick Georgi | 88f55b2 | 2009-09-25 18:43:02 +0000 | [diff] [blame] | 121 | 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-Stanciu | 46b033e | 2011-06-19 21:07:20 +0000 | [diff] [blame] | 127 | default 0x800000 if COREBOOT_ROMSIZE_KB_8192 |
Vladimir Serbinenko | 01d06dc | 2014-01-15 15:52:31 +0100 | [diff] [blame] | 128 | default 0xc00000 if COREBOOT_ROMSIZE_KB_12288 |
Cristian Măgherușan-Stanciu | 46b033e | 2011-06-19 21:07:20 +0000 | [diff] [blame] | 129 | default 0x1000000 if COREBOOT_ROMSIZE_KB_16384 |
Patrick Georgi | 88f55b2 | 2009-09-25 18:43:02 +0000 | [diff] [blame] | 130 | |
Peter Stuge | 51eafde | 2010-10-13 06:23:02 +0000 | [diff] [blame] | 131 | config 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 | |
| 145 | config 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 |