Kconfig 52 KB

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