Kconfig 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  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_COREBOOT
  9. bool "coreboot"
  10. config VENDOR_EFI
  11. bool "efi"
  12. config VENDOR_EMULATION
  13. bool "emulation"
  14. config VENDOR_GOOGLE
  15. bool "Google"
  16. config VENDOR_INTEL
  17. bool "Intel"
  18. endchoice
  19. # board-specific options below
  20. source "board/coreboot/Kconfig"
  21. source "board/efi/Kconfig"
  22. source "board/emulation/Kconfig"
  23. source "board/google/Kconfig"
  24. source "board/intel/Kconfig"
  25. # platform-specific options below
  26. source "arch/x86/cpu/baytrail/Kconfig"
  27. source "arch/x86/cpu/coreboot/Kconfig"
  28. source "arch/x86/cpu/ivybridge/Kconfig"
  29. source "arch/x86/cpu/qemu/Kconfig"
  30. source "arch/x86/cpu/quark/Kconfig"
  31. source "arch/x86/cpu/queensbay/Kconfig"
  32. # architecture-specific options below
  33. config SYS_MALLOC_F_LEN
  34. default 0x800
  35. config RAMBASE
  36. hex
  37. default 0x100000
  38. config XIP_ROM_SIZE
  39. hex
  40. depends on X86_RESET_VECTOR
  41. default ROM_SIZE
  42. config CPU_ADDR_BITS
  43. int
  44. default 36
  45. config HPET_ADDRESS
  46. hex
  47. default 0xfed00000 if !HPET_ADDRESS_OVERRIDE
  48. config SMM_TSEG
  49. bool
  50. default n
  51. config SMM_TSEG_SIZE
  52. hex
  53. config X86_RESET_VECTOR
  54. bool
  55. default n
  56. config RESET_SEG_START
  57. hex
  58. depends on X86_RESET_VECTOR
  59. default 0xffff0000
  60. config RESET_SEG_SIZE
  61. hex
  62. depends on X86_RESET_VECTOR
  63. default 0x10000
  64. config RESET_VEC_LOC
  65. hex
  66. depends on X86_RESET_VECTOR
  67. default 0xfffffff0
  68. config SYS_X86_START16
  69. hex
  70. depends on X86_RESET_VECTOR
  71. default 0xfffff800
  72. config DM_PCI_COMPAT
  73. default y # Until we finish moving over to the new API
  74. config BOARD_ROMSIZE_KB_512
  75. bool
  76. config BOARD_ROMSIZE_KB_1024
  77. bool
  78. config BOARD_ROMSIZE_KB_2048
  79. bool
  80. config BOARD_ROMSIZE_KB_4096
  81. bool
  82. config BOARD_ROMSIZE_KB_8192
  83. bool
  84. config BOARD_ROMSIZE_KB_16384
  85. bool
  86. choice
  87. prompt "ROM chip size"
  88. depends on X86_RESET_VECTOR
  89. default UBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512
  90. default UBOOT_ROMSIZE_KB_1024 if BOARD_ROMSIZE_KB_1024
  91. default UBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048
  92. default UBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096
  93. default UBOOT_ROMSIZE_KB_8192 if BOARD_ROMSIZE_KB_8192
  94. default UBOOT_ROMSIZE_KB_16384 if BOARD_ROMSIZE_KB_16384
  95. help
  96. Select the size of the ROM chip you intend to flash U-Boot on.
  97. The build system will take care of creating a u-boot.rom file
  98. of the matching size.
  99. config UBOOT_ROMSIZE_KB_512
  100. bool "512 KB"
  101. help
  102. Choose this option if you have a 512 KB ROM chip.
  103. config UBOOT_ROMSIZE_KB_1024
  104. bool "1024 KB (1 MB)"
  105. help
  106. Choose this option if you have a 1024 KB (1 MB) ROM chip.
  107. config UBOOT_ROMSIZE_KB_2048
  108. bool "2048 KB (2 MB)"
  109. help
  110. Choose this option if you have a 2048 KB (2 MB) ROM chip.
  111. config UBOOT_ROMSIZE_KB_4096
  112. bool "4096 KB (4 MB)"
  113. help
  114. Choose this option if you have a 4096 KB (4 MB) ROM chip.
  115. config UBOOT_ROMSIZE_KB_8192
  116. bool "8192 KB (8 MB)"
  117. help
  118. Choose this option if you have a 8192 KB (8 MB) ROM chip.
  119. config UBOOT_ROMSIZE_KB_16384
  120. bool "16384 KB (16 MB)"
  121. help
  122. Choose this option if you have a 16384 KB (16 MB) ROM chip.
  123. endchoice
  124. # Map the config names to an integer (KB).
  125. config UBOOT_ROMSIZE_KB
  126. int
  127. default 512 if UBOOT_ROMSIZE_KB_512
  128. default 1024 if UBOOT_ROMSIZE_KB_1024
  129. default 2048 if UBOOT_ROMSIZE_KB_2048
  130. default 4096 if UBOOT_ROMSIZE_KB_4096
  131. default 8192 if UBOOT_ROMSIZE_KB_8192
  132. default 16384 if UBOOT_ROMSIZE_KB_16384
  133. # Map the config names to a hex value (bytes).
  134. config ROM_SIZE
  135. hex
  136. default 0x80000 if UBOOT_ROMSIZE_KB_512
  137. default 0x100000 if UBOOT_ROMSIZE_KB_1024
  138. default 0x200000 if UBOOT_ROMSIZE_KB_2048
  139. default 0x400000 if UBOOT_ROMSIZE_KB_4096
  140. default 0x800000 if UBOOT_ROMSIZE_KB_8192
  141. default 0xc00000 if UBOOT_ROMSIZE_KB_12288
  142. default 0x1000000 if UBOOT_ROMSIZE_KB_16384
  143. config HAVE_INTEL_ME
  144. bool "Platform requires Intel Management Engine"
  145. help
  146. Newer higher-end devices have an Intel Management Engine (ME)
  147. which is a very large binary blob (typically 1.5MB) which is
  148. required for the platform to work. This enforces a particular
  149. SPI flash format. You will need to supply the me.bin file in
  150. your board directory.
  151. config X86_RAMTEST
  152. bool "Perform a simple RAM test after SDRAM initialisation"
  153. help
  154. If there is something wrong with SDRAM then the platform will
  155. often crash within U-Boot or the kernel. This option enables a
  156. very simple RAM test that quickly checks whether the SDRAM seems
  157. to work correctly. It is not exhaustive but can save time by
  158. detecting obvious failures.
  159. config HAVE_FSP
  160. bool "Add an Firmware Support Package binary"
  161. depends on !EFI
  162. help
  163. Select this option to add an Firmware Support Package binary to
  164. the resulting U-Boot image. It is a binary blob which U-Boot uses
  165. to set up SDRAM and other chipset specific initialization.
  166. Note: Without this binary U-Boot will not be able to set up its
  167. SDRAM so will not boot.
  168. config FSP_FILE
  169. string "Firmware Support Package binary filename"
  170. depends on HAVE_FSP
  171. default "fsp.bin"
  172. help
  173. The filename of the file to use as Firmware Support Package binary
  174. in the board directory.
  175. config FSP_ADDR
  176. hex "Firmware Support Package binary location"
  177. depends on HAVE_FSP
  178. default 0xfffc0000
  179. help
  180. FSP is not Position Independent Code (PIC) and the whole FSP has to
  181. be rebased if it is placed at a location which is different from the
  182. perferred base address specified during the FSP build. Use Intel's
  183. Binary Configuration Tool (BCT) to do the rebase.
  184. The default base address of 0xfffc0000 indicates that the binary must
  185. be located at offset 0xc0000 from the beginning of a 1MB flash device.
  186. config FSP_TEMP_RAM_ADDR
  187. hex
  188. depends on HAVE_FSP
  189. default 0x2000000
  190. help
  191. Stack top address which is used in fsp_init() after DRAM is ready and
  192. CAR is disabled.
  193. config FSP_SYS_MALLOC_F_LEN
  194. hex
  195. depends on HAVE_FSP
  196. default 0x100000
  197. help
  198. Additional size of malloc() pool before relocation.
  199. config ENABLE_MRC_CACHE
  200. bool "Enable MRC cache"
  201. depends on !EFI && !SYS_COREBOOT
  202. help
  203. Enable this feature to cause MRC data to be cached in NV storage
  204. to be used for speeding up boot time on future reboots and/or
  205. power cycles.
  206. config SMP
  207. bool "Enable Symmetric Multiprocessing"
  208. default n
  209. help
  210. Enable use of more than one CPU in U-Boot and the Operating System
  211. when loaded. Each CPU will be started up and information can be
  212. obtained using the 'cpu' command. If this option is disabled, then
  213. only one CPU will be enabled regardless of the number of CPUs
  214. available.
  215. config MAX_CPUS
  216. int "Maximum number of CPUs permitted"
  217. depends on SMP
  218. default 4
  219. help
  220. When using multi-CPU chips it is possible for U-Boot to start up
  221. more than one CPU. The stack memory used by all of these CPUs is
  222. pre-allocated so at present U-Boot wants to know the maximum
  223. number of CPUs that may be present. Set this to at least as high
  224. as the number of CPUs in your system (it uses about 4KB of RAM for
  225. each CPU).
  226. config AP_STACK_SIZE
  227. hex
  228. depends on SMP
  229. default 0x1000
  230. help
  231. Each additional CPU started by U-Boot requires its own stack. This
  232. option sets the stack size used by each CPU and directly affects
  233. the memory used by this initialisation process. Typically 4KB is
  234. enough space.
  235. config HAVE_VGA_BIOS
  236. bool "Add a VGA BIOS image"
  237. help
  238. Select this option if you have a VGA BIOS image that you would
  239. like to add to your ROM.
  240. config VGA_BIOS_FILE
  241. string "VGA BIOS image filename"
  242. depends on HAVE_VGA_BIOS
  243. default "vga.bin"
  244. help
  245. The filename of the VGA BIOS image in the board directory.
  246. config VGA_BIOS_ADDR
  247. hex "VGA BIOS image location"
  248. depends on HAVE_VGA_BIOS
  249. default 0xfff90000
  250. help
  251. The location of VGA BIOS image in the SPI flash. For example, base
  252. address of 0xfff90000 indicates that the image will be put at offset
  253. 0x90000 from the beginning of a 1MB flash device.
  254. menu "System tables"
  255. depends on !EFI && !SYS_COREBOOT
  256. config GENERATE_PIRQ_TABLE
  257. bool "Generate a PIRQ table"
  258. default n
  259. help
  260. Generate a PIRQ routing table for this board. The PIRQ routing table
  261. is generated by U-Boot in the system memory from 0xf0000 to 0xfffff
  262. at every 16-byte boundary with a PCI IRQ routing signature ("$PIR").
  263. It specifies the interrupt router information as well how all the PCI
  264. devices' interrupt pins are wired to PIRQs.
  265. config GENERATE_SFI_TABLE
  266. bool "Generate a SFI (Simple Firmware Interface) table"
  267. help
  268. The Simple Firmware Interface (SFI) provides a lightweight method
  269. for platform firmware to pass information to the operating system
  270. via static tables in memory. Kernel SFI support is required to
  271. boot on SFI-only platforms. If you have ACPI tables then these are
  272. used instead.
  273. U-Boot writes this table in write_sfi_table() just before booting
  274. the OS.
  275. For more information, see http://simplefirmware.org
  276. config GENERATE_MP_TABLE
  277. bool "Generate an MP (Multi-Processor) table"
  278. default n
  279. help
  280. Generate an MP (Multi-Processor) table for this board. The MP table
  281. provides a way for the operating system to support for symmetric
  282. multiprocessing as well as symmetric I/O interrupt handling with
  283. the local APIC and I/O APIC.
  284. config GENERATE_ACPI_TABLE
  285. bool "Generate an ACPI (Advanced Configuration and Power Interface) table"
  286. default n
  287. help
  288. The Advanced Configuration and Power Interface (ACPI) specification
  289. provides an open standard for device configuration and management
  290. by the operating system. It defines platform-independent interfaces
  291. for configuration and power management monitoring.
  292. config GENERATE_SMBIOS_TABLE
  293. bool "Generate an SMBIOS (System Management BIOS) table"
  294. default y
  295. help
  296. The System Management BIOS (SMBIOS) specification addresses how
  297. motherboard and system vendors present management information about
  298. their products in a standard format by extending the BIOS interface
  299. on Intel architecture systems.
  300. Check http://www.dmtf.org/standards/smbios for details.
  301. endmenu
  302. config MAX_PIRQ_LINKS
  303. int
  304. default 8
  305. help
  306. This variable specifies the number of PIRQ interrupt links which are
  307. routable. On most older chipsets, this is 4, PIRQA through PIRQD.
  308. Some newer chipsets offer more than four links, commonly up to PIRQH.
  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. config PCIE_ECAM_BASE
  318. hex
  319. default 0xe0000000
  320. help
  321. This is the memory-mapped address of PCI configuration space, which
  322. is only available through the Enhanced Configuration Access
  323. Mechanism (ECAM) with PCI Express. It can be set up almost
  324. anywhere. Before it is set up, it is possible to access PCI
  325. configuration space through I/O access, but memory access is more
  326. convenient. Using this, PCI can be scanned and configured. This
  327. should be set to a region that does not conflict with memory
  328. assigned to PCI devices - i.e. the memory and prefetch regions, as
  329. passed to pci_set_region().
  330. config PCIE_ECAM_SIZE
  331. hex
  332. default 0x10000000
  333. help
  334. This is the size of memory-mapped address of PCI configuration space,
  335. which is only available through the Enhanced Configuration Access
  336. Mechanism (ECAM) with PCI Express. Each bus consumes 1 MiB memory,
  337. so a default 0x10000000 size covers all of the 256 buses which is the
  338. maximum number of PCI buses as defined by the PCI specification.
  339. config I8259_PIC
  340. bool
  341. default y
  342. help
  343. Intel 8259 ISA compatible chipset incorporates two 8259 (master and
  344. slave) interrupt controllers. Include this to have U-Boot set up
  345. the interrupt correctly.
  346. config I8254_TIMER
  347. bool
  348. default y
  349. help
  350. Intel 8254 timer contains three counters which have fixed uses.
  351. Include this to have U-Boot set up the timer correctly.
  352. config I8042_KEYB
  353. default y
  354. config DM_KEYBOARD
  355. default y
  356. source "arch/x86/lib/efi/Kconfig"
  357. endmenu