Kconfig 56 KB

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