Kconfig 56 KB

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