Kconfig 52 KB

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