Kconfig 51 KB

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