Kconfig 54 KB

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