Kconfig 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see the file Documentation/kbuild/kconfig-language.txt in the
  4. # Linux kernel source tree.
  5. #
  6. mainmenu "U-Boot $(UBOOTVERSION) Configuration"
  7. comment "Compiler: $(CC_VERSION_TEXT)"
  8. source "scripts/Kconfig.include"
  9. # Allow defaults in arch-specific code to override any given here
  10. source "arch/Kconfig"
  11. menu "General setup"
  12. config BROKEN
  13. bool
  14. help
  15. This option cannot be enabled. It is used as dependency
  16. for broken and incomplete features.
  17. config DEPRECATED
  18. bool
  19. help
  20. This option cannot be enabled. It it used as a dependency for
  21. code that relies on deprecated features that will be removed and
  22. the conversion deadline has passed.
  23. config LOCALVERSION
  24. string "Local version - append to U-Boot release"
  25. help
  26. Append an extra string to the end of your U-Boot version.
  27. This will show up in your boot log, for example.
  28. The string you set here will be appended after the contents of
  29. any files with a filename matching localversion* in your
  30. object and source tree, in that order. Your total string can
  31. be a maximum of 64 characters.
  32. config LOCALVERSION_AUTO
  33. bool "Automatically append version information to the version string"
  34. default y
  35. help
  36. This will try to automatically determine if the current tree is a
  37. release tree by looking for Git tags that belong to the current
  38. top of tree revision.
  39. A string of the format -gxxxxxxxx will be added to the localversion
  40. if a Git-based tree is found. The string generated by this will be
  41. appended after any matching localversion* files, and after the value
  42. set in CONFIG_LOCALVERSION.
  43. (The actual string used here is the first eight characters produced
  44. by running the command:
  45. $ git rev-parse --verify HEAD
  46. which is done within the script "scripts/setlocalversion".)
  47. config CC_IS_GCC
  48. def_bool $(success,$(CC) --version | head -n 1 | grep -q gcc)
  49. config GCC_VERSION
  50. int
  51. default $(shell,$(srctree)/scripts/gcc-version.sh -p $(CC) | sed 's/^0*//') if CC_IS_GCC
  52. default 0
  53. config CC_IS_CLANG
  54. def_bool $(success,$(CC) --version | head -n 1 | grep -q clang)
  55. config CLANG_VERSION
  56. int
  57. default $(shell,$(srctree)/scripts/clang-version.sh $(CC))
  58. choice
  59. prompt "Optimization level"
  60. default CC_OPTIMIZE_FOR_SIZE
  61. config CC_OPTIMIZE_FOR_SIZE
  62. bool "Optimize for size"
  63. help
  64. Enabling this option will pass "-Os" to gcc, resulting in a smaller
  65. U-Boot image.
  66. This option is enabled by default for U-Boot.
  67. config CC_OPTIMIZE_FOR_SPEED
  68. bool "Optimize for speed"
  69. help
  70. Enabling this option will pass "-O2" to gcc, resulting in a faster
  71. U-Boot image.
  72. config CC_OPTIMIZE_FOR_DEBUG
  73. bool "Optimize for debugging"
  74. help
  75. Enabling this option will pass "-Og" to gcc, enabling optimizations
  76. which don't interfere with debugging.
  77. endchoice
  78. config OPTIMIZE_INLINING
  79. bool "Allow compiler to uninline functions marked 'inline' in full U-Boot"
  80. help
  81. This option determines if U-Boot forces gcc to inline the functions
  82. developers have marked 'inline'. Doing so takes away freedom from gcc to
  83. do what it thinks is best, which is desirable in some cases for size
  84. reasons.
  85. config SPL_OPTIMIZE_INLINING
  86. bool "Allow compiler to uninline functions marked 'inline' in SPL"
  87. depends on SPL
  88. help
  89. This option determines if U-Boot forces gcc to inline the functions
  90. developers have marked 'inline'. Doing so takes away freedom from gcc to
  91. do what it thinks is best, which is desirable in some cases for size
  92. reasons.
  93. config ARCH_SUPPORTS_LTO
  94. bool
  95. config LTO
  96. bool "Enable Link Time Optimizations"
  97. depends on ARCH_SUPPORTS_LTO
  98. help
  99. This option enables Link Time Optimization (LTO), a mechanism which
  100. allows the compiler to optimize between different compilation units.
  101. This can optimize away dead code paths, resulting in smaller binary
  102. size (if CC_OPTIMIZE_FOR_SIZE is enabled).
  103. This option is not available for every architecture and may
  104. introduce bugs.
  105. Currently, when compiling with GCC, due to a weird bug regarding
  106. jobserver, the final linking will not respect make's --jobs argument.
  107. Instead all available processors will be used (as reported by the
  108. nproc command).
  109. If unsure, say n.
  110. config TPL_OPTIMIZE_INLINING
  111. bool "Allow compiler to uninline functions marked 'inline' in TPL"
  112. depends on TPL
  113. help
  114. This option determines if U-Boot forces gcc to inline the functions
  115. developers have marked 'inline'. Doing so takes away freedom from gcc to
  116. do what it thinks is best, which is desirable in some cases for size
  117. reasons.
  118. config CC_COVERAGE
  119. bool "Enable code coverage analysis"
  120. depends on SANDBOX
  121. help
  122. Enabling this option will pass "--coverage" to gcc to compile
  123. and link code instrumented for coverage analysis.
  124. config ASAN
  125. bool "Enable AddressSanitizer"
  126. depends on SANDBOX
  127. help
  128. Enables AddressSanitizer to discover out-of-bounds accesses,
  129. use-after-free, double-free and memory leaks.
  130. config FUZZ
  131. bool "Enable fuzzing"
  132. depends on CC_IS_CLANG
  133. depends on DM_FUZZING_ENGINE
  134. select ASAN
  135. help
  136. Enables the fuzzing infrastructure to generate fuzzing data and run
  137. fuzz tests.
  138. config CC_HAS_ASM_INLINE
  139. def_bool $(success,echo 'void foo(void) { asm inline (""); }' | $(CC) -x c - -c -o /dev/null)
  140. config XEN
  141. bool "Select U-Boot be run as a bootloader for XEN Virtual Machine"
  142. depends on ARM64
  143. select SSCANF
  144. help
  145. Enabling this option will make U-Boot be run as a bootloader
  146. for XEN [1] Virtual Machine.
  147. Xen is a virtual machine monitor (VMM) or a type-1 hypervisor with support
  148. for para-virtualization. Xen can organize the safe execution of several
  149. virtual machines on the same physical system with performance close to
  150. native. It is used as the basis for a number of different commercial and
  151. open source applications, such as: server virtualization, Infrastructure
  152. as a Service (IaaS), desktop virtualization, security applications,
  153. embedded and hardware appliances.
  154. Xen has a special VM called Domain-0 that runs the Dom0 kernel and allows
  155. Xen to use the device drivers for the Domain-0 kernel by default.
  156. [1] - https://xenproject.org/
  157. config ENV_VARS_UBOOT_CONFIG
  158. bool "Add arch, board, vendor and soc variables to default environment"
  159. help
  160. Define this in order to add variables describing the
  161. U-Boot build configuration to the default environment.
  162. These will be named arch, cpu, board, vendor, and soc.
  163. Enabling this option will cause the following to be defined:
  164. - CONFIG_SYS_ARCH
  165. - CONFIG_SYS_CPU
  166. - CONFIG_SYS_BOARD
  167. - CONFIG_SYS_VENDOR
  168. - CONFIG_SYS_SOC
  169. config NR_DRAM_BANKS
  170. int "Number of DRAM banks"
  171. default 1 if ARCH_SUNXI || ARCH_OWL
  172. default 4
  173. help
  174. This defines the number of DRAM banks.
  175. config SYS_BOOT_GET_CMDLINE
  176. bool "Enable kernel command line setup"
  177. help
  178. Enables allocating and saving kernel cmdline in space between
  179. "bootm_low" and "bootm_low" + BOOTMAPSZ.
  180. config SYS_BARGSIZE
  181. int "Size of kernel command line buffer in bytes"
  182. depends on SYS_BOOT_GET_CMDLINE
  183. default 512
  184. help
  185. Buffer size for Boot Arguments which are passed to the application
  186. (usually a Linux kernel) when it is booted
  187. config SYS_BOOT_GET_KBD
  188. bool "Enable kernel board information setup"
  189. help
  190. Enables allocating and saving a kernel copy of the bd_info in
  191. space between "bootm_low" and "bootm_low" + BOOTMAPSZ.
  192. config HAS_CUSTOM_SYS_INIT_SP_ADDR
  193. bool "Use a custom location for the initial stack pointer address"
  194. depends on ARC || (ARM && !INIT_SP_RELATIVE) || MIPS || PPC || RISCV
  195. default y if TFABOOT
  196. help
  197. Typically, we use an initial stack pointer address that is calculated
  198. by taking the statically defined CFG_SYS_INIT_RAM_ADDR, adding the
  199. statically defined CFG_SYS_INIT_RAM_SIZE and then subtracting the
  200. build-time constant of GENERATED_GBL_DATA_SIZE. On MIPS a different
  201. but statica calculation is performed. However, some platforms will
  202. take a different approach. Say Y here to define the address statically
  203. instead.
  204. config CUSTOM_SYS_INIT_SP_ADDR
  205. hex "Static location for the initial stack pointer"
  206. depends on HAS_CUSTOM_SYS_INIT_SP_ADDR
  207. default TEXT_BASE if TFABOOT
  208. config SYS_MALLOC_F
  209. bool "Enable malloc() pool before relocation"
  210. default y if DM
  211. help
  212. Before relocation, memory is very limited on many platforms. Still,
  213. we can provide a small malloc() pool if needed. Driver model in
  214. particular needs this to operate, so that it can allocate the
  215. initial serial device and any others that are needed.
  216. config SYS_MALLOC_F_LEN
  217. hex "Size of malloc() pool before relocation"
  218. depends on SYS_MALLOC_F
  219. default 0x400 if M68K || PPC || ROCKCHIP_PX30 || ROCKCHIP_RK3036 || \
  220. ROCKCHIP_RV1108
  221. default 0x600 if ARCH_ZYNQMP_R5 || ARCH_ZYNQMP
  222. default 0x800 if ARCH_ZYNQ || ROCKCHIP_RK3128 || ROCKCHIP_RK3188 || \
  223. ROCKCHIP_RK322X || X86
  224. default 0x1000 if ARCH_MESON || ARCH_BMIPS || ARCH_MTMIPS
  225. default 0x1800 if ARCH_TEGRA
  226. default 0x4000 if SANDBOX || RISCV || ARCH_APPLE || ROCKCHIP_RK3368 || \
  227. ROCKCHIP_RK3399
  228. default 0x8000 if RCAR_GEN3
  229. default 0x10000 if ARCH_IMX8 || ARCH_IMX8M
  230. default 0x2000
  231. help
  232. Size of the malloc() pool for use before relocation. If
  233. this is defined, then a very simple malloc() implementation
  234. will become available before relocation. The address is just
  235. below the global data, and the stack is moved down to make
  236. space.
  237. This feature allocates regions with increasing addresses
  238. within the region. calloc() is supported, but realloc()
  239. is not available. free() is supported but does nothing.
  240. The memory will be freed (or in fact just forgotten) when
  241. U-Boot relocates itself.
  242. config SYS_MALLOC_LEN
  243. hex "Define memory for Dynamic allocation"
  244. default 0x4000000 if SANDBOX
  245. default 0x2000000 if ARCH_ROCKCHIP || ARCH_OMAP2PLUS || ARCH_MESON
  246. default 0x200000 if ARCH_BMIPS || X86
  247. default 0x4020000 if SUNXI_MINIMUM_DRAM_MB >= 256
  248. default 0x220000 if SUNXI_MINIMUM_DRAM_MB >= 64
  249. default 0x120000 if SUNXI_MINIMUM_DRAM_MB >= 32
  250. default 0x400000
  251. help
  252. This defines memory to be allocated for Dynamic allocation
  253. TODO: Use for other architectures
  254. config SPL_SYS_MALLOC_F
  255. bool "Enable malloc() pool in SPL"
  256. depends on SPL_FRAMEWORK && SYS_MALLOC_F && SPL
  257. default y
  258. help
  259. In SPL memory is very limited on many platforms. Still,
  260. we can provide a small malloc() pool if needed. Driver model in
  261. particular needs this to operate, so that it can allocate the
  262. initial serial device and any others that are needed.
  263. config SPL_SYS_MALLOC_F_LEN
  264. hex "Size of malloc() pool in SPL"
  265. depends on SPL_SYS_MALLOC_F
  266. default 0x2800 if RCAR_GEN3
  267. default 0x2000 if IMX8MQ
  268. default SYS_MALLOC_F_LEN
  269. help
  270. Sets the size of the malloc() pool in SPL. This is used for
  271. driver model and other features, which must allocate memory for
  272. data structures.
  273. It is possible to enable CFG_SPL_SYS_MALLOC_START to start a new
  274. malloc() region in SDRAM once it is inited.
  275. config TPL_SYS_MALLOC_F
  276. bool "Enable malloc() pool in TPL"
  277. depends on SYS_MALLOC_F && TPL
  278. default y if SPL_SYS_MALLOC_F
  279. help
  280. In TPL memory is very limited on many platforms. Still,
  281. we can provide a small malloc() pool if needed. Driver model in
  282. particular needs this to operate, so that it can allocate the
  283. initial serial device and any others that are needed.
  284. config TPL_SYS_MALLOC_F_LEN
  285. hex "Size of malloc() pool in TPL"
  286. depends on TPL_SYS_MALLOC_F
  287. default SPL_SYS_MALLOC_F_LEN
  288. help
  289. Sets the size of the malloc() pool in TPL. This is used for
  290. driver model and other features, which must allocate memory for
  291. data structures.
  292. config VALGRIND
  293. bool "Inform valgrind about memory allocations"
  294. depends on !RISCV
  295. help
  296. Valgrind is an instrumentation framework for building dynamic analysis
  297. tools. In particular, it may be used to detect memory management bugs
  298. in U-Boot. It relies on knowing when heap blocks are allocated in
  299. order to give accurate results. This happens automatically for
  300. standard allocator functions provided by the host OS. However, this
  301. doesn't automatically happen for U-Boot's malloc implementation.
  302. Enable this option to annotate U-Boot's malloc implementation so that
  303. it can be handled accurately by Valgrind. If you aren't planning on
  304. using valgrind to debug U-Boot, say 'n'.
  305. config VPL_SYS_MALLOC_F
  306. bool "Enable malloc() pool in VPL"
  307. depends on SYS_MALLOC_F && VPL
  308. default y if SPL_SYS_MALLOC_F
  309. help
  310. In VPL memory is very limited on many platforms. Still,
  311. we can provide a small malloc() pool if needed. Driver model in
  312. particular needs this to operate, so that it can allocate the
  313. initial serial device and any others that are needed.
  314. config VPL_SYS_MALLOC_F_LEN
  315. hex "Size of malloc() pool in VPL before relocation"
  316. depends on VPL_SYS_MALLOC_F
  317. default SPL_SYS_MALLOC_F_LEN
  318. help
  319. Sets the size of the malloc() pool in VPL. This is used for
  320. driver model and other features, which must allocate memory for
  321. data structures.
  322. menuconfig EXPERT
  323. bool "Configure standard U-Boot features (expert users)"
  324. default y
  325. help
  326. This option allows certain base U-Boot options and settings
  327. to be disabled or tweaked. This is for specialized
  328. environments which can tolerate a "non-standard" U-Boot.
  329. Use this only if you really know what you are doing.
  330. if EXPERT
  331. config SYS_MALLOC_CLEAR_ON_INIT
  332. bool "Init with zeros the memory reserved for malloc (slow)"
  333. default y
  334. help
  335. This setting is enabled by default. The reserved malloc
  336. memory is initialized with zeros, so first malloc calls
  337. will return the pointer to the zeroed memory. But this
  338. slows the boot time.
  339. It is recommended to disable it, when CONFIG_SYS_MALLOC_LEN
  340. value, has more than few MiB, e.g. when uses bzip2 or bmp logo.
  341. Then the boot time can be significantly reduced.
  342. Warning:
  343. When disabling this, please check if malloc calls, maybe
  344. should be replaced by calloc - if one expects zeroed memory.
  345. config SPL_SYS_MALLOC_CLEAR_ON_INIT
  346. bool "Init with zeros the memory reserved for malloc (slow) in SPL"
  347. depends on SPL
  348. default SYS_MALLOC_CLEAR_ON_INIT
  349. help
  350. Same as SYS_MALLOC_CLEAR_ON_INIT, but for SPL. It's possible to
  351. Enable it without SYS_MALLOC_CLEAR_ON_INIT. It's useful for boards
  352. that must have particular memory regions zero'ed before first use.
  353. If SYS_SPL_MALLOC_START is configured to be in such region, this
  354. option should be enabled.
  355. config SYS_MALLOC_DEFAULT_TO_INIT
  356. bool "Default malloc to init while reserving the memory for it"
  357. help
  358. It may happen that one needs to move the dynamic allocation
  359. from one to another memory range, eg. when moving the malloc
  360. from the limited static to a potentially large dynamic (DDR)
  361. memory.
  362. If so then on top of setting the updated memory aside one
  363. needs to bring the malloc init.
  364. If such a scenario is sought choose yes.
  365. config TOOLS_DEBUG
  366. bool "Enable debug information for tools"
  367. help
  368. Enable generation of debug information for tools such as mkimage.
  369. This can be used for debugging purposes. With debug information
  370. it is possible to set breakpoints on particular lines, single-step
  371. debug through the source code, etc.
  372. endif # EXPERT
  373. config PHYS_64BIT
  374. bool "64bit physical address support"
  375. select FDT_64BIT
  376. help
  377. Say Y here to support 64bit physical memory address.
  378. This can be used not only for 64bit SoCs, but also for
  379. large physical address extension on 32bit SoCs.
  380. config FDT_64BIT
  381. bool "64bit fdt address support"
  382. help
  383. Say Y here to support 64bit fdt addresses.
  384. This can be used not only for 64bit SoCs, but also
  385. for large address extensions on 32bit SoCs.
  386. config HAS_ROM
  387. bool
  388. select BINMAN
  389. help
  390. Enables building of a u-boot.rom target. This collects U-Boot and
  391. any necessary binary blobs.
  392. config SPL_IMAGE
  393. string "SPL image used in the combined SPL+U-Boot image"
  394. default "spl/boot.bin" if ARCH_AT91 && SPL_NAND_SUPPORT
  395. default "spl/u-boot-spl.bin"
  396. depends on SPL
  397. help
  398. Select the SPL build target that shall be generated by the SPL
  399. build process (default spl/u-boot-spl.bin). This image will be
  400. used to generate a combined image with SPL and main U-Boot
  401. proper as one single image.
  402. config REMAKE_ELF
  403. bool "Recreate an ELF image from raw U-Boot binary"
  404. help
  405. Enable this to recreate an ELF image (u-boot.elf) from the raw
  406. U-Boot binary (u-boot.bin), which may already have been statically
  407. relocated and may already have a device-tree appended to it.
  408. config BUILD_TARGET
  409. string "Build target special images"
  410. default "u-boot-elf.srec" if RCAR_64
  411. default "u-boot-with-spl.bin" if ARCH_AT91 && SPL_NAND_SUPPORT
  412. default "u-boot-with-spl.bin" if MPC85xx && !E500MC && !E5500 && !E6500 && SPL
  413. default "u-boot-with-spl.imx" if ARCH_MX6 && SPL
  414. default "u-boot-with-spl.kwb" if ARMADA_32BIT && SPL
  415. default "u-boot-with-spl.sfp" if TARGET_SOCFPGA_ARRIA10
  416. default "u-boot-with-spl.sfp" if TARGET_SOCFPGA_GEN5
  417. default "u-boot.itb" if !BINMAN && SPL_LOAD_FIT && (ARCH_ROCKCHIP || \
  418. RISCV || ARCH_ZYNQMP)
  419. default "u-boot.kwb" if (ARCH_KIRKWOOD || ARMADA_32BIT) && !SPL
  420. help
  421. Some SoCs need special image types (e.g. U-Boot binary
  422. with a special header) as build targets. By defining
  423. CONFIG_BUILD_TARGET in the SoC / board header, this
  424. special image will be automatically built upon calling
  425. make / buildman.
  426. config HAS_BOARD_SIZE_LIMIT
  427. bool "Define a maximum size for the U-Boot image"
  428. default y if RCAR_32 || RCAR_64
  429. help
  430. In some cases, we need to enforce a hard limit on how big the U-Boot
  431. image itself can be.
  432. config BOARD_SIZE_LIMIT
  433. int "Maximum size of the U-Boot image in bytes"
  434. default 524288 if RCAR_32
  435. default 1048576 if RCAR_64
  436. depends on HAS_BOARD_SIZE_LIMIT
  437. help
  438. Maximum size of the U-Boot image. When defined, the build system
  439. checks that the actual size does not exceed it. This does not
  440. include SPL nor TPL, on platforms that use that functionality, they
  441. have a separate option to restict size.
  442. config SYS_CUSTOM_LDSCRIPT
  443. bool "Use a custom location for the U-Boot linker script"
  444. help
  445. Normally when linking U-Boot we will look in the board directory,
  446. the CPU directory and finally the "cpu" directory of the architecture
  447. for the ile "u-boot.lds" and use that as our linker. However, in
  448. some cases we need to provide a different linker script. To do so,
  449. enable this option and then provide the location under
  450. CONFIG_SYS_LDSCRIPT.
  451. config SYS_LDSCRIPT
  452. depends on SYS_CUSTOM_LDSCRIPT
  453. string "Custom ldscript location"
  454. help
  455. Path within the source tree to the linker script to use for the
  456. main U-Boot binary.
  457. config SYS_LOAD_ADDR
  458. hex "Address in memory to use by default"
  459. default 0x01000000 if ARCH_SOCFPGA
  460. default 0x02000000 if PPC || X86
  461. default 0x81000000 if MACH_SUNIV
  462. default 0x22000000 if MACH_SUN9I
  463. default 0x42000000 if ARCH_SUNXI
  464. default 0x82000000 if ARCH_KEYSTONE || ARCH_OMAP2PLUS || ARCH_K3
  465. default 0x82000000 if ARCH_MX6 && (MX6SL || MX6SLL || MX6SX || MX6UL || MX6ULL)
  466. default 0x12000000 if ARCH_MX6 && !(MX6SL || MX6SLL || MX6SX || MX6UL || MX6ULL)
  467. default 0x80800000 if ARCH_MX7
  468. default 0x90000000 if FSL_LSCH2 || FSL_LSCH3
  469. help
  470. Address in memory to use as the default safe load address.
  471. config ERR_PTR_OFFSET
  472. hex
  473. default 0x0
  474. help
  475. Some U-Boot pointers have redundant information, so we can use a
  476. scheme where we can return either an error code or a pointer with the
  477. same return value. The default implementation just casts the pointer
  478. to a number, however, this may fail on platforms where the end of the
  479. address range is used for valid pointers (e.g. 0xffffff00 is a valid
  480. heap pointer in socfpga SPL).
  481. For such platforms, this value provides an upper range of those error
  482. pointer values - up to 'MAX_ERRNO' bytes below this value must be
  483. unused/invalid addresses.
  484. config PLATFORM_ELFENTRY
  485. string
  486. default "__start" if MIPS
  487. default "_start"
  488. config STACK_SIZE
  489. hex "Define max stack size that can be used by U-Boot"
  490. default 0x4000000 if ARCH_VERSAL_NET || ARCH_VERSAL || ARCH_ZYNQMP
  491. default 0x200000 if MICROBLAZE
  492. default 0x1000000
  493. help
  494. Define Max stack size that can be used by U-Boot. This value is used
  495. by the UEFI sub-system. On some boards initrd_high is calculated as
  496. base stack pointer minus this stack size.
  497. config SYS_MEM_TOP_HIDE
  498. hex "Exclude some memory from U-Boot / OS information"
  499. default 0x0
  500. help
  501. If set, this specified memory area will get subtracted from the top
  502. (end) of RAM and won't get "touched" at all by U-Boot. By fixing up
  503. gd->ram_size the OS / next stage should gets passed the now
  504. "corrected" memory size and won't touch it either.
  505. WARNING: Please make sure that this value is a multiple of the OS
  506. page size.
  507. config SYS_HAS_SRAM
  508. bool
  509. default y if TARGET_PIC32MZDASK
  510. default y if TARGET_DEVKIT8000
  511. default y if TARGET_TRICORDER
  512. help
  513. Enable this to allow support for the on board SRAM.
  514. SRAM base address is controlled by CONFIG_SYS_SRAM_BASE.
  515. SRAM size is controlled by CONFIG_SYS_SRAM_SIZE.
  516. config SYS_SRAM_BASE
  517. hex
  518. default 0x80000000 if TARGET_PIC32MZDASK
  519. default 0x40200000 if TARGET_DEVKIT8000
  520. default 0x40200000 if TARGET_TRICORDER
  521. default 0x0
  522. config SYS_SRAM_SIZE
  523. hex
  524. default 0x00080000 if TARGET_PIC32MZDASK
  525. default 0x10000 if TARGET_DEVKIT8000
  526. default 0x10000 if TARGET_TRICORDER
  527. default 0x0
  528. config SYS_MONITOR_LEN
  529. int "Maximum size in bytes reserved for U-Boot in memory"
  530. default 1048576 if X86
  531. default 786432 if ARCH_SUNXI
  532. default 0
  533. help
  534. Size of memory reserved for monitor code, used to determine
  535. _at_compile_time_ (!) if the environment is embedded within the
  536. U-Boot image, or in a separate flash sector, among other uses where
  537. we need to set a maximum size of the U-Boot binary itself that will
  538. be loaded.
  539. config MP
  540. bool "Support for multiprocessor"
  541. help
  542. This provides an option to bringup different processors
  543. in multiprocessor cases.
  544. config HAVE_TEXT_BASE
  545. bool
  546. depends on !NIOS2 && !XTENSA
  547. depends on !EFI_APP
  548. default y
  549. config TEXT_BASE
  550. depends on HAVE_TEXT_BASE
  551. default 0x0 if POSITION_INDEPENDENT
  552. default 0x80800000 if ARCH_OMAP2PLUS || ARCH_K3
  553. default 0x81700000 if MACH_SUNIV
  554. default 0x2a000000 if MACH_SUN9I
  555. default 0x4a000000 if SUNXI_MINIMUM_DRAM_MB >= 256
  556. default 0x42e00000 if SUNXI_MINIMUM_DRAM_MB >= 64
  557. hex "Text Base"
  558. help
  559. The address in memory that U-Boot will be copied and executed from
  560. initially.
  561. config HAVE_SYS_UBOOT_START
  562. bool "Use custom U-Boot Start"
  563. depends on HAVE_TEXT_BASE
  564. help
  565. By default, the address in memory that U-Boot will be copied from
  566. (TEXT_BASE) and the entry point are the same. Select this to start the
  567. execution of U-Boot from a different address.
  568. This may be required if a header or vector table needs to be copied
  569. but not executed.
  570. config SYS_UBOOT_START
  571. hex
  572. depends on HAVE_TEXT_BASE
  573. default TEXT_BASE
  574. prompt "U-Boot entry" if HAVE_SYS_UBOOT_START
  575. help
  576. If TEXT_BASE differs from the start of execution, this sets the
  577. address in memory that U-Boot will start execution from initially.
  578. config HAVE_SYS_MONITOR_BASE
  579. bool
  580. depends on ARC || MIPS || M68K || NIOS2 || PPC || XTENSA || X86 \
  581. || ENV_IS_IN_FLASH || MTD_NOR_FLASH
  582. depends on !EFI_APP
  583. default y
  584. config SYS_MONITOR_BASE
  585. depends on HAVE_SYS_MONITOR_BASE
  586. hex "Physical start address of boot monitor code"
  587. default TEXT_BASE
  588. help
  589. The physical start address of boot monitor code (which is the same as
  590. CONFIG_TEXT_BASE when linking) and the same as CFG_SYS_FLASH_BASE
  591. when booting from flash.
  592. config SPL_SYS_MONITOR_BASE
  593. depends on MPC85xx && SPL && HAVE_SYS_MONITOR_BASE
  594. hex "Physical start address of SPL monitor code"
  595. default SPL_TEXT_BASE
  596. config TPL_SYS_MONITOR_BASE
  597. depends on MPC85xx && TPL && HAVE_SYS_MONITOR_BASE
  598. hex "Physical start address of TPL monitor code"
  599. config DYNAMIC_SYS_CLK_FREQ
  600. bool "Determine CPU clock frequency at run-time"
  601. help
  602. Implement a get_board_sys_clk function that will determine the CPU
  603. clock frequency at run time, rather than define it statically.
  604. config SYS_CLK_FREQ
  605. depends on !DYNAMIC_SYS_CLK_FREQ
  606. int "CPU clock frequency"
  607. default 125000000 if ARCH_LS1012A
  608. default 100000000 if ARCH_P2020 || ARCH_T1024 || ARCH_T1042 || \
  609. ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3
  610. default 66666666 if ARCH_P1010 || ARCH_P1020 || ARCH_T4240
  611. default 66660000 if ARCH_T2080
  612. default 33333333 if RCAR_GEN3
  613. default 24000000 if ARCH_EXYNOS
  614. default 20000000 if RCAR_GEN2
  615. default 0
  616. help
  617. A static value for the CPU frequency. Note that if not required
  618. for a given SoC, this can be left at 0.
  619. config HAS_LDR
  620. bool
  621. help
  622. Enables building .ldr targets for U-Boot and SPL. This does not
  623. automatically build any additional targets with make or buildman.
  624. config LDR_CPU
  625. string "CPU name to be passed to LDR utility."
  626. depends on HAS_LDR
  627. help
  628. Set the CPU name for the -T parameter in the LDR utility. This is
  629. generally used on processors from Analog Devices, but may be also
  630. be useful for other vendors.
  631. source "api/Kconfig"
  632. endmenu # General setup
  633. source "boot/Kconfig"
  634. source "common/Kconfig"
  635. source "cmd/Kconfig"
  636. source "disk/Kconfig"
  637. source "dts/Kconfig"
  638. source "env/Kconfig"
  639. source "net/Kconfig"
  640. source "drivers/Kconfig"
  641. source "fs/Kconfig"
  642. source "lib/Kconfig"
  643. source "test/Kconfig"
  644. source "tools/Kconfig"