Kconfig 54 KB

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