Kconfig 52 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490
  1. config SUPPORT_SPL
  2. bool
  3. config SUPPORT_TPL
  4. bool
  5. config SUPPORT_VPL
  6. bool
  7. config SPL_DFU_NO_RESET
  8. bool
  9. config SPL
  10. bool "Enable SPL"
  11. depends on SUPPORT_SPL
  12. help
  13. If you want to build SPL as well as the normal image, say Y.
  14. menu "SPL configuration options"
  15. depends on SPL
  16. config SPL_FRAMEWORK
  17. bool "Support SPL based upon the common SPL framework"
  18. default y
  19. help
  20. Enable the SPL framework under common/spl/. This framework
  21. supports MMC, NAND and YMODEM and other methods loading of U-Boot
  22. and the Linux Kernel. If unsure, say Y.
  23. config SPL_FRAMEWORK_BOARD_INIT_F
  24. bool "Define a generic function board_init_f"
  25. depends on SPL_FRAMEWORK
  26. help
  27. Define a generic function board_init_f that:
  28. - initialize the spl (spl_early_init)
  29. - initialize the serial (preloader_console_init)
  30. Unless you want to provide your own board_init_f, you should say Y.
  31. config SPL_SIZE_LIMIT
  32. hex "Maximum size of SPL image"
  33. default 0x11000 if ARCH_MX6 && !MX6_OCRAM_256KB
  34. default 0x31000 if ARCH_MX6 && MX6_OCRAM_256KB
  35. default 0x30000 if ARCH_MVEBU && ARMADA_32BIT
  36. default 0x0
  37. help
  38. Specifies the maximum length of the U-Boot SPL image.
  39. If this value is zero, it is ignored.
  40. config SPL_SIZE_LIMIT_SUBTRACT_GD
  41. bool "SPL image size check: provide space for global data"
  42. depends on SPL_SIZE_LIMIT > 0
  43. help
  44. If enabled, aligned size of global data is reserved in
  45. SPL_SIZE_LIMIT check to ensure such an image does not overflow SRAM
  46. if SPL_SIZE_LIMIT describes the size of SRAM available for SPL when
  47. pre-reloc global data is put into this SRAM, too.
  48. config SPL_SIZE_LIMIT_SUBTRACT_MALLOC
  49. bool "SPL image size check: provide space for malloc() pool before relocation"
  50. depends on SPL_SIZE_LIMIT > 0
  51. help
  52. If enabled, SPL_SYS_MALLOC_F_LEN is reserved in SPL_SIZE_LIMIT check
  53. to ensure such an image does not overflow SRAM if SPL_SIZE_LIMIT
  54. describes the size of SRAM available for SPL when pre-reloc malloc
  55. pool is put into this SRAM, too.
  56. config SPL_SIZE_LIMIT_PROVIDE_STACK
  57. hex "SPL image size check: provide stack space before relocation"
  58. depends on SPL_SIZE_LIMIT > 0
  59. default 0
  60. help
  61. If set, this size is reserved in SPL_SIZE_LIMIT check to ensure such
  62. an image does not overflow SRAM if SPL_SIZE_LIMIT describes the size
  63. of SRAM available for SPL when the stack required before reolcation
  64. uses this SRAM, too.
  65. config SPL_MAX_SIZE
  66. hex "Maximum size of the SPL image, excluding BSS"
  67. default 0x30000 if ARCH_MX6 && MX6_OCRAM_256KB
  68. default 0x1b000 if AM33XX && !TI_SECURE_DEVICE
  69. default 0x10000 if ARCH_MX6 && !MX6_OCRAM_256KB
  70. default 0x7fa0 if SUNXI_SRAM_ADDRESS = 0x10000
  71. default 0x7fa0 if SUNXI_SRAM_ADDRESS = 0x20000 && !MACH_SUN50I_H616
  72. default 0xbfa0 if MACH_SUN50I_H616
  73. default 0x7000 if RCAR_GEN3
  74. default 0x5fa0 if SUNXI_SRAM_ADDRESS = 0x0
  75. default 0x10000 if ASPEED_AST2600
  76. default 0x27000 if IMX8MM && SPL_TEXT_BASE = 0x7E1000
  77. default 0x0
  78. help
  79. Maximum size of the SPL image (text, data, rodata, and linker lists
  80. sections), BSS excluded. When defined, the linker checks that the
  81. actual size does not exceed it.
  82. config SPL_PAD_TO
  83. hex "Offset to which the SPL should be padded before appending the SPL payload"
  84. default 0x31000 if ARCH_MX6 && MX6_OCRAM_256KB
  85. default 0x11000 if ARCH_MX7 || (ARCH_MX6 && !MX6_OCRAM_256KB)
  86. default 0x10000 if ARCH_KEYSTONE
  87. default 0x8000 if ARCH_SUNXI && !MACH_SUN50I_H616
  88. default 0x0 if ARCH_MTMIPS
  89. default TPL_MAX_SIZE if TPL_MAX_SIZE > SPL_MAX_SIZE
  90. default SPL_MAX_SIZE
  91. help
  92. Image offset to which the SPL should be padded before appending the
  93. SPL payload. By default, this is defined as CONFIG_SPL_MAX_SIZE, or 0 if
  94. CONFIG_SPL_MAX_SIZE is undefined. CONFIG_SPL_PAD_TO must be either
  95. 0, meaning to append the SPL payload without any padding, or >=
  96. CONFIG_SPL_MAX_SIZE.
  97. config SPL_HAS_BSS_LINKER_SECTION
  98. depends on SPL_FRAMEWORK
  99. bool "Use a specific address for the BSS via the linker script"
  100. default y if ARCH_SUNXI || ARCH_MX6 || ARCH_OMAP2PLUS || MIPS || RISCV || ARCH_ZYNQMP
  101. config SPL_BSS_START_ADDR
  102. hex "Link address for the BSS within the SPL binary"
  103. depends on SPL_HAS_BSS_LINKER_SECTION
  104. default 0x88200000 if (ARCH_MX6 && (MX6SX || MX6SL || MX6UL || MX6ULL)) || ARCH_MX7
  105. default 0x18200000 if ARCH_MX6 && !(MX6SX || MX6SL || MX6UL || MX6ULL)
  106. default 0x80a00000 if ARCH_OMAP2PLUS
  107. default 0x81f80000 if ARCH_SUNXI && MACH_SUNIV
  108. default 0x4ff80000 if ARCH_SUNXI && !(MACH_SUN9I || MACH_SUNIV)
  109. default 0x2ff80000 if ARCH_SUNXI && MACH_SUN9I
  110. default 0x1000 if ARCH_ZYNQMP
  111. choice
  112. prompt "Enforce SPL BSS limit"
  113. depends on !PPC
  114. default SPL_BSS_LIMIT
  115. help
  116. In some platforms we only want to enforce a limit on the size of the
  117. BSS in memory. On other platforms we need to enforce a limit on the
  118. whole of the memory allocation as we're strictly limited to a small
  119. typically non-DRAM location. Finally, other platforms do not enforce
  120. a memory limit within SPL.
  121. config SPL_NO_BSS_LIMIT
  122. bool "Do not enforce a build time limit on the size of the BSS"
  123. config SPL_BSS_LIMIT
  124. bool "Enforce a limit on the size of the BSS only"
  125. config SPL_FOOTPRINT_LIMIT
  126. bool "Enforce a limit on the whole of memory allocated to SPL, BSS included"
  127. endchoice
  128. config SPL_BSS_MAX_SIZE
  129. hex "Maximum size in memory allocated to the SPL BSS"
  130. depends on SPL_BSS_LIMIT
  131. default 0x100000 if ARCH_MX6 || RISCV
  132. default 0x80000 if ARCH_OMAP2PLUS || ARCH_SUNXI
  133. help
  134. When non-zero, the linker checks that the actual memory used by SPL
  135. from __bss_start to __bss_end does not exceed it.
  136. config SPL_MAX_FOOTPRINT
  137. hex "Maximum size in memory allocated to the SPL, BSS included"
  138. depends on SPL_FOOTPRINT_LIMIT
  139. help
  140. When non-zero, the linker checks that the actual memory used by SPL
  141. from _start to __bss_end does not exceed it.
  142. config SPL_SYS_STACK_F_CHECK_BYTE
  143. hex
  144. default 0xaa
  145. help
  146. Constant used to check the stack
  147. config SPL_SYS_REPORT_STACK_F_USAGE
  148. depends on SPL_SIZE_LIMIT_PROVIDE_STACK != 0
  149. bool "Check and report stack usage in SPL before relocation"
  150. help
  151. If this option is enabled, the initial SPL stack is filled with 0xaa
  152. very early, up to the size configured with
  153. SPL_SIZE_LIMIT_PROVIDE_STACK.
  154. Later when SPL is done using this initial stack and switches to a
  155. stack in DRAM, the actually used size of this initial stack is
  156. reported by examining the memory and searching for the lowest
  157. occurrence of non 0xaa bytes.
  158. This default implementation works for stacks growing down only.
  159. config SPL_SHOW_ERRORS
  160. bool "Show more information when something goes wrong"
  161. help
  162. This enabled more verbose error messages and checking when something
  163. goes wrong in SPL. For example, it shows the error code when U-Boot
  164. cannot be located. This can help to diagnose the problem and figure
  165. out a fix, particularly during development.
  166. This adds a small amount to SPL code size, perhaps 100 bytes.
  167. config SPL_BINMAN_SYMBOLS
  168. bool "Declare binman symbols in SPL"
  169. depends on SPL_FRAMEWORK && BINMAN
  170. default y
  171. help
  172. This enables use of symbols in SPL which refer to other entries in
  173. the same binman image as the SPL. These can be declared with the
  174. binman_sym_declare(type, entry, prop) macro and accessed by the
  175. binman_sym(type, entry, prop) macro defined in binman_sym.h.
  176. See tools/binman/binman.rst for a detailed explanation.
  177. config SPL_BINMAN_UBOOT_SYMBOLS
  178. bool "Declare binman symbols for U-Boot phases in SPL"
  179. depends on SPL_BINMAN_SYMBOLS
  180. default n if ARCH_IMX8M
  181. default y
  182. help
  183. This enables use of symbols in SPL which refer to U-Boot phases,
  184. enabling SPL to obtain the location and size of its next phase simply
  185. by calling spl_get_image_pos() and spl_get_image_size().
  186. For this to work, you must have all U-Boot phases in the same binman
  187. image, so binman can update SPL with the locations of everything.
  188. source "common/spl/Kconfig.nxp"
  189. config HANDOFF
  190. bool "Pass hand-off information from SPL to U-Boot proper"
  191. depends on BLOBLIST
  192. help
  193. It is useful to be able to pass information from SPL to U-Boot
  194. proper to preserve state that is known in SPL and is needed in U-Boot.
  195. Enable this to locate the handoff information in U-Boot proper, early
  196. in boot. It is available in gd->handoff. The state state is set up
  197. in SPL (or TPL if that is being used).
  198. config SPL_HANDOFF
  199. bool "Pass hand-off information from SPL to U-Boot proper"
  200. depends on HANDOFF && SPL_BLOBLIST
  201. default y
  202. help
  203. This option enables SPL to write handoff information. This can be
  204. used to pass information like the size of SDRAM from SPL to U-Boot
  205. proper. Also SPL can receive information from TPL in the same place
  206. if that is enabled.
  207. config SPL_LDSCRIPT
  208. string "Linker script for the SPL stage"
  209. default "arch/arm/cpu/arm926ejs/sunxi/u-boot-spl.lds" if MACH_SUNIV
  210. default "arch/arm/cpu/armv7/sunxi/u-boot-spl.lds" if ARCH_SUNXI && !MACH_SUNIV && !ARM64
  211. default "arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds" if (ARCH_MX23 || ARCH_MX28) && !SPL_FRAMEWORK
  212. default "arch/arm/cpu/arm1136/u-boot-spl.lds" if CPU_ARM1136
  213. default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A
  214. default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARM64
  215. default "arch/arm/mach-at91/arm926ejs/u-boot-spl.lds" if ARCH_AT91 && CPU_ARM926EJS
  216. default "arch/arm/mach-at91/armv7/u-boot-spl.lds" if ARCH_AT91 && CPU_V7A
  217. default "arch/arm/mach-omap2/u-boot-spl.lds" if ARCH_MX6 || ARCH_OMAP2PLUS || (ARCH_K3 && !ARM64)
  218. default "arch/arm/mach-zynq/u-boot-spl.lds" if ARCH_ZYNQ
  219. default "board/samsung/common/exynos-uboot-spl.lds" if ARCH_EXYNOS5 || ARCH_EXYNOS4
  220. default "board/davinci/da8xxevm/u-boot-spl-da850evm.lds" if ARCH_DAVINCI
  221. default "arch/\$(ARCH)/cpu/u-boot-spl.lds"
  222. help
  223. The SPL stage will usually require a different linker-script
  224. (as it runs from a different memory region) than the regular
  225. U-Boot stage. Set this to the path of the linker-script to
  226. be used for SPL.
  227. config SPL_TEXT_BASE
  228. hex "SPL Text Base"
  229. default 0x402F4000 if AM43XX
  230. default 0x402F0400 if AM33XX
  231. default 0x40301350 if OMAP54XX
  232. default 0x10060 if MACH_SUN50I || MACH_SUN50I_H5 || MACH_SUN9I
  233. default 0x20060 if SUN50I_GEN_H6
  234. default 0x00060 if ARCH_SUNXI
  235. default 0xfffc0000 if ARCH_ZYNQMP
  236. default 0x0
  237. help
  238. The address in memory that SPL will be running from.
  239. config SPL_BOARD_INIT
  240. bool "Call board-specific initialization in SPL"
  241. help
  242. If this option is enabled, U-Boot will call the function
  243. spl_board_init() from board_init_r(). This function should be
  244. provided by the board.
  245. config SPL_BOOTROM_SUPPORT
  246. bool "Support returning to the BOOTROM"
  247. help
  248. Some platforms (e.g. the Rockchip RK3368) provide support in their
  249. ROM for loading the next boot-stage after performing basic setup
  250. from the SPL stage.
  251. Enable this option, to return to the BOOTROM through the
  252. BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
  253. boot device list, if not implemented for a given board)
  254. config SPL_BOOTCOUNT_LIMIT
  255. bool "Support bootcount in SPL"
  256. depends on SPL_ENV_SUPPORT && !TPL_BOOTCOUNT_LIMIT
  257. help
  258. On some boards, which use 'falcon' mode, it is necessary to check
  259. and increment the number of boot attempts. Such boards do not
  260. use proper U-Boot for normal boot flow and hence needs those
  261. adjustments to be done in the SPL.
  262. config SPL_RAW_IMAGE_SUPPORT
  263. bool "Support SPL loading and booting of RAW images"
  264. default n if ARCH_MVEBU
  265. default n if (ARCH_MX6 && (SPL_MMC || SPL_SATA))
  266. default y
  267. depends on !TI_SECURE_DEVICE
  268. help
  269. SPL will support loading and booting a RAW image when this option
  270. is y. If this is not set, SPL will move on to other available
  271. boot media to find a suitable image.
  272. config SPL_LEGACY_IMAGE_FORMAT
  273. bool "Support SPL loading and booting of Legacy images"
  274. default n if ARCH_MVEBU
  275. default y if !SPL_LOAD_FIT
  276. depends on !TI_SECURE_DEVICE
  277. help
  278. SPL will support loading and booting Legacy images when this option
  279. is y. If this is not set, SPL will move on to other available
  280. boot media to find a suitable image.
  281. config SPL_LEGACY_IMAGE_CRC_CHECK
  282. bool "Check CRC of Legacy images"
  283. depends on SPL_LEGACY_IMAGE_FORMAT
  284. select SPL_CRC32
  285. help
  286. Enable this to check the CRC of Legacy images. While this increases
  287. reliability, it affects both code size and boot duration.
  288. If disabled, Legacy images are booted if the image magic and size
  289. are correct, without further integrity checks.
  290. config SPL_SYS_MALLOC_SIMPLE
  291. bool "Only use malloc_simple functions in the SPL"
  292. help
  293. Say Y here to only use the *_simple malloc functions from
  294. malloc_simple.c, rather then using the versions from dlmalloc.c;
  295. this will make the SPL binary smaller at the cost of more heap
  296. usage as the *_simple malloc functions do not re-use free-ed mem.
  297. config SPL_SHARES_INIT_SP_ADDR
  298. bool "SPL and U-Boot use the same initial stack pointer location"
  299. depends on (ARM || ARCH_JZ47XX || MICROBLAZE || RISCV) && SPL_FRAMEWORK
  300. default n if ARCH_SUNXI || ARCH_MX6 || ARCH_MX7
  301. default y
  302. help
  303. In many cases, we can use the same initial stack pointer address for
  304. both SPL and U-Boot itself. If you need to specify a different address
  305. however, say N here and then set a different value in CONFIG_SPL_STACK.
  306. config SPL_STACK
  307. hex "Initial stack pointer location"
  308. depends on (ARM || ARCH_JZ47XX || MICROBLAZE || RISCV) && SPL_FRAMEWORK
  309. depends on !SPL_SHARES_INIT_SP_ADDR
  310. default 0x946bb8 if ARCH_MX7
  311. default 0x93ffb8 if ARCH_MX6 && MX6_OCRAM_256KB
  312. default 0x91ffb8 if ARCH_MX6 && !MX6_OCRAM_256KB
  313. default 0x118000 if MACH_SUN50I_H6
  314. default 0x58000 if MACH_SUN50I_H616
  315. default 0x54000 if MACH_SUN50I || MACH_SUN50I_H5
  316. default 0x18000 if MACH_SUN9I
  317. default 0x8000 if ARCH_SUNXI
  318. help
  319. Address of the start of the stack SPL will use before SDRAM is
  320. initialized.
  321. config SPL_STACK_R
  322. bool "Enable SDRAM location for SPL stack"
  323. help
  324. SPL starts off execution in SRAM and thus typically has only a small
  325. stack available. Since SPL sets up DRAM while in its board_init_f()
  326. function, it is possible for the stack to move there before
  327. board_init_r() is reached. This option enables a special SDRAM
  328. location for the SPL stack. U-Boot SPL switches to this after
  329. board_init_f() completes, and before board_init_r() starts.
  330. config SPL_STACK_R_ADDR
  331. depends on SPL_STACK_R
  332. hex "SDRAM location for SPL stack"
  333. default 0x82000000 if ARCH_OMAP2PLUS
  334. help
  335. Specify the address in SDRAM for the SPL stack. This will be set up
  336. before board_init_r() is called.
  337. config SPL_STACK_R_MALLOC_SIMPLE_LEN
  338. depends on SPL_STACK_R && SPL_SYS_MALLOC_SIMPLE
  339. hex "Size of malloc_simple heap after switching to DRAM SPL stack"
  340. default 0x400000 if ARCH_K3 && ARM64
  341. default 0x100000
  342. help
  343. Specify the amount of the stack to use as memory pool for
  344. malloc_simple after switching the stack to DRAM. This may be set
  345. to give board_init_r() a larger heap then the initial heap in
  346. SRAM which is limited to SYS_MALLOC_F_LEN bytes.
  347. config SPL_SEPARATE_BSS
  348. bool "BSS section is in a different memory region from text"
  349. help
  350. Some platforms need a large BSS region in SPL and can provide this
  351. because RAM is already set up. In this case BSS can be moved to RAM.
  352. This option should then be enabled so that the correct device tree
  353. location is used. Normally we put the device tree at the end of BSS
  354. but with this option enabled, it goes at _image_binary_end.
  355. config SYS_SPL_MALLOC
  356. bool "Enable malloc pool in SPL"
  357. depends on SPL_FRAMEWORK
  358. config HAS_CUSTOM_SPL_MALLOC_START
  359. bool "For the SPL malloc pool, define a custom starting address"
  360. depends on SYS_SPL_MALLOC
  361. config CUSTOM_SYS_SPL_MALLOC_ADDR
  362. hex "SPL malloc addr"
  363. depends on HAS_CUSTOM_SPL_MALLOC_START
  364. config SYS_SPL_MALLOC_SIZE
  365. hex "Size of the SPL malloc pool"
  366. depends on SYS_SPL_MALLOC
  367. default 0x100000
  368. config SPL_READ_ONLY
  369. bool
  370. depends on SPL_OF_PLATDATA
  371. # Bind cannot be supported because the udevice structs are in read-only
  372. # memory so we cannot update the linked lists.
  373. select SPL_OF_PLATDATA_NO_BIND
  374. select SPL_OF_PLATDATA_RT
  375. help
  376. Some platforms (e.g. x86 Apollo Lake) load SPL into a read-only
  377. section of memory. This means that of-platdata must make a copy (in
  378. writeable memory) of anything it wants to modify, such as
  379. device-private data.
  380. config SPL_BANNER_PRINT
  381. bool "Enable output of the SPL banner 'U-Boot SPL ...'"
  382. default y
  383. help
  384. If this option is enabled, SPL will print the banner with version
  385. info. Disabling this option could be useful to reduce SPL boot time
  386. (e.g. approx. 6 ms faster, when output on i.MX6 with 115200 baud).
  387. config SPL_EARLY_BSS
  388. depends on ARM && !ARM64
  389. bool "Allows initializing BSS early before entering board_init_f"
  390. help
  391. On some platform we have sufficient memory available early on to
  392. allow setting up and using a basic BSS prior to entering
  393. board_init_f. Activating this option will also de-activate the
  394. clearing of BSS during the SPL relocation process, thus allowing
  395. to carry state from board_init_f to board_init_r by way of BSS.
  396. config SPL_DISPLAY_PRINT
  397. bool "Display a board-specific message in SPL"
  398. help
  399. If this option is enabled, U-Boot will call the function
  400. spl_display_print() immediately after displaying the SPL console
  401. banner ("U-Boot SPL ..."). This function should be provided by
  402. the board.
  403. config SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
  404. bool "MMC raw mode: by sector"
  405. default y if ARCH_SUNXI || ARCH_DAVINCI || ARCH_UNIPHIER || \
  406. ARCH_MX6 || ARCH_MX7 || \
  407. ARCH_ROCKCHIP || ARCH_MVEBU || ARCH_SOCFPGA || \
  408. ARCH_AT91 || ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || \
  409. OMAP44XX || OMAP54XX || AM33XX || AM43XX || \
  410. TARGET_SIFIVE_UNLEASHED || TARGET_SIFIVE_UNMATCHED
  411. help
  412. Use sector number for specifying U-Boot location on MMC/SD in
  413. raw mode.
  414. config SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
  415. hex "Address on the MMC to load U-Boot from"
  416. depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
  417. default 0x40 if ARCH_SUNXI
  418. default 0x75 if ARCH_DAVINCI
  419. default 0x8a if ARCH_MX6 || ARCH_MX7
  420. default 0x100 if ARCH_UNIPHIER
  421. default 0x0 if ARCH_MVEBU
  422. default 0x200 if ARCH_SOCFPGA || ARCH_AT91
  423. default 0x300 if ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || OMAP44XX || \
  424. OMAP54XX || AM33XX || AM43XX || ARCH_K3
  425. default 0x4000 if ARCH_ROCKCHIP
  426. default 0x822 if TARGET_SIFIVE_UNLEASHED || TARGET_SIFIVE_UNMATCHED
  427. help
  428. Address on the MMC to load U-Boot from, when the MMC is being used
  429. in raw mode. Units: MMC sectors (1 sector = 512 bytes).
  430. config SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR_BACK
  431. hex "Address on the MMC to load U-Boot back from"
  432. depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
  433. default 0
  434. help
  435. Address on the MMC to load U-Boot from, when the MMC is being used
  436. in raw mode. Units: MMC sectors (1 sector = 512 bytes).
  437. config SYS_MMCSD_RAW_MODE_U_BOOT_DATA_PART_OFFSET
  438. hex "U-Boot main hardware partition image offset"
  439. depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
  440. default 0x10 if ARCH_SUNXI
  441. default 0x0
  442. help
  443. On some platforms SPL location depends on hardware partition. The ROM
  444. code skips the MBR sector when loading SPL from main hardware data
  445. partition. This adds offset to the main U-Boot image. Set this symbol
  446. to the number of skipped sectors.
  447. If unsure, leave the default.
  448. config SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
  449. bool "MMC Raw mode: by partition"
  450. help
  451. Use a partition for loading U-Boot when using MMC/SD in raw mode.
  452. config SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION
  453. hex "Partition to use to load U-Boot from"
  454. depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
  455. default 1
  456. help
  457. Partition on the MMC to load U-Boot from when the MMC is being
  458. used in raw mode
  459. config SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
  460. bool "MMC raw mode: by partition type"
  461. depends on DOS_PARTITION && SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
  462. help
  463. Use partition type for specifying U-Boot partition on MMC/SD in
  464. raw mode. U-Boot will be loaded from the first partition of this
  465. type to be found.
  466. config SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE
  467. hex "Partition Type on the MMC to load U-Boot from"
  468. depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
  469. help
  470. Partition Type on the MMC to load U-Boot from, when the MMC is being
  471. used in raw mode.
  472. config SUPPORT_EMMC_BOOT_OVERRIDE_PART_CONFIG
  473. bool "Override eMMC EXT_CSC_PART_CONFIG by user defined partition"
  474. depends on SUPPORT_EMMC_BOOT
  475. help
  476. eMMC boot partition is normally configured by the bits of the EXT_CSD
  477. register (EXT_CSC_PART_CONFIG), BOOT_PARTITION_ENABLE field. In some
  478. cases it might be required in SPL to load the image from different
  479. partition than the partition selected by EXT_CSC_PART_CONFIG register.
  480. Enable this option if you intend to use an eMMC boot partition other
  481. then selected via EXT_CSC_PART_CONFIG register and specify the custom
  482. partition number by the CONFIG_SYS_MMCSD_RAW_MODE_EMMC_BOOT_PARTITION
  483. option.
  484. config SYS_MMCSD_RAW_MODE_EMMC_BOOT_PARTITION
  485. int "Number of the eMMC boot partition to use"
  486. depends on SUPPORT_EMMC_BOOT_OVERRIDE_PART_CONFIG
  487. default 1
  488. help
  489. eMMC boot partition number to use when the eMMC in raw mode and
  490. the eMMC EXT_CSC_PART_CONFIG selection should be overridden in SPL
  491. by user defined partition number.
  492. config SPL_FIT_IMAGE_TINY
  493. bool "Remove functionality from SPL FIT loading to reduce size"
  494. depends on SPL_FIT
  495. default y if MACH_SUN50I || MACH_SUN50I_H5 || SUN50I_GEN_H6
  496. default y if ARCH_IMX8M || ARCH_IMX9
  497. help
  498. Enable this to reduce the size of the FIT image loading code
  499. in SPL, if space for the SPL binary is very tight.
  500. This skips the recording of each loaded payload
  501. (i.e. loadable) into the FDT (modifying the loaded FDT to
  502. ensure this information is available to the next image
  503. invoked).
  504. config SPL_CACHE
  505. bool "Support CACHE drivers"
  506. help
  507. Enable CACHE drivers in SPL. These drivers can keep data so that
  508. future requests for that data can be served faster. Enable this option
  509. to build the drivers in drivers/cache as part of an SPL build.
  510. config SPL_CPU
  511. bool "Support CPU drivers"
  512. help
  513. Enable this to support CPU drivers in SPL. These drivers can set
  514. up CPUs and provide information about them such as the model and
  515. name. This can be useful in SPL since setting up the CPUs earlier
  516. may improve boot performance. Enable this option to build the
  517. drivers in drivers/cpu as part of an SPL build.
  518. config SPL_CRYPTO
  519. bool "Support crypto drivers"
  520. help
  521. Enable crypto drivers in SPL. These drivers can be used to
  522. accelerate secure boot processing in secure applications. Enable
  523. this option to build the drivers in drivers/crypto as part of an
  524. SPL build.
  525. config SPL_DMA
  526. bool "Support DMA drivers"
  527. help
  528. Enable DMA (direct-memory-access) drivers in SPL. These drivers
  529. can be used to handle memory-to-peripheral data transfer without
  530. the CPU moving the data. Enable this option to build the drivers
  531. in drivers/dma as part of an SPL build.
  532. config SPL_DRIVERS_MISC
  533. bool "Support misc drivers"
  534. help
  535. Enable miscellaneous drivers in SPL. These drivers perform various
  536. tasks that don't fall nicely into other categories, Enable this
  537. option to build the drivers in drivers/misc as part of an SPL
  538. build, for those that support building in SPL (not all drivers do).
  539. config SPL_ENV_SUPPORT
  540. bool "Support an environment"
  541. help
  542. Enable environment support in SPL. The U-Boot environment provides
  543. a number of settings (essentially name/value pairs) which can
  544. control many aspects of U-Boot's operation. Normally this is not
  545. needed in SPL as it has a much simpler task with less
  546. configuration. But some boards use this to support 'Falcon' boot
  547. on EXT2 and FAT, where SPL boots directly into Linux without
  548. starting U-Boot first. Enabling this option will make env_get()
  549. and env_set() available in SPL.
  550. config SPL_SAVEENV
  551. bool "Support save environment"
  552. depends on SPL_ENV_SUPPORT
  553. select SPL_MMC_WRITE if ENV_IS_IN_MMC
  554. help
  555. Enable save environment support in SPL after setenv. By default
  556. the saveenv option is not provided in SPL, but some boards need
  557. this support in 'Falcon' boot, where SPL need to boot from
  558. different images based on environment variable set by OS. For
  559. example OS may set "reboot_image" environment variable to
  560. "recovery" inorder to boot recovery image by SPL. The SPL read
  561. "reboot_image" and act accordingly and change the reboot_image
  562. to default mode using setenv and save the environment.
  563. config SPL_ETH
  564. bool "Support Ethernet"
  565. depends on SPL_ENV_SUPPORT
  566. depends on SPL_NET
  567. help
  568. Enable access to the network subsystem and associated Ethernet
  569. drivers in SPL. This permits SPL to load U-Boot over an Ethernet
  570. link rather than from an on-board peripheral. Environment support
  571. is required since the network stack uses a number of environment
  572. variables. See also SPL_NET.
  573. config SPL_FS_EXT4
  574. bool "Support EXT filesystems"
  575. help
  576. Enable support for EXT2/3/4 filesystems with SPL. This permits
  577. U-Boot (or Linux in Falcon mode) to be loaded from an EXT
  578. filesystem from within SPL. Support for the underlying block
  579. device (e.g. MMC or USB) must be enabled separately.
  580. config SPL_FS_SQUASHFS
  581. bool "Support SquashFS filesystems"
  582. select FS_SQUASHFS
  583. help
  584. Enable support for SquashFS filesystems with SPL. This permits
  585. U-Boot (or Linux in Falcon mode) to be loaded from a SquashFS
  586. filesystem from within SPL. Support for the underlying block
  587. device (e.g. MMC or USB) must be enabled separately.
  588. config SPL_FS_FAT
  589. bool "Support FAT filesystems"
  590. select FS_FAT
  591. help
  592. Enable support for FAT and VFAT filesystems with SPL. This
  593. permits U-Boot (or Linux in Falcon mode) to be loaded from a FAT
  594. filesystem from within SPL. Support for the underlying block
  595. device (e.g. MMC or USB) must be enabled separately.
  596. config SPL_FS_LOAD_PAYLOAD_NAME
  597. string "File to load for U-Boot from the filesystem"
  598. depends on SPL_FS_EXT4 || SPL_FS_FAT || SPL_FS_SQUASHFS || SPL_SEMIHOSTING
  599. default "tispl.bin" if SYS_K3_SPL_ATF
  600. default "u-boot.itb" if SPL_LOAD_FIT
  601. default "u-boot.img"
  602. help
  603. Filename to read to load U-Boot when reading from filesystem.
  604. config SPL_FS_LOAD_KERNEL_NAME
  605. string "File to load for the OS kernel from the filesystem"
  606. depends on (SPL_FS_EXT4 || SPL_FS_FAT || SPL_FS_SQUASHFS) && SPL_OS_BOOT
  607. default "uImage"
  608. help
  609. Filename to read to load for the OS kernel when reading from the
  610. filesystem.
  611. config SPL_FS_LOAD_ARGS_NAME
  612. string "File to load for the OS kernel argument parameters from the filesystem"
  613. depends on (SPL_FS_EXT4 || SPL_FS_FAT || SPL_FS_SQUASHFS) && SPL_OS_BOOT
  614. default "args"
  615. help
  616. Filename to read to load for the OS kernel argument parameters from
  617. the filesystem.
  618. config SPL_FAT_WRITE
  619. bool "Support write for FAT filesystems"
  620. help
  621. Enable write support for FAT and VFAT filesystems with SPL.
  622. Support for the underlying block device (e.g. MMC or USB) must be
  623. enabled separately.
  624. config SPL_FPGA
  625. bool "Support FPGAs"
  626. help
  627. Enable support for FPGAs in SPL. Field-programmable Gate Arrays
  628. provide software-configurable hardware which is typically used to
  629. implement peripherals (such as UARTs, LCD displays, MMC) or
  630. accelerate custom processing functions, such as image processing
  631. or machine learning. Sometimes it is useful to program the FPGA
  632. as early as possible during boot, and this option can enable that
  633. within SPL.
  634. config SPL_GPIO
  635. bool "Support GPIO in SPL"
  636. help
  637. Enable support for GPIOs (General-purpose Input/Output) in SPL.
  638. GPIOs allow U-Boot to read the state of an input line (high or
  639. low) and set the state of an output line. This can be used to
  640. drive LEDs, control power to various system parts and read user
  641. input. GPIOs can be useful in SPL to enable a 'sign-of-life' LED,
  642. for example. Enable this option to build the drivers in
  643. drivers/gpio as part of an SPL build.
  644. config SPL_I2C
  645. bool "Support I2C"
  646. help
  647. Enable support for the I2C (Inter-Integrated Circuit) bus in SPL.
  648. I2C works with a clock and data line which can be driven by a
  649. one or more masters or slaves. It is a fairly complex bus but is
  650. widely used as it only needs two lines for communication. Speeds of
  651. 400kbps are typical but up to 3.4Mbps is supported by some
  652. hardware. I2C can be useful in SPL to configure power management
  653. ICs (PMICs) before raising the CPU clock speed, for example.
  654. Enable this option to build the drivers in drivers/i2c as part of
  655. an SPL build.
  656. config SPL_LIBCOMMON_SUPPORT
  657. bool "Support common libraries"
  658. help
  659. Enable support for common U-Boot libraries within SPL. These
  660. libraries include common code to deal with U-Boot images,
  661. environment and USB, for example. This option is enabled on many
  662. boards. Enable this option to build the code in common/ as part of
  663. an SPL build.
  664. config SPL_LIBDISK_SUPPORT
  665. bool "Support disk partitions"
  666. select PARTITIONS
  667. help
  668. Enable support for disk partitions within SPL. 'Disk' is something
  669. of a misnomer as it includes non-spinning media such as flash (as
  670. used in MMC and USB sticks). Partitions provide a way for a disk
  671. to be split up into separate regions, with a partition table placed
  672. at the start or end which describes the location and size of each
  673. 'partition'. These partitions are typically uses as individual block
  674. devices, typically with an EXT2 or FAT filesystem in each. This
  675. option enables whatever partition support has been enabled in
  676. U-Boot to also be used in SPL. It brings in the code in disk/.
  677. config SPL_LIBGENERIC_SUPPORT
  678. bool "Support generic libraries"
  679. help
  680. Enable support for generic U-Boot libraries within SPL. These
  681. libraries include generic code to deal with device tree, hashing,
  682. printf(), compression and the like. This option is enabled on many
  683. boards. Enable this option to build the code in lib/ as part of an
  684. SPL build.
  685. config SPL_DM_MAILBOX
  686. bool "Support Mailbox"
  687. depends on SPL_DM
  688. help
  689. Enable support for Mailbox within SPL. This enable the inter
  690. processor communication protocols tobe used within SPL. Enable
  691. this option to build the drivers in drivers/mailbox as part of
  692. SPL build.
  693. config SPL_MEMORY
  694. bool "Support Memory controller drivers"
  695. help
  696. Enable support for Memory Controller drivers within SPL.
  697. These devices provide Memory bus interface to various devices like
  698. SRAM, Ethernet adapters, FPGAs, etc.
  699. config SPL_MMC
  700. bool "Support MMC"
  701. depends on MMC
  702. help
  703. Enable support for MMC (Multimedia Card) within SPL. This enables
  704. the MMC protocol implementation and allows any enabled drivers to
  705. be used within SPL. MMC can be used with or without disk partition
  706. support depending on the application (SPL_LIBDISK_SUPPORT). Enable
  707. this option to build the drivers in drivers/mmc as part of an SPL
  708. build.
  709. config SYS_MMCSD_FS_BOOT
  710. bool "MMC FS Boot mode"
  711. depends on SPL_MMC
  712. default y if !ARCH_MVEBU
  713. help
  714. Enable MMC FS Boot mode. Partition is selected by option
  715. SYS_MMCSD_FS_BOOT_PARTITION.
  716. config SYS_MMCSD_FS_BOOT_PARTITION
  717. int "MMC Boot Partition"
  718. depends on SYS_MMCSD_FS_BOOT
  719. default 1
  720. help
  721. Partition on the MMC to load U-Boot from when the MMC is being
  722. used in fs mode.
  723. Use -1 as a special value to use the first bootable partition.
  724. config SPL_MMC_TINY
  725. bool "Tiny MMC framework in SPL"
  726. depends on SPL_MMC
  727. help
  728. Enable MMC framework tinification support. This option is useful if
  729. if your SPL is extremely size constrained. Heed the warning, enable
  730. this option if and only if you know exactly what you are doing, if
  731. you are reading this help text, you most likely have no idea :-)
  732. The MMC framework is reduced to bare minimum to be useful. No malloc
  733. support is needed for the MMC framework operation with this option
  734. enabled. The framework supports exactly one MMC device and exactly
  735. one MMC driver. The MMC driver can be adjusted to avoid any malloc
  736. operations too, which can remove the need for malloc support in SPL
  737. and thus further reduce footprint.
  738. config SPL_MMC_WRITE
  739. bool "MMC/SD/SDIO card support for write operations in SPL"
  740. depends on SPL_MMC
  741. help
  742. Enable write access to MMC and SD Cards in SPL
  743. config SPL_MPC8XXX_INIT_DDR
  744. bool "Support MPC8XXX DDR init"
  745. help
  746. Enable support for DDR-SDRAM (double-data-rate synchronous dynamic
  747. random-access memory) on the MPC8XXX family within SPL. This
  748. allows DRAM to be set up before loading U-Boot into that DRAM,
  749. where it can run.
  750. config SPL_MTD_SUPPORT
  751. bool "Support MTD drivers"
  752. help
  753. Enable support for MTD (Memory Technology Device) within SPL. MTD
  754. provides a block interface over raw NAND and can also be used with
  755. SPI flash. This allows SPL to load U-Boot from supported MTD
  756. devices. See SPL_NAND_SUPPORT and SPL_ONENAND_SUPPORT for how
  757. to enable specific MTD drivers.
  758. config SPL_MUSB_NEW
  759. bool "Support new Mentor Graphics USB"
  760. help
  761. Enable support for Mentor Graphics USB in SPL. This is a new
  762. driver used by some boards. Enable this option to build
  763. the drivers in drivers/usb/musb-new as part of an SPL build. The
  764. old drivers are in drivers/usb/musb.
  765. config SPL_NAND_SUPPORT
  766. bool "Support NAND flash"
  767. help
  768. Enable support for NAND (Negative AND) flash in SPL. NAND flash
  769. can be used to allow SPL to load U-Boot from supported devices.
  770. This enables the drivers in drivers/mtd/nand/raw as part of an SPL
  771. build.
  772. config SPL_NAND_RAW_ONLY
  773. bool "Support to boot only raw u-boot.bin images"
  774. depends on SPL_NAND_SUPPORT
  775. help
  776. Use this only if you need to save space.
  777. config SPL_NAND_DRIVERS
  778. bool "Use standard NAND driver"
  779. help
  780. SPL uses normal NAND drivers, not minimal drivers.
  781. config SPL_NAND_ECC
  782. bool "Include standard ECC in SPL"
  783. config SPL_NAND_SOFTECC
  784. bool "Use software ECC in SPL"
  785. depends on SPL_NAND_ECC
  786. config SPL_NAND_SIMPLE
  787. bool "Support simple NAND drivers in SPL"
  788. help
  789. Support for NAND boot using simple NAND drivers that
  790. expose the cmd_ctrl() interface.
  791. config SPL_NAND_BASE
  792. depends on SPL_NAND_SUPPORT
  793. bool "Use Base NAND Driver"
  794. help
  795. Include nand_base.c in the SPL.
  796. config SPL_NAND_IDENT
  797. depends on SPL_NAND_BASE
  798. bool "Use chip ID to identify NAND flash"
  799. help
  800. SPL uses the chip ID list to identify the NAND flash.
  801. config SPL_UBI
  802. bool "Support UBI"
  803. help
  804. Enable support for loading payloads from UBI. See
  805. README.ubispl for more info.
  806. menu "UBI configuration for SPL"
  807. depends on SPL_UBI
  808. config SPL_UBI_LOAD_BY_VOLNAME
  809. bool "Support loading volumes by name"
  810. help
  811. This enables support for loading UBI volumes by name. When this
  812. is set, CONFIG_SPL_UBI_LOAD_MONITOR_VOLNAME can be used to
  813. configure the volume name from which to load U-Boot.
  814. config SPL_UBI_MAX_VOL_LEBS
  815. int "Maximum number of LEBs per volume"
  816. help
  817. The maximum number of logical eraseblocks which a static volume
  818. to load can contain. Used for sizing the scan data structure.
  819. config SPL_UBI_MAX_PEB_SIZE
  820. int "Maximum PEB size"
  821. help
  822. The maximum physical erase block size.
  823. config SPL_UBI_MAX_PEBS
  824. int "Maximum number of PEBs"
  825. help
  826. The maximum physical erase block size. If not overridden by
  827. board code, this value will be used as the actual number of PEBs.
  828. config SPL_UBI_PEB_OFFSET
  829. int "Offset to first UBI PEB"
  830. help
  831. The offset in number of PEBs from the start of flash to the first
  832. PEB part of the UBI image.
  833. config SPL_UBI_VID_OFFSET
  834. int "Offset to VID header"
  835. config SPL_UBI_LEB_START
  836. int "Offset to LEB in PEB"
  837. help
  838. The offset in bytes to the LEB within a PEB.
  839. config SPL_UBI_INFO_ADDR
  840. hex "Address to place UBI scan info"
  841. help
  842. Address for ubispl to place the scan info. Read README.ubispl to
  843. determine the required size
  844. config SPL_UBI_VOL_IDS
  845. int "Maximum volume id"
  846. help
  847. The maximum volume id which can be loaded. Used for sizing the
  848. scan data structure.
  849. config SPL_UBI_LOAD_MONITOR_ID
  850. int "id of U-Boot volume"
  851. help
  852. The UBI volume id from which to load U-Boot
  853. config SPL_UBI_LOAD_MONITOR_VOLNAME
  854. string "volume name of U-Boot volume"
  855. depends on SPL_UBI_LOAD_BY_VOLNAME
  856. help
  857. The UBI volume name from which to load U-Boot
  858. config SPL_UBI_LOAD_KERNEL_ID
  859. int "id of kernel volume"
  860. depends on SPL_OS_BOOT
  861. help
  862. The UBI volume id from which to load the kernel
  863. config SPL_UBI_LOAD_ARGS_ID
  864. int "id of kernel args volume"
  865. depends on SPL_OS_BOOT
  866. help
  867. The UBI volume id from which to load the device tree
  868. config UBI_SPL_SILENCE_MSG
  869. bool "silence UBI SPL messages"
  870. help
  871. Disable messages from UBI SPL. This leaves warnings
  872. and errors enabled.
  873. endmenu
  874. config SPL_DM_SPI
  875. bool "Support SPI DM drivers in SPL"
  876. depends on SPL_DM
  877. help
  878. Enable support for SPI DM drivers in SPL.
  879. config SPL_DM_SPI_FLASH
  880. bool "Support SPI DM FLASH drivers in SPL"
  881. depends on SPL_DM
  882. help
  883. Enable support for SPI DM flash drivers in SPL.
  884. config SPL_NET
  885. bool "Support networking"
  886. help
  887. Enable support for network devices (such as Ethernet) in SPL.
  888. This permits SPL to load U-Boot over a network link rather than
  889. from an on-board peripheral. Environment support is required since
  890. the network stack uses a number of environment variables. See also
  891. SPL_ETH.
  892. config SPL_NET_VCI_STRING
  893. string "BOOTP Vendor Class Identifier string sent by SPL"
  894. depends on SPL_NET
  895. help
  896. As defined by RFC 2132 the vendor class identifier field can be
  897. sent by the client to identify the vendor type and configuration
  898. of a client. This is often used in practice to allow for the DHCP
  899. server to specify different files to load depending on if the ROM,
  900. SPL or U-Boot itself makes the request
  901. config SPL_NO_CPU_SUPPORT
  902. def_bool y
  903. depends on (ARCH_MX23 || ARCH_MX28) && !SPL_FRAMEWORK
  904. help
  905. This is specific to the ARM926EJ-S CPU. It disables the standard
  906. start.S start-up code, presumably so that a replacement can be
  907. used on that CPU. You should not enable it unless you know what
  908. you are doing.
  909. config SPL_NOR_SUPPORT
  910. bool "Support NOR flash"
  911. help
  912. Enable support for loading U-Boot from memory-mapped NOR (Negative
  913. OR) flash in SPL. NOR flash is slow to write but fast to read, and
  914. a memory-mapped device makes it very easy to access. Loading from
  915. NOR is typically achieved with just a memcpy().
  916. config SPL_XIP_SUPPORT
  917. bool "Support XIP"
  918. help
  919. Enable support for execute in place of U-Boot or kernel image. There
  920. is no need to copy image from flash to ram if flash supports execute
  921. in place. Its very useful in systems having enough flash but not
  922. enough ram to load the image.
  923. config SPL_ONENAND_SUPPORT
  924. bool "Support OneNAND flash"
  925. help
  926. Enable support for OneNAND (Negative AND) flash in SPL. OneNAND is
  927. a type of NAND flash and therefore can be used to allow SPL to
  928. load U-Boot from supported devices. This enables the drivers in
  929. drivers/mtd/onenand as part of an SPL build.
  930. config SPL_OS_BOOT
  931. bool "Activate Falcon Mode"
  932. depends on !TI_SECURE_DEVICE
  933. help
  934. Enable booting directly to an OS from SPL.
  935. for more info read doc/README.falcon
  936. config SYS_SPL_ARGS_ADDR
  937. hex "Address in memory to load 'args' file for Falcon Mode to"
  938. depends on SPL_OS_BOOT
  939. default 0x88000000 if ARCH_OMAP2PLUS
  940. help
  941. Address in memory where the 'args' file, typically a device tree
  942. will be loaded in to memory.
  943. config SYS_NAND_SPL_KERNEL_OFFS
  944. hex "Address in memory to load the OS file for Falcon mode to"
  945. depends on SPL_OS_BOOT && SPL_NAND_SUPPORT
  946. config SYS_OS_BASE
  947. hex "addr, where OS is found"
  948. depends on SPL_OS_BOOT && SPL_NOR_SUPPORT
  949. help
  950. Specify the address, where the OS image is found, which
  951. gets booted.
  952. config SPL_FALCON_BOOT_MMCSD
  953. bool "Enable Falcon boot from MMC or SD media"
  954. depends on SPL_OS_BOOT && SPL_MMC
  955. help
  956. Select this if the Falcon mode OS image mode is on MMC or SD media.
  957. config SYS_MMCSD_RAW_MODE_KERNEL_SECTOR
  958. hex "Falcon mode: Sector to load kernel uImage from MMC"
  959. depends on SPL_FALCON_BOOT_MMCSD
  960. help
  961. When Falcon mode is used with an MMC or SD media, SPL needs to know
  962. where to look for the kernel uImage. The image is expected to begin
  963. at the raw MMC specified in this config.
  964. Note that the Falcon mode image can also be a FIT, if FIT support is
  965. enabled.
  966. config SYS_MMCSD_RAW_MODE_ARGS_SECTOR
  967. hex "Falcon mode: Sector to load 'args' from MMC"
  968. depends on SPL_FALCON_BOOT_MMCSD
  969. help
  970. When Falcon mode is used with an MMC or SD media, SPL needs to know
  971. where to look for the OS 'args', typically a device tree. The
  972. contents are expected to begin at the raw MMC specified in this config.
  973. Note that if using a FIT image, this and the next option can be set to
  974. 0x0.
  975. config SYS_MMCSD_RAW_MODE_ARGS_SECTORS
  976. hex "Falcon mode: Number of sectors to load for 'args' from MMC"
  977. depends on SPL_FALCON_BOOT_MMCSD && SYS_MMCSD_RAW_MODE_ARGS_SECTOR != 0x0
  978. config SPL_PAYLOAD
  979. string "SPL payload"
  980. default "tpl/u-boot-with-tpl.bin" if TPL
  981. default "u-boot.bin"
  982. help
  983. Payload for SPL boot. For backward compatibility, default to
  984. u-boot.bin, i.e. RAW image without any header. In case of
  985. TPL, tpl/u-boot-with-tpl.bin. For new boards, suggest to
  986. use u-boot.img.
  987. config SPL_PCI
  988. bool "Support PCI drivers"
  989. help
  990. Enable support for PCI in SPL. For platforms that need PCI to boot,
  991. or must perform some init using PCI in SPL, this provides the
  992. necessary driver support. This enables the drivers in drivers/pci
  993. as part of an SPL build.
  994. config SPL_PCH
  995. bool "Support PCH drivers"
  996. help
  997. Enable support for PCH (Platform Controller Hub) devices in SPL.
  998. These are used to set up GPIOs and the SPI peripheral early in
  999. boot. This enables the drivers in drivers/pch as part of an SPL
  1000. build.
  1001. config SPL_POST_MEM_SUPPORT
  1002. bool "Support POST drivers"
  1003. help
  1004. Enable support for POST (Power-on Self Test) in SPL. POST is a
  1005. procedure that checks that the hardware (CPU or board) appears to
  1006. be functionally correctly. It is a sanity check that can be
  1007. performed before booting. This enables the drivers in post/drivers
  1008. as part of an SPL build.
  1009. config SPL_DM_RESET
  1010. bool "Support reset drivers"
  1011. depends on SPL_DM
  1012. help
  1013. Enable support for reset control in SPL.
  1014. That can be useful in SPL to handle IP reset in driver, as in U-Boot,
  1015. by using the generic reset API provided by driver model.
  1016. This enables the drivers in drivers/reset as part of an SPL build.
  1017. config SPL_POWER
  1018. bool "Support power drivers"
  1019. help
  1020. Enable support for power control in SPL. This includes support
  1021. for PMICs (Power-management Integrated Circuits) and some of the
  1022. features provided by PMICs. In particular, voltage regulators can
  1023. be used to enable/disable power and vary its voltage. That can be
  1024. useful in SPL to turn on boot peripherals and adjust CPU voltage
  1025. so that the clock speed can be increased. This enables the drivers
  1026. in drivers/power, drivers/power/pmic and drivers/power/regulator
  1027. as part of an SPL build.
  1028. config SPL_POWER_DOMAIN
  1029. bool "Support power domain drivers"
  1030. select SPL_POWER
  1031. help
  1032. Enable support for power domain control in SPL. Many SoCs allow
  1033. power to be applied to or removed from portions of the SoC (power
  1034. domains). This may be used to save power. This API provides the
  1035. means to control such power management hardware. This enables
  1036. the drivers in drivers/power/domain as part of a SPL build.
  1037. config SPL_RAM_SUPPORT
  1038. bool "Support booting from RAM"
  1039. default y if MICROBLAZE || ARCH_SOCFPGA || ARCH_TEGRA || ARCH_ZYNQ
  1040. help
  1041. Enable booting of an image in RAM. The image can be preloaded or
  1042. it can be loaded by SPL directly into RAM (e.g. using USB).
  1043. config SPL_RAM_DEVICE
  1044. bool "Support booting from preloaded image in RAM"
  1045. depends on SPL_RAM_SUPPORT
  1046. default y if MICROBLAZE || ARCH_SOCFPGA || ARCH_TEGRA || ARCH_ZYNQ
  1047. help
  1048. Enable booting of an image already loaded in RAM. The image has to
  1049. be already in memory when SPL takes over, e.g. loaded by the boot
  1050. ROM.
  1051. config SPL_REMOTEPROC
  1052. bool "Support REMOTEPROCS"
  1053. help
  1054. Enable support for REMOTEPROCs in SPL. This permits to load
  1055. a remote processor firmware in SPL.
  1056. config SPL_RTC
  1057. bool "Support RTC drivers"
  1058. help
  1059. Enable RTC (Real-time Clock) support in SPL. This includes support
  1060. for reading and setting the time. Some RTC devices also have some
  1061. non-volatile (battery-backed) memory which is accessible if
  1062. needed. This enables the drivers in drivers/rtc as part of an SPL
  1063. build.
  1064. config SPL_SATA
  1065. bool "Support loading from SATA"
  1066. help
  1067. Enable support for SATA (Serial AT attachment) in SPL. This allows
  1068. use of SATA devices such as hard drives and flash drivers for
  1069. loading U-Boot. SATA is used in higher-end embedded systems and
  1070. can provide higher performance than MMC , at somewhat higher
  1071. expense and power consumption. This enables loading from SATA
  1072. using a configured device.
  1073. config SYS_SATA_FAT_BOOT_PARTITION
  1074. int "Partition on the SATA disk to load U-Boot from"
  1075. depends on SPL_SATA && SPL_FS_FAT
  1076. default 1
  1077. config SPL_SATA_RAW_U_BOOT_USE_SECTOR
  1078. bool "SATA raw mode: by sector"
  1079. depends on SPL_SATA
  1080. default y if ARCH_MVEBU
  1081. help
  1082. Use sector number for specifying U-Boot location on SATA disk in
  1083. raw mode.
  1084. config SPL_SATA_RAW_U_BOOT_SECTOR
  1085. hex "Sector on the SATA disk to load U-Boot from"
  1086. depends on SPL_SATA_RAW_U_BOOT_USE_SECTOR
  1087. default 0x1 if ARCH_MVEBU
  1088. help
  1089. Sector on the SATA disk to load U-Boot from, when the SATA disk is being
  1090. used in raw mode. Units: SATA disk sectors (1 sector = 512 bytes).
  1091. config SPL_NVME
  1092. bool "NVM Express device support"
  1093. depends on BLK
  1094. select HAVE_BLOCK_DEVICE
  1095. select FS_LOADER
  1096. select SPL_BLK_FS
  1097. help
  1098. This option enables support for NVM Express devices.
  1099. It supports basic functions of NVMe (read/write).
  1100. config SPL_NVME_PCI
  1101. bool "NVM Express PCI device support for SPL"
  1102. depends on SPL_PCI && SPL_NVME
  1103. help
  1104. This option enables support for NVM Express PCI devices.
  1105. This allows use of NVMe devices for loading u-boot.
  1106. config SPL_NVME_BOOT_DEVICE
  1107. hex "NVMe boot device number"
  1108. depends on SPL_NVME
  1109. default 0x0
  1110. config SYS_NVME_BOOT_PARTITION
  1111. hex "NVMe boot partition number"
  1112. depends on SPL_NVME
  1113. default 0x1
  1114. config SPL_SERIAL
  1115. bool "Support serial"
  1116. select SPL_PRINTF
  1117. select SPL_STRTO
  1118. help
  1119. Enable support for serial in SPL. This allows use of a serial UART
  1120. for displaying messages while SPL is running. It also brings in
  1121. printf() and panic() functions. This should normally be enabled
  1122. unless there are space reasons not to. Even then, consider
  1123. enabling SPL_USE_TINY_PRINTF which is a small printf() version.
  1124. config SPL_SPI
  1125. bool "Support SPI drivers"
  1126. help
  1127. Enable support for using SPI in SPL. This is used for connecting
  1128. to SPI flash for loading U-Boot. See SPL_SPI_FLASH_SUPPORT for
  1129. more details on that. The SPI driver provides the transport for
  1130. data between the SPI flash and the CPU. This option can be used to
  1131. enable SPI drivers that are needed for other purposes also, such
  1132. as a SPI PMIC.
  1133. config SPL_SPI_FLASH_SUPPORT
  1134. bool "Support SPI flash drivers"
  1135. depends on SPL_SPI
  1136. help
  1137. Enable support for using SPI flash in SPL, and loading U-Boot from
  1138. SPI flash. SPI flash (Serial Peripheral Bus flash) is named after
  1139. the SPI bus that is used to connect it to a system. It is a simple
  1140. but fast bidirectional 4-wire bus (clock, chip select and two data
  1141. lines). This enables the drivers in drivers/mtd/spi as part of an
  1142. SPL build. This normally requires SPL_SPI.
  1143. if SPL_SPI_FLASH_SUPPORT
  1144. config SPL_SPI_FLASH_TINY
  1145. bool "Enable low footprint SPL SPI Flash support"
  1146. depends on !SPI_FLASH_BAR
  1147. default y if SPI_FLASH
  1148. help
  1149. Enable lightweight SPL SPI Flash support that supports just reading
  1150. data/images from flash. No support to write/erase flash. Enable
  1151. this if you have SPL size limitations and don't need full
  1152. fledged SPI flash support.
  1153. config SPL_SPI_FLASH_SFDP_SUPPORT
  1154. bool "SFDP table parsing support for SPI NOR flashes"
  1155. depends on !SPI_FLASH_BAR && !SPL_SPI_FLASH_TINY
  1156. help
  1157. Enable support for parsing and auto discovery of parameters for
  1158. SPI NOR flashes using Serial Flash Discoverable Parameters (SFDP)
  1159. tables as per JESD216 standard in SPL.
  1160. config SPL_SPI_FLASH_MTD
  1161. bool "Support for SPI flash MTD drivers in SPL"
  1162. help
  1163. Enable support for SPI flash MTD drivers in SPL.
  1164. config SPL_SPI_LOAD
  1165. bool "Support loading from SPI flash"
  1166. help
  1167. Enable support for loading next stage, U-Boot or otherwise, from
  1168. SPI NOR in U-Boot SPL.
  1169. endif # SPL_SPI_FLASH_SUPPORT
  1170. config SYS_SPI_U_BOOT_OFFS
  1171. hex "address of u-boot payload in SPI flash"
  1172. default 0x8000 if ARCH_SUNXI
  1173. default 0x0
  1174. depends on SPL_SPI_LOAD || SPL_SPI_SUNXI
  1175. help
  1176. Address within SPI-Flash from where the u-boot payload is fetched
  1177. from.
  1178. config SPL_THERMAL
  1179. bool "Driver support for thermal devices"
  1180. help
  1181. Enable support for temperature-sensing devices. Some SoCs have on-chip
  1182. temperature sensors to permit warnings, speed throttling or even
  1183. automatic power-off when the temperature gets too high or low. Other
  1184. devices may be discrete but connected on a suitable bus.
  1185. config SPL_WATCHDOG
  1186. bool "Support watchdog drivers"
  1187. imply SPL_WDT if !HW_WATCHDOG
  1188. help
  1189. Enable support for watchdog drivers in SPL. A watchdog is
  1190. typically a hardware peripheral which can reset the system when it
  1191. detects no activity for a while (such as a software crash). This
  1192. enables the drivers in drivers/watchdog as part of an SPL build.
  1193. config SPL_YMODEM_SUPPORT
  1194. bool "Support loading using Ymodem"
  1195. depends on SPL_SERIAL
  1196. help
  1197. While loading from serial is slow it can be a useful backup when
  1198. there is no other option. The Ymodem protocol provides a reliable
  1199. means of transmitting U-Boot over a serial line for using in SPL,
  1200. with a checksum to ensure correctness.
  1201. config SPL_ATF
  1202. bool "Support ARM Trusted Firmware"
  1203. depends on ARM64
  1204. depends on SPL_LOAD_FIT && !SPL_FIT_IMAGE_TINY
  1205. help
  1206. ATF(ARM Trusted Firmware) is a component for ARM AArch64 which
  1207. is loaded by SPL (which is considered as BL2 in ATF terminology).
  1208. More detail at: https://github.com/ARM-software/arm-trusted-firmware
  1209. config SPL_ATF_LOAD_IMAGE_V2
  1210. bool "Use the new LOAD_IMAGE_V2 parameter passing"
  1211. depends on SPL_ATF
  1212. help
  1213. Some platforms use the newer LOAD_IMAGE_V2 parameter passing.
  1214. If you want to load a bl31 image from the SPL and need the new
  1215. method, say Y.
  1216. config SPL_ATF_NO_PLATFORM_PARAM
  1217. bool "Pass no platform parameter"
  1218. depends on SPL_ATF
  1219. help
  1220. While we expect to call a pointer to a valid FDT (or NULL)
  1221. as the platform parameter to an ATF, some ATF versions are
  1222. not U-Boot aware and have an insufficiently robust parameter
  1223. validation to gracefully reject a FDT being passed.
  1224. If this option is enabled, the spl_atf os-type handler will
  1225. always pass NULL for the platform parameter.
  1226. If your ATF is affected, say Y.
  1227. config SPL_AM33XX_ENABLE_RTC32K_OSC
  1228. bool "Enable the RTC32K OSC on AM33xx based platforms"
  1229. depends on AM33XX
  1230. default y if AM33XX
  1231. help
  1232. Enable access to the AM33xx RTC and select the external 32kHz clock
  1233. source.
  1234. config SPL_OPTEE_IMAGE
  1235. bool "Support OP-TEE Trusted OS image in SPL"
  1236. depends on ARM
  1237. depends on SPL_LOAD_FIT || SPL_LOAD_FIT_FULL
  1238. help
  1239. OP-TEE is an open source Trusted OS which is loaded by SPL.
  1240. More detail at: https://github.com/OP-TEE/optee_os
  1241. config SPL_OPENSBI
  1242. bool "Support RISC-V OpenSBI"
  1243. depends on RISCV && SPL_RISCV_MMODE && RISCV_SMODE
  1244. depends on SPL_LOAD_FIT && !SPL_FIT_IMAGE_TINY
  1245. help
  1246. OpenSBI is an open-source implementation of the RISC-V Supervisor Binary
  1247. Interface (SBI) specification. U-Boot supports the OpenSBI FW_DYNAMIC
  1248. firmware. It is loaded and started by U-Boot SPL.
  1249. More details are available at https://github.com/riscv/opensbi and
  1250. https://github.com/riscv/riscv-sbi-doc
  1251. config SPL_OPENSBI_LOAD_ADDR
  1252. hex "OpenSBI load address"
  1253. depends on SPL_OPENSBI
  1254. help
  1255. Load address of the OpenSBI binary.
  1256. config SPL_OPENSBI_SCRATCH_OPTIONS
  1257. hex "Scratch options passed to OpenSBI"
  1258. default 0x1
  1259. depends on SPL_OPENSBI
  1260. help
  1261. This bitmap of options is passed from U-Boot SPL to OpenSBI.
  1262. As of OpenSBI 1.3 the following bits are defined:
  1263. - SBI_SCRATCH_NO_BOOT_PRINTS = 0x1 (Disable prints during boot)
  1264. - SBI_SCRATCH_DEBUG_PRINTS = 0x2 (Enable runtime debug prints)
  1265. config SPL_TARGET
  1266. string "Addtional build targets for 'make'"
  1267. default "spl/u-boot-spl.srec" if RCAR_GEN2
  1268. default "spl/u-boot-spl.scif" if RCAR_GEN3
  1269. default ""
  1270. help
  1271. On some platforms we need to have 'make' run additional build target
  1272. rules. If required on your platform, enter it here, otherwise leave blank.
  1273. config SPL_AT91_MCK_BYPASS
  1274. bool "Use external clock signal as a source of main clock for AT91 platforms"
  1275. depends on ARCH_AT91
  1276. help
  1277. Use external 8 to 24 Mhz clock signal as source of main clock instead
  1278. of an external crystal oscillator.
  1279. This option disables the internal driving on the XOUT pin.
  1280. The external source has to provide a stable clock on the XIN pin.
  1281. If this option is disabled, the SoC expects a crystal oscillator
  1282. that needs driving on both XIN and XOUT lines.
  1283. endmenu
  1284. config TPL
  1285. depends on SUPPORT_TPL
  1286. bool "Enable TPL"
  1287. help
  1288. If you want to build TPL as well as the normal image and SPL, say Y.
  1289. source "common/spl/Kconfig.tpl"
  1290. config VPL
  1291. depends on SUPPORT_SPL
  1292. bool "Enable VPL"
  1293. help
  1294. If you want to build VPL as well as the normal image, TPL and SPL,
  1295. say Y.
  1296. source "common/spl/Kconfig.vpl"