blob: 732690cbc3a6b31b3b1004c6b660958168015262 [file] [log] [blame]
Simon Glass1e3911a2016-09-13 07:05:23 -06001menu "SPL / TPL"
2
Simon Glassffe19762016-09-12 23:18:22 -06003config SUPPORT_SPL
4 bool
5
6config SUPPORT_TPL
7 bool
8
B, Ravi4cca5cf2017-05-04 15:45:29 +05309config SPL_DFU_NO_RESET
10 bool
11
Simon Glassffe19762016-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 Rini3c82f982017-05-22 19:21:57 +000019if SPL
20
Ley Foon Tan48fcc4a2017-05-03 17:13:32 +080021config SPL_BOARD_INIT
Ley Foon Tan48fcc4a2017-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
Andrew F. Davisb4be3c32017-02-16 11:18:38 -060028config SPL_RAW_IMAGE_SUPPORT
29 bool "Support SPL loading and booting of RAW images"
Andrew F. Davisb4be3c32017-02-16 11:18:38 -060030 default n if (ARCH_MX6 && (SPL_MMC_SUPPORT || SPL_SATA_SUPPORT))
Andrew F. Davis1c97f1e2017-02-16 11:18:40 -060031 default y if !TI_SECURE_DEVICE
Andrew F. Davisb4be3c32017-02-16 11:18:38 -060032 help
33 SPL will support loading and booting a RAW image when this option
34 is y. If this is not set, SPL will move on to other available
35 boot media to find a suitable image.
36
Andrew F. Davis74630342017-02-16 11:18:39 -060037config SPL_LEGACY_IMAGE_SUPPORT
38 bool "Support SPL loading and booting of Legacy images"
Andrew F. Davis1c97f1e2017-02-16 11:18:40 -060039 default y if !TI_SECURE_DEVICE
Andrew F. Davis74630342017-02-16 11:18:39 -060040 help
41 SPL will support loading and booting Legacy images when this option
42 is y. If this is not set, SPL will move on to other available
43 boot media to find a suitable image.
44
Simon Glassffe19762016-09-12 23:18:22 -060045config SPL_SYS_MALLOC_SIMPLE
46 bool
Simon Glassffe19762016-09-12 23:18:22 -060047 prompt "Only use malloc_simple functions in the SPL"
48 help
49 Say Y here to only use the *_simple malloc functions from
50 malloc_simple.c, rather then using the versions from dlmalloc.c;
51 this will make the SPL binary smaller at the cost of more heap
52 usage as the *_simple malloc functions do not re-use free-ed mem.
53
54config SPL_STACK_R
Simon Glassffe19762016-09-12 23:18:22 -060055 bool "Enable SDRAM location for SPL stack"
56 help
57 SPL starts off execution in SRAM and thus typically has only a small
58 stack available. Since SPL sets up DRAM while in its board_init_f()
59 function, it is possible for the stack to move there before
60 board_init_r() is reached. This option enables a special SDRAM
61 location for the SPL stack. U-Boot SPL switches to this after
62 board_init_f() completes, and before board_init_r() starts.
63
64config SPL_STACK_R_ADDR
65 depends on SPL_STACK_R
66 hex "SDRAM location for SPL stack"
67 help
68 Specify the address in SDRAM for the SPL stack. This will be set up
69 before board_init_r() is called.
70
71config SPL_STACK_R_MALLOC_SIMPLE_LEN
72 depends on SPL_STACK_R && SPL_SYS_MALLOC_SIMPLE
73 hex "Size of malloc_simple heap after switching to DRAM SPL stack"
74 default 0x100000
75 help
76 Specify the amount of the stack to use as memory pool for
77 malloc_simple after switching the stack to DRAM. This may be set
78 to give board_init_r() a larger heap then the initial heap in
79 SRAM which is limited to SYS_MALLOC_F_LEN bytes.
80
81config SPL_SEPARATE_BSS
Simon Glassffe19762016-09-12 23:18:22 -060082 bool "BSS section is in a different memory region from text"
83 help
84 Some platforms need a large BSS region in SPL and can provide this
85 because RAM is already set up. In this case BSS can be moved to RAM.
86 This option should then be enabled so that the correct device tree
87 location is used. Normally we put the device tree at the end of BSS
88 but with this option enabled, it goes at _image_binary_end.
89
Simon Glassf481ab12016-09-24 18:19:56 -060090config SPL_DISPLAY_PRINT
Simon Glassf481ab12016-09-24 18:19:56 -060091 bool "Display a board-specific message in SPL"
92 help
93 If this option is enabled, U-Boot will call the function
94 spl_display_print() immediately after displaying the SPL console
95 banner ("U-Boot SPL ..."). This function should be provided by
96 the board.
97
Semen Protsenko7e3ba482016-11-16 19:19:05 +020098config SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
99 bool "MMC raw mode: by sector"
Semen Protsenko7e3ba482016-11-16 19:19:05 +0200100 default y if ARCH_SUNXI || ARCH_DAVINCI || ARCH_UNIPHIER ||ARCH_MX6 || \
101 ARCH_ROCKCHIP || ARCH_MVEBU || ARCH_SOCFPGA || \
102 ARCH_AT91 || ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || \
103 OMAP44XX || OMAP54XX || AM33XX || AM43XX
104 help
105 Use sector number for specifying U-Boot location on MMC/SD in
106 raw mode.
107
108config SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
109 hex "Address on the MMC to load U-Boot from"
Tom Rini3c82f982017-05-22 19:21:57 +0000110 depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
Semen Protsenko7e3ba482016-11-16 19:19:05 +0200111 default 0x50 if ARCH_SUNXI
112 default 0x75 if ARCH_DAVINCI
Semen Protsenko7e3ba482016-11-16 19:19:05 +0200113 default 0x8a if ARCH_MX6
Masahiro Yamada43ccfaf2017-01-28 06:53:53 +0900114 default 0x100 if ARCH_ROCKCHIP || ARCH_UNIPHIER
Semen Protsenko7e3ba482016-11-16 19:19:05 +0200115 default 0x140 if ARCH_MVEBU
116 default 0x200 if ARCH_SOCFPGA || ARCH_AT91
117 default 0x300 if ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || OMAP44XX || \
118 OMAP54XX || AM33XX || AM43XX
119 help
120 Address on the MMC to load U-Boot from, when the MMC is being used
121 in raw mode. Units: MMC sectors (1 sector = 512 bytes).
122
Dalon Westergreenf5ba9852017-02-10 17:15:35 -0800123config SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
124 bool "MMC Raw mode: by partition"
Dalon Westergreenf5ba9852017-02-10 17:15:35 -0800125 help
126 Use a partition for loading U-Boot when using MMC/SD in raw mode.
127
128config SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION
129 hex "Partition to use to load U-Boot from"
Tom Rini3c82f982017-05-22 19:21:57 +0000130 depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
Dalon Westergreenf5ba9852017-02-10 17:15:35 -0800131 default 1
132 help
133 Partition on the MMC to load U-Boot from when the MMC is being
134 used in raw mode
135
Dalon Westergreen8d770f42017-02-10 17:15:34 -0800136config SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
137 bool "MMC raw mode: by partition type"
Tom Rini3c82f982017-05-22 19:21:57 +0000138 depends on DOS_PARTITION && SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
Dalon Westergreen8d770f42017-02-10 17:15:34 -0800139 help
140 Use partition type for specifying U-Boot partition on MMC/SD in
141 raw mode. U-Boot will be loaded from the first partition of this
142 type to be found.
143
144config SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE
145 hex "Partition Type on the MMC to load U-Boot from"
Tom Rini3c82f982017-05-22 19:21:57 +0000146 depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
Dalon Westergreen8d770f42017-02-10 17:15:34 -0800147 help
148 Partition Type on the MMC to load U-Boot from, when the MMC is being
149 used in raw mode.
150
Simon Glass1e3911a2016-09-13 07:05:23 -0600151config SPL_CRC32_SUPPORT
152 bool "Support CRC32"
153 depends on SPL_FIT
154 help
155 Enable this to support CRC32 in FIT images within SPL. This is a
156 32-bit checksum value that can be used to verify images. This is
157 the least secure type of checksum, suitable for detected
158 accidental image corruption. For secure applications you should
159 consider SHA1 or SHA256.
160
161config SPL_MD5_SUPPORT
162 bool "Support MD5"
163 depends on SPL_FIT
164 help
165 Enable this to support MD5 in FIT images within SPL. An MD5
166 checksum is a 128-bit hash value used to check that the image
167 contents have not been corrupted. Note that MD5 is not considered
168 secure as it is possible (with a brute-force attack) to adjust the
169 image while still retaining the same MD5 hash value. For secure
170 applications where images may be changed maliciously, you should
171 consider SHA1 or SHA256.
172
173config SPL_SHA1_SUPPORT
174 bool "Support SHA1"
175 depends on SPL_FIT
Tom Rini5bdd9192017-05-15 12:17:49 -0400176 select SHA1
Simon Glass1e3911a2016-09-13 07:05:23 -0600177 help
178 Enable this to support SHA1 in FIT images within SPL. A SHA1
179 checksum is a 160-bit (20-byte) hash value used to check that the
180 image contents have not been corrupted or maliciously altered.
181 While SHA1 is fairly secure it is coming to the end of its life
182 due to the expanding computing power avaiable to brute-force
183 attacks. For more security, consider SHA256.
184
185config SPL_SHA256_SUPPORT
186 bool "Support SHA256"
187 depends on SPL_FIT
Tom Rini5bdd9192017-05-15 12:17:49 -0400188 select SHA256
Simon Glass1e3911a2016-09-13 07:05:23 -0600189 help
190 Enable this to support SHA256 in FIT images within SPL. A SHA256
191 checksum is a 256-bit (32-byte) hash value used to check that the
192 image contents have not been corrupted. SHA256 is recommended for
193 use in secure applications since (as at 2016) there is no known
194 feasible attack that could produce a 'collision' with differing
195 input data. Use this for the highest security. Note that only the
196 SHA256 variant is supported: SHA512 and others are not currently
197 supported in U-Boot.
198
Simon Glasseca677f2017-01-16 07:03:29 -0700199config SPL_CPU_SUPPORT
200 bool "Support CPU drivers"
Simon Glasseca677f2017-01-16 07:03:29 -0700201 help
202 Enable this to support CPU drivers in SPL. These drivers can set
203 up CPUs and provide information about them such as the model and
204 name. This can be useful in SPL since setting up the CPUs earlier
205 may improve boot performance. Enable this option to build the
206 drivers in drivers/cpu as part of an SPL build.
207
Simon Glass1e3911a2016-09-13 07:05:23 -0600208config SPL_CRYPTO_SUPPORT
209 bool "Support crypto drivers"
Simon Glass1e3911a2016-09-13 07:05:23 -0600210 help
211 Enable crypto drivers in SPL. These drivers can be used to
212 accelerate secure boot processing in secure applications. Enable
213 this option to build the drivers in drivers/crypto as part of an
214 SPL build.
215
216config SPL_HASH_SUPPORT
217 bool "Support hashing drivers"
Tom Rini5bdd9192017-05-15 12:17:49 -0400218 select SHA1
219 select SHA256
Simon Glass1e3911a2016-09-13 07:05:23 -0600220 help
221 Enable hashing drivers in SPL. These drivers can be used to
222 accelerate secure boot processing in secure applications. Enable
223 this option to build system-specific drivers for hash acceleration
224 as part of an SPL build.
225
226config SPL_DMA_SUPPORT
227 bool "Support DMA drivers"
Simon Glass1e3911a2016-09-13 07:05:23 -0600228 help
229 Enable DMA (direct-memory-access) drivers in SPL. These drivers
230 can be used to handle memory-to-peripheral data transfer without
231 the CPU moving the data. Enable this option to build the drivers
232 in drivers/dma as part of an SPL build.
233
234config SPL_DRIVERS_MISC_SUPPORT
235 bool "Support misc drivers"
Simon Glass1e3911a2016-09-13 07:05:23 -0600236 help
237 Enable miscellaneous drivers in SPL. These drivers perform various
238 tasks that don't fall nicely into other categories, Enable this
239 option to build the drivers in drivers/misc as part of an SPL
240 build, for those that support building in SPL (not all drivers do).
241
242config SPL_ENV_SUPPORT
243 bool "Support an environment"
Simon Glass1e3911a2016-09-13 07:05:23 -0600244 help
245 Enable environment support in SPL. The U-Boot environment provides
246 a number of settings (essentially name/value pairs) which can
247 control many aspects of U-Boot's operation. Normally this is not
248 needed in SPL as it has a much simpler task with less
249 configuration. But some boards use this to support 'Falcon' boot
250 on EXT2 and FAT, where SPL boots directly into Linux without
251 starting U-Boot first. Enabling this option will make getenv()
252 and setenv() available in SPL.
253
B, Ravie94b0242016-09-28 14:46:18 +0530254config SPL_SAVEENV
255 bool "Support save environment"
Tom Rini3c82f982017-05-22 19:21:57 +0000256 depends on SPL_ENV_SUPPORT
B, Ravie94b0242016-09-28 14:46:18 +0530257 help
258 Enable save environment support in SPL after setenv. By default
259 the saveenv option is not provided in SPL, but some boards need
260 this support in 'Falcon' boot, where SPL need to boot from
261 different images based on environment variable set by OS. For
262 example OS may set "reboot_image" environment variable to
263 "recovery" inorder to boot recovery image by SPL. The SPL read
264 "reboot_image" and act accordingly and change the reboot_image
265 to default mode using setenv and save the environemnt.
266
Simon Glass1e3911a2016-09-13 07:05:23 -0600267config SPL_ETH_SUPPORT
268 bool "Support Ethernet"
269 depends on SPL_ENV_SUPPORT
270 help
271 Enable access to the network subsystem and associated Ethernet
272 drivers in SPL. This permits SPL to load U-Boot over an Ethernet
273 link rather than from an on-board peripheral. Environment support
274 is required since the network stack uses a number of environment
275 variables. See also SPL_NET_SUPPORT.
276
277config SPL_EXT_SUPPORT
278 bool "Support EXT filesystems"
Simon Glass1e3911a2016-09-13 07:05:23 -0600279 help
280 Enable support for EXT2/3/4 filesystems with SPL. This permits
281 U-Boot (or Linux in Falcon mode) to be loaded from an EXT
282 filesystem from within SPL. Support for the underlying block
283 device (e.g. MMC or USB) must be enabled separately.
284
285config SPL_FAT_SUPPORT
286 bool "Support FAT filesystems"
Sekhar Nori1909a7b2017-06-02 17:53:59 +0530287 select FS_FAT
Simon Glass1e3911a2016-09-13 07:05:23 -0600288 help
289 Enable support for FAT and VFAT filesystems with SPL. This
290 permits U-Boot (or Linux in Falcon mode) to be loaded from a FAT
291 filesystem from within SPL. Support for the underlying block
292 device (e.g. MMC or USB) must be enabled separately.
293
294config SPL_FPGA_SUPPORT
295 bool "Support FPGAs"
Simon Glass1e3911a2016-09-13 07:05:23 -0600296 help
297 Enable support for FPGAs in SPL. Field-programmable Gate Arrays
298 provide software-configurable hardware which is typically used to
299 implement peripherals (such as UARTs, LCD displays, MMC) or
300 accelerate custom processing functions, such as image processing
301 or machine learning. Sometimes it is useful to program the FPGA
302 as early as possible during boot, and this option can enable that
303 within SPL.
304
305config SPL_GPIO_SUPPORT
306 bool "Support GPIO"
Simon Glass1e3911a2016-09-13 07:05:23 -0600307 help
308 Enable support for GPIOs (General-purpose Input/Output) in SPL.
309 GPIOs allow U-Boot to read the state of an input line (high or
310 low) and set the state of an output line. This can be used to
311 drive LEDs, control power to various system parts and read user
312 input. GPIOs can be useful in SPL to enable a 'sign-of-life' LED,
313 for example. Enable this option to build the drivers in
314 drivers/gpio as part of an SPL build.
315
316config SPL_I2C_SUPPORT
317 bool "Support I2C"
Simon Glass1e3911a2016-09-13 07:05:23 -0600318 help
319 Enable support for the I2C (Inter-Integrated Circuit) bus in SPL.
320 I2C works with a clock and data line which can be driven by a
321 one or more masters or slaves. It is a fairly complex bus but is
322 widely used as it only needs two lines for communication. Speeds of
323 400kbps are typical but up to 3.4Mbps is supported by some
324 hardware. I2C can be useful in SPL to configure power management
325 ICs (PMICs) before raising the CPU clock speed, for example.
326 Enable this option to build the drivers in drivers/i2c as part of
327 an SPL build.
328
329config SPL_LIBCOMMON_SUPPORT
330 bool "Support common libraries"
Simon Glass1e3911a2016-09-13 07:05:23 -0600331 help
332 Enable support for common U-Boot libraries within SPL. These
333 libraries include common code to deal with U-Boot images,
334 environment and USB, for example. This option is enabled on many
335 boards. Enable this option to build the code in common/ as part of
336 an SPL build.
337
338config SPL_LIBDISK_SUPPORT
339 bool "Support disk paritions"
Simon Glass1e3911a2016-09-13 07:05:23 -0600340 help
341 Enable support for disk partitions within SPL. 'Disk' is something
342 of a misnomer as it includes non-spinning media such as flash (as
343 used in MMC and USB sticks). Partitions provide a way for a disk
344 to be split up into separate regions, with a partition table placed
345 at the start or end which describes the location and size of each
346 'partition'. These partitions are typically uses as individual block
347 devices, typically with an EXT2 or FAT filesystem in each. This
348 option enables whatever partition support has been enabled in
349 U-Boot to also be used in SPL. It brings in the code in disk/.
350
351config SPL_LIBGENERIC_SUPPORT
352 bool "Support generic libraries"
Simon Glass1e3911a2016-09-13 07:05:23 -0600353 help
354 Enable support for generic U-Boot libraries within SPL. These
355 libraries include generic code to deal with device tree, hashing,
356 printf(), compression and the like. This option is enabled on many
357 boards. Enable this option to build the code in lib/ as part of an
358 SPL build.
359
360config SPL_MMC_SUPPORT
361 bool "Support MMC"
Tom Rini3c82f982017-05-22 19:21:57 +0000362 depends on MMC
Simon Glass1e3911a2016-09-13 07:05:23 -0600363 help
364 Enable support for MMC (Multimedia Card) within SPL. This enables
365 the MMC protocol implementation and allows any enabled drivers to
366 be used within SPL. MMC can be used with or without disk partition
367 support depending on the application (SPL_LIBDISK_SUPPORT). Enable
368 this option to build the drivers in drivers/mmc as part of an SPL
369 build.
370
371config SPL_MPC8XXX_INIT_DDR_SUPPORT
372 bool "Support MPC8XXX DDR init"
Simon Glass1e3911a2016-09-13 07:05:23 -0600373 help
374 Enable support for DDR-SDRAM (double-data-rate synchronous dynamic
375 random-access memory) on the MPC8XXX family within SPL. This
376 allows DRAM to be set up before loading U-Boot into that DRAM,
377 where it can run.
378
379config SPL_MTD_SUPPORT
380 bool "Support MTD drivers"
Simon Glass1e3911a2016-09-13 07:05:23 -0600381 help
382 Enable support for MTD (Memory Technology Device) within SPL. MTD
383 provides a block interface over raw NAND and can also be used with
384 SPI flash. This allows SPL to load U-Boot from supported MTD
385 devices. See SPL_NAND_SUPPORT and SPL_ONENAND_SUPPORT for how
386 to enable specific MTD drivers.
387
388config SPL_MUSB_NEW_SUPPORT
389 bool "Support new Mentor Graphics USB"
Simon Glass1e3911a2016-09-13 07:05:23 -0600390 help
391 Enable support for Mentor Graphics USB in SPL. This is a new
392 driver used by some boards. Enable this option to build
393 the drivers in drivers/usb/musb-new as part of an SPL build. The
394 old drivers are in drivers/usb/musb.
395
396config SPL_NAND_SUPPORT
397 bool "Support NAND flash"
Simon Glass1e3911a2016-09-13 07:05:23 -0600398 help
399 Enable support for NAND (Negative AND) flash in SPL. NAND flash
400 can be used to allow SPL to load U-Boot from supported devices.
401 This enables the drivers in drivers/mtd/nand as part of an SPL
402 build.
403
404config SPL_NET_SUPPORT
405 bool "Support networking"
Simon Glass1e3911a2016-09-13 07:05:23 -0600406 help
407 Enable support for network devices (such as Ethernet) in SPL.
408 This permits SPL to load U-Boot over a network link rather than
409 from an on-board peripheral. Environment support is required since
410 the network stack uses a number of environment variables. See also
411 SPL_ETH_SUPPORT.
412
413if SPL_NET_SUPPORT
414config SPL_NET_VCI_STRING
415 string "BOOTP Vendor Class Identifier string sent by SPL"
416 help
417 As defined by RFC 2132 the vendor class identifier field can be
418 sent by the client to identify the vendor type and configuration
419 of a client. This is often used in practice to allow for the DHCP
420 server to specify different files to load depending on if the ROM,
421 SPL or U-Boot itself makes the request
422endif # if SPL_NET_SUPPORT
423
424config SPL_NO_CPU_SUPPORT
425 bool "Drop CPU code in SPL"
Simon Glass1e3911a2016-09-13 07:05:23 -0600426 help
427 This is specific to the ARM926EJ-S CPU. It disables the standard
428 start.S start-up code, presumably so that a replacement can be
429 used on that CPU. You should not enable it unless you know what
430 you are doing.
431
432config SPL_NOR_SUPPORT
433 bool "Support NOR flash"
Simon Glass1e3911a2016-09-13 07:05:23 -0600434 help
435 Enable support for loading U-Boot from memory-mapped NOR (Negative
436 OR) flash in SPL. NOR flash is slow to write but fast to read, and
437 a memory-mapped device makes it very easy to access. Loading from
438 NOR is typically achieved with just a memcpy().
439
440config SPL_ONENAND_SUPPORT
441 bool "Support OneNAND flash"
Simon Glass1e3911a2016-09-13 07:05:23 -0600442 help
443 Enable support for OneNAND (Negative AND) flash in SPL. OneNAND is
444 a type of NAND flash and therefore can be used to allow SPL to
445 load U-Boot from supported devices. This enables the drivers in
446 drivers/mtd/onenand as part of an SPL build.
447
Heiko Schocher1d12ba22016-10-06 07:55:15 +0200448config SPL_OS_BOOT
449 bool "Activate Falcon Mode"
Tom Rini3c82f982017-05-22 19:21:57 +0000450 depends on !TI_SECURE_DEVICE
Heiko Schocher1d12ba22016-10-06 07:55:15 +0200451 default n
452 help
453 Enable booting directly to an OS from SPL.
454 for more info read doc/README.falcon
455
Heiko Schocher65928932016-10-06 07:55:16 +0200456if SPL_OS_BOOT
457config SYS_OS_BASE
458 hex "addr, where OS is found"
Tom Rini3c82f982017-05-22 19:21:57 +0000459 depends on SPL_NOR_SUPPORT
Heiko Schocher65928932016-10-06 07:55:16 +0200460 help
461 Specify the address, where the OS image is found, which
462 gets booted.
463
464endif # SPL_OS_BOOT
465
Simon Glass6569f3a2017-01-16 07:03:30 -0700466config SPL_PCI_SUPPORT
467 bool "Support PCI drivers"
Simon Glass6569f3a2017-01-16 07:03:30 -0700468 help
469 Enable support for PCI in SPL. For platforms that need PCI to boot,
470 or must perform some init using PCI in SPL, this provides the
471 necessary driver support. This enables the drivers in drivers/pci
472 as part of an SPL build.
473
Simon Glass36258a52017-01-16 07:03:33 -0700474config SPL_PCH_SUPPORT
475 bool "Support PCH drivers"
Simon Glass36258a52017-01-16 07:03:33 -0700476 help
477 Enable support for PCH (Platform Controller Hub) devices in SPL.
478 These are used to set up GPIOs and the SPI peripheral early in
479 boot. This enables the drivers in drivers/pch as part of an SPL
480 build.
481
Simon Glass1e3911a2016-09-13 07:05:23 -0600482config SPL_POST_MEM_SUPPORT
483 bool "Support POST drivers"
Simon Glass1e3911a2016-09-13 07:05:23 -0600484 help
485 Enable support for POST (Power-on Self Test) in SPL. POST is a
486 procedure that checks that the hardware (CPU or board) appears to
487 be functionally correctly. It is a sanity check that can be
488 performed before booting. This enables the drivers in post/drivers
489 as part of an SPL build.
490
491config SPL_POWER_SUPPORT
492 bool "Support power drivers"
Simon Glass1e3911a2016-09-13 07:05:23 -0600493 help
494 Enable support for power control in SPL. This includes support
495 for PMICs (Power-management Integrated Circuits) and some of the
496 features provided by PMICs. In particular, voltage regulators can
497 be used to enable/disable power and vary its voltage. That can be
498 useful in SPL to turn on boot peripherals and adjust CPU voltage
499 so that the clock speed can be increased. This enables the drivers
500 in drivers/power, drivers/power/pmic and drivers/power/regulator
501 as part of an SPL build.
502
Stefan Agnercd01e642016-12-23 07:51:53 +0100503config SPL_RAM_SUPPORT
504 bool "Support booting from RAM"
Stefan Agnercd01e642016-12-23 07:51:53 +0100505 default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
506 help
507 Enable booting of an image in RAM. The image can be preloaded or
508 it can be loaded by SPL directly into RAM (e.g. using USB).
509
Stefan Agnere2eaac12016-12-23 07:51:52 +0100510config SPL_RAM_DEVICE
511 bool "Support booting from preloaded image in RAM"
Stefan Agnercd01e642016-12-23 07:51:53 +0100512 depends on SPL_RAM_SUPPORT
Stefan Agnere2eaac12016-12-23 07:51:52 +0100513 default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
514 help
515 Enable booting of an image already loaded in RAM. The image has to
516 be already in memory when SPL takes over, e.g. loaded by the boot
517 ROM.
518
Simon Glassb69691b2017-01-16 07:03:31 -0700519config SPL_RTC_SUPPORT
520 bool "Support RTC drivers"
Simon Glassb69691b2017-01-16 07:03:31 -0700521 help
522 Enable RTC (Real-time Clock) support in SPL. This includes support
523 for reading and setting the time. Some RTC devices also have some
524 non-volatile (battery-backed) memory which is accessible if
525 needed. This enables the drivers in drivers/rtc as part of an SPL
526 build.
527
Simon Glass1e3911a2016-09-13 07:05:23 -0600528config SPL_SATA_SUPPORT
529 bool "Support loading from SATA"
Simon Glass1e3911a2016-09-13 07:05:23 -0600530 help
531 Enable support for SATA (Serial AT attachment) in SPL. This allows
532 use of SATA devices such as hard drives and flash drivers for
533 loading U-Boot. SATA is used in higher-end embedded systems and
534 can provide higher performance than MMC , at somewhat higher
535 expense and power consumption. This enables loading from SATA
536 using a configured device.
537
538config SPL_SERIAL_SUPPORT
539 bool "Support serial"
Simon Glass1e3911a2016-09-13 07:05:23 -0600540 help
541 Enable support for serial in SPL. This allows use of a serial UART
542 for displaying messages while SPL is running. It also brings in
543 printf() and panic() functions. This should normally be enabled
544 unless there are space reasons not to. Even then, consider
545 enabling USE_TINY_PRINTF which is a small printf() version.
546
547config SPL_SPI_FLASH_SUPPORT
548 bool "Support SPI flash drivers"
Simon Glass1e3911a2016-09-13 07:05:23 -0600549 help
550 Enable support for using SPI flash in SPL, and loading U-Boot from
551 SPI flash. SPI flash (Serial Peripheral Bus flash) is named after
552 the SPI bus that is used to connect it to a system. It is a simple
553 but fast bidirectional 4-wire bus (clock, chip select and two data
554 lines). This enables the drivers in drivers/mtd/spi as part of an
555 SPL build. This normally requires SPL_SPI_SUPPORT.
556
557config SPL_SPI_SUPPORT
558 bool "Support SPI drivers"
Simon Glass1e3911a2016-09-13 07:05:23 -0600559 help
560 Enable support for using SPI in SPL. This is used for connecting
561 to SPI flash for loading U-Boot. See SPL_SPI_FLASH_SUPPORT for
562 more details on that. The SPI driver provides the transport for
563 data between the SPI flash and the CPU. This option can be used to
564 enable SPI drivers that are needed for other purposes also, such
565 as a SPI PMIC.
566
Simon Glass0c1b41a2017-01-16 07:03:32 -0700567config SPL_TIMER_SUPPORT
568 bool "Support timer drivers"
Simon Glass0c1b41a2017-01-16 07:03:32 -0700569 help
570 Enable support for timer drivers in SPL. These can be used to get
571 a timer value when in SPL, or perhaps for implementing a delay
572 function. This enables the drivers in drivers/timer as part of an
573 SPL build.
574
Simon Glass1e3911a2016-09-13 07:05:23 -0600575config SPL_USB_HOST_SUPPORT
576 bool "Support USB host drivers"
Simon Glass1e3911a2016-09-13 07:05:23 -0600577 help
578 Enable access to USB (Universal Serial Bus) host devices so that
579 SPL can load U-Boot from a connected USB peripheral, such as a USB
580 flash stick. While USB takes a little longer to start up than most
581 buses, it is very flexible since many different types of storage
582 device can be attached. This option enables the drivers in
583 drivers/usb/host as part of an SPL build.
584
585config SPL_USB_SUPPORT
586 bool "Support loading from USB"
587 depends on SPL_USB_HOST_SUPPORT
588 help
589 Enable support for USB devices in SPL. This allows use of USB
590 devices such as hard drives and flash drivers for loading U-Boot.
591 The actual drivers are enabled separately using the normal U-Boot
592 config options. This enables loading from USB using a configured
593 device.
594
Stefan Agner0489c3b2016-11-21 10:58:53 -0800595config SPL_USB_GADGET_SUPPORT
596 bool "Suppport USB Gadget drivers"
Stefan Agner0489c3b2016-11-21 10:58:53 -0800597 help
598 Enable USB Gadget API which allows to enable USB device functions
599 in SPL.
600
601if SPL_USB_GADGET_SUPPORT
602
603config SPL_USBETH_SUPPORT
604 bool "Support USB Ethernet drivers"
605 help
606 Enable access to the USB network subsystem and associated
607 drivers in SPL. This permits SPL to load U-Boot over a
608 USB-connected Ethernet link (such as a USB Ethernet dongle) rather
609 than from an onboard peripheral. Environment support is required
610 since the network stack uses a number of environment variables.
611 See also SPL_NET_SUPPORT and SPL_ETH_SUPPORT.
612
Stefan Agnere542edd2016-11-21 10:58:52 -0800613config SPL_DFU_SUPPORT
614 bool "Support DFU (Device Firmware Upgarde)"
Stefan Agnere542edd2016-11-21 10:58:52 -0800615 select SPL_HASH_SUPPORT
B, Ravi4cca5cf2017-05-04 15:45:29 +0530616 select SPL_DFU_NO_RESET
B, Ravi7e0c0ea2017-05-04 15:45:28 +0530617 depends on SPL_RAM_SUPPORT
Stefan Agnere542edd2016-11-21 10:58:52 -0800618 help
619 This feature enables the DFU (Device Firmware Upgarde) in SPL with
620 RAM memory device support. The ROM code will load and execute
621 the SPL built with dfu. The user can load binaries (u-boot/kernel) to
622 selected device partition from host-pc using dfu-utils.
623 This feature is useful to flash the binaries to factory or bare-metal
624 boards using USB interface.
625
626choice
627 bool "DFU device selection"
628 depends on SPL_DFU_SUPPORT
629
630config SPL_DFU_RAM
631 bool "RAM device"
Stefan Agnercd01e642016-12-23 07:51:53 +0100632 depends on SPL_DFU_SUPPORT && SPL_RAM_SUPPORT
Stefan Agnere542edd2016-11-21 10:58:52 -0800633 help
634 select RAM/DDR memory device for loading binary images
635 (u-boot/kernel) to the selected device partition using
636 DFU and execute the u-boot/kernel from RAM.
637
638endchoice
639
Stefan Agner0489c3b2016-11-21 10:58:53 -0800640endif
641
Simon Glass1e3911a2016-09-13 07:05:23 -0600642config SPL_WATCHDOG_SUPPORT
643 bool "Support watchdog drivers"
Simon Glass1e3911a2016-09-13 07:05:23 -0600644 help
645 Enable support for watchdog drivers in SPL. A watchdog is
646 typically a hardware peripheral which can reset the system when it
647 detects no activity for a while (such as a software crash). This
648 enables the drivers in drivers/watchdog as part of an SPL build.
649
650config SPL_YMODEM_SUPPORT
651 bool "Support loading using Ymodem"
Simon Glass1e3911a2016-09-13 07:05:23 -0600652 help
653 While loading from serial is slow it can be a useful backup when
654 there is no other option. The Ymodem protocol provides a reliable
655 means of transmitting U-Boot over a serial line for using in SPL,
656 with a checksum to ensure correctness.
657
Kever Yang6e79a912017-05-05 11:47:45 +0800658config SPL_ATF_SUPPORT
659 bool "Support ARM Trusted Firmware"
Tom Rini3c82f982017-05-22 19:21:57 +0000660 depends on ARM64
Kever Yang6e79a912017-05-05 11:47:45 +0800661 help
662 ATF(ARM Trusted Firmware) is a component for ARM arch64 which which
663 is loaded by SPL(which is considered as BL2 in ATF terminology).
664 More detail at: https://github.com/ARM-software/arm-trusted-firmware
665
666config SPL_ATF_TEXT_BASE
667 depends on SPL_ATF_SUPPORT
668 hex "ATF BL31 base address"
669 help
670 This is the base address in memory for ATF BL31 text and entry point.
671
Tom Rini3c82f982017-05-22 19:21:57 +0000672config TPL
673 bool
674 depends on SUPPORT_TPL
675 prompt "Enable TPL"
676 help
677 If you want to build TPL as well as the normal image and SPL, say Y.
678
679if TPL
680
Simon Glass688be332016-09-12 23:18:27 -0600681config TPL_ENV_SUPPORT
682 bool "Support an environment"
Simon Glass688be332016-09-12 23:18:27 -0600683 help
684 Enable environment support in TPL. See SPL_ENV_SUPPORT for details.
685
686config TPL_I2C_SUPPORT
687 bool "Support I2C"
Simon Glass688be332016-09-12 23:18:27 -0600688 help
689 Enable support for the I2C bus in SPL. See SPL_I2C_SUPPORT for
690 details.
691
692config TPL_LIBCOMMON_SUPPORT
693 bool "Support common libraries"
Simon Glass688be332016-09-12 23:18:27 -0600694 help
695 Enable support for common U-Boot libraries within TPL. See
696 SPL_LIBCOMMON_SUPPORT for details.
697
698config TPL_LIBGENERIC_SUPPORT
699 bool "Support generic libraries"
Simon Glass688be332016-09-12 23:18:27 -0600700 help
701 Enable support for generic U-Boot libraries within TPL. See
702 SPL_LIBGENERIC_SUPPORT for details.
703
704config TPL_MPC8XXX_INIT_DDR_SUPPORT
705 bool "Support MPC8XXX DDR init"
Simon Glass688be332016-09-12 23:18:27 -0600706 help
707 Enable support for DDR-SDRAM on the MPC8XXX family within TPL. See
708 SPL_MPC8XXX_INIT_DDR_SUPPORT for details.
709
710config TPL_MMC_SUPPORT
711 bool "Support MMC"
Tom Rini3c82f982017-05-22 19:21:57 +0000712 depends on MMC
Simon Glass688be332016-09-12 23:18:27 -0600713 help
714 Enable support for MMC within TPL. See SPL_MMC_SUPPORT for details.
715
716config TPL_NAND_SUPPORT
717 bool "Support NAND flash"
Simon Glass688be332016-09-12 23:18:27 -0600718 help
719 Enable support for NAND in SPL. See SPL_NAND_SUPPORT for details.
720
721config TPL_SERIAL_SUPPORT
722 bool "Support serial"
Simon Glass688be332016-09-12 23:18:27 -0600723 help
724 Enable support for serial in SPL. See SPL_SERIAL_SUPPORT for
725 details.
726
727config TPL_SPI_FLASH_SUPPORT
728 bool "Support SPI flash drivers"
Simon Glass688be332016-09-12 23:18:27 -0600729 help
730 Enable support for using SPI flash in SPL. See SPL_SPI_FLASH_SUPPORT
731 for details.
732
733config TPL_SPI_SUPPORT
734 bool "Support SPI drivers"
Simon Glass688be332016-09-12 23:18:27 -0600735 help
736 Enable support for using SPI in SPL. See SPL_SPI_SUPPORT for
737 details.
738
Tom Rini3c82f982017-05-22 19:21:57 +0000739endif # TPL
740
741endif # SPL
Simon Glass1e3911a2016-09-13 07:05:23 -0600742endmenu