Kconfig 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536
  1. menu "x86 architecture"
  2. depends on X86
  3. config SYS_ARCH
  4. default "x86"
  5. choice
  6. prompt "Mainboard vendor"
  7. default VENDOR_EMULATION
  8. config VENDOR_CONGATEC
  9. bool "congatec"
  10. config VENDOR_COREBOOT
  11. bool "coreboot"
  12. config VENDOR_EFI
  13. bool "efi"
  14. config VENDOR_EMULATION
  15. bool "emulation"
  16. config VENDOR_GOOGLE
  17. bool "Google"
  18. config VENDOR_INTEL
  19. bool "Intel"
  20. endchoice
  21. # board-specific options below
  22. source "board/congatec/Kconfig"
  23. source "board/coreboot/Kconfig"
  24. source "board/efi/Kconfig"
  25. source "board/emulation/Kconfig"
  26. source "board/google/Kconfig"
  27. source "board/intel/Kconfig"
  28. # platform-specific options below
  29. source "arch/x86/cpu/baytrail/Kconfig"
  30. source "arch/x86/cpu/broadwell/Kconfig"
  31. source "arch/x86/cpu/coreboot/Kconfig"
  32. source "arch/x86/cpu/ivybridge/Kconfig"
  33. source "arch/x86/cpu/qemu/Kconfig"
  34. source "arch/x86/cpu/quark/Kconfig"
  35. source "arch/x86/cpu/queensbay/Kconfig"
  36. # architecture-specific options below
  37. config AHCI
  38. default y
  39. config SYS_MALLOC_F_LEN
  40. default 0x800
  41. config RAMBASE
  42. hex
  43. default 0x100000
  44. config XIP_ROM_SIZE
  45. hex
  46. depends on X86_RESET_VECTOR
  47. default ROM_SIZE
  48. config CPU_ADDR_BITS
  49. int
  50. default 36
  51. config HPET_ADDRESS
  52. hex
  53. default 0xfed00000 if !HPET_ADDRESS_OVERRIDE
  54. config SMM_TSEG
  55. bool
  56. default n
  57. config SMM_TSEG_SIZE
  58. hex
  59. config X86_RESET_VECTOR
  60. bool
  61. default n
  62. config RESET_SEG_START
  63. hex
  64. depends on X86_RESET_VECTOR
  65. default 0xffff0000
  66. config RESET_SEG_SIZE
  67. hex
  68. depends on X86_RESET_VECTOR
  69. default 0x10000
  70. config RESET_VEC_LOC
  71. hex
  72. depends on X86_RESET_VECTOR
  73. default 0xfffffff0
  74. config SYS_X86_START16
  75. hex
  76. depends on X86_RESET_VECTOR
  77. default 0xfffff800
  78. config BOARD_ROMSIZE_KB_512
  79. bool
  80. config BOARD_ROMSIZE_KB_1024
  81. bool
  82. config BOARD_ROMSIZE_KB_2048
  83. bool
  84. config BOARD_ROMSIZE_KB_4096
  85. bool
  86. config BOARD_ROMSIZE_KB_8192
  87. bool
  88. config BOARD_ROMSIZE_KB_16384
  89. bool
  90. choice
  91. prompt "ROM chip size"
  92. depends on X86_RESET_VECTOR
  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. The build system will take care of creating a u-boot.rom file
  102. of the matching size.
  103. config UBOOT_ROMSIZE_KB_512
  104. bool "512 KB"
  105. help
  106. Choose this option if you have a 512 KB ROM chip.
  107. config UBOOT_ROMSIZE_KB_1024
  108. bool "1024 KB (1 MB)"
  109. help
  110. Choose this option if you have a 1024 KB (1 MB) ROM chip.
  111. config UBOOT_ROMSIZE_KB_2048
  112. bool "2048 KB (2 MB)"
  113. help
  114. Choose this option if you have a 2048 KB (2 MB) ROM chip.
  115. config UBOOT_ROMSIZE_KB_4096
  116. bool "4096 KB (4 MB)"
  117. help
  118. Choose this option if you have a 4096 KB (4 MB) ROM chip.
  119. config UBOOT_ROMSIZE_KB_8192
  120. bool "8192 KB (8 MB)"
  121. help
  122. Choose this option if you have a 8192 KB (8 MB) ROM chip.
  123. config UBOOT_ROMSIZE_KB_16384
  124. bool "16384 KB (16 MB)"
  125. help
  126. Choose this option if you have a 16384 KB (16 MB) ROM chip.
  127. endchoice
  128. # Map the config names to an integer (KB).
  129. config UBOOT_ROMSIZE_KB
  130. int
  131. default 512 if UBOOT_ROMSIZE_KB_512
  132. default 1024 if UBOOT_ROMSIZE_KB_1024
  133. default 2048 if UBOOT_ROMSIZE_KB_2048
  134. default 4096 if UBOOT_ROMSIZE_KB_4096
  135. default 8192 if UBOOT_ROMSIZE_KB_8192
  136. default 16384 if UBOOT_ROMSIZE_KB_16384
  137. # Map the config names to a hex value (bytes).
  138. config ROM_SIZE
  139. hex
  140. default 0x80000 if UBOOT_ROMSIZE_KB_512
  141. default 0x100000 if UBOOT_ROMSIZE_KB_1024
  142. default 0x200000 if UBOOT_ROMSIZE_KB_2048
  143. default 0x400000 if UBOOT_ROMSIZE_KB_4096
  144. default 0x800000 if UBOOT_ROMSIZE_KB_8192
  145. default 0xc00000 if UBOOT_ROMSIZE_KB_12288
  146. default 0x1000000 if UBOOT_ROMSIZE_KB_16384
  147. config HAVE_INTEL_ME
  148. bool "Platform requires Intel Management Engine"
  149. help
  150. Newer higher-end devices have an Intel Management Engine (ME)
  151. which is a very large binary blob (typically 1.5MB) which is
  152. required for the platform to work. This enforces a particular
  153. SPI flash format. You will need to supply the me.bin file in
  154. your board directory.
  155. config X86_RAMTEST
  156. bool "Perform a simple RAM test after SDRAM initialisation"
  157. help
  158. If there is something wrong with SDRAM then the platform will
  159. often crash within U-Boot or the kernel. This option enables a
  160. very simple RAM test that quickly checks whether the SDRAM seems
  161. to work correctly. It is not exhaustive but can save time by
  162. detecting obvious failures.
  163. config HAVE_FSP
  164. bool "Add an Firmware Support Package binary"
  165. depends on !EFI
  166. help
  167. Select this option to add an Firmware Support Package binary to
  168. the resulting U-Boot image. It is a binary blob which U-Boot uses
  169. to set up SDRAM and other chipset specific initialization.
  170. Note: Without this binary U-Boot will not be able to set up its
  171. SDRAM so will not boot.
  172. config FSP_FILE
  173. string "Firmware Support Package binary filename"
  174. depends on HAVE_FSP
  175. default "fsp.bin"
  176. help
  177. The filename of the file to use as Firmware Support Package binary
  178. in the board directory.
  179. config FSP_ADDR
  180. hex "Firmware Support Package binary location"
  181. depends on HAVE_FSP
  182. default 0xfffc0000
  183. help
  184. FSP is not Position Independent Code (PIC) and the whole FSP has to
  185. be rebased if it is placed at a location which is different from the
  186. perferred base address specified during the FSP build. Use Intel's
  187. Binary Configuration Tool (BCT) to do the rebase.
  188. The default base address of 0xfffc0000 indicates that the binary must
  189. be located at offset 0xc0000 from the beginning of a 1MB flash device.
  190. config FSP_TEMP_RAM_ADDR
  191. hex
  192. depends on HAVE_FSP
  193. default 0x2000000
  194. help
  195. Stack top address which is used in fsp_init() after DRAM is ready and
  196. CAR is disabled.
  197. config FSP_SYS_MALLOC_F_LEN
  198. hex
  199. depends on HAVE_FSP
  200. default 0x100000
  201. help
  202. Additional size of malloc() pool before relocation.
  203. config FSP_USE_UPD
  204. bool
  205. depends on HAVE_FSP
  206. default y
  207. help
  208. Most FSPs use UPD data region for some FSP customization. But there
  209. are still some FSPs that might not even have UPD. For such FSPs,
  210. override this to n in their platform Kconfig files.
  211. config FSP_BROKEN_HOB
  212. bool
  213. depends on HAVE_FSP
  214. help
  215. Indicate some buggy FSPs that does not report memory used by FSP
  216. itself as reserved in the resource descriptor HOB. Select this to
  217. tell U-Boot to do some additional work to ensure U-Boot relocation
  218. do not overwrite the important boot service data which is used by
  219. FSP, otherwise the subsequent call to fsp_notify() will fail.
  220. config ENABLE_MRC_CACHE
  221. bool "Enable MRC cache"
  222. depends on !EFI && !SYS_COREBOOT
  223. help
  224. Enable this feature to cause MRC data to be cached in NV storage
  225. to be used for speeding up boot time on future reboots and/or
  226. power cycles.
  227. config HAVE_MRC
  228. bool "Add a System Agent binary"
  229. depends on !HAVE_FSP
  230. help
  231. Select this option to add a System Agent binary to
  232. the resulting U-Boot image. MRC stands for Memory Reference Code.
  233. It is a binary blob which U-Boot uses to set up SDRAM.
  234. Note: Without this binary U-Boot will not be able to set up its
  235. SDRAM so will not boot.
  236. config CACHE_MRC_BIN
  237. bool
  238. depends on HAVE_MRC
  239. default n
  240. help
  241. Enable caching for the memory reference code binary. This uses an
  242. MTRR (memory type range register) to turn on caching for the section
  243. of SPI flash that contains the memory reference code. This makes
  244. SDRAM init run faster.
  245. config CACHE_MRC_SIZE_KB
  246. int
  247. depends on HAVE_MRC
  248. default 512
  249. help
  250. Sets the size of the cached area for the memory reference code.
  251. This ends at the end of SPI flash (address 0xffffffff) and is
  252. measured in KB. Typically this is set to 512, providing for 0.5MB
  253. of cached space.
  254. config DCACHE_RAM_BASE
  255. hex
  256. depends on HAVE_MRC
  257. help
  258. Sets the base of the data cache area in memory space. This is the
  259. start address of the cache-as-RAM (CAR) area and the address varies
  260. depending on the CPU. Once CAR is set up, read/write memory becomes
  261. available at this address and can be used temporarily until SDRAM
  262. is working.
  263. config DCACHE_RAM_SIZE
  264. hex
  265. depends on HAVE_MRC
  266. default 0x40000
  267. help
  268. Sets the total size of the data cache area in memory space. This
  269. sets the size of the cache-as-RAM (CAR) area. Note that much of the
  270. CAR space is required by the MRC. The CAR space available to U-Boot
  271. is normally at the start and typically extends to 1/4 or 1/2 of the
  272. available size.
  273. config DCACHE_RAM_MRC_VAR_SIZE
  274. hex
  275. depends on HAVE_MRC
  276. help
  277. This is the amount of CAR (Cache as RAM) reserved for use by the
  278. memory reference code. This depends on the implementation of the
  279. memory reference code and must be set correctly or the board will
  280. not boot.
  281. config HAVE_REFCODE
  282. bool "Add a Reference Code binary"
  283. help
  284. Select this option to add a Reference Code binary to the resulting
  285. U-Boot image. This is an Intel binary blob that handles system
  286. initialisation, in this case the PCH and System Agent.
  287. Note: Without this binary (on platforms that need it such as
  288. broadwell) U-Boot will be missing some critical setup steps.
  289. Various peripherals may fail to work.
  290. config SMP
  291. bool "Enable Symmetric Multiprocessing"
  292. default n
  293. help
  294. Enable use of more than one CPU in U-Boot and the Operating System
  295. when loaded. Each CPU will be started up and information can be
  296. obtained using the 'cpu' command. If this option is disabled, then
  297. only one CPU will be enabled regardless of the number of CPUs
  298. available.
  299. config MAX_CPUS
  300. int "Maximum number of CPUs permitted"
  301. depends on SMP
  302. default 4
  303. help
  304. When using multi-CPU chips it is possible for U-Boot to start up
  305. more than one CPU. The stack memory used by all of these CPUs is
  306. pre-allocated so at present U-Boot wants to know the maximum
  307. number of CPUs that may be present. Set this to at least as high
  308. as the number of CPUs in your system (it uses about 4KB of RAM for
  309. each CPU).
  310. config AP_STACK_SIZE
  311. hex
  312. depends on SMP
  313. default 0x1000
  314. help
  315. Each additional CPU started by U-Boot requires its own stack. This
  316. option sets the stack size used by each CPU and directly affects
  317. the memory used by this initialisation process. Typically 4KB is
  318. enough space.
  319. config HAVE_VGA_BIOS
  320. bool "Add a VGA BIOS image"
  321. help
  322. Select this option if you have a VGA BIOS image that you would
  323. like to add to your ROM.
  324. config VGA_BIOS_FILE
  325. string "VGA BIOS image filename"
  326. depends on HAVE_VGA_BIOS
  327. default "vga.bin"
  328. help
  329. The filename of the VGA BIOS image in the board directory.
  330. config VGA_BIOS_ADDR
  331. hex "VGA BIOS image location"
  332. depends on HAVE_VGA_BIOS
  333. default 0xfff90000
  334. help
  335. The location of VGA BIOS image in the SPI flash. For example, base
  336. address of 0xfff90000 indicates that the image will be put at offset
  337. 0x90000 from the beginning of a 1MB flash device.
  338. menu "System tables"
  339. depends on !EFI && !SYS_COREBOOT
  340. config GENERATE_PIRQ_TABLE
  341. bool "Generate a PIRQ table"
  342. default n
  343. help
  344. Generate a PIRQ routing table for this board. The PIRQ routing table
  345. is generated by U-Boot in the system memory from 0xf0000 to 0xfffff
  346. at every 16-byte boundary with a PCI IRQ routing signature ("$PIR").
  347. It specifies the interrupt router information as well how all the PCI
  348. devices' interrupt pins are wired to PIRQs.
  349. config GENERATE_SFI_TABLE
  350. bool "Generate a SFI (Simple Firmware Interface) table"
  351. help
  352. The Simple Firmware Interface (SFI) provides a lightweight method
  353. for platform firmware to pass information to the operating system
  354. via static tables in memory. Kernel SFI support is required to
  355. boot on SFI-only platforms. If you have ACPI tables then these are
  356. used instead.
  357. U-Boot writes this table in write_sfi_table() just before booting
  358. the OS.
  359. For more information, see http://simplefirmware.org
  360. config GENERATE_MP_TABLE
  361. bool "Generate an MP (Multi-Processor) table"
  362. default n
  363. help
  364. Generate an MP (Multi-Processor) table for this board. The MP table
  365. provides a way for the operating system to support for symmetric
  366. multiprocessing as well as symmetric I/O interrupt handling with
  367. the local APIC and I/O APIC.
  368. config GENERATE_ACPI_TABLE
  369. bool "Generate an ACPI (Advanced Configuration and Power Interface) table"
  370. default n
  371. select QFW if QEMU
  372. help
  373. The Advanced Configuration and Power Interface (ACPI) specification
  374. provides an open standard for device configuration and management
  375. by the operating system. It defines platform-independent interfaces
  376. for configuration and power management monitoring.
  377. config GENERATE_SMBIOS_TABLE
  378. bool "Generate an SMBIOS (System Management BIOS) table"
  379. default y
  380. help
  381. The System Management BIOS (SMBIOS) specification addresses how
  382. motherboard and system vendors present management information about
  383. their products in a standard format by extending the BIOS interface
  384. on Intel architecture systems.
  385. Check http://www.dmtf.org/standards/smbios for details.
  386. endmenu
  387. config MAX_PIRQ_LINKS
  388. int
  389. default 8
  390. help
  391. This variable specifies the number of PIRQ interrupt links which are
  392. routable. On most older chipsets, this is 4, PIRQA through PIRQD.
  393. Some newer chipsets offer more than four links, commonly up to PIRQH.
  394. config IRQ_SLOT_COUNT
  395. int
  396. default 128
  397. help
  398. U-Boot can support up to 254 IRQ slot info in the PIRQ routing table
  399. which in turns forms a table of exact 4KiB. The default value 128
  400. should be enough for most boards. If this does not fit your board,
  401. change it according to your needs.
  402. config PCIE_ECAM_BASE
  403. hex
  404. default 0xe0000000
  405. help
  406. This is the memory-mapped address of PCI configuration space, which
  407. is only available through the Enhanced Configuration Access
  408. Mechanism (ECAM) with PCI Express. It can be set up almost
  409. anywhere. Before it is set up, it is possible to access PCI
  410. configuration space through I/O access, but memory access is more
  411. convenient. Using this, PCI can be scanned and configured. This
  412. should be set to a region that does not conflict with memory
  413. assigned to PCI devices - i.e. the memory and prefetch regions, as
  414. passed to pci_set_region().
  415. config PCIE_ECAM_SIZE
  416. hex
  417. default 0x10000000
  418. help
  419. This is the size of memory-mapped address of PCI configuration space,
  420. which is only available through the Enhanced Configuration Access
  421. Mechanism (ECAM) with PCI Express. Each bus consumes 1 MiB memory,
  422. so a default 0x10000000 size covers all of the 256 buses which is the
  423. maximum number of PCI buses as defined by the PCI specification.
  424. config I8259_PIC
  425. bool
  426. default y
  427. help
  428. Intel 8259 ISA compatible chipset incorporates two 8259 (master and
  429. slave) interrupt controllers. Include this to have U-Boot set up
  430. the interrupt correctly.
  431. config I8254_TIMER
  432. bool
  433. default y
  434. help
  435. Intel 8254 timer contains three counters which have fixed uses.
  436. Include this to have U-Boot set up the timer correctly.
  437. config I8042_KEYB
  438. default y
  439. config DM_KEYBOARD
  440. default y
  441. config SEABIOS
  442. bool "Support booting SeaBIOS"
  443. help
  444. SeaBIOS is an open source implementation of a 16-bit X86 BIOS.
  445. It can run in an emulator or natively on X86 hardware with the use
  446. of coreboot/U-Boot. By turning on this option, U-Boot prepares
  447. all the configuration tables that are necessary to boot SeaBIOS.
  448. Check http://www.seabios.org/SeaBIOS for details.
  449. source "arch/x86/lib/efi/Kconfig"
  450. endmenu