Kconfig 35 KB

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