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