blob: 64f9e1fd4e06908fdec21a5b45f02a351a14f710 [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
Ley Foon Tan0680f1b2017-05-03 17:13:32 +080021config SPL_BOARD_INIT
Ley Foon Tan0680f1b2017-05-03 17:13:32 +080022 bool "Call board-specific initialization in SPL"
23 help
24 If this option is enabled, U-Boot will call the function
25 spl_board_init() from board_init_r(). This function should be
26 provided by the board.
27
Philipp Tomsich225d30b2017-06-22 23:38:36 +020028config SPL_BOOTROM_SUPPORT
29 bool "Support returning to the BOOTROM"
30 help
31 Some platforms (e.g. the Rockchip RK3368) provide support in their
32 ROM for loading the next boot-stage after performing basic setup
33 from the SPL stage.
34
35 Enable this option, to return to the BOOTROM through the
36 BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
37 boot device list, if not implemented for a given board)
38
Andrew F. Davis24eb39b2017-02-16 11:18:38 -060039config SPL_RAW_IMAGE_SUPPORT
40 bool "Support SPL loading and booting of RAW images"
Andrew F. Davis24eb39b2017-02-16 11:18:38 -060041 default n if (ARCH_MX6 && (SPL_MMC_SUPPORT || SPL_SATA_SUPPORT))
Andrew F. Davisae9b57b2017-02-16 11:18:40 -060042 default y if !TI_SECURE_DEVICE
Andrew F. Davis24eb39b2017-02-16 11:18:38 -060043 help
44 SPL will support loading and booting a RAW image when this option
45 is y. If this is not set, SPL will move on to other available
46 boot media to find a suitable image.
47
Andrew F. Davis722a6b12017-02-16 11:18:39 -060048config SPL_LEGACY_IMAGE_SUPPORT
49 bool "Support SPL loading and booting of Legacy images"
Andrew F. Davisae9b57b2017-02-16 11:18:40 -060050 default y if !TI_SECURE_DEVICE
Andrew F. Davis722a6b12017-02-16 11:18:39 -060051 help
52 SPL will support loading and booting Legacy images when this option
53 is y. If this is not set, SPL will move on to other available
54 boot media to find a suitable image.
55
Simon Glassc2ae7d82016-09-12 23:18:22 -060056config SPL_SYS_MALLOC_SIMPLE
57 bool
Simon Glassc2ae7d82016-09-12 23:18:22 -060058 prompt "Only use malloc_simple functions in the SPL"
59 help
60 Say Y here to only use the *_simple malloc functions from
61 malloc_simple.c, rather then using the versions from dlmalloc.c;
62 this will make the SPL binary smaller at the cost of more heap
63 usage as the *_simple malloc functions do not re-use free-ed mem.
64
Philipp Tomsichd60b5f72017-06-30 18:57:25 +020065config TPL_SYS_MALLOC_SIMPLE
66 bool
67 prompt "Only use malloc_simple functions in the TPL"
68 help
69 Say Y here to only use the *_simple malloc functions from
70 malloc_simple.c, rather then using the versions from dlmalloc.c;
71 this will make the TPL binary smaller at the cost of more heap
72 usage as the *_simple malloc functions do not re-use free-ed mem.
73
Simon Glassc2ae7d82016-09-12 23:18:22 -060074config SPL_STACK_R
Simon Glassc2ae7d82016-09-12 23:18:22 -060075 bool "Enable SDRAM location for SPL stack"
76 help
77 SPL starts off execution in SRAM and thus typically has only a small
78 stack available. Since SPL sets up DRAM while in its board_init_f()
79 function, it is possible for the stack to move there before
80 board_init_r() is reached. This option enables a special SDRAM
81 location for the SPL stack. U-Boot SPL switches to this after
82 board_init_f() completes, and before board_init_r() starts.
83
84config SPL_STACK_R_ADDR
85 depends on SPL_STACK_R
86 hex "SDRAM location for SPL stack"
87 help
88 Specify the address in SDRAM for the SPL stack. This will be set up
89 before board_init_r() is called.
90
91config SPL_STACK_R_MALLOC_SIMPLE_LEN
92 depends on SPL_STACK_R && SPL_SYS_MALLOC_SIMPLE
93 hex "Size of malloc_simple heap after switching to DRAM SPL stack"
94 default 0x100000
95 help
96 Specify the amount of the stack to use as memory pool for
97 malloc_simple after switching the stack to DRAM. This may be set
98 to give board_init_r() a larger heap then the initial heap in
99 SRAM which is limited to SYS_MALLOC_F_LEN bytes.
100
101config SPL_SEPARATE_BSS
Simon Glassc2ae7d82016-09-12 23:18:22 -0600102 bool "BSS section is in a different memory region from text"
103 help
104 Some platforms need a large BSS region in SPL and can provide this
105 because RAM is already set up. In this case BSS can be moved to RAM.
106 This option should then be enabled so that the correct device tree
107 location is used. Normally we put the device tree at the end of BSS
108 but with this option enabled, it goes at _image_binary_end.
109
Simon Glassa807ab32016-09-24 18:19:56 -0600110config SPL_DISPLAY_PRINT
Simon Glassa807ab32016-09-24 18:19:56 -0600111 bool "Display a board-specific message in SPL"
112 help
113 If this option is enabled, U-Boot will call the function
114 spl_display_print() immediately after displaying the SPL console
115 banner ("U-Boot SPL ..."). This function should be provided by
116 the board.
117
Semen Protsenko38fed8a2016-11-16 19:19:05 +0200118config SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
119 bool "MMC raw mode: by sector"
Semen Protsenko38fed8a2016-11-16 19:19:05 +0200120 default y if ARCH_SUNXI || ARCH_DAVINCI || ARCH_UNIPHIER ||ARCH_MX6 || \
121 ARCH_ROCKCHIP || ARCH_MVEBU || ARCH_SOCFPGA || \
122 ARCH_AT91 || ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || \
123 OMAP44XX || OMAP54XX || AM33XX || AM43XX
124 help
125 Use sector number for specifying U-Boot location on MMC/SD in
126 raw mode.
127
128config SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
129 hex "Address on the MMC to load U-Boot from"
Tom Rini226498b2017-05-22 19:21:57 +0000130 depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
Semen Protsenko38fed8a2016-11-16 19:19:05 +0200131 default 0x50 if ARCH_SUNXI
132 default 0x75 if ARCH_DAVINCI
Semen Protsenko38fed8a2016-11-16 19:19:05 +0200133 default 0x8a if ARCH_MX6
Masahiro Yamadac0efc312017-01-28 06:53:53 +0900134 default 0x100 if ARCH_ROCKCHIP || ARCH_UNIPHIER
Semen Protsenko38fed8a2016-11-16 19:19:05 +0200135 default 0x140 if ARCH_MVEBU
136 default 0x200 if ARCH_SOCFPGA || ARCH_AT91
137 default 0x300 if ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || OMAP44XX || \
138 OMAP54XX || AM33XX || AM43XX
139 help
140 Address on the MMC to load U-Boot from, when the MMC is being used
141 in raw mode. Units: MMC sectors (1 sector = 512 bytes).
142
Dalon Westergreen949123e2017-02-10 17:15:35 -0800143config SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
144 bool "MMC Raw mode: by partition"
Dalon Westergreen949123e2017-02-10 17:15:35 -0800145 help
146 Use a partition for loading U-Boot when using MMC/SD in raw mode.
147
148config SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION
149 hex "Partition to use to load U-Boot from"
Tom Rini226498b2017-05-22 19:21:57 +0000150 depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
Dalon Westergreen949123e2017-02-10 17:15:35 -0800151 default 1
152 help
153 Partition on the MMC to load U-Boot from when the MMC is being
154 used in raw mode
155
Dalon Westergreenf0fb4fa2017-02-10 17:15:34 -0800156config SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
157 bool "MMC raw mode: by partition type"
Tom Rini226498b2017-05-22 19:21:57 +0000158 depends on DOS_PARTITION && SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
Dalon Westergreenf0fb4fa2017-02-10 17:15:34 -0800159 help
160 Use partition type for specifying U-Boot partition on MMC/SD in
161 raw mode. U-Boot will be loaded from the first partition of this
162 type to be found.
163
164config SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE
165 hex "Partition Type on the MMC to load U-Boot from"
Tom Rini226498b2017-05-22 19:21:57 +0000166 depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
Dalon Westergreenf0fb4fa2017-02-10 17:15:34 -0800167 help
168 Partition Type on the MMC to load U-Boot from, when the MMC is being
169 used in raw mode.
170
Simon Glass11bde1c2016-09-13 07:05:23 -0600171config SPL_CRC32_SUPPORT
172 bool "Support CRC32"
173 depends on SPL_FIT
174 help
175 Enable this to support CRC32 in FIT images within SPL. This is a
176 32-bit checksum value that can be used to verify images. This is
177 the least secure type of checksum, suitable for detected
178 accidental image corruption. For secure applications you should
179 consider SHA1 or SHA256.
180
181config SPL_MD5_SUPPORT
182 bool "Support MD5"
183 depends on SPL_FIT
184 help
185 Enable this to support MD5 in FIT images within SPL. An MD5
186 checksum is a 128-bit hash value used to check that the image
187 contents have not been corrupted. Note that MD5 is not considered
188 secure as it is possible (with a brute-force attack) to adjust the
189 image while still retaining the same MD5 hash value. For secure
190 applications where images may be changed maliciously, you should
191 consider SHA1 or SHA256.
192
193config SPL_SHA1_SUPPORT
194 bool "Support SHA1"
195 depends on SPL_FIT
Tom Rini089df182017-05-15 12:17:49 -0400196 select SHA1
Simon Glass11bde1c2016-09-13 07:05:23 -0600197 help
198 Enable this to support SHA1 in FIT images within SPL. A SHA1
199 checksum is a 160-bit (20-byte) hash value used to check that the
200 image contents have not been corrupted or maliciously altered.
201 While SHA1 is fairly secure it is coming to the end of its life
202 due to the expanding computing power avaiable to brute-force
203 attacks. For more security, consider SHA256.
204
205config SPL_SHA256_SUPPORT
206 bool "Support SHA256"
207 depends on SPL_FIT
Tom Rini089df182017-05-15 12:17:49 -0400208 select SHA256
Simon Glass11bde1c2016-09-13 07:05:23 -0600209 help
210 Enable this to support SHA256 in FIT images within SPL. A SHA256
211 checksum is a 256-bit (32-byte) hash value used to check that the
212 image contents have not been corrupted. SHA256 is recommended for
213 use in secure applications since (as at 2016) there is no known
214 feasible attack that could produce a 'collision' with differing
215 input data. Use this for the highest security. Note that only the
216 SHA256 variant is supported: SHA512 and others are not currently
217 supported in U-Boot.
218
Simon Glass5e148df2017-01-16 07:03:29 -0700219config SPL_CPU_SUPPORT
220 bool "Support CPU drivers"
Simon Glass5e148df2017-01-16 07:03:29 -0700221 help
222 Enable this to support CPU drivers in SPL. These drivers can set
223 up CPUs and provide information about them such as the model and
224 name. This can be useful in SPL since setting up the CPUs earlier
225 may improve boot performance. Enable this option to build the
226 drivers in drivers/cpu as part of an SPL build.
227
Simon Glass11bde1c2016-09-13 07:05:23 -0600228config SPL_CRYPTO_SUPPORT
229 bool "Support crypto drivers"
Simon Glass11bde1c2016-09-13 07:05:23 -0600230 help
231 Enable crypto drivers in SPL. These drivers can be used to
232 accelerate secure boot processing in secure applications. Enable
233 this option to build the drivers in drivers/crypto as part of an
234 SPL build.
235
236config SPL_HASH_SUPPORT
237 bool "Support hashing drivers"
Tom Rini089df182017-05-15 12:17:49 -0400238 select SHA1
239 select SHA256
Simon Glass11bde1c2016-09-13 07:05:23 -0600240 help
241 Enable hashing drivers in SPL. These drivers can be used to
242 accelerate secure boot processing in secure applications. Enable
243 this option to build system-specific drivers for hash acceleration
244 as part of an SPL build.
245
246config SPL_DMA_SUPPORT
247 bool "Support DMA drivers"
Simon Glass11bde1c2016-09-13 07:05:23 -0600248 help
249 Enable DMA (direct-memory-access) drivers in SPL. These drivers
250 can be used to handle memory-to-peripheral data transfer without
251 the CPU moving the data. Enable this option to build the drivers
252 in drivers/dma as part of an SPL build.
253
254config SPL_DRIVERS_MISC_SUPPORT
255 bool "Support misc drivers"
Simon Glass11bde1c2016-09-13 07:05:23 -0600256 help
257 Enable miscellaneous drivers in SPL. These drivers perform various
258 tasks that don't fall nicely into other categories, Enable this
259 option to build the drivers in drivers/misc as part of an SPL
260 build, for those that support building in SPL (not all drivers do).
261
262config SPL_ENV_SUPPORT
263 bool "Support an environment"
Simon Glass11bde1c2016-09-13 07:05:23 -0600264 help
265 Enable environment support in SPL. The U-Boot environment provides
266 a number of settings (essentially name/value pairs) which can
267 control many aspects of U-Boot's operation. Normally this is not
268 needed in SPL as it has a much simpler task with less
269 configuration. But some boards use this to support 'Falcon' boot
270 on EXT2 and FAT, where SPL boots directly into Linux without
271 starting U-Boot first. Enabling this option will make getenv()
272 and setenv() available in SPL.
273
B, Ravid2d9bdf2016-09-28 14:46:18 +0530274config SPL_SAVEENV
275 bool "Support save environment"
Tom Rini226498b2017-05-22 19:21:57 +0000276 depends on SPL_ENV_SUPPORT
B, Ravid2d9bdf2016-09-28 14:46:18 +0530277 help
278 Enable save environment support in SPL after setenv. By default
279 the saveenv option is not provided in SPL, but some boards need
280 this support in 'Falcon' boot, where SPL need to boot from
281 different images based on environment variable set by OS. For
282 example OS may set "reboot_image" environment variable to
283 "recovery" inorder to boot recovery image by SPL. The SPL read
284 "reboot_image" and act accordingly and change the reboot_image
285 to default mode using setenv and save the environemnt.
286
Simon Glass11bde1c2016-09-13 07:05:23 -0600287config SPL_ETH_SUPPORT
288 bool "Support Ethernet"
289 depends on SPL_ENV_SUPPORT
290 help
291 Enable access to the network subsystem and associated Ethernet
292 drivers in SPL. This permits SPL to load U-Boot over an Ethernet
293 link rather than from an on-board peripheral. Environment support
294 is required since the network stack uses a number of environment
295 variables. See also SPL_NET_SUPPORT.
296
297config SPL_EXT_SUPPORT
298 bool "Support EXT filesystems"
Simon Glass11bde1c2016-09-13 07:05:23 -0600299 help
300 Enable support for EXT2/3/4 filesystems with SPL. This permits
301 U-Boot (or Linux in Falcon mode) to be loaded from an EXT
302 filesystem from within SPL. Support for the underlying block
303 device (e.g. MMC or USB) must be enabled separately.
304
305config SPL_FAT_SUPPORT
306 bool "Support FAT filesystems"
Sekhar Norieedfb892017-06-02 17:53:59 +0530307 select FS_FAT
Simon Glass11bde1c2016-09-13 07:05:23 -0600308 help
309 Enable support for FAT and VFAT filesystems with SPL. This
310 permits U-Boot (or Linux in Falcon mode) to be loaded from a FAT
311 filesystem from within SPL. Support for the underlying block
312 device (e.g. MMC or USB) must be enabled separately.
313
314config SPL_FPGA_SUPPORT
315 bool "Support FPGAs"
Simon Glass11bde1c2016-09-13 07:05:23 -0600316 help
317 Enable support for FPGAs in SPL. Field-programmable Gate Arrays
318 provide software-configurable hardware which is typically used to
319 implement peripherals (such as UARTs, LCD displays, MMC) or
320 accelerate custom processing functions, such as image processing
321 or machine learning. Sometimes it is useful to program the FPGA
322 as early as possible during boot, and this option can enable that
323 within SPL.
324
325config SPL_GPIO_SUPPORT
326 bool "Support GPIO"
Simon Glass11bde1c2016-09-13 07:05:23 -0600327 help
328 Enable support for GPIOs (General-purpose Input/Output) in SPL.
329 GPIOs allow U-Boot to read the state of an input line (high or
330 low) and set the state of an output line. This can be used to
331 drive LEDs, control power to various system parts and read user
332 input. GPIOs can be useful in SPL to enable a 'sign-of-life' LED,
333 for example. Enable this option to build the drivers in
334 drivers/gpio as part of an SPL build.
335
336config SPL_I2C_SUPPORT
337 bool "Support I2C"
Simon Glass11bde1c2016-09-13 07:05:23 -0600338 help
339 Enable support for the I2C (Inter-Integrated Circuit) bus in SPL.
340 I2C works with a clock and data line which can be driven by a
341 one or more masters or slaves. It is a fairly complex bus but is
342 widely used as it only needs two lines for communication. Speeds of
343 400kbps are typical but up to 3.4Mbps is supported by some
344 hardware. I2C can be useful in SPL to configure power management
345 ICs (PMICs) before raising the CPU clock speed, for example.
346 Enable this option to build the drivers in drivers/i2c as part of
347 an SPL build.
348
349config SPL_LIBCOMMON_SUPPORT
350 bool "Support common libraries"
Simon Glass11bde1c2016-09-13 07:05:23 -0600351 help
352 Enable support for common U-Boot libraries within SPL. These
353 libraries include common code to deal with U-Boot images,
354 environment and USB, for example. This option is enabled on many
355 boards. Enable this option to build the code in common/ as part of
356 an SPL build.
357
358config SPL_LIBDISK_SUPPORT
359 bool "Support disk paritions"
Simon Glass11bde1c2016-09-13 07:05:23 -0600360 help
361 Enable support for disk partitions within SPL. 'Disk' is something
362 of a misnomer as it includes non-spinning media such as flash (as
363 used in MMC and USB sticks). Partitions provide a way for a disk
364 to be split up into separate regions, with a partition table placed
365 at the start or end which describes the location and size of each
366 'partition'. These partitions are typically uses as individual block
367 devices, typically with an EXT2 or FAT filesystem in each. This
368 option enables whatever partition support has been enabled in
369 U-Boot to also be used in SPL. It brings in the code in disk/.
370
371config SPL_LIBGENERIC_SUPPORT
372 bool "Support generic libraries"
Simon Glass11bde1c2016-09-13 07:05:23 -0600373 help
374 Enable support for generic U-Boot libraries within SPL. These
375 libraries include generic code to deal with device tree, hashing,
376 printf(), compression and the like. This option is enabled on many
377 boards. Enable this option to build the code in lib/ as part of an
378 SPL build.
379
380config SPL_MMC_SUPPORT
381 bool "Support MMC"
Tom Rini226498b2017-05-22 19:21:57 +0000382 depends on MMC
Simon Glass11bde1c2016-09-13 07:05:23 -0600383 help
384 Enable support for MMC (Multimedia Card) within SPL. This enables
385 the MMC protocol implementation and allows any enabled drivers to
386 be used within SPL. MMC can be used with or without disk partition
387 support depending on the application (SPL_LIBDISK_SUPPORT). Enable
388 this option to build the drivers in drivers/mmc as part of an SPL
389 build.
390
391config SPL_MPC8XXX_INIT_DDR_SUPPORT
392 bool "Support MPC8XXX DDR init"
Simon Glass11bde1c2016-09-13 07:05:23 -0600393 help
394 Enable support for DDR-SDRAM (double-data-rate synchronous dynamic
395 random-access memory) on the MPC8XXX family within SPL. This
396 allows DRAM to be set up before loading U-Boot into that DRAM,
397 where it can run.
398
399config SPL_MTD_SUPPORT
400 bool "Support MTD drivers"
Simon Glass11bde1c2016-09-13 07:05:23 -0600401 help
402 Enable support for MTD (Memory Technology Device) within SPL. MTD
403 provides a block interface over raw NAND and can also be used with
404 SPI flash. This allows SPL to load U-Boot from supported MTD
405 devices. See SPL_NAND_SUPPORT and SPL_ONENAND_SUPPORT for how
406 to enable specific MTD drivers.
407
408config SPL_MUSB_NEW_SUPPORT
409 bool "Support new Mentor Graphics USB"
Simon Glass11bde1c2016-09-13 07:05:23 -0600410 help
411 Enable support for Mentor Graphics USB in SPL. This is a new
412 driver used by some boards. Enable this option to build
413 the drivers in drivers/usb/musb-new as part of an SPL build. The
414 old drivers are in drivers/usb/musb.
415
416config SPL_NAND_SUPPORT
417 bool "Support NAND flash"
Simon Glass11bde1c2016-09-13 07:05:23 -0600418 help
419 Enable support for NAND (Negative AND) flash in SPL. NAND flash
420 can be used to allow SPL to load U-Boot from supported devices.
421 This enables the drivers in drivers/mtd/nand as part of an SPL
422 build.
423
424config SPL_NET_SUPPORT
425 bool "Support networking"
Simon Glass11bde1c2016-09-13 07:05:23 -0600426 help
427 Enable support for network devices (such as Ethernet) in SPL.
428 This permits SPL to load U-Boot over a network link rather than
429 from an on-board peripheral. Environment support is required since
430 the network stack uses a number of environment variables. See also
431 SPL_ETH_SUPPORT.
432
433if SPL_NET_SUPPORT
434config SPL_NET_VCI_STRING
435 string "BOOTP Vendor Class Identifier string sent by SPL"
436 help
437 As defined by RFC 2132 the vendor class identifier field can be
438 sent by the client to identify the vendor type and configuration
439 of a client. This is often used in practice to allow for the DHCP
440 server to specify different files to load depending on if the ROM,
441 SPL or U-Boot itself makes the request
442endif # if SPL_NET_SUPPORT
443
444config SPL_NO_CPU_SUPPORT
445 bool "Drop CPU code in SPL"
Simon Glass11bde1c2016-09-13 07:05:23 -0600446 help
447 This is specific to the ARM926EJ-S CPU. It disables the standard
448 start.S start-up code, presumably so that a replacement can be
449 used on that CPU. You should not enable it unless you know what
450 you are doing.
451
452config SPL_NOR_SUPPORT
453 bool "Support NOR flash"
Simon Glass11bde1c2016-09-13 07:05:23 -0600454 help
455 Enable support for loading U-Boot from memory-mapped NOR (Negative
456 OR) flash in SPL. NOR flash is slow to write but fast to read, and
457 a memory-mapped device makes it very easy to access. Loading from
458 NOR is typically achieved with just a memcpy().
459
Vikas Manochac6d9e9d2017-05-28 12:55:11 -0700460config 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
Simon Glass11bde1c2016-09-13 07:05:23 -0600469config SPL_ONENAND_SUPPORT
470 bool "Support OneNAND flash"
Simon Glass11bde1c2016-09-13 07:05:23 -0600471 help
472 Enable support for OneNAND (Negative AND) flash in SPL. OneNAND is
473 a type of NAND flash and therefore can be used to allow SPL to
474 load U-Boot from supported devices. This enables the drivers in
475 drivers/mtd/onenand as part of an SPL build.
476
Heiko Schocherc20ae2f2016-10-06 07:55:15 +0200477config SPL_OS_BOOT
478 bool "Activate Falcon Mode"
Tom Rini226498b2017-05-22 19:21:57 +0000479 depends on !TI_SECURE_DEVICE
Heiko Schocherc20ae2f2016-10-06 07:55:15 +0200480 default n
481 help
482 Enable booting directly to an OS from SPL.
483 for more info read doc/README.falcon
484
Heiko Schocher29d3bc72016-10-06 07:55:16 +0200485if SPL_OS_BOOT
486config SYS_OS_BASE
487 hex "addr, where OS is found"
Tom Rini226498b2017-05-22 19:21:57 +0000488 depends on SPL_NOR_SUPPORT
Heiko Schocher29d3bc72016-10-06 07:55:16 +0200489 help
490 Specify the address, where the OS image is found, which
491 gets booted.
492
493endif # SPL_OS_BOOT
494
Simon Glass2446b6b2017-01-16 07:03:30 -0700495config SPL_PCI_SUPPORT
496 bool "Support PCI drivers"
Simon Glass2446b6b2017-01-16 07:03:30 -0700497 help
498 Enable support for PCI in SPL. For platforms that need PCI to boot,
499 or must perform some init using PCI in SPL, this provides the
500 necessary driver support. This enables the drivers in drivers/pci
501 as part of an SPL build.
502
Simon Glassbbe41ab2017-01-16 07:03:33 -0700503config SPL_PCH_SUPPORT
504 bool "Support PCH drivers"
Simon Glassbbe41ab2017-01-16 07:03:33 -0700505 help
506 Enable support for PCH (Platform Controller Hub) devices in SPL.
507 These are used to set up GPIOs and the SPI peripheral early in
508 boot. This enables the drivers in drivers/pch as part of an SPL
509 build.
510
Simon Glass11bde1c2016-09-13 07:05:23 -0600511config SPL_POST_MEM_SUPPORT
512 bool "Support POST drivers"
Simon Glass11bde1c2016-09-13 07:05:23 -0600513 help
514 Enable support for POST (Power-on Self Test) in SPL. POST is a
515 procedure that checks that the hardware (CPU or board) appears to
516 be functionally correctly. It is a sanity check that can be
517 performed before booting. This enables the drivers in post/drivers
518 as part of an SPL build.
519
520config SPL_POWER_SUPPORT
521 bool "Support power drivers"
Simon Glass11bde1c2016-09-13 07:05:23 -0600522 help
523 Enable support for power control in SPL. This includes support
524 for PMICs (Power-management Integrated Circuits) and some of the
525 features provided by PMICs. In particular, voltage regulators can
526 be used to enable/disable power and vary its voltage. That can be
527 useful in SPL to turn on boot peripherals and adjust CPU voltage
528 so that the clock speed can be increased. This enables the drivers
529 in drivers/power, drivers/power/pmic and drivers/power/regulator
530 as part of an SPL build.
531
Stefan Agner22802f42016-12-23 07:51:53 +0100532config SPL_RAM_SUPPORT
533 bool "Support booting from RAM"
Stefan Agner22802f42016-12-23 07:51:53 +0100534 default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
535 help
536 Enable booting of an image in RAM. The image can be preloaded or
537 it can be loaded by SPL directly into RAM (e.g. using USB).
538
Stefan Agnerf417d402016-12-23 07:51:52 +0100539config SPL_RAM_DEVICE
540 bool "Support booting from preloaded image in RAM"
Stefan Agner22802f42016-12-23 07:51:53 +0100541 depends on SPL_RAM_SUPPORT
Stefan Agnerf417d402016-12-23 07:51:52 +0100542 default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
543 help
544 Enable booting of an image already loaded in RAM. The image has to
545 be already in memory when SPL takes over, e.g. loaded by the boot
546 ROM.
547
Simon Glass30bf8a02017-01-16 07:03:31 -0700548config SPL_RTC_SUPPORT
549 bool "Support RTC drivers"
Simon Glass30bf8a02017-01-16 07:03:31 -0700550 help
551 Enable RTC (Real-time Clock) support in SPL. This includes support
552 for reading and setting the time. Some RTC devices also have some
553 non-volatile (battery-backed) memory which is accessible if
554 needed. This enables the drivers in drivers/rtc as part of an SPL
555 build.
556
Simon Glass11bde1c2016-09-13 07:05:23 -0600557config SPL_SATA_SUPPORT
558 bool "Support loading from SATA"
Simon Glass11bde1c2016-09-13 07:05:23 -0600559 help
560 Enable support for SATA (Serial AT attachment) in SPL. This allows
561 use of SATA devices such as hard drives and flash drivers for
562 loading U-Boot. SATA is used in higher-end embedded systems and
563 can provide higher performance than MMC , at somewhat higher
564 expense and power consumption. This enables loading from SATA
565 using a configured device.
566
567config SPL_SERIAL_SUPPORT
568 bool "Support serial"
Simon Glass11bde1c2016-09-13 07:05:23 -0600569 help
570 Enable support for serial in SPL. This allows use of a serial UART
571 for displaying messages while SPL is running. It also brings in
572 printf() and panic() functions. This should normally be enabled
573 unless there are space reasons not to. Even then, consider
574 enabling USE_TINY_PRINTF which is a small printf() version.
575
576config SPL_SPI_FLASH_SUPPORT
577 bool "Support SPI flash drivers"
Simon Glass11bde1c2016-09-13 07:05:23 -0600578 help
579 Enable support for using SPI flash in SPL, and loading U-Boot from
580 SPI flash. SPI flash (Serial Peripheral Bus flash) is named after
581 the SPI bus that is used to connect it to a system. It is a simple
582 but fast bidirectional 4-wire bus (clock, chip select and two data
583 lines). This enables the drivers in drivers/mtd/spi as part of an
584 SPL build. This normally requires SPL_SPI_SUPPORT.
585
586config SPL_SPI_SUPPORT
587 bool "Support SPI drivers"
Simon Glass11bde1c2016-09-13 07:05:23 -0600588 help
589 Enable support for using SPI in SPL. This is used for connecting
590 to SPI flash for loading U-Boot. See SPL_SPI_FLASH_SUPPORT for
591 more details on that. The SPI driver provides the transport for
592 data between the SPI flash and the CPU. This option can be used to
593 enable SPI drivers that are needed for other purposes also, such
594 as a SPI PMIC.
595
Simon Glass4a6c81f2017-01-16 07:03:32 -0700596config SPL_TIMER_SUPPORT
597 bool "Support timer drivers"
Simon Glass4a6c81f2017-01-16 07:03:32 -0700598 help
599 Enable support for timer drivers in SPL. These can be used to get
600 a timer value when in SPL, or perhaps for implementing a delay
601 function. This enables the drivers in drivers/timer as part of an
602 SPL build.
603
Simon Glass11bde1c2016-09-13 07:05:23 -0600604config SPL_USB_HOST_SUPPORT
605 bool "Support USB host drivers"
Simon Glass11bde1c2016-09-13 07:05:23 -0600606 help
607 Enable access to USB (Universal Serial Bus) host devices so that
608 SPL can load U-Boot from a connected USB peripheral, such as a USB
609 flash stick. While USB takes a little longer to start up than most
610 buses, it is very flexible since many different types of storage
611 device can be attached. This option enables the drivers in
612 drivers/usb/host as part of an SPL build.
613
614config SPL_USB_SUPPORT
615 bool "Support loading from USB"
616 depends on SPL_USB_HOST_SUPPORT
617 help
618 Enable support for USB devices in SPL. This allows use of USB
619 devices such as hard drives and flash drivers for loading U-Boot.
620 The actual drivers are enabled separately using the normal U-Boot
621 config options. This enables loading from USB using a configured
622 device.
623
Stefan Agnere94793c2016-11-21 10:58:53 -0800624config SPL_USB_GADGET_SUPPORT
625 bool "Suppport USB Gadget drivers"
Stefan Agnere94793c2016-11-21 10:58:53 -0800626 help
627 Enable USB Gadget API which allows to enable USB device functions
628 in SPL.
629
630if SPL_USB_GADGET_SUPPORT
631
632config SPL_USBETH_SUPPORT
633 bool "Support USB Ethernet drivers"
634 help
635 Enable access to the USB network subsystem and associated
636 drivers in SPL. This permits SPL to load U-Boot over a
637 USB-connected Ethernet link (such as a USB Ethernet dongle) rather
638 than from an onboard peripheral. Environment support is required
639 since the network stack uses a number of environment variables.
640 See also SPL_NET_SUPPORT and SPL_ETH_SUPPORT.
641
Stefan Agner59917032016-11-21 10:58:52 -0800642config SPL_DFU_SUPPORT
643 bool "Support DFU (Device Firmware Upgarde)"
Stefan Agner59917032016-11-21 10:58:52 -0800644 select SPL_HASH_SUPPORT
B, Ravi66928af2017-05-04 15:45:29 +0530645 select SPL_DFU_NO_RESET
B, Ravi1b19cbd2017-05-04 15:45:28 +0530646 depends on SPL_RAM_SUPPORT
Stefan Agner59917032016-11-21 10:58:52 -0800647 help
648 This feature enables the DFU (Device Firmware Upgarde) in SPL with
649 RAM memory device support. The ROM code will load and execute
650 the SPL built with dfu. The user can load binaries (u-boot/kernel) to
651 selected device partition from host-pc using dfu-utils.
652 This feature is useful to flash the binaries to factory or bare-metal
653 boards using USB interface.
654
655choice
656 bool "DFU device selection"
657 depends on SPL_DFU_SUPPORT
658
659config SPL_DFU_RAM
660 bool "RAM device"
Stefan Agner22802f42016-12-23 07:51:53 +0100661 depends on SPL_DFU_SUPPORT && SPL_RAM_SUPPORT
Stefan Agner59917032016-11-21 10:58:52 -0800662 help
663 select RAM/DDR memory device for loading binary images
664 (u-boot/kernel) to the selected device partition using
665 DFU and execute the u-boot/kernel from RAM.
666
667endchoice
668
Stefan Agnere94793c2016-11-21 10:58:53 -0800669endif
670
Simon Glass11bde1c2016-09-13 07:05:23 -0600671config SPL_WATCHDOG_SUPPORT
672 bool "Support watchdog drivers"
Simon Glass11bde1c2016-09-13 07:05:23 -0600673 help
674 Enable support for watchdog drivers in SPL. A watchdog is
675 typically a hardware peripheral which can reset the system when it
676 detects no activity for a while (such as a software crash). This
677 enables the drivers in drivers/watchdog as part of an SPL build.
678
679config SPL_YMODEM_SUPPORT
680 bool "Support loading using Ymodem"
Simon Glass11bde1c2016-09-13 07:05:23 -0600681 help
682 While loading from serial is slow it can be a useful backup when
683 there is no other option. The Ymodem protocol provides a reliable
684 means of transmitting U-Boot over a serial line for using in SPL,
685 with a checksum to ensure correctness.
686
Kever Yangbcc17262017-05-05 11:47:45 +0800687config SPL_ATF_SUPPORT
688 bool "Support ARM Trusted Firmware"
Tom Rini226498b2017-05-22 19:21:57 +0000689 depends on ARM64
Kever Yangbcc17262017-05-05 11:47:45 +0800690 help
691 ATF(ARM Trusted Firmware) is a component for ARM arch64 which which
692 is loaded by SPL(which is considered as BL2 in ATF terminology).
693 More detail at: https://github.com/ARM-software/arm-trusted-firmware
694
695config SPL_ATF_TEXT_BASE
696 depends on SPL_ATF_SUPPORT
697 hex "ATF BL31 base address"
698 help
699 This is the base address in memory for ATF BL31 text and entry point.
700
Tom Rini226498b2017-05-22 19:21:57 +0000701config TPL
702 bool
703 depends on SUPPORT_TPL
704 prompt "Enable TPL"
705 help
706 If you want to build TPL as well as the normal image and SPL, say Y.
707
708if TPL
709
Philipp Tomsicha954fa32017-07-04 14:24:53 +0200710config TPL_BOOTROM_SUPPORT
711 bool "Support returning to the BOOTROM (from TPL)"
712 help
713 Some platforms (e.g. the Rockchip RK3368) provide support in their
714 ROM for loading the next boot-stage after performing basic setup
715 from the TPL stage.
716
717 Enable this option, to return to the BOOTROM through the
718 BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
719 boot device list, if not implemented for a given board)
720
Philipp Tomsichc3916e72017-07-04 14:27:02 +0200721config TPL_DRIVERS_MISC_SUPPORT
722 bool "Support misc drivers in TPL"
723 help
724 Enable miscellaneous drivers in TPL. These drivers perform various
725 tasks that don't fall nicely into other categories, Enable this
726 option to build the drivers in drivers/misc as part of an TPL
727 build, for those that support building in TPL (not all drivers do).
728
Simon Glassf73329e2016-09-12 23:18:27 -0600729config TPL_ENV_SUPPORT
730 bool "Support an environment"
Simon Glassf73329e2016-09-12 23:18:27 -0600731 help
732 Enable environment support in TPL. See SPL_ENV_SUPPORT for details.
733
734config TPL_I2C_SUPPORT
735 bool "Support I2C"
Simon Glassf73329e2016-09-12 23:18:27 -0600736 help
Philipp Tomsich616bd092017-07-28 17:03:03 +0200737 Enable support for the I2C bus in TPL. See SPL_I2C_SUPPORT for
Simon Glassf73329e2016-09-12 23:18:27 -0600738 details.
739
740config TPL_LIBCOMMON_SUPPORT
741 bool "Support common libraries"
Simon Glassf73329e2016-09-12 23:18:27 -0600742 help
743 Enable support for common U-Boot libraries within TPL. See
744 SPL_LIBCOMMON_SUPPORT for details.
745
746config TPL_LIBGENERIC_SUPPORT
747 bool "Support generic libraries"
Simon Glassf73329e2016-09-12 23:18:27 -0600748 help
749 Enable support for generic U-Boot libraries within TPL. See
750 SPL_LIBGENERIC_SUPPORT for details.
751
752config TPL_MPC8XXX_INIT_DDR_SUPPORT
753 bool "Support MPC8XXX DDR init"
Simon Glassf73329e2016-09-12 23:18:27 -0600754 help
755 Enable support for DDR-SDRAM on the MPC8XXX family within TPL. See
756 SPL_MPC8XXX_INIT_DDR_SUPPORT for details.
757
758config TPL_MMC_SUPPORT
759 bool "Support MMC"
Tom Rini226498b2017-05-22 19:21:57 +0000760 depends on MMC
Simon Glassf73329e2016-09-12 23:18:27 -0600761 help
762 Enable support for MMC within TPL. See SPL_MMC_SUPPORT for details.
763
764config TPL_NAND_SUPPORT
765 bool "Support NAND flash"
Simon Glassf73329e2016-09-12 23:18:27 -0600766 help
Philipp Tomsich616bd092017-07-28 17:03:03 +0200767 Enable support for NAND in TPL. See SPL_NAND_SUPPORT for details.
Simon Glassf73329e2016-09-12 23:18:27 -0600768
769config TPL_SERIAL_SUPPORT
770 bool "Support serial"
Simon Glassf73329e2016-09-12 23:18:27 -0600771 help
Philipp Tomsich616bd092017-07-28 17:03:03 +0200772 Enable support for serial in TPL. See SPL_SERIAL_SUPPORT for
Simon Glassf73329e2016-09-12 23:18:27 -0600773 details.
774
775config TPL_SPI_FLASH_SUPPORT
776 bool "Support SPI flash drivers"
Simon Glassf73329e2016-09-12 23:18:27 -0600777 help
Philipp Tomsich616bd092017-07-28 17:03:03 +0200778 Enable support for using SPI flash in TPL. See SPL_SPI_FLASH_SUPPORT
Simon Glassf73329e2016-09-12 23:18:27 -0600779 for details.
780
781config TPL_SPI_SUPPORT
782 bool "Support SPI drivers"
Simon Glassf73329e2016-09-12 23:18:27 -0600783 help
Philipp Tomsich616bd092017-07-28 17:03:03 +0200784 Enable support for using SPI in TPL. See SPL_SPI_SUPPORT for
Simon Glassf73329e2016-09-12 23:18:27 -0600785 details.
786
Tom Rini226498b2017-05-22 19:21:57 +0000787endif # TPL
788
789endif # SPL
Simon Glass11bde1c2016-09-13 07:05:23 -0600790endmenu