blob: b05ec21ed62e6a8157a498513880aea749f0b7c0 [file] [log] [blame]
Simon Glass11bde1c2016-09-13 07:05:23 -06001menu "SPL / TPL"
2
Simon Glassc2ae7d82016-09-12 23:18:22 -06003config SUPPORT_SPL
4 bool
5
6config SUPPORT_TPL
7 bool
8
B, Ravi66928af2017-05-04 15:45:29 +05309config SPL_DFU_NO_RESET
10 bool
11
Simon Glassc2ae7d82016-09-12 23:18:22 -060012config SPL
13 bool
14 depends on SUPPORT_SPL
15 prompt "Enable SPL"
16 help
17 If you want to build SPL as well as the normal image, say Y.
18
Tom Rini226498b2017-05-22 19:21:57 +000019if SPL
20
Philipp Tomsichdd6fbcb2017-07-28 19:20:49 +020021config SPL_LDSCRIPT
22 string "Linker script for the SPL stage"
23 default "arch/$(ARCH)/cpu/u-boot-spl.lds"
24 depends on SPL
25 help
26 The SPL stage will usually require a different linker-script
27 (as it runs from a different memory region) than the regular
28 U-Boot stage. Set this to the path of the linker-script to
29 be used for SPL.
30
Ley Foon Tan0680f1b2017-05-03 17:13:32 +080031config SPL_BOARD_INIT
Ley Foon Tan0680f1b2017-05-03 17:13:32 +080032 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
Philipp Tomsich225d30b2017-06-22 23:38:36 +020038config SPL_BOOTROM_SUPPORT
39 bool "Support returning to the BOOTROM"
40 help
41 Some platforms (e.g. the Rockchip RK3368) provide support in their
42 ROM for loading the next boot-stage after performing basic setup
43 from the SPL stage.
44
45 Enable this option, to return to the BOOTROM through the
46 BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
47 boot device list, if not implemented for a given board)
48
Andrew F. Davis24eb39b2017-02-16 11:18:38 -060049config SPL_RAW_IMAGE_SUPPORT
50 bool "Support SPL loading and booting of RAW images"
Andrew F. Davis24eb39b2017-02-16 11:18:38 -060051 default n if (ARCH_MX6 && (SPL_MMC_SUPPORT || SPL_SATA_SUPPORT))
Andrew F. Davisae9b57b2017-02-16 11:18:40 -060052 default y if !TI_SECURE_DEVICE
Andrew F. Davis24eb39b2017-02-16 11:18:38 -060053 help
54 SPL will support loading and booting a RAW image when this option
55 is y. If this is not set, SPL will move on to other available
56 boot media to find a suitable image.
57
Andrew F. Davis722a6b12017-02-16 11:18:39 -060058config SPL_LEGACY_IMAGE_SUPPORT
59 bool "Support SPL loading and booting of Legacy images"
Andrew F. Davisae9b57b2017-02-16 11:18:40 -060060 default y if !TI_SECURE_DEVICE
Andrew F. Davis722a6b12017-02-16 11:18:39 -060061 help
62 SPL will support loading and booting Legacy images when this option
63 is y. If this is not set, SPL will move on to other available
64 boot media to find a suitable image.
65
Simon Glassc2ae7d82016-09-12 23:18:22 -060066config SPL_SYS_MALLOC_SIMPLE
67 bool
Simon Glassc2ae7d82016-09-12 23:18:22 -060068 prompt "Only use malloc_simple functions in the SPL"
69 help
70 Say Y here to only use the *_simple malloc functions from
71 malloc_simple.c, rather then using the versions from dlmalloc.c;
72 this will make the SPL binary smaller at the cost of more heap
73 usage as the *_simple malloc functions do not re-use free-ed mem.
74
Philipp Tomsichd60b5f72017-06-30 18:57:25 +020075config TPL_SYS_MALLOC_SIMPLE
76 bool
77 prompt "Only use malloc_simple functions in the TPL"
78 help
79 Say Y here to only use the *_simple malloc functions from
80 malloc_simple.c, rather then using the versions from dlmalloc.c;
81 this will make the TPL binary smaller at the cost of more heap
82 usage as the *_simple malloc functions do not re-use free-ed mem.
83
Simon Glassc2ae7d82016-09-12 23:18:22 -060084config SPL_STACK_R
Simon Glassc2ae7d82016-09-12 23:18:22 -060085 bool "Enable SDRAM location for SPL stack"
86 help
87 SPL starts off execution in SRAM and thus typically has only a small
88 stack available. Since SPL sets up DRAM while in its board_init_f()
89 function, it is possible for the stack to move there before
90 board_init_r() is reached. This option enables a special SDRAM
91 location for the SPL stack. U-Boot SPL switches to this after
92 board_init_f() completes, and before board_init_r() starts.
93
94config SPL_STACK_R_ADDR
95 depends on SPL_STACK_R
96 hex "SDRAM location for SPL stack"
97 help
98 Specify the address in SDRAM for the SPL stack. This will be set up
99 before board_init_r() is called.
100
101config 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
111config SPL_SEPARATE_BSS
Simon Glassc2ae7d82016-09-12 23:18:22 -0600112 bool "BSS section is in a different memory region from text"
113 help
114 Some platforms need a large BSS region in SPL and can provide this
115 because RAM is already set up. In this case BSS can be moved to RAM.
116 This option should then be enabled so that the correct device tree
117 location is used. Normally we put the device tree at the end of BSS
118 but with this option enabled, it goes at _image_binary_end.
119
Simon Glassa807ab32016-09-24 18:19:56 -0600120config SPL_DISPLAY_PRINT
Simon Glassa807ab32016-09-24 18:19:56 -0600121 bool "Display a board-specific message in SPL"
122 help
123 If this option is enabled, U-Boot will call the function
124 spl_display_print() immediately after displaying the SPL console
125 banner ("U-Boot SPL ..."). This function should be provided by
126 the board.
127
Semen Protsenko38fed8a2016-11-16 19:19:05 +0200128config SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
129 bool "MMC raw mode: by sector"
Semen Protsenko38fed8a2016-11-16 19:19:05 +0200130 default y if ARCH_SUNXI || ARCH_DAVINCI || ARCH_UNIPHIER ||ARCH_MX6 || \
131 ARCH_ROCKCHIP || ARCH_MVEBU || ARCH_SOCFPGA || \
132 ARCH_AT91 || ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || \
133 OMAP44XX || OMAP54XX || AM33XX || AM43XX
134 help
135 Use sector number for specifying U-Boot location on MMC/SD in
136 raw mode.
137
138config SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
139 hex "Address on the MMC to load U-Boot from"
Tom Rini226498b2017-05-22 19:21:57 +0000140 depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
Semen Protsenko38fed8a2016-11-16 19:19:05 +0200141 default 0x50 if ARCH_SUNXI
142 default 0x75 if ARCH_DAVINCI
Semen Protsenko38fed8a2016-11-16 19:19:05 +0200143 default 0x8a if ARCH_MX6
Masahiro Yamadac0efc312017-01-28 06:53:53 +0900144 default 0x100 if ARCH_ROCKCHIP || ARCH_UNIPHIER
Semen Protsenko38fed8a2016-11-16 19:19:05 +0200145 default 0x140 if ARCH_MVEBU
146 default 0x200 if ARCH_SOCFPGA || ARCH_AT91
147 default 0x300 if ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || OMAP44XX || \
148 OMAP54XX || AM33XX || AM43XX
149 help
150 Address on the MMC to load U-Boot from, when the MMC is being used
151 in raw mode. Units: MMC sectors (1 sector = 512 bytes).
152
Dalon Westergreen949123e2017-02-10 17:15:35 -0800153config SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
154 bool "MMC Raw mode: by partition"
Dalon Westergreen949123e2017-02-10 17:15:35 -0800155 help
156 Use a partition for loading U-Boot when using MMC/SD in raw mode.
157
158config SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION
159 hex "Partition to use to load U-Boot from"
Tom Rini226498b2017-05-22 19:21:57 +0000160 depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
Dalon Westergreen949123e2017-02-10 17:15:35 -0800161 default 1
162 help
163 Partition on the MMC to load U-Boot from when the MMC is being
164 used in raw mode
165
Dalon Westergreenf0fb4fa2017-02-10 17:15:34 -0800166config SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
167 bool "MMC raw mode: by partition type"
Tom Rini226498b2017-05-22 19:21:57 +0000168 depends on DOS_PARTITION && SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
Dalon Westergreenf0fb4fa2017-02-10 17:15:34 -0800169 help
170 Use partition type for specifying U-Boot partition on MMC/SD in
171 raw mode. U-Boot will be loaded from the first partition of this
172 type to be found.
173
174config SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE
175 hex "Partition Type on the MMC to load U-Boot from"
Tom Rini226498b2017-05-22 19:21:57 +0000176 depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
Dalon Westergreenf0fb4fa2017-02-10 17:15:34 -0800177 help
178 Partition Type on the MMC to load U-Boot from, when the MMC is being
179 used in raw mode.
180
Simon Glass11bde1c2016-09-13 07:05:23 -0600181config SPL_CRC32_SUPPORT
182 bool "Support CRC32"
183 depends on SPL_FIT
184 help
185 Enable this to support CRC32 in FIT images within SPL. This is a
186 32-bit checksum value that can be used to verify images. This is
187 the least secure type of checksum, suitable for detected
188 accidental image corruption. For secure applications you should
189 consider SHA1 or SHA256.
190
191config SPL_MD5_SUPPORT
192 bool "Support MD5"
193 depends on SPL_FIT
194 help
195 Enable this to support MD5 in FIT images within SPL. An MD5
196 checksum is a 128-bit hash value used to check that the image
197 contents have not been corrupted. Note that MD5 is not considered
198 secure as it is possible (with a brute-force attack) to adjust the
199 image while still retaining the same MD5 hash value. For secure
200 applications where images may be changed maliciously, you should
201 consider SHA1 or SHA256.
202
203config SPL_SHA1_SUPPORT
204 bool "Support SHA1"
205 depends on SPL_FIT
Tom Rini089df182017-05-15 12:17:49 -0400206 select SHA1
Simon Glass11bde1c2016-09-13 07:05:23 -0600207 help
208 Enable this to support SHA1 in FIT images within SPL. A SHA1
209 checksum is a 160-bit (20-byte) hash value used to check that the
210 image contents have not been corrupted or maliciously altered.
211 While SHA1 is fairly secure it is coming to the end of its life
212 due to the expanding computing power avaiable to brute-force
213 attacks. For more security, consider SHA256.
214
215config SPL_SHA256_SUPPORT
216 bool "Support SHA256"
217 depends on SPL_FIT
Tom Rini089df182017-05-15 12:17:49 -0400218 select SHA256
Simon Glass11bde1c2016-09-13 07:05:23 -0600219 help
220 Enable this to support SHA256 in FIT images within SPL. A SHA256
221 checksum is a 256-bit (32-byte) hash value used to check that the
222 image contents have not been corrupted. SHA256 is recommended for
223 use in secure applications since (as at 2016) there is no known
224 feasible attack that could produce a 'collision' with differing
225 input data. Use this for the highest security. Note that only the
226 SHA256 variant is supported: SHA512 and others are not currently
227 supported in U-Boot.
228
Simon Glass5e148df2017-01-16 07:03:29 -0700229config SPL_CPU_SUPPORT
230 bool "Support CPU drivers"
Simon Glass5e148df2017-01-16 07:03:29 -0700231 help
232 Enable this to support CPU drivers in SPL. These drivers can set
233 up CPUs and provide information about them such as the model and
234 name. This can be useful in SPL since setting up the CPUs earlier
235 may improve boot performance. Enable this option to build the
236 drivers in drivers/cpu as part of an SPL build.
237
Simon Glass11bde1c2016-09-13 07:05:23 -0600238config SPL_CRYPTO_SUPPORT
239 bool "Support crypto drivers"
Simon Glass11bde1c2016-09-13 07:05:23 -0600240 help
241 Enable crypto drivers in SPL. These drivers can be used to
242 accelerate secure boot processing in secure applications. Enable
243 this option to build the drivers in drivers/crypto as part of an
244 SPL build.
245
246config SPL_HASH_SUPPORT
247 bool "Support hashing drivers"
Tom Rini089df182017-05-15 12:17:49 -0400248 select SHA1
249 select SHA256
Simon Glass11bde1c2016-09-13 07:05:23 -0600250 help
251 Enable hashing drivers in SPL. These drivers can be used to
252 accelerate secure boot processing in secure applications. Enable
253 this option to build system-specific drivers for hash acceleration
254 as part of an SPL build.
255
256config SPL_DMA_SUPPORT
257 bool "Support DMA drivers"
Simon Glass11bde1c2016-09-13 07:05:23 -0600258 help
259 Enable DMA (direct-memory-access) drivers in SPL. These drivers
260 can be used to handle memory-to-peripheral data transfer without
261 the CPU moving the data. Enable this option to build the drivers
262 in drivers/dma as part of an SPL build.
263
264config SPL_DRIVERS_MISC_SUPPORT
265 bool "Support misc drivers"
Simon Glass11bde1c2016-09-13 07:05:23 -0600266 help
267 Enable miscellaneous drivers in SPL. These drivers perform various
268 tasks that don't fall nicely into other categories, Enable this
269 option to build the drivers in drivers/misc as part of an SPL
270 build, for those that support building in SPL (not all drivers do).
271
272config SPL_ENV_SUPPORT
273 bool "Support an environment"
Simon Glass11bde1c2016-09-13 07:05:23 -0600274 help
275 Enable environment support in SPL. The U-Boot environment provides
276 a number of settings (essentially name/value pairs) which can
277 control many aspects of U-Boot's operation. Normally this is not
278 needed in SPL as it has a much simpler task with less
279 configuration. But some boards use this to support 'Falcon' boot
280 on EXT2 and FAT, where SPL boots directly into Linux without
Simon Glass00caae62017-08-03 12:22:12 -0600281 starting U-Boot first. Enabling this option will make env_get()
Simon Glass382bee52017-08-03 12:22:09 -0600282 and env_set() available in SPL.
Simon Glass11bde1c2016-09-13 07:05:23 -0600283
B, Ravid2d9bdf2016-09-28 14:46:18 +0530284config SPL_SAVEENV
285 bool "Support save environment"
Tom Rini226498b2017-05-22 19:21:57 +0000286 depends on SPL_ENV_SUPPORT
B, Ravid2d9bdf2016-09-28 14:46:18 +0530287 help
288 Enable save environment support in SPL after setenv. By default
289 the saveenv option is not provided in SPL, but some boards need
290 this support in 'Falcon' boot, where SPL need to boot from
291 different images based on environment variable set by OS. For
292 example OS may set "reboot_image" environment variable to
293 "recovery" inorder to boot recovery image by SPL. The SPL read
294 "reboot_image" and act accordingly and change the reboot_image
295 to default mode using setenv and save the environemnt.
296
Simon Glass11bde1c2016-09-13 07:05:23 -0600297config SPL_ETH_SUPPORT
298 bool "Support Ethernet"
299 depends on SPL_ENV_SUPPORT
300 help
301 Enable access to the network subsystem and associated Ethernet
302 drivers in SPL. This permits SPL to load U-Boot over an Ethernet
303 link rather than from an on-board peripheral. Environment support
304 is required since the network stack uses a number of environment
305 variables. See also SPL_NET_SUPPORT.
306
307config SPL_EXT_SUPPORT
308 bool "Support EXT filesystems"
Simon Glass11bde1c2016-09-13 07:05:23 -0600309 help
310 Enable support for EXT2/3/4 filesystems with SPL. This permits
311 U-Boot (or Linux in Falcon mode) to be loaded from an EXT
312 filesystem from within SPL. Support for the underlying block
313 device (e.g. MMC or USB) must be enabled separately.
314
315config SPL_FAT_SUPPORT
316 bool "Support FAT filesystems"
Sekhar Norieedfb892017-06-02 17:53:59 +0530317 select FS_FAT
Simon Glass11bde1c2016-09-13 07:05:23 -0600318 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
324config SPL_FPGA_SUPPORT
325 bool "Support FPGAs"
Simon Glass11bde1c2016-09-13 07:05:23 -0600326 help
327 Enable support for FPGAs in SPL. Field-programmable Gate Arrays
328 provide software-configurable hardware which is typically used to
329 implement peripherals (such as UARTs, LCD displays, MMC) or
330 accelerate custom processing functions, such as image processing
331 or machine learning. Sometimes it is useful to program the FPGA
332 as early as possible during boot, and this option can enable that
333 within SPL.
334
335config SPL_GPIO_SUPPORT
336 bool "Support GPIO"
Simon Glass11bde1c2016-09-13 07:05:23 -0600337 help
338 Enable support for GPIOs (General-purpose Input/Output) in SPL.
339 GPIOs allow U-Boot to read the state of an input line (high or
340 low) and set the state of an output line. This can be used to
341 drive LEDs, control power to various system parts and read user
342 input. GPIOs can be useful in SPL to enable a 'sign-of-life' LED,
343 for example. Enable this option to build the drivers in
344 drivers/gpio as part of an SPL build.
345
346config SPL_I2C_SUPPORT
347 bool "Support I2C"
Simon Glass11bde1c2016-09-13 07:05:23 -0600348 help
349 Enable support for the I2C (Inter-Integrated Circuit) bus in SPL.
350 I2C works with a clock and data line which can be driven by a
351 one or more masters or slaves. It is a fairly complex bus but is
352 widely used as it only needs two lines for communication. Speeds of
353 400kbps are typical but up to 3.4Mbps is supported by some
354 hardware. I2C can be useful in SPL to configure power management
355 ICs (PMICs) before raising the CPU clock speed, for example.
356 Enable this option to build the drivers in drivers/i2c as part of
357 an SPL build.
358
359config SPL_LIBCOMMON_SUPPORT
360 bool "Support common libraries"
Simon Glass11bde1c2016-09-13 07:05:23 -0600361 help
362 Enable support for common U-Boot libraries within SPL. These
363 libraries include common code to deal with U-Boot images,
364 environment and USB, for example. This option is enabled on many
365 boards. Enable this option to build the code in common/ as part of
366 an SPL build.
367
368config SPL_LIBDISK_SUPPORT
369 bool "Support disk paritions"
Simon Glass11bde1c2016-09-13 07:05:23 -0600370 help
371 Enable support for disk partitions within SPL. 'Disk' is something
372 of a misnomer as it includes non-spinning media such as flash (as
373 used in MMC and USB sticks). Partitions provide a way for a disk
374 to be split up into separate regions, with a partition table placed
375 at the start or end which describes the location and size of each
376 'partition'. These partitions are typically uses as individual block
377 devices, typically with an EXT2 or FAT filesystem in each. This
378 option enables whatever partition support has been enabled in
379 U-Boot to also be used in SPL. It brings in the code in disk/.
380
381config SPL_LIBGENERIC_SUPPORT
382 bool "Support generic libraries"
Simon Glass11bde1c2016-09-13 07:05:23 -0600383 help
384 Enable support for generic U-Boot libraries within SPL. These
385 libraries include generic code to deal with device tree, hashing,
386 printf(), compression and the like. This option is enabled on many
387 boards. Enable this option to build the code in lib/ as part of an
388 SPL build.
389
390config SPL_MMC_SUPPORT
391 bool "Support MMC"
Tom Rini226498b2017-05-22 19:21:57 +0000392 depends on MMC
Simon Glass11bde1c2016-09-13 07:05:23 -0600393 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
401config SPL_MPC8XXX_INIT_DDR_SUPPORT
402 bool "Support MPC8XXX DDR init"
Simon Glass11bde1c2016-09-13 07:05:23 -0600403 help
404 Enable support for DDR-SDRAM (double-data-rate synchronous dynamic
405 random-access memory) on the MPC8XXX family within SPL. This
406 allows DRAM to be set up before loading U-Boot into that DRAM,
407 where it can run.
408
409config SPL_MTD_SUPPORT
410 bool "Support MTD drivers"
Simon Glass11bde1c2016-09-13 07:05:23 -0600411 help
412 Enable support for MTD (Memory Technology Device) within SPL. MTD
413 provides a block interface over raw NAND and can also be used with
414 SPI flash. This allows SPL to load U-Boot from supported MTD
415 devices. See SPL_NAND_SUPPORT and SPL_ONENAND_SUPPORT for how
416 to enable specific MTD drivers.
417
418config SPL_MUSB_NEW_SUPPORT
419 bool "Support new Mentor Graphics USB"
Simon Glass11bde1c2016-09-13 07:05:23 -0600420 help
421 Enable support for Mentor Graphics USB in SPL. This is a new
422 driver used by some boards. Enable this option to build
423 the drivers in drivers/usb/musb-new as part of an SPL build. The
424 old drivers are in drivers/usb/musb.
425
426config SPL_NAND_SUPPORT
427 bool "Support NAND flash"
Simon Glass11bde1c2016-09-13 07:05:23 -0600428 help
429 Enable support for NAND (Negative AND) flash in SPL. NAND flash
430 can be used to allow SPL to load U-Boot from supported devices.
431 This enables the drivers in drivers/mtd/nand as part of an SPL
432 build.
433
434config SPL_NET_SUPPORT
435 bool "Support networking"
Simon Glass11bde1c2016-09-13 07:05:23 -0600436 help
437 Enable support for network devices (such as Ethernet) in SPL.
438 This permits SPL to load U-Boot over a network link rather than
439 from an on-board peripheral. Environment support is required since
440 the network stack uses a number of environment variables. See also
441 SPL_ETH_SUPPORT.
442
443if SPL_NET_SUPPORT
444config SPL_NET_VCI_STRING
445 string "BOOTP Vendor Class Identifier string sent by SPL"
446 help
447 As defined by RFC 2132 the vendor class identifier field can be
448 sent by the client to identify the vendor type and configuration
449 of a client. This is often used in practice to allow for the DHCP
450 server to specify different files to load depending on if the ROM,
451 SPL or U-Boot itself makes the request
452endif # if SPL_NET_SUPPORT
453
454config SPL_NO_CPU_SUPPORT
455 bool "Drop CPU code in SPL"
Simon Glass11bde1c2016-09-13 07:05:23 -0600456 help
457 This is specific to the ARM926EJ-S CPU. It disables the standard
458 start.S start-up code, presumably so that a replacement can be
459 used on that CPU. You should not enable it unless you know what
460 you are doing.
461
462config SPL_NOR_SUPPORT
463 bool "Support NOR flash"
Simon Glass11bde1c2016-09-13 07:05:23 -0600464 help
465 Enable support for loading U-Boot from memory-mapped NOR (Negative
466 OR) flash in SPL. NOR flash is slow to write but fast to read, and
467 a memory-mapped device makes it very easy to access. Loading from
468 NOR is typically achieved with just a memcpy().
469
Vikas Manochac6d9e9d2017-05-28 12:55:11 -0700470config SPL_XIP_SUPPORT
471 bool "Support XIP"
472 depends on SPL
473 help
474 Enable support for execute in place of U-Boot or kernel image. There
475 is no need to copy image from flash to ram if flash supports execute
476 in place. Its very useful in systems having enough flash but not
477 enough ram to load the image.
478
Simon Glass11bde1c2016-09-13 07:05:23 -0600479config SPL_ONENAND_SUPPORT
480 bool "Support OneNAND flash"
Simon Glass11bde1c2016-09-13 07:05:23 -0600481 help
482 Enable support for OneNAND (Negative AND) flash in SPL. OneNAND is
483 a type of NAND flash and therefore can be used to allow SPL to
484 load U-Boot from supported devices. This enables the drivers in
485 drivers/mtd/onenand as part of an SPL build.
486
Heiko Schocherc20ae2f2016-10-06 07:55:15 +0200487config SPL_OS_BOOT
488 bool "Activate Falcon Mode"
Tom Rini226498b2017-05-22 19:21:57 +0000489 depends on !TI_SECURE_DEVICE
Heiko Schocherc20ae2f2016-10-06 07:55:15 +0200490 default n
491 help
492 Enable booting directly to an OS from SPL.
493 for more info read doc/README.falcon
494
Heiko Schocher29d3bc72016-10-06 07:55:16 +0200495if SPL_OS_BOOT
496config SYS_OS_BASE
497 hex "addr, where OS is found"
Tom Rini226498b2017-05-22 19:21:57 +0000498 depends on SPL_NOR_SUPPORT
Heiko Schocher29d3bc72016-10-06 07:55:16 +0200499 help
500 Specify the address, where the OS image is found, which
501 gets booted.
502
503endif # SPL_OS_BOOT
504
Simon Glass2446b6b2017-01-16 07:03:30 -0700505config SPL_PCI_SUPPORT
506 bool "Support PCI drivers"
Simon Glass2446b6b2017-01-16 07:03:30 -0700507 help
508 Enable support for PCI in SPL. For platforms that need PCI to boot,
509 or must perform some init using PCI in SPL, this provides the
510 necessary driver support. This enables the drivers in drivers/pci
511 as part of an SPL build.
512
Simon Glassbbe41ab2017-01-16 07:03:33 -0700513config SPL_PCH_SUPPORT
514 bool "Support PCH drivers"
Simon Glassbbe41ab2017-01-16 07:03:33 -0700515 help
516 Enable support for PCH (Platform Controller Hub) devices in SPL.
517 These are used to set up GPIOs and the SPI peripheral early in
518 boot. This enables the drivers in drivers/pch as part of an SPL
519 build.
520
Simon Glass11bde1c2016-09-13 07:05:23 -0600521config SPL_POST_MEM_SUPPORT
522 bool "Support POST drivers"
Simon Glass11bde1c2016-09-13 07:05:23 -0600523 help
524 Enable support for POST (Power-on Self Test) in SPL. POST is a
525 procedure that checks that the hardware (CPU or board) appears to
526 be functionally correctly. It is a sanity check that can be
527 performed before booting. This enables the drivers in post/drivers
528 as part of an SPL build.
529
530config SPL_POWER_SUPPORT
531 bool "Support power drivers"
Simon Glass11bde1c2016-09-13 07:05:23 -0600532 help
533 Enable support for power control in SPL. This includes support
534 for PMICs (Power-management Integrated Circuits) and some of the
535 features provided by PMICs. In particular, voltage regulators can
536 be used to enable/disable power and vary its voltage. That can be
537 useful in SPL to turn on boot peripherals and adjust CPU voltage
538 so that the clock speed can be increased. This enables the drivers
539 in drivers/power, drivers/power/pmic and drivers/power/regulator
540 as part of an SPL build.
541
Stefan Agner22802f42016-12-23 07:51:53 +0100542config SPL_RAM_SUPPORT
543 bool "Support booting from RAM"
Stefan Agner22802f42016-12-23 07:51:53 +0100544 default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
545 help
546 Enable booting of an image in RAM. The image can be preloaded or
547 it can be loaded by SPL directly into RAM (e.g. using USB).
548
Stefan Agnerf417d402016-12-23 07:51:52 +0100549config SPL_RAM_DEVICE
550 bool "Support booting from preloaded image in RAM"
Stefan Agner22802f42016-12-23 07:51:53 +0100551 depends on SPL_RAM_SUPPORT
Stefan Agnerf417d402016-12-23 07:51:52 +0100552 default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
553 help
554 Enable booting of an image already loaded in RAM. The image has to
555 be already in memory when SPL takes over, e.g. loaded by the boot
556 ROM.
557
Simon Glass30bf8a02017-01-16 07:03:31 -0700558config SPL_RTC_SUPPORT
559 bool "Support RTC drivers"
Simon Glass30bf8a02017-01-16 07:03:31 -0700560 help
561 Enable RTC (Real-time Clock) support in SPL. This includes support
562 for reading and setting the time. Some RTC devices also have some
563 non-volatile (battery-backed) memory which is accessible if
564 needed. This enables the drivers in drivers/rtc as part of an SPL
565 build.
566
Simon Glass11bde1c2016-09-13 07:05:23 -0600567config SPL_SATA_SUPPORT
568 bool "Support loading from SATA"
Simon Glass11bde1c2016-09-13 07:05:23 -0600569 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
577config SPL_SERIAL_SUPPORT
578 bool "Support serial"
Simon Glass11bde1c2016-09-13 07:05:23 -0600579 help
580 Enable support for serial in SPL. This allows use of a serial UART
581 for displaying messages while SPL is running. It also brings in
582 printf() and panic() functions. This should normally be enabled
583 unless there are space reasons not to. Even then, consider
584 enabling USE_TINY_PRINTF which is a small printf() version.
585
586config SPL_SPI_FLASH_SUPPORT
587 bool "Support SPI flash drivers"
Simon Glass11bde1c2016-09-13 07:05:23 -0600588 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
596config SPL_SPI_SUPPORT
597 bool "Support SPI drivers"
Simon Glass11bde1c2016-09-13 07:05:23 -0600598 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
Simon Glass11bde1c2016-09-13 07:05:23 -0600606config SPL_USB_HOST_SUPPORT
607 bool "Support USB host drivers"
Simon Glass11bde1c2016-09-13 07:05:23 -0600608 help
609 Enable access to USB (Universal Serial Bus) host devices so that
610 SPL can load U-Boot from a connected USB peripheral, such as a USB
611 flash stick. While USB takes a little longer to start up than most
612 buses, it is very flexible since many different types of storage
613 device can be attached. This option enables the drivers in
614 drivers/usb/host as part of an SPL build.
615
616config SPL_USB_SUPPORT
617 bool "Support loading from USB"
618 depends on SPL_USB_HOST_SUPPORT
619 help
620 Enable support for USB devices in SPL. This allows use of USB
621 devices such as hard drives and flash drivers for loading U-Boot.
622 The actual drivers are enabled separately using the normal U-Boot
623 config options. This enables loading from USB using a configured
624 device.
625
Stefan Agnere94793c2016-11-21 10:58:53 -0800626config SPL_USB_GADGET_SUPPORT
627 bool "Suppport USB Gadget drivers"
Stefan Agnere94793c2016-11-21 10:58:53 -0800628 help
629 Enable USB Gadget API which allows to enable USB device functions
630 in SPL.
631
632if SPL_USB_GADGET_SUPPORT
633
634config SPL_USBETH_SUPPORT
635 bool "Support USB Ethernet drivers"
636 help
637 Enable access to the USB network subsystem and associated
638 drivers in SPL. This permits SPL to load U-Boot over a
639 USB-connected Ethernet link (such as a USB Ethernet dongle) rather
640 than from an onboard peripheral. Environment support is required
641 since the network stack uses a number of environment variables.
642 See also SPL_NET_SUPPORT and SPL_ETH_SUPPORT.
643
Stefan Agner59917032016-11-21 10:58:52 -0800644config SPL_DFU_SUPPORT
645 bool "Support DFU (Device Firmware Upgarde)"
Stefan Agner59917032016-11-21 10:58:52 -0800646 select SPL_HASH_SUPPORT
B, Ravi66928af2017-05-04 15:45:29 +0530647 select SPL_DFU_NO_RESET
B, Ravi1b19cbd2017-05-04 15:45:28 +0530648 depends on SPL_RAM_SUPPORT
Stefan Agner59917032016-11-21 10:58:52 -0800649 help
650 This feature enables the DFU (Device Firmware Upgarde) in SPL with
651 RAM memory device support. The ROM code will load and execute
652 the SPL built with dfu. The user can load binaries (u-boot/kernel) to
653 selected device partition from host-pc using dfu-utils.
654 This feature is useful to flash the binaries to factory or bare-metal
655 boards using USB interface.
656
657choice
658 bool "DFU device selection"
659 depends on SPL_DFU_SUPPORT
660
661config SPL_DFU_RAM
662 bool "RAM device"
Stefan Agner22802f42016-12-23 07:51:53 +0100663 depends on SPL_DFU_SUPPORT && SPL_RAM_SUPPORT
Stefan Agner59917032016-11-21 10:58:52 -0800664 help
665 select RAM/DDR memory device for loading binary images
666 (u-boot/kernel) to the selected device partition using
667 DFU and execute the u-boot/kernel from RAM.
668
669endchoice
670
Stefan Agnera3774c12017-08-16 11:00:54 -0700671config SPL_USB_SDP_SUPPORT
672 bool "Support SDP (Serial Download Protocol)"
673 help
674 Enable Serial Download Protocol (SDP) device support in SPL. This
675 allows to download images into memory and execute (jump to) them
676 using the same protocol as implemented by the i.MX family's boot ROM.
Stefan Agnere94793c2016-11-21 10:58:53 -0800677endif
678
Simon Glass11bde1c2016-09-13 07:05:23 -0600679config SPL_WATCHDOG_SUPPORT
680 bool "Support watchdog drivers"
Simon Glass11bde1c2016-09-13 07:05:23 -0600681 help
682 Enable support for watchdog drivers in SPL. A watchdog is
683 typically a hardware peripheral which can reset the system when it
684 detects no activity for a while (such as a software crash). This
685 enables the drivers in drivers/watchdog as part of an SPL build.
686
687config SPL_YMODEM_SUPPORT
688 bool "Support loading using Ymodem"
Simon Glass11bde1c2016-09-13 07:05:23 -0600689 help
690 While loading from serial is slow it can be a useful backup when
691 there is no other option. The Ymodem protocol provides a reliable
692 means of transmitting U-Boot over a serial line for using in SPL,
693 with a checksum to ensure correctness.
694
Kever Yangbcc17262017-05-05 11:47:45 +0800695config SPL_ATF_SUPPORT
696 bool "Support ARM Trusted Firmware"
Tom Rini226498b2017-05-22 19:21:57 +0000697 depends on ARM64
Kever Yangbcc17262017-05-05 11:47:45 +0800698 help
Kever Yangb5b82ab2017-09-07 15:50:18 +0800699 ATF(ARM Trusted Firmware) is a component for ARM arch64 which
Kever Yangbcc17262017-05-05 11:47:45 +0800700 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
703config SPL_ATF_TEXT_BASE
704 depends on SPL_ATF_SUPPORT
705 hex "ATF BL31 base address"
706 help
707 This is the base address in memory for ATF BL31 text and entry point.
708
Tom Rini226498b2017-05-22 19:21:57 +0000709config TPL
710 bool
711 depends on SUPPORT_TPL
712 prompt "Enable TPL"
713 help
714 If you want to build TPL as well as the normal image and SPL, say Y.
715
716if TPL
717
Philipp Tomsichdd6fbcb2017-07-28 19:20:49 +0200718config TPL_LDSCRIPT
719 string "Linker script for the TPL stage"
720 depends on TPL
721 help
722 The TPL stage will usually require a different linker-script
723 (as it runs from a different memory region) than the regular
724 U-Boot stage. Set this to the path of the linker-script to
725 be used for TPL.
726
Philipp Tomsichb3ed6ce2017-07-28 20:02:34 +0200727 May be left empty to trigger the Makefile infrastructure to
728 fall back to the linker-script used for the SPL stage.
729
730config TPL_NEEDS_SEPARATE_TEXT_BASE
731 bool "TPL needs a separate text-base"
732 default n
733 depends on TPL
734 help
735 Enable, if the TPL stage should not inherit its text-base
736 from the SPL stage. When enabled, a base address for the
737 .text sections of the TPL stage has to be set below.
738
739config TPL_NEEDS_SEPARATE_STACK
740 bool "TPL needs a separate initial stack-pointer"
741 default n
742 depends on TPL
743 help
744 Enable, if the TPL stage should not inherit its initial
745 stack-pointer from the settings for the SPL stage.
746
747config TPL_TEXT_BASE
748 hex "Base address for the .text section of the TPL stage"
749 depends on TPL_NEEDS_SEPARATE_TEXT_BASE
750 help
751 The base address for the .text section of the TPL stage.
752
753config TPL_MAX_SIZE
754 int "Maximum size (in bytes) for the TPL stage"
Philipp Tomsich5aa49af2017-07-28 20:20:41 +0200755 default 0
Philipp Tomsichb3ed6ce2017-07-28 20:02:34 +0200756 depends on TPL
757 help
758 The maximum size (in bytes) of the TPL stage.
759
760config TPL_STACK
761 hex "Address of the initial stack-pointer for the TPL stage"
762 depends on TPL_NEEDS_SEPARATE_STACK
763 help
764 The address of the initial stack-pointer for the TPL stage.
765 Usually this will be the (aligned) top-of-stack.
766
Philipp Tomsicha954fa32017-07-04 14:24:53 +0200767config TPL_BOOTROM_SUPPORT
768 bool "Support returning to the BOOTROM (from TPL)"
769 help
770 Some platforms (e.g. the Rockchip RK3368) provide support in their
771 ROM for loading the next boot-stage after performing basic setup
772 from the TPL stage.
773
774 Enable this option, to return to the BOOTROM through the
775 BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
776 boot device list, if not implemented for a given board)
777
Philipp Tomsichc3916e72017-07-04 14:27:02 +0200778config 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
Simon Glassf73329e2016-09-12 23:18:27 -0600786config TPL_ENV_SUPPORT
787 bool "Support an environment"
Simon Glassf73329e2016-09-12 23:18:27 -0600788 help
789 Enable environment support in TPL. See SPL_ENV_SUPPORT for details.
790
791config TPL_I2C_SUPPORT
792 bool "Support I2C"
Simon Glassf73329e2016-09-12 23:18:27 -0600793 help
Philipp Tomsich616bd092017-07-28 17:03:03 +0200794 Enable support for the I2C bus in TPL. See SPL_I2C_SUPPORT for
Simon Glassf73329e2016-09-12 23:18:27 -0600795 details.
796
797config TPL_LIBCOMMON_SUPPORT
798 bool "Support common libraries"
Simon Glassf73329e2016-09-12 23:18:27 -0600799 help
800 Enable support for common U-Boot libraries within TPL. See
801 SPL_LIBCOMMON_SUPPORT for details.
802
803config TPL_LIBGENERIC_SUPPORT
804 bool "Support generic libraries"
Simon Glassf73329e2016-09-12 23:18:27 -0600805 help
806 Enable support for generic U-Boot libraries within TPL. See
807 SPL_LIBGENERIC_SUPPORT for details.
808
809config TPL_MPC8XXX_INIT_DDR_SUPPORT
810 bool "Support MPC8XXX DDR init"
Simon Glassf73329e2016-09-12 23:18:27 -0600811 help
812 Enable support for DDR-SDRAM on the MPC8XXX family within TPL. See
813 SPL_MPC8XXX_INIT_DDR_SUPPORT for details.
814
815config TPL_MMC_SUPPORT
816 bool "Support MMC"
Tom Rini226498b2017-05-22 19:21:57 +0000817 depends on MMC
Simon Glassf73329e2016-09-12 23:18:27 -0600818 help
819 Enable support for MMC within TPL. See SPL_MMC_SUPPORT for details.
820
821config TPL_NAND_SUPPORT
822 bool "Support NAND flash"
Simon Glassf73329e2016-09-12 23:18:27 -0600823 help
Philipp Tomsich616bd092017-07-28 17:03:03 +0200824 Enable support for NAND in TPL. See SPL_NAND_SUPPORT for details.
Simon Glassf73329e2016-09-12 23:18:27 -0600825
826config TPL_SERIAL_SUPPORT
827 bool "Support serial"
Simon Glassf73329e2016-09-12 23:18:27 -0600828 help
Philipp Tomsich616bd092017-07-28 17:03:03 +0200829 Enable support for serial in TPL. See SPL_SERIAL_SUPPORT for
Simon Glassf73329e2016-09-12 23:18:27 -0600830 details.
831
832config TPL_SPI_FLASH_SUPPORT
833 bool "Support SPI flash drivers"
Simon Glassf73329e2016-09-12 23:18:27 -0600834 help
Philipp Tomsich616bd092017-07-28 17:03:03 +0200835 Enable support for using SPI flash in TPL. See SPL_SPI_FLASH_SUPPORT
Simon Glassf73329e2016-09-12 23:18:27 -0600836 for details.
837
838config TPL_SPI_SUPPORT
839 bool "Support SPI drivers"
Simon Glassf73329e2016-09-12 23:18:27 -0600840 help
Philipp Tomsich616bd092017-07-28 17:03:03 +0200841 Enable support for using SPI in TPL. See SPL_SPI_SUPPORT for
Simon Glassf73329e2016-09-12 23:18:27 -0600842 details.
843
Tom Rini226498b2017-05-22 19:21:57 +0000844endif # TPL
845
846endif # SPL
Simon Glass11bde1c2016-09-13 07:05:23 -0600847endmenu