Kconfig 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989
  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. if SPL
  23. config SPL_LDSCRIPT
  24. string "Linker script for the SPL stage"
  25. default "arch/$(ARCH)/cpu/u-boot-spl.lds"
  26. help
  27. The SPL stage will usually require a different linker-script
  28. (as it runs from a different memory region) than the regular
  29. U-Boot stage. Set this to the path of the linker-script to
  30. be used for SPL.
  31. config SPL_BOARD_INIT
  32. bool "Call board-specific initialization in SPL"
  33. help
  34. If this option is enabled, U-Boot will call the function
  35. spl_board_init() from board_init_r(). This function should be
  36. provided by the board.
  37. config SPL_BOOTROM_SUPPORT
  38. bool "Support returning to the BOOTROM"
  39. help
  40. Some platforms (e.g. the Rockchip RK3368) provide support in their
  41. ROM for loading the next boot-stage after performing basic setup
  42. from the SPL stage.
  43. Enable this option, to return to the BOOTROM through the
  44. BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
  45. boot device list, if not implemented for a given board)
  46. config SPL_BOOTCOUNT_LIMIT
  47. bool "Support bootcount in SPL"
  48. depends on SPL_ENV_SUPPORT
  49. help
  50. On some boards, which use 'falcon' mode, it is necessary to check
  51. and increment the number of boot attempts. Such boards do not
  52. use proper U-Boot for normal boot flow and hence needs those
  53. adjustments to be done in the SPL.
  54. config SPL_RAW_IMAGE_SUPPORT
  55. bool "Support SPL loading and booting of RAW images"
  56. default n if (ARCH_MX6 && (SPL_MMC_SUPPORT || SPL_SATA_SUPPORT))
  57. default y if !TI_SECURE_DEVICE
  58. help
  59. SPL will support loading and booting a RAW image when this option
  60. is y. If this is not set, SPL will move on to other available
  61. boot media to find a suitable image.
  62. config SPL_LEGACY_IMAGE_SUPPORT
  63. bool "Support SPL loading and booting of Legacy images"
  64. default y if !TI_SECURE_DEVICE
  65. help
  66. SPL will support loading and booting Legacy images when this option
  67. is y. If this is not set, SPL will move on to other available
  68. boot media to find a suitable image.
  69. config SPL_SYS_MALLOC_SIMPLE
  70. bool
  71. prompt "Only use malloc_simple functions in the SPL"
  72. help
  73. Say Y here to only use the *_simple malloc functions from
  74. malloc_simple.c, rather then using the versions from dlmalloc.c;
  75. this will make the SPL binary smaller at the cost of more heap
  76. usage as the *_simple malloc functions do not re-use free-ed mem.
  77. config TPL_SYS_MALLOC_SIMPLE
  78. bool
  79. prompt "Only use malloc_simple functions in the TPL"
  80. help
  81. Say Y here to only use the *_simple malloc functions from
  82. malloc_simple.c, rather then using the versions from dlmalloc.c;
  83. this will make the TPL binary smaller at the cost of more heap
  84. usage as the *_simple malloc functions do not re-use free-ed mem.
  85. config SPL_STACK_R
  86. bool "Enable SDRAM location for SPL stack"
  87. help
  88. SPL starts off execution in SRAM and thus typically has only a small
  89. stack available. Since SPL sets up DRAM while in its board_init_f()
  90. function, it is possible for the stack to move there before
  91. board_init_r() is reached. This option enables a special SDRAM
  92. location for the SPL stack. U-Boot SPL switches to this after
  93. board_init_f() completes, and before board_init_r() starts.
  94. config SPL_STACK_R_ADDR
  95. depends on SPL_STACK_R
  96. hex "SDRAM location for SPL stack"
  97. default 0x82000000 if ARCH_OMAP2PLUS
  98. help
  99. Specify the address in SDRAM for the SPL stack. This will be set up
  100. before board_init_r() is called.
  101. config SPL_STACK_R_MALLOC_SIMPLE_LEN
  102. depends on SPL_STACK_R && SPL_SYS_MALLOC_SIMPLE
  103. hex "Size of malloc_simple heap after switching to DRAM SPL stack"
  104. default 0x100000
  105. help
  106. Specify the amount of the stack to use as memory pool for
  107. malloc_simple after switching the stack to DRAM. This may be set
  108. to give board_init_r() a larger heap then the initial heap in
  109. SRAM which is limited to SYS_MALLOC_F_LEN bytes.
  110. config SPL_SEPARATE_BSS
  111. bool "BSS section is in a different memory region from text"
  112. help
  113. Some platforms need a large BSS region in SPL and can provide this
  114. because RAM is already set up. In this case BSS can be moved to RAM.
  115. This option should then be enabled so that the correct device tree
  116. location is used. Normally we put the device tree at the end of BSS
  117. but with this option enabled, it goes at _image_binary_end.
  118. config SPL_DISABLE_BANNER_PRINT
  119. bool "Disable output of the SPL banner 'U-Boot SPL ...'"
  120. help
  121. If this option is enabled, SPL will not print the banner with version
  122. info. Selecting this option could be useful to reduce SPL boot time
  123. (e.g. approx. 6 ms slower, when output on i.MX6 with 115200 baud).
  124. config SPL_DISPLAY_PRINT
  125. bool "Display a board-specific message in SPL"
  126. help
  127. If this option is enabled, U-Boot will call the function
  128. spl_display_print() immediately after displaying the SPL console
  129. banner ("U-Boot SPL ..."). This function should be provided by
  130. the board.
  131. config SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
  132. bool "MMC raw mode: by sector"
  133. default y if ARCH_SUNXI || ARCH_DAVINCI || ARCH_UNIPHIER || \
  134. ARCH_MX6 || ARCH_MX7 || \
  135. ARCH_ROCKCHIP || ARCH_MVEBU || ARCH_SOCFPGA || \
  136. ARCH_AT91 || ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || \
  137. OMAP44XX || OMAP54XX || AM33XX || AM43XX
  138. help
  139. Use sector number for specifying U-Boot location on MMC/SD in
  140. raw mode.
  141. config SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
  142. hex "Address on the MMC to load U-Boot from"
  143. depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
  144. default 0x50 if ARCH_SUNXI
  145. default 0x75 if ARCH_DAVINCI
  146. default 0x8a if ARCH_MX6 || ARCH_MX7
  147. default 0x100 if ARCH_UNIPHIER
  148. default 0x140 if ARCH_MVEBU
  149. default 0x200 if ARCH_SOCFPGA || ARCH_AT91
  150. default 0x300 if ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || OMAP44XX || \
  151. OMAP54XX || AM33XX || AM43XX
  152. default 0x4000 if ARCH_ROCKCHIP
  153. help
  154. Address on the MMC to load U-Boot from, when the MMC is being used
  155. in raw mode. Units: MMC sectors (1 sector = 512 bytes).
  156. config SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
  157. bool "MMC Raw mode: by partition"
  158. help
  159. Use a partition for loading U-Boot when using MMC/SD in raw mode.
  160. config SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION
  161. hex "Partition to use to load U-Boot from"
  162. depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
  163. default 1
  164. help
  165. Partition on the MMC to load U-Boot from when the MMC is being
  166. used in raw mode
  167. config SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
  168. bool "MMC raw mode: by partition type"
  169. depends on DOS_PARTITION && SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
  170. help
  171. Use partition type for specifying U-Boot partition on MMC/SD in
  172. raw mode. U-Boot will be loaded from the first partition of this
  173. type to be found.
  174. config SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE
  175. hex "Partition Type on the MMC to load U-Boot from"
  176. depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
  177. help
  178. Partition Type on the MMC to load U-Boot from, when the MMC is being
  179. used in raw mode.
  180. config SPL_CRC32_SUPPORT
  181. bool "Support CRC32"
  182. depends on SPL_FIT
  183. help
  184. Enable this to support CRC32 in FIT images within SPL. This is a
  185. 32-bit checksum value that can be used to verify images. This is
  186. the least secure type of checksum, suitable for detected
  187. accidental image corruption. For secure applications you should
  188. consider SHA1 or SHA256.
  189. config SPL_MD5_SUPPORT
  190. bool "Support MD5"
  191. depends on SPL_FIT
  192. help
  193. Enable this to support MD5 in FIT images within SPL. An MD5
  194. checksum is a 128-bit hash value used to check that the image
  195. contents have not been corrupted. Note that MD5 is not considered
  196. secure as it is possible (with a brute-force attack) to adjust the
  197. image while still retaining the same MD5 hash value. For secure
  198. applications where images may be changed maliciously, you should
  199. consider SHA1 or SHA256.
  200. config SPL_SHA1_SUPPORT
  201. bool "Support SHA1"
  202. depends on SPL_FIT
  203. select SHA1
  204. help
  205. Enable this to support SHA1 in FIT images within SPL. A SHA1
  206. checksum is a 160-bit (20-byte) hash value used to check that the
  207. image contents have not been corrupted or maliciously altered.
  208. While SHA1 is fairly secure it is coming to the end of its life
  209. due to the expanding computing power avaiable to brute-force
  210. attacks. For more security, consider SHA256.
  211. config SPL_SHA256_SUPPORT
  212. bool "Support SHA256"
  213. depends on SPL_FIT
  214. select SHA256
  215. help
  216. Enable this to support SHA256 in FIT images within SPL. A SHA256
  217. checksum is a 256-bit (32-byte) hash value used to check that the
  218. image contents have not been corrupted. SHA256 is recommended for
  219. use in secure applications since (as at 2016) there is no known
  220. feasible attack that could produce a 'collision' with differing
  221. input data. Use this for the highest security. Note that only the
  222. SHA256 variant is supported: SHA512 and others are not currently
  223. supported in U-Boot.
  224. config SPL_FIT_IMAGE_TINY
  225. bool "Remove functionality from SPL FIT loading to reduce size"
  226. depends on SPL_FIT
  227. default y if MACH_SUN50I || MACH_SUN50I_H5
  228. help
  229. Enable this to reduce the size of the FIT image loading code
  230. in SPL, if space for the SPL binary is very tight.
  231. This removes the detection of image types (which forces the
  232. first image to be treated as having a U-Boot style calling
  233. convention) and skips the recording of each loaded payload
  234. (i.e. loadable) into the FDT (modifying the loaded FDT to
  235. ensure this information is available to the next image
  236. invoked).
  237. config SPL_CPU_SUPPORT
  238. bool "Support CPU drivers"
  239. help
  240. Enable this to support CPU drivers in SPL. These drivers can set
  241. up CPUs and provide information about them such as the model and
  242. name. This can be useful in SPL since setting up the CPUs earlier
  243. may improve boot performance. Enable this option to build the
  244. drivers in drivers/cpu as part of an SPL build.
  245. config SPL_CRYPTO_SUPPORT
  246. bool "Support crypto drivers"
  247. help
  248. Enable crypto drivers in SPL. These drivers can be used to
  249. accelerate secure boot processing in secure applications. Enable
  250. this option to build the drivers in drivers/crypto as part of an
  251. SPL build.
  252. config SPL_HASH_SUPPORT
  253. bool "Support hashing drivers"
  254. select SHA1
  255. select SHA256
  256. help
  257. Enable hashing drivers in SPL. These drivers can be used to
  258. accelerate secure boot processing in secure applications. Enable
  259. this option to build system-specific drivers for hash acceleration
  260. as part of an SPL build.
  261. config SPL_DMA_SUPPORT
  262. bool "Support DMA drivers"
  263. help
  264. Enable DMA (direct-memory-access) drivers in SPL. These drivers
  265. can be used to handle memory-to-peripheral data transfer without
  266. the CPU moving the data. Enable this option to build the drivers
  267. in drivers/dma as part of an SPL build.
  268. config SPL_DRIVERS_MISC_SUPPORT
  269. bool "Support misc drivers"
  270. help
  271. Enable miscellaneous drivers in SPL. These drivers perform various
  272. tasks that don't fall nicely into other categories, Enable this
  273. option to build the drivers in drivers/misc as part of an SPL
  274. build, for those that support building in SPL (not all drivers do).
  275. config SPL_ENV_SUPPORT
  276. bool "Support an environment"
  277. help
  278. Enable environment support in SPL. The U-Boot environment provides
  279. a number of settings (essentially name/value pairs) which can
  280. control many aspects of U-Boot's operation. Normally this is not
  281. needed in SPL as it has a much simpler task with less
  282. configuration. But some boards use this to support 'Falcon' boot
  283. on EXT2 and FAT, where SPL boots directly into Linux without
  284. starting U-Boot first. Enabling this option will make env_get()
  285. and env_set() available in SPL.
  286. config SPL_SAVEENV
  287. bool "Support save environment"
  288. depends on SPL_ENV_SUPPORT
  289. select SPL_MMC_WRITE if ENV_IS_IN_MMC
  290. help
  291. Enable save environment support in SPL after setenv. By default
  292. the saveenv option is not provided in SPL, but some boards need
  293. this support in 'Falcon' boot, where SPL need to boot from
  294. different images based on environment variable set by OS. For
  295. example OS may set "reboot_image" environment variable to
  296. "recovery" inorder to boot recovery image by SPL. The SPL read
  297. "reboot_image" and act accordingly and change the reboot_image
  298. to default mode using setenv and save the environment.
  299. config SPL_ETH_SUPPORT
  300. bool "Support Ethernet"
  301. depends on SPL_ENV_SUPPORT
  302. help
  303. Enable access to the network subsystem and associated Ethernet
  304. drivers in SPL. This permits SPL to load U-Boot over an Ethernet
  305. link rather than from an on-board peripheral. Environment support
  306. is required since the network stack uses a number of environment
  307. variables. See also SPL_NET_SUPPORT.
  308. config SPL_EXT_SUPPORT
  309. bool "Support EXT filesystems"
  310. help
  311. Enable support for EXT2/3/4 filesystems with SPL. This permits
  312. U-Boot (or Linux in Falcon mode) to be loaded from an EXT
  313. filesystem from within SPL. Support for the underlying block
  314. device (e.g. MMC or USB) must be enabled separately.
  315. config SPL_FAT_SUPPORT
  316. bool "Support FAT filesystems"
  317. select FS_FAT
  318. help
  319. Enable support for FAT and VFAT filesystems with SPL. This
  320. permits U-Boot (or Linux in Falcon mode) to be loaded from a FAT
  321. filesystem from within SPL. Support for the underlying block
  322. device (e.g. MMC or USB) must be enabled separately.
  323. config SPL_FPGA_SUPPORT
  324. bool "Support FPGAs"
  325. help
  326. Enable support for FPGAs in SPL. Field-programmable Gate Arrays
  327. provide software-configurable hardware which is typically used to
  328. implement peripherals (such as UARTs, LCD displays, MMC) or
  329. accelerate custom processing functions, such as image processing
  330. or machine learning. Sometimes it is useful to program the FPGA
  331. as early as possible during boot, and this option can enable that
  332. within SPL.
  333. config SPL_GPIO_SUPPORT
  334. bool "Support GPIO"
  335. help
  336. Enable support for GPIOs (General-purpose Input/Output) in SPL.
  337. GPIOs allow U-Boot to read the state of an input line (high or
  338. low) and set the state of an output line. This can be used to
  339. drive LEDs, control power to various system parts and read user
  340. input. GPIOs can be useful in SPL to enable a 'sign-of-life' LED,
  341. for example. Enable this option to build the drivers in
  342. drivers/gpio as part of an SPL build.
  343. config SPL_I2C_SUPPORT
  344. bool "Support I2C"
  345. help
  346. Enable support for the I2C (Inter-Integrated Circuit) bus in SPL.
  347. I2C works with a clock and data line which can be driven by a
  348. one or more masters or slaves. It is a fairly complex bus but is
  349. widely used as it only needs two lines for communication. Speeds of
  350. 400kbps are typical but up to 3.4Mbps is supported by some
  351. hardware. I2C can be useful in SPL to configure power management
  352. ICs (PMICs) before raising the CPU clock speed, for example.
  353. Enable this option to build the drivers in drivers/i2c as part of
  354. an SPL build.
  355. config SPL_LIBCOMMON_SUPPORT
  356. bool "Support common libraries"
  357. help
  358. Enable support for common U-Boot libraries within SPL. These
  359. libraries include common code to deal with U-Boot images,
  360. environment and USB, for example. This option is enabled on many
  361. boards. Enable this option to build the code in common/ as part of
  362. an SPL build.
  363. config SPL_LIBDISK_SUPPORT
  364. bool "Support disk paritions"
  365. help
  366. Enable support for disk partitions within SPL. 'Disk' is something
  367. of a misnomer as it includes non-spinning media such as flash (as
  368. used in MMC and USB sticks). Partitions provide a way for a disk
  369. to be split up into separate regions, with a partition table placed
  370. at the start or end which describes the location and size of each
  371. 'partition'. These partitions are typically uses as individual block
  372. devices, typically with an EXT2 or FAT filesystem in each. This
  373. option enables whatever partition support has been enabled in
  374. U-Boot to also be used in SPL. It brings in the code in disk/.
  375. config SPL_LIBGENERIC_SUPPORT
  376. bool "Support generic libraries"
  377. help
  378. Enable support for generic U-Boot libraries within SPL. These
  379. libraries include generic code to deal with device tree, hashing,
  380. printf(), compression and the like. This option is enabled on many
  381. boards. Enable this option to build the code in lib/ as part of an
  382. SPL build.
  383. config SPL_MMC_SUPPORT
  384. bool "Support MMC"
  385. depends on MMC
  386. help
  387. Enable support for MMC (Multimedia Card) within SPL. This enables
  388. the MMC protocol implementation and allows any enabled drivers to
  389. be used within SPL. MMC can be used with or without disk partition
  390. support depending on the application (SPL_LIBDISK_SUPPORT). Enable
  391. this option to build the drivers in drivers/mmc as part of an SPL
  392. build.
  393. config SPL_MMC_WRITE
  394. bool "MMC/SD/SDIO card support for write operations in SPL"
  395. depends on SPL_MMC_SUPPORT
  396. default n
  397. help
  398. Enable write access to MMC and SD Cards in SPL
  399. config SPL_MPC8XXX_INIT_DDR_SUPPORT
  400. bool "Support MPC8XXX DDR init"
  401. help
  402. Enable support for DDR-SDRAM (double-data-rate synchronous dynamic
  403. random-access memory) on the MPC8XXX family within SPL. This
  404. allows DRAM to be set up before loading U-Boot into that DRAM,
  405. where it can run.
  406. config SPL_MTD_SUPPORT
  407. bool "Support MTD drivers"
  408. help
  409. Enable support for MTD (Memory Technology Device) within SPL. MTD
  410. provides a block interface over raw NAND and can also be used with
  411. SPI flash. This allows SPL to load U-Boot from supported MTD
  412. devices. See SPL_NAND_SUPPORT and SPL_ONENAND_SUPPORT for how
  413. to enable specific MTD drivers.
  414. config SPL_MUSB_NEW_SUPPORT
  415. bool "Support new Mentor Graphics USB"
  416. help
  417. Enable support for Mentor Graphics USB in SPL. This is a new
  418. driver used by some boards. Enable this option to build
  419. the drivers in drivers/usb/musb-new as part of an SPL build. The
  420. old drivers are in drivers/usb/musb.
  421. config SPL_NAND_SUPPORT
  422. bool "Support NAND flash"
  423. help
  424. Enable support for NAND (Negative AND) flash in SPL. NAND flash
  425. can be used to allow SPL to load U-Boot from supported devices.
  426. This enables the drivers in drivers/mtd/nand as part of an SPL
  427. build.
  428. config SPL_NET_SUPPORT
  429. bool "Support networking"
  430. help
  431. Enable support for network devices (such as Ethernet) in SPL.
  432. This permits SPL to load U-Boot over a network link rather than
  433. from an on-board peripheral. Environment support is required since
  434. the network stack uses a number of environment variables. See also
  435. SPL_ETH_SUPPORT.
  436. if SPL_NET_SUPPORT
  437. config SPL_NET_VCI_STRING
  438. string "BOOTP Vendor Class Identifier string sent by SPL"
  439. help
  440. As defined by RFC 2132 the vendor class identifier field can be
  441. sent by the client to identify the vendor type and configuration
  442. of a client. This is often used in practice to allow for the DHCP
  443. server to specify different files to load depending on if the ROM,
  444. SPL or U-Boot itself makes the request
  445. endif # if SPL_NET_SUPPORT
  446. config SPL_NO_CPU_SUPPORT
  447. bool "Drop CPU code in SPL"
  448. help
  449. This is specific to the ARM926EJ-S CPU. It disables the standard
  450. start.S start-up code, presumably so that a replacement can be
  451. used on that CPU. You should not enable it unless you know what
  452. you are doing.
  453. config SPL_NOR_SUPPORT
  454. bool "Support NOR flash"
  455. help
  456. Enable support for loading U-Boot from memory-mapped NOR (Negative
  457. OR) flash in SPL. NOR flash is slow to write but fast to read, and
  458. a memory-mapped device makes it very easy to access. Loading from
  459. NOR is typically achieved with just a memcpy().
  460. config SPL_XIP_SUPPORT
  461. bool "Support XIP"
  462. depends on SPL
  463. help
  464. Enable support for execute in place of U-Boot or kernel image. There
  465. is no need to copy image from flash to ram if flash supports execute
  466. in place. Its very useful in systems having enough flash but not
  467. enough ram to load the image.
  468. config SPL_ONENAND_SUPPORT
  469. bool "Support OneNAND flash"
  470. help
  471. Enable support for OneNAND (Negative AND) flash in SPL. OneNAND is
  472. a type of NAND flash and therefore can be used to allow SPL to
  473. load U-Boot from supported devices. This enables the drivers in
  474. drivers/mtd/onenand as part of an SPL build.
  475. config SPL_OS_BOOT
  476. bool "Activate Falcon Mode"
  477. depends on !TI_SECURE_DEVICE
  478. default n
  479. help
  480. Enable booting directly to an OS from SPL.
  481. for more info read doc/README.falcon
  482. if SPL_OS_BOOT
  483. config SYS_OS_BASE
  484. hex "addr, where OS is found"
  485. depends on SPL_NOR_SUPPORT
  486. help
  487. Specify the address, where the OS image is found, which
  488. gets booted.
  489. endif # SPL_OS_BOOT
  490. config SPL_PAYLOAD
  491. string "SPL payload"
  492. default "tpl/u-boot-with-tpl.bin" if TPL
  493. default "u-boot.bin"
  494. help
  495. Payload for SPL boot. For backward compability, default to
  496. u-boot.bin, i.e. RAW image without any header. In case of
  497. TPL, tpl/u-boot-with-tpl.bin. For new boards, suggest to
  498. use u-boot.img.
  499. config SPL_PCI_SUPPORT
  500. bool "Support PCI drivers"
  501. help
  502. Enable support for PCI in SPL. For platforms that need PCI to boot,
  503. or must perform some init using PCI in SPL, this provides the
  504. necessary driver support. This enables the drivers in drivers/pci
  505. as part of an SPL build.
  506. config SPL_PCH_SUPPORT
  507. bool "Support PCH drivers"
  508. help
  509. Enable support for PCH (Platform Controller Hub) devices in SPL.
  510. These are used to set up GPIOs and the SPI peripheral early in
  511. boot. This enables the drivers in drivers/pch as part of an SPL
  512. build.
  513. config SPL_POST_MEM_SUPPORT
  514. bool "Support POST drivers"
  515. help
  516. Enable support for POST (Power-on Self Test) in SPL. POST is a
  517. procedure that checks that the hardware (CPU or board) appears to
  518. be functionally correctly. It is a sanity check that can be
  519. performed before booting. This enables the drivers in post/drivers
  520. as part of an SPL build.
  521. config SPL_DM_RESET
  522. bool "Support reset drivers"
  523. depends on SPL
  524. help
  525. Enable support for reset control in SPL.
  526. That can be useful in SPL to handle IP reset in driver, as in U-Boot,
  527. by using the generic reset API provided by driver model.
  528. This enables the drivers in drivers/reset as part of an SPL build.
  529. config SPL_POWER_SUPPORT
  530. bool "Support power drivers"
  531. help
  532. Enable support for power control in SPL. This includes support
  533. for PMICs (Power-management Integrated Circuits) and some of the
  534. features provided by PMICs. In particular, voltage regulators can
  535. be used to enable/disable power and vary its voltage. That can be
  536. useful in SPL to turn on boot peripherals and adjust CPU voltage
  537. so that the clock speed can be increased. This enables the drivers
  538. in drivers/power, drivers/power/pmic and drivers/power/regulator
  539. as part of an SPL build.
  540. config SPL_RAM_SUPPORT
  541. bool "Support booting from RAM"
  542. default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
  543. help
  544. Enable booting of an image in RAM. The image can be preloaded or
  545. it can be loaded by SPL directly into RAM (e.g. using USB).
  546. config SPL_RAM_DEVICE
  547. bool "Support booting from preloaded image in RAM"
  548. depends on SPL_RAM_SUPPORT
  549. default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
  550. help
  551. Enable booting of an image already loaded in RAM. The image has to
  552. be already in memory when SPL takes over, e.g. loaded by the boot
  553. ROM.
  554. config SPL_RTC_SUPPORT
  555. bool "Support RTC drivers"
  556. help
  557. Enable RTC (Real-time Clock) support in SPL. This includes support
  558. for reading and setting the time. Some RTC devices also have some
  559. non-volatile (battery-backed) memory which is accessible if
  560. needed. This enables the drivers in drivers/rtc as part of an SPL
  561. build.
  562. config SPL_SATA_SUPPORT
  563. bool "Support loading from SATA"
  564. help
  565. Enable support for SATA (Serial AT attachment) in SPL. This allows
  566. use of SATA devices such as hard drives and flash drivers for
  567. loading U-Boot. SATA is used in higher-end embedded systems and
  568. can provide higher performance than MMC , at somewhat higher
  569. expense and power consumption. This enables loading from SATA
  570. using a configured device.
  571. config SPL_SERIAL_SUPPORT
  572. bool "Support serial"
  573. select SPL_PRINTF
  574. select SPL_STRTO
  575. help
  576. Enable support for serial in SPL. This allows use of a serial UART
  577. for displaying messages while SPL is running. It also brings in
  578. printf() and panic() functions. This should normally be enabled
  579. unless there are space reasons not to. Even then, consider
  580. enabling USE_TINY_PRINTF which is a small printf() version.
  581. config SPL_SPI_FLASH_SUPPORT
  582. bool "Support SPI flash drivers"
  583. help
  584. Enable support for using SPI flash in SPL, and loading U-Boot from
  585. SPI flash. SPI flash (Serial Peripheral Bus flash) is named after
  586. the SPI bus that is used to connect it to a system. It is a simple
  587. but fast bidirectional 4-wire bus (clock, chip select and two data
  588. lines). This enables the drivers in drivers/mtd/spi as part of an
  589. SPL build. This normally requires SPL_SPI_SUPPORT.
  590. config SPL_SPI_LOAD
  591. bool "Support loading from SPI flash"
  592. depends on SPL_SPI_FLASH_SUPPORT
  593. help
  594. Enable support for loading next stage, U-Boot or otherwise, from
  595. SPI NOR in U-Boot SPL.
  596. config SPL_SPI_SUPPORT
  597. bool "Support SPI drivers"
  598. help
  599. Enable support for using SPI in SPL. This is used for connecting
  600. to SPI flash for loading U-Boot. See SPL_SPI_FLASH_SUPPORT for
  601. more details on that. The SPI driver provides the transport for
  602. data between the SPI flash and the CPU. This option can be used to
  603. enable SPI drivers that are needed for other purposes also, such
  604. as a SPI PMIC.
  605. config SPL_THERMAL
  606. bool "Driver support for thermal devices"
  607. help
  608. Enable support for temperature-sensing devices. Some SoCs have on-chip
  609. temperature sensors to permit warnings, speed throttling or even
  610. automatic power-off when the temperature gets too high or low. Other
  611. devices may be discrete but connected on a suitable bus.
  612. config SPL_USB_HOST_SUPPORT
  613. bool "Support USB host drivers"
  614. help
  615. Enable access to USB (Universal Serial Bus) host devices so that
  616. SPL can load U-Boot from a connected USB peripheral, such as a USB
  617. flash stick. While USB takes a little longer to start up than most
  618. buses, it is very flexible since many different types of storage
  619. device can be attached. This option enables the drivers in
  620. drivers/usb/host as part of an SPL build.
  621. config SPL_USB_SUPPORT
  622. bool "Support loading from USB"
  623. depends on SPL_USB_HOST_SUPPORT
  624. help
  625. Enable support for USB devices in SPL. This allows use of USB
  626. devices such as hard drives and flash drivers for loading U-Boot.
  627. The actual drivers are enabled separately using the normal U-Boot
  628. config options. This enables loading from USB using a configured
  629. device.
  630. config SPL_USB_GADGET_SUPPORT
  631. bool "Suppport USB Gadget drivers"
  632. help
  633. Enable USB Gadget API which allows to enable USB device functions
  634. in SPL.
  635. if SPL_USB_GADGET_SUPPORT
  636. config SPL_USB_ETHER
  637. bool "Support USB Ethernet drivers"
  638. help
  639. Enable access to the USB network subsystem and associated
  640. drivers in SPL. This permits SPL to load U-Boot over a
  641. USB-connected Ethernet link (such as a USB Ethernet dongle) rather
  642. than from an onboard peripheral. Environment support is required
  643. since the network stack uses a number of environment variables.
  644. See also SPL_NET_SUPPORT and SPL_ETH_SUPPORT.
  645. config SPL_DFU_SUPPORT
  646. bool "Support DFU (Device Firmware Upgarde)"
  647. select SPL_HASH_SUPPORT
  648. select SPL_DFU_NO_RESET
  649. depends on SPL_RAM_SUPPORT
  650. help
  651. This feature enables the DFU (Device Firmware Upgarde) in SPL with
  652. RAM memory device support. The ROM code will load and execute
  653. the SPL built with dfu. The user can load binaries (u-boot/kernel) to
  654. selected device partition from host-pc using dfu-utils.
  655. This feature is useful to flash the binaries to factory or bare-metal
  656. boards using USB interface.
  657. choice
  658. bool "DFU device selection"
  659. depends on SPL_DFU_SUPPORT
  660. config SPL_DFU_RAM
  661. bool "RAM device"
  662. depends on SPL_DFU_SUPPORT && SPL_RAM_SUPPORT
  663. help
  664. select RAM/DDR memory device for loading binary images
  665. (u-boot/kernel) to the selected device partition using
  666. DFU and execute the u-boot/kernel from RAM.
  667. endchoice
  668. config SPL_USB_SDP_SUPPORT
  669. bool "Support SDP (Serial Download Protocol)"
  670. help
  671. Enable Serial Download Protocol (SDP) device support in SPL. This
  672. allows to download images into memory and execute (jump to) them
  673. using the same protocol as implemented by the i.MX family's boot ROM.
  674. endif
  675. config SPL_WATCHDOG_SUPPORT
  676. bool "Support watchdog drivers"
  677. help
  678. Enable support for watchdog drivers in SPL. A watchdog is
  679. typically a hardware peripheral which can reset the system when it
  680. detects no activity for a while (such as a software crash). This
  681. enables the drivers in drivers/watchdog as part of an SPL build.
  682. config SPL_YMODEM_SUPPORT
  683. bool "Support loading using Ymodem"
  684. depends on SPL_SERIAL_SUPPORT
  685. help
  686. While loading from serial is slow it can be a useful backup when
  687. there is no other option. The Ymodem protocol provides a reliable
  688. means of transmitting U-Boot over a serial line for using in SPL,
  689. with a checksum to ensure correctness.
  690. config SPL_ATF
  691. bool "Support ARM Trusted Firmware"
  692. depends on ARM64
  693. help
  694. ATF(ARM Trusted Firmware) is a component for ARM AArch64 which
  695. is loaded by SPL (which is considered as BL2 in ATF terminology).
  696. More detail at: https://github.com/ARM-software/arm-trusted-firmware
  697. config SPL_ATF_NO_PLATFORM_PARAM
  698. bool "Pass no platform parameter"
  699. depends on SPL_ATF
  700. help
  701. While we expect to call a pointer to a valid FDT (or NULL)
  702. as the platform parameter to an ATF, some ATF versions are
  703. not U-Boot aware and have an insufficiently robust parameter
  704. validation to gracefully reject a FDT being passed.
  705. If this option is enabled, the spl_atf os-type handler will
  706. always pass NULL for the platform parameter.
  707. If your ATF is affected, say Y.
  708. config SPL_AM33XX_ENABLE_RTC32K_OSC
  709. bool "Enable the RTC32K OSC on AM33xx based platforms"
  710. default y if AM33XX
  711. help
  712. Enable access to the AM33xx RTC and select the external 32kHz clock
  713. source.
  714. config TPL
  715. bool
  716. depends on SUPPORT_TPL
  717. prompt "Enable TPL"
  718. help
  719. If you want to build TPL as well as the normal image and SPL, say Y.
  720. if TPL
  721. config TPL_BOARD_INIT
  722. bool "Call board-specific initialization in TPL"
  723. help
  724. If this option is enabled, U-Boot will call the function
  725. spl_board_init() from board_init_r(). This function should be
  726. provided by the board.
  727. config TPL_LDSCRIPT
  728. string "Linker script for the TPL stage"
  729. depends on TPL
  730. help
  731. The TPL stage will usually require a different linker-script
  732. (as it runs from a different memory region) than the regular
  733. U-Boot stage. Set this to the path of the linker-script to
  734. be used for TPL.
  735. May be left empty to trigger the Makefile infrastructure to
  736. fall back to the linker-script used for the SPL stage.
  737. config TPL_NEEDS_SEPARATE_TEXT_BASE
  738. bool "TPL needs a separate text-base"
  739. default n
  740. depends on TPL
  741. help
  742. Enable, if the TPL stage should not inherit its text-base
  743. from the SPL stage. When enabled, a base address for the
  744. .text sections of the TPL stage has to be set below.
  745. config TPL_NEEDS_SEPARATE_STACK
  746. bool "TPL needs a separate initial stack-pointer"
  747. default n
  748. depends on TPL
  749. help
  750. Enable, if the TPL stage should not inherit its initial
  751. stack-pointer from the settings for the SPL stage.
  752. config TPL_TEXT_BASE
  753. hex "Base address for the .text section of the TPL stage"
  754. depends on TPL_NEEDS_SEPARATE_TEXT_BASE
  755. help
  756. The base address for the .text section of the TPL stage.
  757. config TPL_MAX_SIZE
  758. int "Maximum size (in bytes) for the TPL stage"
  759. default 0
  760. depends on TPL
  761. help
  762. The maximum size (in bytes) of the TPL stage.
  763. config TPL_STACK
  764. hex "Address of the initial stack-pointer for the TPL stage"
  765. depends on TPL_NEEDS_SEPARATE_STACK
  766. help
  767. The address of the initial stack-pointer for the TPL stage.
  768. Usually this will be the (aligned) top-of-stack.
  769. config TPL_BOOTROM_SUPPORT
  770. bool "Support returning to the BOOTROM (from TPL)"
  771. help
  772. Some platforms (e.g. the Rockchip RK3368) provide support in their
  773. ROM for loading the next boot-stage after performing basic setup
  774. from the TPL stage.
  775. Enable this option, to return to the BOOTROM through the
  776. BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
  777. boot device list, if not implemented for a given board)
  778. config TPL_DRIVERS_MISC_SUPPORT
  779. bool "Support misc drivers in TPL"
  780. help
  781. Enable miscellaneous drivers in TPL. These drivers perform various
  782. tasks that don't fall nicely into other categories, Enable this
  783. option to build the drivers in drivers/misc as part of an TPL
  784. build, for those that support building in TPL (not all drivers do).
  785. config TPL_ENV_SUPPORT
  786. bool "Support an environment"
  787. help
  788. Enable environment support in TPL. See SPL_ENV_SUPPORT for details.
  789. config TPL_I2C_SUPPORT
  790. bool "Support I2C"
  791. help
  792. Enable support for the I2C bus in TPL. See SPL_I2C_SUPPORT for
  793. details.
  794. config TPL_LIBCOMMON_SUPPORT
  795. bool "Support common libraries"
  796. help
  797. Enable support for common U-Boot libraries within TPL. See
  798. SPL_LIBCOMMON_SUPPORT for details.
  799. config TPL_LIBGENERIC_SUPPORT
  800. bool "Support generic libraries"
  801. help
  802. Enable support for generic U-Boot libraries within TPL. See
  803. SPL_LIBGENERIC_SUPPORT for details.
  804. config TPL_MPC8XXX_INIT_DDR_SUPPORT
  805. bool "Support MPC8XXX DDR init"
  806. help
  807. Enable support for DDR-SDRAM on the MPC8XXX family within TPL. See
  808. SPL_MPC8XXX_INIT_DDR_SUPPORT for details.
  809. config TPL_MMC_SUPPORT
  810. bool "Support MMC"
  811. depends on MMC
  812. help
  813. Enable support for MMC within TPL. See SPL_MMC_SUPPORT for details.
  814. config TPL_NAND_SUPPORT
  815. bool "Support NAND flash"
  816. help
  817. Enable support for NAND in TPL. See SPL_NAND_SUPPORT for details.
  818. config TPL_RAM_SUPPORT
  819. bool "Support booting from RAM"
  820. help
  821. Enable booting of an image in RAM. The image can be preloaded or
  822. it can be loaded by TPL directly into RAM (e.g. using USB).
  823. config TPL_RAM_DEVICE
  824. bool "Support booting from preloaded image in RAM"
  825. depends on TPL_RAM_SUPPORT
  826. help
  827. Enable booting of an image already loaded in RAM. The image has to
  828. be already in memory when TPL takes over, e.g. loaded by the boot
  829. ROM.
  830. config TPL_SERIAL_SUPPORT
  831. bool "Support serial"
  832. select TPL_PRINTF
  833. select TPL_STRTO
  834. help
  835. Enable support for serial in TPL. See SPL_SERIAL_SUPPORT for
  836. details.
  837. config TPL_SPI_FLASH_SUPPORT
  838. bool "Support SPI flash drivers"
  839. help
  840. Enable support for using SPI flash in TPL. See SPL_SPI_FLASH_SUPPORT
  841. for details.
  842. config TPL_SPI_LOAD
  843. bool "Support loading from SPI flash"
  844. depends on TPL_SPI_FLASH_SUPPORT
  845. help
  846. Enable support for loading next stage, U-Boot or otherwise, from
  847. SPI NOR in U-Boot TPL.
  848. config TPL_SPI_SUPPORT
  849. bool "Support SPI drivers"
  850. help
  851. Enable support for using SPI in TPL. See SPL_SPI_SUPPORT for
  852. details.
  853. config TPL_YMODEM_SUPPORT
  854. bool "Support loading using Ymodem"
  855. depends on TPL_SERIAL_SUPPORT
  856. help
  857. While loading from serial is slow it can be a useful backup when
  858. there is no other option. The Ymodem protocol provides a reliable
  859. means of transmitting U-Boot over a serial line for using in TPL,
  860. with a checksum to ensure correctness.
  861. endif # TPL
  862. endif # SPL
  863. endmenu