Kconfig 47 KB

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