Kconfig 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579
  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_FAT
  511. bool "Support FAT filesystems"
  512. select FS_FAT
  513. help
  514. Enable support for FAT and VFAT filesystems with SPL. This
  515. permits U-Boot (or Linux in Falcon mode) to be loaded from a FAT
  516. filesystem from within SPL. Support for the underlying block
  517. device (e.g. MMC or USB) must be enabled separately.
  518. config SPL_FAT_WRITE
  519. bool "Support write for FAT filesystems"
  520. help
  521. Enable write support for FAT and VFAT filesystems with SPL.
  522. Support for the underlying block device (e.g. MMC or USB) must be
  523. enabled separately.
  524. config SPL_FPGA_SUPPORT
  525. bool "Support FPGAs"
  526. help
  527. Enable support for FPGAs in SPL. Field-programmable Gate Arrays
  528. provide software-configurable hardware which is typically used to
  529. implement peripherals (such as UARTs, LCD displays, MMC) or
  530. accelerate custom processing functions, such as image processing
  531. or machine learning. Sometimes it is useful to program the FPGA
  532. as early as possible during boot, and this option can enable that
  533. within SPL.
  534. config SPL_GPIO_SUPPORT
  535. bool "Support GPIO in SPL"
  536. help
  537. Enable support for GPIOs (General-purpose Input/Output) in SPL.
  538. GPIOs allow U-Boot to read the state of an input line (high or
  539. low) and set the state of an output line. This can be used to
  540. drive LEDs, control power to various system parts and read user
  541. input. GPIOs can be useful in SPL to enable a 'sign-of-life' LED,
  542. for example. Enable this option to build the drivers in
  543. drivers/gpio as part of an SPL build.
  544. config SPL_I2C_SUPPORT
  545. bool "Support I2C"
  546. help
  547. Enable support for the I2C (Inter-Integrated Circuit) bus in SPL.
  548. I2C works with a clock and data line which can be driven by a
  549. one or more masters or slaves. It is a fairly complex bus but is
  550. widely used as it only needs two lines for communication. Speeds of
  551. 400kbps are typical but up to 3.4Mbps is supported by some
  552. hardware. I2C can be useful in SPL to configure power management
  553. ICs (PMICs) before raising the CPU clock speed, for example.
  554. Enable this option to build the drivers in drivers/i2c as part of
  555. an SPL build.
  556. config SPL_LIBCOMMON_SUPPORT
  557. bool "Support common libraries"
  558. help
  559. Enable support for common U-Boot libraries within SPL. These
  560. libraries include common code to deal with U-Boot images,
  561. environment and USB, for example. This option is enabled on many
  562. boards. Enable this option to build the code in common/ as part of
  563. an SPL build.
  564. config SPL_LIBDISK_SUPPORT
  565. bool "Support disk partitions"
  566. select PARTITIONS
  567. help
  568. Enable support for disk partitions within SPL. 'Disk' is something
  569. of a misnomer as it includes non-spinning media such as flash (as
  570. used in MMC and USB sticks). Partitions provide a way for a disk
  571. to be split up into separate regions, with a partition table placed
  572. at the start or end which describes the location and size of each
  573. 'partition'. These partitions are typically uses as individual block
  574. devices, typically with an EXT2 or FAT filesystem in each. This
  575. option enables whatever partition support has been enabled in
  576. U-Boot to also be used in SPL. It brings in the code in disk/.
  577. config SPL_LIBGENERIC_SUPPORT
  578. bool "Support generic libraries"
  579. help
  580. Enable support for generic U-Boot libraries within SPL. These
  581. libraries include generic code to deal with device tree, hashing,
  582. printf(), compression and the like. This option is enabled on many
  583. boards. Enable this option to build the code in lib/ as part of an
  584. SPL build.
  585. config SPL_DM_MAILBOX
  586. bool "Support Mailbox"
  587. help
  588. Enable support for Mailbox within SPL. This enable the inter
  589. processor communication protocols tobe used within SPL. Enable
  590. this option to build the drivers in drivers/mailbox as part of
  591. SPL build.
  592. config SPL_MMC_SUPPORT
  593. bool "Support MMC"
  594. depends on MMC
  595. select HAVE_BLOCK_DEVICE
  596. help
  597. Enable support for MMC (Multimedia Card) within SPL. This enables
  598. the MMC protocol implementation and allows any enabled drivers to
  599. be used within SPL. MMC can be used with or without disk partition
  600. support depending on the application (SPL_LIBDISK_SUPPORT). Enable
  601. this option to build the drivers in drivers/mmc as part of an SPL
  602. build.
  603. config SYS_MMCSD_FS_BOOT_PARTITION
  604. int "MMC Boot Partition"
  605. default 1
  606. help
  607. Partition on the MMC to load U-Boot from when the MMC is being
  608. used in fs mode
  609. config SPL_MMC_TINY
  610. bool "Tiny MMC framework in SPL"
  611. depends on SPL_MMC_SUPPORT
  612. default n
  613. help
  614. Enable MMC framework tinification support. This option is useful if
  615. if your SPL is extremely size constrained. Heed the warning, enable
  616. this option if and only if you know exactly what you are doing, if
  617. you are reading this help text, you most likely have no idea :-)
  618. The MMC framework is reduced to bare minimum to be useful. No malloc
  619. support is needed for the MMC framework operation with this option
  620. enabled. The framework supports exactly one MMC device and exactly
  621. one MMC driver. The MMC driver can be adjusted to avoid any malloc
  622. operations too, which can remove the need for malloc support in SPL
  623. and thus further reduce footprint.
  624. config SPL_MMC_WRITE
  625. bool "MMC/SD/SDIO card support for write operations in SPL"
  626. depends on SPL_MMC_SUPPORT
  627. default n
  628. help
  629. Enable write access to MMC and SD Cards in SPL
  630. config SPL_MPC8XXX_INIT_DDR_SUPPORT
  631. bool "Support MPC8XXX DDR init"
  632. help
  633. Enable support for DDR-SDRAM (double-data-rate synchronous dynamic
  634. random-access memory) on the MPC8XXX family within SPL. This
  635. allows DRAM to be set up before loading U-Boot into that DRAM,
  636. where it can run.
  637. config SPL_MTD_SUPPORT
  638. bool "Support MTD drivers"
  639. help
  640. Enable support for MTD (Memory Technology Device) within SPL. MTD
  641. provides a block interface over raw NAND and can also be used with
  642. SPI flash. This allows SPL to load U-Boot from supported MTD
  643. devices. See SPL_NAND_SUPPORT and SPL_ONENAND_SUPPORT for how
  644. to enable specific MTD drivers.
  645. config SPL_MUSB_NEW_SUPPORT
  646. bool "Support new Mentor Graphics USB"
  647. help
  648. Enable support for Mentor Graphics USB in SPL. This is a new
  649. driver used by some boards. Enable this option to build
  650. the drivers in drivers/usb/musb-new as part of an SPL build. The
  651. old drivers are in drivers/usb/musb.
  652. config SPL_NAND_SUPPORT
  653. bool "Support NAND flash"
  654. help
  655. Enable support for NAND (Negative AND) flash in SPL. NAND flash
  656. can be used to allow SPL to load U-Boot from supported devices.
  657. This enables the drivers in drivers/mtd/nand/raw as part of an SPL
  658. build.
  659. config SPL_NAND_DRIVERS
  660. bool "Use standard NAND driver"
  661. help
  662. SPL uses normal NAND drivers, not minimal drivers.
  663. config SPL_NAND_ECC
  664. bool "Include standard software ECC in the SPL"
  665. config SPL_NAND_SIMPLE
  666. bool "Support simple NAND drivers in SPL"
  667. help
  668. Support for NAND boot using simple NAND drivers that
  669. expose the cmd_ctrl() interface.
  670. config SPL_NAND_BASE
  671. depends on SPL_NAND_DRIVERS
  672. bool "Use Base NAND Driver"
  673. help
  674. Include nand_base.c in the SPL.
  675. config SPL_NAND_IDENT
  676. depends on SPL_NAND_BASE
  677. bool "Use chip ID to identify NAND flash"
  678. help
  679. SPL uses the chip ID list to identify the NAND flash.
  680. config SPL_UBI
  681. bool "Support UBI"
  682. help
  683. Enable support for loading payloads from UBI. See
  684. README.ubispl for more info.
  685. if SPL_DM
  686. config SPL_CACHE
  687. depends on CACHE
  688. bool "Support cache drivers in SPL"
  689. help
  690. Enable support for cache drivers in SPL.
  691. config SPL_DM_SPI
  692. bool "Support SPI DM drivers in SPL"
  693. help
  694. Enable support for SPI DM drivers in SPL.
  695. config SPL_DM_SPI_FLASH
  696. bool "Support SPI DM FLASH drivers in SPL"
  697. help
  698. Enable support for SPI DM flash drivers in SPL.
  699. endif
  700. if SPL_UBI
  701. config SPL_UBI_LOAD_BY_VOLNAME
  702. bool "Support loading volumes by name"
  703. help
  704. This enables support for loading UBI volumes by name. When this
  705. is set, CONFIG_SPL_UBI_LOAD_MONITOR_VOLNAME can be used to
  706. configure the volume name from which to load U-Boot.
  707. config SPL_UBI_MAX_VOL_LEBS
  708. int "Maximum number of LEBs per volume"
  709. depends on SPL_UBI
  710. help
  711. The maximum number of logical eraseblocks which a static volume
  712. to load can contain. Used for sizing the scan data structure.
  713. config SPL_UBI_MAX_PEB_SIZE
  714. int "Maximum PEB size"
  715. depends on SPL_UBI
  716. help
  717. The maximum physical erase block size.
  718. config SPL_UBI_MAX_PEBS
  719. int "Maximum number of PEBs"
  720. depends on SPL_UBI
  721. help
  722. The maximum physical erase block size. If not overridden by
  723. board code, this value will be used as the actual number of PEBs.
  724. config SPL_UBI_PEB_OFFSET
  725. int "Offset to first UBI PEB"
  726. depends on SPL_UBI
  727. help
  728. The offset in number of PEBs from the start of flash to the first
  729. PEB part of the UBI image.
  730. config SPL_UBI_VID_OFFSET
  731. int "Offset to VID header"
  732. depends on SPL_UBI
  733. config SPL_UBI_LEB_START
  734. int "Offset to LEB in PEB"
  735. depends on SPL_UBI
  736. help
  737. The offset in bytes to the LEB within a PEB.
  738. config SPL_UBI_INFO_ADDR
  739. hex "Address to place UBI scan info"
  740. depends on SPL_UBI
  741. help
  742. Address for ubispl to place the scan info. Read README.ubispl to
  743. determine the required size
  744. config SPL_UBI_VOL_IDS
  745. int "Maximum volume id"
  746. depends on SPL_UBI
  747. help
  748. The maximum volume id which can be loaded. Used for sizing the
  749. scan data structure.
  750. config SPL_UBI_LOAD_MONITOR_ID
  751. int "id of U-Boot volume"
  752. depends on SPL_UBI
  753. help
  754. The UBI volume id from which to load U-Boot
  755. config SPL_UBI_LOAD_MONITOR_VOLNAME
  756. string "volume name of U-Boot volume"
  757. depends on SPL_UBI_LOAD_BY_VOLNAME
  758. help
  759. The UBI volume name from which to load U-Boot
  760. config SPL_UBI_LOAD_KERNEL_ID
  761. int "id of kernel volume"
  762. depends on SPL_OS_BOOT && SPL_UBI
  763. help
  764. The UBI volume id from which to load the kernel
  765. config SPL_UBI_LOAD_ARGS_ID
  766. int "id of kernel args volume"
  767. depends on SPL_OS_BOOT && SPL_UBI
  768. help
  769. The UBI volume id from which to load the device tree
  770. config UBI_SPL_SILENCE_MSG
  771. bool "silence UBI SPL messages"
  772. default n
  773. help
  774. Disable messages from UBI SPL. This leaves warnings
  775. and errors enabled.
  776. endif # if SPL_UBI
  777. config SPL_NET_SUPPORT
  778. bool "Support networking"
  779. help
  780. Enable support for network devices (such as Ethernet) in SPL.
  781. This permits SPL to load U-Boot over a network link rather than
  782. from an on-board peripheral. Environment support is required since
  783. the network stack uses a number of environment variables. See also
  784. SPL_ETH_SUPPORT.
  785. if SPL_NET_SUPPORT
  786. config SPL_NET_VCI_STRING
  787. string "BOOTP Vendor Class Identifier string sent by SPL"
  788. help
  789. As defined by RFC 2132 the vendor class identifier field can be
  790. sent by the client to identify the vendor type and configuration
  791. of a client. This is often used in practice to allow for the DHCP
  792. server to specify different files to load depending on if the ROM,
  793. SPL or U-Boot itself makes the request
  794. endif # if SPL_NET_SUPPORT
  795. config SPL_NO_CPU_SUPPORT
  796. bool "Drop CPU code in SPL"
  797. help
  798. This is specific to the ARM926EJ-S CPU. It disables the standard
  799. start.S start-up code, presumably so that a replacement can be
  800. used on that CPU. You should not enable it unless you know what
  801. you are doing.
  802. config SPL_NOR_SUPPORT
  803. bool "Support NOR flash"
  804. help
  805. Enable support for loading U-Boot from memory-mapped NOR (Negative
  806. OR) flash in SPL. NOR flash is slow to write but fast to read, and
  807. a memory-mapped device makes it very easy to access. Loading from
  808. NOR is typically achieved with just a memcpy().
  809. config SPL_XIP_SUPPORT
  810. bool "Support XIP"
  811. depends on SPL
  812. help
  813. Enable support for execute in place of U-Boot or kernel image. There
  814. is no need to copy image from flash to ram if flash supports execute
  815. in place. Its very useful in systems having enough flash but not
  816. enough ram to load the image.
  817. config SPL_ONENAND_SUPPORT
  818. bool "Support OneNAND flash"
  819. help
  820. Enable support for OneNAND (Negative AND) flash in SPL. OneNAND is
  821. a type of NAND flash and therefore can be used to allow SPL to
  822. load U-Boot from supported devices. This enables the drivers in
  823. drivers/mtd/onenand as part of an SPL build.
  824. config SPL_OS_BOOT
  825. bool "Activate Falcon Mode"
  826. depends on !TI_SECURE_DEVICE
  827. default n
  828. help
  829. Enable booting directly to an OS from SPL.
  830. for more info read doc/README.falcon
  831. if SPL_OS_BOOT
  832. config SYS_OS_BASE
  833. hex "addr, where OS is found"
  834. depends on SPL_NOR_SUPPORT
  835. help
  836. Specify the address, where the OS image is found, which
  837. gets booted.
  838. endif # SPL_OS_BOOT
  839. config SPL_PAYLOAD
  840. string "SPL payload"
  841. default "tpl/u-boot-with-tpl.bin" if TPL
  842. default "u-boot.bin"
  843. help
  844. Payload for SPL boot. For backward compatibility, default to
  845. u-boot.bin, i.e. RAW image without any header. In case of
  846. TPL, tpl/u-boot-with-tpl.bin. For new boards, suggest to
  847. use u-boot.img.
  848. config SPL_PCI
  849. bool "Support PCI drivers"
  850. help
  851. Enable support for PCI in SPL. For platforms that need PCI to boot,
  852. or must perform some init using PCI in SPL, this provides the
  853. necessary driver support. This enables the drivers in drivers/pci
  854. as part of an SPL build.
  855. config SPL_PCH_SUPPORT
  856. bool "Support PCH drivers"
  857. help
  858. Enable support for PCH (Platform Controller Hub) devices in SPL.
  859. These are used to set up GPIOs and the SPI peripheral early in
  860. boot. This enables the drivers in drivers/pch as part of an SPL
  861. build.
  862. config SPL_POST_MEM_SUPPORT
  863. bool "Support POST drivers"
  864. help
  865. Enable support for POST (Power-on Self Test) in SPL. POST is a
  866. procedure that checks that the hardware (CPU or board) appears to
  867. be functionally correctly. It is a sanity check that can be
  868. performed before booting. This enables the drivers in post/drivers
  869. as part of an SPL build.
  870. config SPL_DM_RESET
  871. bool "Support reset drivers"
  872. depends on SPL
  873. help
  874. Enable support for reset control in SPL.
  875. That can be useful in SPL to handle IP reset in driver, as in U-Boot,
  876. by using the generic reset API provided by driver model.
  877. This enables the drivers in drivers/reset as part of an SPL build.
  878. config SPL_POWER_SUPPORT
  879. bool "Support power drivers"
  880. help
  881. Enable support for power control in SPL. This includes support
  882. for PMICs (Power-management Integrated Circuits) and some of the
  883. features provided by PMICs. In particular, voltage regulators can
  884. be used to enable/disable power and vary its voltage. That can be
  885. useful in SPL to turn on boot peripherals and adjust CPU voltage
  886. so that the clock speed can be increased. This enables the drivers
  887. in drivers/power, drivers/power/pmic and drivers/power/regulator
  888. as part of an SPL build.
  889. config SPL_POWER_DOMAIN
  890. bool "Support power domain drivers"
  891. help
  892. Enable support for power domain control in SPL. Many SoCs allow
  893. power to be applied to or removed from portions of the SoC (power
  894. domains). This may be used to save power. This API provides the
  895. means to control such power management hardware. This enables
  896. the drivers in drivers/power/domain as part of a SPL build.
  897. config SPL_RAM_SUPPORT
  898. bool "Support booting from RAM"
  899. default y if MICROBLAZE || ARCH_SOCFPGA || ARCH_TEGRA || ARCH_ZYNQ
  900. help
  901. Enable booting of an image in RAM. The image can be preloaded or
  902. it can be loaded by SPL directly into RAM (e.g. using USB).
  903. config SPL_RAM_DEVICE
  904. bool "Support booting from preloaded image in RAM"
  905. depends on SPL_RAM_SUPPORT
  906. default y if MICROBLAZE || ARCH_SOCFPGA || ARCH_TEGRA || ARCH_ZYNQ
  907. help
  908. Enable booting of an image already loaded in RAM. The image has to
  909. be already in memory when SPL takes over, e.g. loaded by the boot
  910. ROM.
  911. config SPL_REMOTEPROC
  912. bool "Support REMOTEPROCS"
  913. help
  914. Enable support for REMOTEPROCs in SPL. This permits to load
  915. a remote processor firmware in SPL.
  916. config SPL_RTC_SUPPORT
  917. bool "Support RTC drivers"
  918. help
  919. Enable RTC (Real-time Clock) support in SPL. This includes support
  920. for reading and setting the time. Some RTC devices also have some
  921. non-volatile (battery-backed) memory which is accessible if
  922. needed. This enables the drivers in drivers/rtc as part of an SPL
  923. build.
  924. config SPL_SATA_SUPPORT
  925. bool "Support loading from SATA"
  926. help
  927. Enable support for SATA (Serial AT attachment) in SPL. This allows
  928. use of SATA devices such as hard drives and flash drivers for
  929. loading U-Boot. SATA is used in higher-end embedded systems and
  930. can provide higher performance than MMC , at somewhat higher
  931. expense and power consumption. This enables loading from SATA
  932. using a configured device.
  933. config SPL_SATA_RAW_U_BOOT_USE_SECTOR
  934. bool "SATA raw mode: by sector"
  935. depends on SPL_SATA_SUPPORT
  936. help
  937. Use sector number for specifying U-Boot location on SATA disk in
  938. raw mode.
  939. config SPL_SATA_RAW_U_BOOT_SECTOR
  940. hex "Sector on the SATA disk to load U-Boot from"
  941. depends on SPL_SATA_RAW_U_BOOT_USE_SECTOR
  942. help
  943. Sector on the SATA disk to load U-Boot from, when the SATA disk is being
  944. used in raw mode. Units: SATA disk sectors (1 sector = 512 bytes).
  945. config SPL_SERIAL_SUPPORT
  946. bool "Support serial"
  947. select SPL_PRINTF
  948. select SPL_STRTO
  949. help
  950. Enable support for serial in SPL. This allows use of a serial UART
  951. for displaying messages while SPL is running. It also brings in
  952. printf() and panic() functions. This should normally be enabled
  953. unless there are space reasons not to. Even then, consider
  954. enabling SPL_USE_TINY_PRINTF which is a small printf() version.
  955. config SPL_SPI_SUPPORT
  956. bool "Support SPI drivers"
  957. help
  958. Enable support for using SPI in SPL. This is used for connecting
  959. to SPI flash for loading U-Boot. See SPL_SPI_FLASH_SUPPORT for
  960. more details on that. The SPI driver provides the transport for
  961. data between the SPI flash and the CPU. This option can be used to
  962. enable SPI drivers that are needed for other purposes also, such
  963. as a SPI PMIC.
  964. config SPL_SPI_FLASH_SUPPORT
  965. bool "Support SPI flash drivers"
  966. depends on SPL_SPI_SUPPORT
  967. help
  968. Enable support for using SPI flash in SPL, and loading U-Boot from
  969. SPI flash. SPI flash (Serial Peripheral Bus flash) is named after
  970. the SPI bus that is used to connect it to a system. It is a simple
  971. but fast bidirectional 4-wire bus (clock, chip select and two data
  972. lines). This enables the drivers in drivers/mtd/spi as part of an
  973. SPL build. This normally requires SPL_SPI_SUPPORT.
  974. if SPL_SPI_FLASH_SUPPORT
  975. config SPL_SPI_FLASH_TINY
  976. bool "Enable low footprint SPL SPI Flash support"
  977. depends on !SPI_FLASH_BAR
  978. default y if SPI_FLASH
  979. help
  980. Enable lightweight SPL SPI Flash support that supports just reading
  981. data/images from flash. No support to write/erase flash. Enable
  982. this if you have SPL size limitations and don't need full
  983. fledged SPI flash support.
  984. config SPL_SPI_FLASH_SFDP_SUPPORT
  985. bool "SFDP table parsing support for SPI NOR flashes"
  986. depends on !SPI_FLASH_BAR && !SPL_SPI_FLASH_TINY
  987. help
  988. Enable support for parsing and auto discovery of parameters for
  989. SPI NOR flashes using Serial Flash Discoverable Parameters (SFDP)
  990. tables as per JESD216 standard in SPL.
  991. config SPL_SPI_FLASH_MTD
  992. bool "Support for SPI flash MTD drivers in SPL"
  993. help
  994. Enable support for SPI flash MTD drivers in SPL.
  995. config SPL_SPI_LOAD
  996. bool "Support loading from SPI flash"
  997. help
  998. Enable support for loading next stage, U-Boot or otherwise, from
  999. SPI NOR in U-Boot SPL.
  1000. endif # SPL_SPI_FLASH_SUPPORT
  1001. config SYS_SPI_U_BOOT_OFFS
  1002. hex "address of u-boot payload in SPI flash"
  1003. default 0x8000 if ARCH_SUNXI
  1004. default 0x0
  1005. depends on SPL_SPI_LOAD || SPL_SPI_SUNXI
  1006. help
  1007. Address within SPI-Flash from where the u-boot payload is fetched
  1008. from.
  1009. config SPL_THERMAL
  1010. bool "Driver support for thermal devices"
  1011. help
  1012. Enable support for temperature-sensing devices. Some SoCs have on-chip
  1013. temperature sensors to permit warnings, speed throttling or even
  1014. automatic power-off when the temperature gets too high or low. Other
  1015. devices may be discrete but connected on a suitable bus.
  1016. config SPL_USB_HOST_SUPPORT
  1017. bool "Support USB host drivers"
  1018. select HAVE_BLOCK_DEVICE
  1019. help
  1020. Enable access to USB (Universal Serial Bus) host devices so that
  1021. SPL can load U-Boot from a connected USB peripheral, such as a USB
  1022. flash stick. While USB takes a little longer to start up than most
  1023. buses, it is very flexible since many different types of storage
  1024. device can be attached. This option enables the drivers in
  1025. drivers/usb/host as part of an SPL build.
  1026. config SPL_USB_STORAGE
  1027. bool "Support loading from USB"
  1028. depends on SPL_USB_HOST_SUPPORT && !(BLK && !DM_USB)
  1029. help
  1030. Enable support for USB devices in SPL. This allows use of USB
  1031. devices such as hard drives and flash drivers for loading U-Boot.
  1032. The actual drivers are enabled separately using the normal U-Boot
  1033. config options. This enables loading from USB using a configured
  1034. device.
  1035. config SPL_USB_GADGET
  1036. bool "Suppport USB Gadget drivers"
  1037. help
  1038. Enable USB Gadget API which allows to enable USB device functions
  1039. in SPL.
  1040. if SPL_USB_GADGET
  1041. config SPL_USB_ETHER
  1042. bool "Support USB Ethernet drivers"
  1043. help
  1044. Enable access to the USB network subsystem and associated
  1045. drivers in SPL. This permits SPL to load U-Boot over a
  1046. USB-connected Ethernet link (such as a USB Ethernet dongle) rather
  1047. than from an onboard peripheral. Environment support is required
  1048. since the network stack uses a number of environment variables.
  1049. See also SPL_NET_SUPPORT and SPL_ETH_SUPPORT.
  1050. config SPL_DFU
  1051. bool "Support DFU (Device Firmware Upgrade)"
  1052. select SPL_HASH_SUPPORT
  1053. select SPL_DFU_NO_RESET
  1054. depends on SPL_RAM_SUPPORT
  1055. help
  1056. This feature enables the DFU (Device Firmware Upgrade) in SPL with
  1057. RAM memory device support. The ROM code will load and execute
  1058. the SPL built with dfu. The user can load binaries (u-boot/kernel) to
  1059. selected device partition from host-pc using dfu-utils.
  1060. This feature is useful to flash the binaries to factory or bare-metal
  1061. boards using USB interface.
  1062. choice
  1063. bool "DFU device selection"
  1064. depends on SPL_DFU
  1065. config SPL_DFU_RAM
  1066. bool "RAM device"
  1067. depends on SPL_DFU && SPL_RAM_SUPPORT
  1068. help
  1069. select RAM/DDR memory device for loading binary images
  1070. (u-boot/kernel) to the selected device partition using
  1071. DFU and execute the u-boot/kernel from RAM.
  1072. endchoice
  1073. config SPL_USB_SDP_SUPPORT
  1074. bool "Support SDP (Serial Download Protocol)"
  1075. help
  1076. Enable Serial Download Protocol (SDP) device support in SPL. This
  1077. allows to download images into memory and execute (jump to) them
  1078. using the same protocol as implemented by the i.MX family's boot ROM.
  1079. config SPL_SDP_USB_DEV
  1080. int "SDP USB controller index"
  1081. default 0
  1082. depends on SPL_USB_SDP_SUPPORT
  1083. help
  1084. Some boards have USB controller other than 0. Define this option
  1085. so it can be used in compiled environment.
  1086. endif
  1087. config SPL_WATCHDOG_SUPPORT
  1088. bool "Support watchdog drivers"
  1089. imply SPL_WDT if !HW_WATCHDOG
  1090. help
  1091. Enable support for watchdog drivers in SPL. A watchdog is
  1092. typically a hardware peripheral which can reset the system when it
  1093. detects no activity for a while (such as a software crash). This
  1094. enables the drivers in drivers/watchdog as part of an SPL build.
  1095. config SPL_YMODEM_SUPPORT
  1096. bool "Support loading using Ymodem"
  1097. depends on SPL_SERIAL_SUPPORT
  1098. help
  1099. While loading from serial is slow it can be a useful backup when
  1100. there is no other option. The Ymodem protocol provides a reliable
  1101. means of transmitting U-Boot over a serial line for using in SPL,
  1102. with a checksum to ensure correctness.
  1103. config SPL_ATF
  1104. bool "Support ARM Trusted Firmware"
  1105. depends on ARM64
  1106. help
  1107. ATF(ARM Trusted Firmware) is a component for ARM AArch64 which
  1108. is loaded by SPL (which is considered as BL2 in ATF terminology).
  1109. More detail at: https://github.com/ARM-software/arm-trusted-firmware
  1110. config SPL_ATF_NO_PLATFORM_PARAM
  1111. bool "Pass no platform parameter"
  1112. depends on SPL_ATF
  1113. help
  1114. While we expect to call a pointer to a valid FDT (or NULL)
  1115. as the platform parameter to an ATF, some ATF versions are
  1116. not U-Boot aware and have an insufficiently robust parameter
  1117. validation to gracefully reject a FDT being passed.
  1118. If this option is enabled, the spl_atf os-type handler will
  1119. always pass NULL for the platform parameter.
  1120. If your ATF is affected, say Y.
  1121. config SPL_AM33XX_ENABLE_RTC32K_OSC
  1122. bool "Enable the RTC32K OSC on AM33xx based platforms"
  1123. default y if AM33XX
  1124. help
  1125. Enable access to the AM33xx RTC and select the external 32kHz clock
  1126. source.
  1127. config SPL_OPTEE
  1128. bool "Support OP-TEE Trusted OS"
  1129. depends on ARM
  1130. help
  1131. OP-TEE is an open source Trusted OS which is loaded by SPL.
  1132. More detail at: https://github.com/OP-TEE/optee_os
  1133. config SPL_OPENSBI
  1134. bool "Support RISC-V OpenSBI"
  1135. depends on RISCV && SPL_RISCV_MMODE && RISCV_SMODE
  1136. help
  1137. OpenSBI is an open-source implementation of the RISC-V Supervisor Binary
  1138. Interface (SBI) specification. U-Boot supports the OpenSBI FW_DYNAMIC
  1139. firmware. It is loaded and started by U-Boot SPL.
  1140. More details are available at https://github.com/riscv/opensbi and
  1141. https://github.com/riscv/riscv-sbi-doc
  1142. config SPL_OPENSBI_LOAD_ADDR
  1143. hex "OpenSBI load address"
  1144. depends on SPL_OPENSBI
  1145. help
  1146. Load address of the OpenSBI binary.
  1147. config TPL
  1148. bool
  1149. depends on SUPPORT_TPL
  1150. prompt "Enable TPL"
  1151. help
  1152. If you want to build TPL as well as the normal image and SPL, say Y.
  1153. if TPL
  1154. config TPL_SIZE_LIMIT
  1155. hex "Maximum size of TPL image"
  1156. depends on TPL
  1157. default 0
  1158. help
  1159. Specifies the maximum length of the U-Boot TPL image.
  1160. If this value is zero, it is ignored.
  1161. config TPL_FRAMEWORK
  1162. bool "Support TPL based upon the common SPL framework"
  1163. default y if SPL_FRAMEWORK
  1164. help
  1165. Enable the SPL framework under common/spl/ for TPL builds.
  1166. This framework supports MMC, NAND and YMODEM and other methods
  1167. loading of U-Boot's SPL stage. If unsure, say Y.
  1168. config TPL_HANDOFF
  1169. bool "Pass hand-off information from TPL to SPL and U-Boot proper"
  1170. depends on HANDOFF && TPL_BLOBLIST
  1171. default y
  1172. help
  1173. This option enables TPL to write handoff information. This can be
  1174. used to pass information like the size of SDRAM from TPL to U-Boot
  1175. proper. The information is also available to SPL if it is useful
  1176. there.
  1177. config TPL_BOARD_INIT
  1178. bool "Call board-specific initialization in TPL"
  1179. help
  1180. If this option is enabled, U-Boot will call the function
  1181. spl_board_init() from board_init_r(). This function should be
  1182. provided by the board.
  1183. config TPL_LDSCRIPT
  1184. string "Linker script for the TPL stage"
  1185. depends on TPL
  1186. default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARM64
  1187. default "arch/\$(ARCH)/cpu/u-boot-spl.lds"
  1188. help
  1189. The TPL stage will usually require a different linker-script
  1190. (as it runs from a different memory region) than the regular
  1191. U-Boot stage. Set this to the path of the linker-script to
  1192. be used for TPL.
  1193. May be left empty to trigger the Makefile infrastructure to
  1194. fall back to the linker-script used for the SPL stage.
  1195. config TPL_NEEDS_SEPARATE_TEXT_BASE
  1196. bool "TPL needs a separate text-base"
  1197. default n
  1198. depends on TPL
  1199. help
  1200. Enable, if the TPL stage should not inherit its text-base
  1201. from the SPL stage. When enabled, a base address for the
  1202. .text sections of the TPL stage has to be set below.
  1203. config TPL_NEEDS_SEPARATE_STACK
  1204. bool "TPL needs a separate initial stack-pointer"
  1205. default n
  1206. depends on TPL
  1207. help
  1208. Enable, if the TPL stage should not inherit its initial
  1209. stack-pointer from the settings for the SPL stage.
  1210. config TPL_TEXT_BASE
  1211. hex "Base address for the .text section of the TPL stage"
  1212. depends on TPL_NEEDS_SEPARATE_TEXT_BASE
  1213. help
  1214. The base address for the .text section of the TPL stage.
  1215. config TPL_MAX_SIZE
  1216. int "Maximum size (in bytes) for the TPL stage"
  1217. default 0
  1218. depends on TPL
  1219. help
  1220. The maximum size (in bytes) of the TPL stage.
  1221. config TPL_STACK
  1222. hex "Address of the initial stack-pointer for the TPL stage"
  1223. depends on TPL_NEEDS_SEPARATE_STACK
  1224. help
  1225. The address of the initial stack-pointer for the TPL stage.
  1226. Usually this will be the (aligned) top-of-stack.
  1227. config TPL_BOOTROM_SUPPORT
  1228. bool "Support returning to the BOOTROM (from TPL)"
  1229. help
  1230. Some platforms (e.g. the Rockchip RK3368) provide support in their
  1231. ROM for loading the next boot-stage after performing basic setup
  1232. from the TPL stage.
  1233. Enable this option, to return to the BOOTROM through the
  1234. BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
  1235. boot device list, if not implemented for a given board)
  1236. config TPL_DRIVERS_MISC_SUPPORT
  1237. bool "Support misc drivers in TPL"
  1238. help
  1239. Enable miscellaneous drivers in TPL. These drivers perform various
  1240. tasks that don't fall nicely into other categories, Enable this
  1241. option to build the drivers in drivers/misc as part of an TPL
  1242. build, for those that support building in TPL (not all drivers do).
  1243. config TPL_ENV_SUPPORT
  1244. bool "Support an environment"
  1245. help
  1246. Enable environment support in TPL. See SPL_ENV_SUPPORT for details.
  1247. config TPL_GPIO_SUPPORT
  1248. bool "Support GPIO in TPL"
  1249. help
  1250. Enable support for GPIOs (General-purpose Input/Output) in TPL.
  1251. GPIOs allow U-Boot to read the state of an input line (high or
  1252. low) and set the state of an output line. This can be used to
  1253. drive LEDs, control power to various system parts and read user
  1254. input. GPIOs can be useful in TPL to enable a 'sign-of-life' LED,
  1255. for example. Enable this option to build the drivers in
  1256. drivers/gpio as part of an TPL build.
  1257. config TPL_I2C_SUPPORT
  1258. bool "Support I2C"
  1259. help
  1260. Enable support for the I2C bus in TPL. See SPL_I2C_SUPPORT for
  1261. details.
  1262. config TPL_LIBCOMMON_SUPPORT
  1263. bool "Support common libraries"
  1264. help
  1265. Enable support for common U-Boot libraries within TPL. See
  1266. SPL_LIBCOMMON_SUPPORT for details.
  1267. config TPL_LIBGENERIC_SUPPORT
  1268. bool "Support generic libraries"
  1269. help
  1270. Enable support for generic U-Boot libraries within TPL. See
  1271. SPL_LIBGENERIC_SUPPORT for details.
  1272. config TPL_MPC8XXX_INIT_DDR_SUPPORT
  1273. bool "Support MPC8XXX DDR init"
  1274. help
  1275. Enable support for DDR-SDRAM on the MPC8XXX family within TPL. See
  1276. SPL_MPC8XXX_INIT_DDR_SUPPORT for details.
  1277. config TPL_MMC_SUPPORT
  1278. bool "Support MMC"
  1279. depends on MMC
  1280. help
  1281. Enable support for MMC within TPL. See SPL_MMC_SUPPORT for details.
  1282. config TPL_NAND_SUPPORT
  1283. bool "Support NAND flash"
  1284. help
  1285. Enable support for NAND in TPL. See SPL_NAND_SUPPORT for details.
  1286. config TPL_PCI
  1287. bool "Support PCI drivers"
  1288. help
  1289. Enable support for PCI in TPL. For platforms that need PCI to boot,
  1290. or must perform some init using PCI in SPL, this provides the
  1291. necessary driver support. This enables the drivers in drivers/pci
  1292. as part of a TPL build.
  1293. config TPL_PCH_SUPPORT
  1294. bool "Support PCH drivers"
  1295. help
  1296. Enable support for PCH (Platform Controller Hub) devices in TPL.
  1297. These are used to set up GPIOs and the SPI peripheral early in
  1298. boot. This enables the drivers in drivers/pch as part of a TPL
  1299. build.
  1300. config TPL_RAM_SUPPORT
  1301. bool "Support booting from RAM"
  1302. help
  1303. Enable booting of an image in RAM. The image can be preloaded or
  1304. it can be loaded by TPL directly into RAM (e.g. using USB).
  1305. config TPL_RAM_DEVICE
  1306. bool "Support booting from preloaded image in RAM"
  1307. depends on TPL_RAM_SUPPORT
  1308. help
  1309. Enable booting of an image already loaded in RAM. The image has to
  1310. be already in memory when TPL takes over, e.g. loaded by the boot
  1311. ROM.
  1312. config TPL_RTC_SUPPORT
  1313. bool "Support RTC drivers"
  1314. help
  1315. Enable RTC (Real-time Clock) support in TPL. This includes support
  1316. for reading and setting the time. Some RTC devices also have some
  1317. non-volatile (battery-backed) memory which is accessible if
  1318. needed. This enables the drivers in drivers/rtc as part of an TPL
  1319. build.
  1320. config TPL_SERIAL_SUPPORT
  1321. bool "Support serial"
  1322. select TPL_PRINTF
  1323. select TPL_STRTO
  1324. help
  1325. Enable support for serial in TPL. See SPL_SERIAL_SUPPORT for
  1326. details.
  1327. config TPL_SPI_FLASH_SUPPORT
  1328. bool "Support SPI flash drivers"
  1329. help
  1330. Enable support for using SPI flash in TPL. See SPL_SPI_FLASH_SUPPORT
  1331. for details.
  1332. config TPL_SPI_LOAD
  1333. bool "Support loading from SPI flash"
  1334. depends on TPL_SPI_FLASH_SUPPORT
  1335. help
  1336. Enable support for loading next stage, U-Boot or otherwise, from
  1337. SPI NOR in U-Boot TPL.
  1338. config TPL_SPI_SUPPORT
  1339. bool "Support SPI drivers"
  1340. help
  1341. Enable support for using SPI in TPL. See SPL_SPI_SUPPORT for
  1342. details.
  1343. config TPL_DM_SPI
  1344. bool "Support SPI DM drivers in TPL"
  1345. help
  1346. Enable support for SPI DM drivers in TPL.
  1347. config TPL_DM_SPI_FLASH
  1348. bool "Support SPI DM FLASH drivers in TPL"
  1349. help
  1350. Enable support for SPI DM flash drivers in TPL.
  1351. config TPL_YMODEM_SUPPORT
  1352. bool "Support loading using Ymodem"
  1353. depends on TPL_SERIAL_SUPPORT
  1354. help
  1355. While loading from serial is slow it can be a useful backup when
  1356. there is no other option. The Ymodem protocol provides a reliable
  1357. means of transmitting U-Boot over a serial line for using in TPL,
  1358. with a checksum to ensure correctness.
  1359. endif # TPL
  1360. config SPL_AT91_MCK_BYPASS
  1361. bool "Use external clock signal as a source of main clock for AT91 platforms"
  1362. depends on ARCH_AT91
  1363. default n
  1364. help
  1365. Use external 8 to 24 Mhz clock signal as source of main clock instead
  1366. of an external crystal oscillator.
  1367. This option disables the internal driving on the XOUT pin.
  1368. The external source has to provide a stable clock on the XIN pin.
  1369. If this option is disabled, the SoC expects a crystal oscillator
  1370. that needs driving on both XIN and XOUT lines.
  1371. endif # SPL
  1372. endmenu