Kconfig 52 KB

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