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