Masahiro Yamada | d3ae678 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 1 | menu "x86 architecture" |
| 2 | depends on X86 |
| 3 | |
| 4 | config SYS_ARCH |
Masahiro Yamada | d3ae678 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 5 | default "x86" |
| 6 | |
Masahiro Yamada | d3ae678 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 7 | choice |
Bin Meng | 03b341b | 2015-04-27 23:22:24 +0800 | [diff] [blame] | 8 | prompt "Mainboard vendor" |
Bin Meng | f9bfac1 | 2015-05-07 21:34:09 +0800 | [diff] [blame] | 9 | default VENDOR_EMULATION |
Masahiro Yamada | d3ae678 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 10 | |
Bin Meng | 03b341b | 2015-04-27 23:22:24 +0800 | [diff] [blame] | 11 | config VENDOR_COREBOOT |
| 12 | bool "coreboot" |
Simon Glass | 4a56f10 | 2015-01-27 22:13:47 -0700 | [diff] [blame] | 13 | |
Bin Meng | 2229c4c | 2015-05-07 21:34:08 +0800 | [diff] [blame] | 14 | config VENDOR_EMULATION |
| 15 | bool "emulation" |
| 16 | |
Bin Meng | 03b341b | 2015-04-27 23:22:24 +0800 | [diff] [blame] | 17 | config VENDOR_GOOGLE |
| 18 | bool "Google" |
Simon Glass | 4a56f10 | 2015-01-27 22:13:47 -0700 | [diff] [blame] | 19 | |
Bin Meng | 03b341b | 2015-04-27 23:22:24 +0800 | [diff] [blame] | 20 | config VENDOR_INTEL |
| 21 | bool "Intel" |
Bin Meng | 8ba49fe | 2015-02-02 22:35:29 +0800 | [diff] [blame] | 22 | |
Masahiro Yamada | d3ae678 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 23 | endchoice |
| 24 | |
Bin Meng | 03b341b | 2015-04-27 23:22:24 +0800 | [diff] [blame] | 25 | # board-specific options below |
| 26 | source "board/coreboot/Kconfig" |
Bin Meng | 2229c4c | 2015-05-07 21:34:08 +0800 | [diff] [blame] | 27 | source "board/emulation/Kconfig" |
Bin Meng | 03b341b | 2015-04-27 23:22:24 +0800 | [diff] [blame] | 28 | source "board/google/Kconfig" |
| 29 | source "board/intel/Kconfig" |
| 30 | |
Bin Meng | 6e8ddec | 2015-04-27 23:22:25 +0800 | [diff] [blame] | 31 | # platform-specific options below |
| 32 | source "arch/x86/cpu/baytrail/Kconfig" |
| 33 | source "arch/x86/cpu/coreboot/Kconfig" |
| 34 | source "arch/x86/cpu/ivybridge/Kconfig" |
Bin Meng | 2229c4c | 2015-05-07 21:34:08 +0800 | [diff] [blame] | 35 | source "arch/x86/cpu/qemu/Kconfig" |
Bin Meng | 6e8ddec | 2015-04-27 23:22:25 +0800 | [diff] [blame] | 36 | source "arch/x86/cpu/quark/Kconfig" |
| 37 | source "arch/x86/cpu/queensbay/Kconfig" |
| 38 | |
| 39 | # architecture-specific options below |
| 40 | |
Simon Glass | 838723b | 2015-02-11 16:32:59 -0700 | [diff] [blame] | 41 | config SYS_MALLOC_F_LEN |
| 42 | default 0x800 |
| 43 | |
Simon Glass | 98f139b | 2014-11-12 22:42:10 -0700 | [diff] [blame] | 44 | config RAMBASE |
| 45 | hex |
| 46 | default 0x100000 |
| 47 | |
Simon Glass | 98f139b | 2014-11-12 22:42:10 -0700 | [diff] [blame] | 48 | config XIP_ROM_SIZE |
| 49 | hex |
Bin Meng | 4cf0b47 | 2015-01-06 22:14:16 +0800 | [diff] [blame] | 50 | depends on X86_RESET_VECTOR |
Simon Glass | d9b083e | 2015-01-01 16:17:54 -0700 | [diff] [blame] | 51 | default ROM_SIZE |
Simon Glass | 98f139b | 2014-11-12 22:42:10 -0700 | [diff] [blame] | 52 | |
| 53 | config CPU_ADDR_BITS |
| 54 | int |
| 55 | default 36 |
| 56 | |
Simon Glass | 268eefd | 2014-11-12 22:42:28 -0700 | [diff] [blame] | 57 | config HPET_ADDRESS |
| 58 | hex |
| 59 | default 0xfed00000 if !HPET_ADDRESS_OVERRIDE |
| 60 | |
| 61 | config SMM_TSEG |
| 62 | bool |
| 63 | default n |
| 64 | |
| 65 | config SMM_TSEG_SIZE |
| 66 | hex |
| 67 | |
Bin Meng | a11937c | 2015-01-06 22:14:15 +0800 | [diff] [blame] | 68 | config X86_RESET_VECTOR |
| 69 | bool |
| 70 | default n |
| 71 | |
| 72 | config SYS_X86_START16 |
| 73 | hex |
| 74 | depends on X86_RESET_VECTOR |
| 75 | default 0xfffff800 |
| 76 | |
Bin Meng | c191ab7 | 2014-12-12 21:05:19 +0800 | [diff] [blame] | 77 | config BOARD_ROMSIZE_KB_512 |
| 78 | bool |
| 79 | config BOARD_ROMSIZE_KB_1024 |
| 80 | bool |
| 81 | config BOARD_ROMSIZE_KB_2048 |
| 82 | bool |
| 83 | config BOARD_ROMSIZE_KB_4096 |
| 84 | bool |
| 85 | config BOARD_ROMSIZE_KB_8192 |
| 86 | bool |
| 87 | config BOARD_ROMSIZE_KB_16384 |
| 88 | bool |
| 89 | |
| 90 | choice |
| 91 | prompt "ROM chip size" |
Bin Meng | 4cf0b47 | 2015-01-06 22:14:16 +0800 | [diff] [blame] | 92 | depends on X86_RESET_VECTOR |
Bin Meng | c191ab7 | 2014-12-12 21:05:19 +0800 | [diff] [blame] | 93 | default UBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512 |
| 94 | default UBOOT_ROMSIZE_KB_1024 if BOARD_ROMSIZE_KB_1024 |
| 95 | default UBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048 |
| 96 | default UBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096 |
| 97 | default UBOOT_ROMSIZE_KB_8192 if BOARD_ROMSIZE_KB_8192 |
| 98 | default UBOOT_ROMSIZE_KB_16384 if BOARD_ROMSIZE_KB_16384 |
| 99 | help |
| 100 | Select the size of the ROM chip you intend to flash U-Boot on. |
| 101 | |
| 102 | The build system will take care of creating a u-boot.rom file |
| 103 | of the matching size. |
| 104 | |
| 105 | config UBOOT_ROMSIZE_KB_512 |
| 106 | bool "512 KB" |
| 107 | help |
| 108 | Choose this option if you have a 512 KB ROM chip. |
| 109 | |
| 110 | config UBOOT_ROMSIZE_KB_1024 |
| 111 | bool "1024 KB (1 MB)" |
| 112 | help |
| 113 | Choose this option if you have a 1024 KB (1 MB) ROM chip. |
| 114 | |
| 115 | config UBOOT_ROMSIZE_KB_2048 |
| 116 | bool "2048 KB (2 MB)" |
| 117 | help |
| 118 | Choose this option if you have a 2048 KB (2 MB) ROM chip. |
| 119 | |
| 120 | config UBOOT_ROMSIZE_KB_4096 |
| 121 | bool "4096 KB (4 MB)" |
| 122 | help |
| 123 | Choose this option if you have a 4096 KB (4 MB) ROM chip. |
| 124 | |
| 125 | config UBOOT_ROMSIZE_KB_8192 |
| 126 | bool "8192 KB (8 MB)" |
| 127 | help |
| 128 | Choose this option if you have a 8192 KB (8 MB) ROM chip. |
| 129 | |
| 130 | config UBOOT_ROMSIZE_KB_16384 |
| 131 | bool "16384 KB (16 MB)" |
| 132 | help |
| 133 | Choose this option if you have a 16384 KB (16 MB) ROM chip. |
| 134 | |
| 135 | endchoice |
| 136 | |
| 137 | # Map the config names to an integer (KB). |
| 138 | config UBOOT_ROMSIZE_KB |
| 139 | int |
| 140 | default 512 if UBOOT_ROMSIZE_KB_512 |
| 141 | default 1024 if UBOOT_ROMSIZE_KB_1024 |
| 142 | default 2048 if UBOOT_ROMSIZE_KB_2048 |
| 143 | default 4096 if UBOOT_ROMSIZE_KB_4096 |
| 144 | default 8192 if UBOOT_ROMSIZE_KB_8192 |
| 145 | default 16384 if UBOOT_ROMSIZE_KB_16384 |
| 146 | |
| 147 | # Map the config names to a hex value (bytes). |
Simon Glass | 6622b34 | 2014-11-12 22:42:08 -0700 | [diff] [blame] | 148 | config ROM_SIZE |
| 149 | hex |
Bin Meng | c191ab7 | 2014-12-12 21:05:19 +0800 | [diff] [blame] | 150 | default 0x80000 if UBOOT_ROMSIZE_KB_512 |
| 151 | default 0x100000 if UBOOT_ROMSIZE_KB_1024 |
| 152 | default 0x200000 if UBOOT_ROMSIZE_KB_2048 |
| 153 | default 0x400000 if UBOOT_ROMSIZE_KB_4096 |
| 154 | default 0x800000 if UBOOT_ROMSIZE_KB_8192 |
| 155 | default 0xc00000 if UBOOT_ROMSIZE_KB_12288 |
| 156 | default 0x1000000 if UBOOT_ROMSIZE_KB_16384 |
Simon Glass | 6622b34 | 2014-11-12 22:42:08 -0700 | [diff] [blame] | 157 | |
| 158 | config HAVE_INTEL_ME |
| 159 | bool "Platform requires Intel Management Engine" |
| 160 | help |
| 161 | Newer higher-end devices have an Intel Management Engine (ME) |
| 162 | which is a very large binary blob (typically 1.5MB) which is |
| 163 | required for the platform to work. This enforces a particular |
| 164 | SPI flash format. You will need to supply the me.bin file in |
| 165 | your board directory. |
| 166 | |
Simon Glass | 268eefd | 2014-11-12 22:42:28 -0700 | [diff] [blame] | 167 | config X86_RAMTEST |
| 168 | bool "Perform a simple RAM test after SDRAM initialisation" |
| 169 | help |
| 170 | If there is something wrong with SDRAM then the platform will |
| 171 | often crash within U-Boot or the kernel. This option enables a |
| 172 | very simple RAM test that quickly checks whether the SDRAM seems |
| 173 | to work correctly. It is not exhaustive but can save time by |
| 174 | detecting obvious failures. |
| 175 | |
Simon Glass | 5ecb847 | 2014-11-14 20:56:30 -0700 | [diff] [blame] | 176 | config MARK_GRAPHICS_MEM_WRCOMB |
Bin Meng | f959d90 | 2015-04-27 23:22:26 +0800 | [diff] [blame] | 177 | bool "Mark graphics memory as write-combining" |
Simon Glass | 5ecb847 | 2014-11-14 20:56:30 -0700 | [diff] [blame] | 178 | default n |
| 179 | help |
Bin Meng | f959d90 | 2015-04-27 23:22:26 +0800 | [diff] [blame] | 180 | The graphics performance may increase if the graphics |
| 181 | memory is set as write-combining cache type. This option |
| 182 | enables marking the graphics memory as write-combining. |
Simon Glass | 5ecb847 | 2014-11-14 20:56:30 -0700 | [diff] [blame] | 183 | |
Simon Glass | 45c083b | 2015-01-27 22:13:41 -0700 | [diff] [blame] | 184 | config HAVE_FSP |
| 185 | bool "Add an Firmware Support Package binary" |
| 186 | help |
| 187 | Select this option to add an Firmware Support Package binary to |
| 188 | the resulting U-Boot image. It is a binary blob which U-Boot uses |
| 189 | to set up SDRAM and other chipset specific initialization. |
| 190 | |
| 191 | Note: Without this binary U-Boot will not be able to set up its |
| 192 | SDRAM so will not boot. |
| 193 | |
| 194 | config FSP_FILE |
| 195 | string "Firmware Support Package binary filename" |
| 196 | depends on HAVE_FSP |
| 197 | default "fsp.bin" |
| 198 | help |
| 199 | The filename of the file to use as Firmware Support Package binary |
| 200 | in the board directory. |
| 201 | |
| 202 | config FSP_ADDR |
| 203 | hex "Firmware Support Package binary location" |
| 204 | depends on HAVE_FSP |
| 205 | default 0xfffc0000 |
| 206 | help |
| 207 | FSP is not Position Independent Code (PIC) and the whole FSP has to |
| 208 | be rebased if it is placed at a location which is different from the |
| 209 | perferred base address specified during the FSP build. Use Intel's |
| 210 | Binary Configuration Tool (BCT) to do the rebase. |
| 211 | |
| 212 | The default base address of 0xfffc0000 indicates that the binary must |
| 213 | be located at offset 0xc0000 from the beginning of a 1MB flash device. |
| 214 | |
| 215 | config FSP_TEMP_RAM_ADDR |
| 216 | hex |
Bin Meng | 51887c3 | 2015-06-01 21:07:23 +0800 | [diff] [blame] | 217 | depends on HAVE_FSP |
Simon Glass | 45c083b | 2015-01-27 22:13:41 -0700 | [diff] [blame] | 218 | default 0x2000000 |
| 219 | help |
| 220 | Stack top address which is used in FspInit after DRAM is ready and |
| 221 | CAR is disabled. |
| 222 | |
Simon Glass | a9a4426 | 2015-04-29 22:25:59 -0600 | [diff] [blame] | 223 | config MAX_CPUS |
| 224 | int "Maximum number of CPUs permitted" |
| 225 | default 4 |
| 226 | help |
| 227 | When using multi-CPU chips it is possible for U-Boot to start up |
| 228 | more than one CPU. The stack memory used by all of these CPUs is |
| 229 | pre-allocated so at present U-Boot wants to know the maximum |
| 230 | number of CPUs that may be present. Set this to at least as high |
| 231 | as the number of CPUs in your system (it uses about 4KB of RAM for |
| 232 | each CPU). |
| 233 | |
| 234 | config SMP |
| 235 | bool "Enable Symmetric Multiprocessing" |
| 236 | default n |
| 237 | help |
| 238 | Enable use of more than one CPU in U-Boot and the Operating System |
| 239 | when loaded. Each CPU will be started up and information can be |
| 240 | obtained using the 'cpu' command. If this option is disabled, then |
| 241 | only one CPU will be enabled regardless of the number of CPUs |
| 242 | available. |
| 243 | |
| 244 | config AP_STACK_SIZE |
| 245 | hex |
| 246 | default 0x1000 |
| 247 | help |
| 248 | Each additional CPU started by U-Boot requires its own stack. This |
| 249 | option sets the stack size used by each CPU and directly affects |
| 250 | the memory used by this initialisation process. Typically 4KB is |
| 251 | enough space. |
| 252 | |
Bin Meng | 059f1f8 | 2015-02-05 23:42:20 +0800 | [diff] [blame] | 253 | config TSC_CALIBRATION_BYPASS |
| 254 | bool "Bypass Time-Stamp Counter (TSC) calibration" |
| 255 | default n |
| 256 | help |
| 257 | By default U-Boot automatically calibrates Time-Stamp Counter (TSC) |
| 258 | running frequency via Model-Specific Register (MSR) and Programmable |
| 259 | Interval Timer (PIT). If the calibration does not work on your board, |
| 260 | select this option and provide a hardcoded TSC running frequency with |
| 261 | CONFIG_TSC_FREQ_IN_MHZ below. |
| 262 | |
| 263 | Normally this option should be turned on in a simulation environment |
| 264 | like qemu. |
| 265 | |
| 266 | config TSC_FREQ_IN_MHZ |
| 267 | int "Time-Stamp Counter (TSC) running frequency in MHz" |
| 268 | depends on TSC_CALIBRATION_BYPASS |
| 269 | default 1000 |
| 270 | help |
| 271 | The running frequency in MHz of Time-Stamp Counter (TSC). |
| 272 | |
Bin Meng | 45236ad | 2015-04-24 18:10:05 +0800 | [diff] [blame] | 273 | menu "System tables" |
| 274 | |
| 275 | config GENERATE_PIRQ_TABLE |
| 276 | bool "Generate a PIRQ table" |
| 277 | default n |
| 278 | help |
| 279 | Generate a PIRQ routing table for this board. The PIRQ routing table |
| 280 | is generated by U-Boot in the system memory from 0xf0000 to 0xfffff |
| 281 | at every 16-byte boundary with a PCI IRQ routing signature ("$PIR"). |
| 282 | It specifies the interrupt router information as well how all the PCI |
| 283 | devices' interrupt pins are wired to PIRQs. |
| 284 | |
Simon Glass | 07e922a | 2015-04-28 20:25:10 -0600 | [diff] [blame] | 285 | config GENERATE_SFI_TABLE |
| 286 | bool "Generate a SFI (Simple Firmware Interface) table" |
| 287 | help |
| 288 | The Simple Firmware Interface (SFI) provides a lightweight method |
| 289 | for platform firmware to pass information to the operating system |
| 290 | via static tables in memory. Kernel SFI support is required to |
| 291 | boot on SFI-only platforms. If you have ACPI tables then these are |
| 292 | used instead. |
| 293 | |
| 294 | U-Boot writes this table in write_sfi_table() just before booting |
| 295 | the OS. |
| 296 | |
| 297 | For more information, see http://simplefirmware.org |
| 298 | |
Bin Meng | 45236ad | 2015-04-24 18:10:05 +0800 | [diff] [blame] | 299 | endmenu |
| 300 | |
| 301 | config MAX_PIRQ_LINKS |
| 302 | int |
| 303 | default 8 |
| 304 | help |
| 305 | This variable specifies the number of PIRQ interrupt links which are |
| 306 | routable. On most older chipsets, this is 4, PIRQA through PIRQD. |
| 307 | Some newer chipsets offer more than four links, commonly up to PIRQH. |
| 308 | |
| 309 | config IRQ_SLOT_COUNT |
| 310 | int |
| 311 | default 128 |
| 312 | help |
| 313 | U-Boot can support up to 254 IRQ slot info in the PIRQ routing table |
| 314 | which in turns forms a table of exact 4KiB. The default value 128 |
| 315 | should be enough for most boards. If this does not fit your board, |
| 316 | change it according to your needs. |
| 317 | |
Simon Glass | 461cebf | 2015-01-27 22:13:33 -0700 | [diff] [blame] | 318 | config PCIE_ECAM_BASE |
| 319 | hex |
Bin Meng | d11c1b2 | 2015-02-02 21:25:09 +0800 | [diff] [blame] | 320 | default 0xe0000000 |
Simon Glass | 461cebf | 2015-01-27 22:13:33 -0700 | [diff] [blame] | 321 | help |
| 322 | This is the memory-mapped address of PCI configuration space, which |
| 323 | is only available through the Enhanced Configuration Access |
| 324 | Mechanism (ECAM) with PCI Express. It can be set up almost |
| 325 | anywhere. Before it is set up, it is possible to access PCI |
| 326 | configuration space through I/O access, but memory access is more |
| 327 | convenient. Using this, PCI can be scanned and configured. This |
| 328 | should be set to a region that does not conflict with memory |
| 329 | assigned to PCI devices - i.e. the memory and prefetch regions, as |
| 330 | passed to pci_set_region(). |
| 331 | |
Masahiro Yamada | d3ae678 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 332 | endmenu |