xref: /rk3399_rockchip-uboot/common/spl/Kconfig (revision b24d32f4784cd731ef64509edcece2911b07873b)
111bde1cdSSimon Glassmenu "SPL / TPL"
211bde1cdSSimon Glass
3c2ae7d82SSimon Glassconfig SUPPORT_SPL
4c2ae7d82SSimon Glass	bool
5c2ae7d82SSimon Glass
6c2ae7d82SSimon Glassconfig SUPPORT_TPL
7c2ae7d82SSimon Glass	bool
8c2ae7d82SSimon Glass
966928afbSB, Raviconfig SPL_DFU_NO_RESET
1066928afbSB, Ravi	bool
1166928afbSB, Ravi
12c2ae7d82SSimon Glassconfig SPL
13c2ae7d82SSimon Glass	bool
14c2ae7d82SSimon Glass	depends on SUPPORT_SPL
15c2ae7d82SSimon Glass	prompt "Enable SPL"
16c2ae7d82SSimon Glass	help
17c2ae7d82SSimon Glass	  If you want to build SPL as well as the normal image, say Y.
18c2ae7d82SSimon Glass
19226498b8STom Riniif SPL
20226498b8STom Rini
21dd6fbcb9SPhilipp Tomsichconfig SPL_LDSCRIPT
22dd6fbcb9SPhilipp Tomsich	string "Linker script for the SPL stage"
23dd6fbcb9SPhilipp Tomsich	default "arch/$(ARCH)/cpu/u-boot-spl.lds"
24dd6fbcb9SPhilipp Tomsich	depends on SPL
25dd6fbcb9SPhilipp Tomsich	help
26dd6fbcb9SPhilipp Tomsich	  The SPL stage will usually require a different linker-script
27dd6fbcb9SPhilipp Tomsich	  (as it runs from a different memory region) than the regular
28dd6fbcb9SPhilipp Tomsich	  U-Boot stage.	 Set this to the path of the linker-script to
29dd6fbcb9SPhilipp Tomsich	  be used for SPL.
30dd6fbcb9SPhilipp Tomsich
310680f1b1SLey Foon Tanconfig SPL_BOARD_INIT
320680f1b1SLey Foon Tan	bool "Call board-specific initialization in SPL"
330680f1b1SLey Foon Tan	help
340680f1b1SLey Foon Tan	  If this option is enabled, U-Boot will call the function
350680f1b1SLey Foon Tan	  spl_board_init() from board_init_r(). This function should be
360680f1b1SLey Foon Tan	  provided by the board.
370680f1b1SLey Foon Tan
38225d30b7SPhilipp Tomsichconfig SPL_BOOTROM_SUPPORT
39225d30b7SPhilipp Tomsich        bool "Support returning to the BOOTROM"
40225d30b7SPhilipp Tomsich	help
41225d30b7SPhilipp Tomsich	  Some platforms (e.g. the Rockchip RK3368) provide support in their
42225d30b7SPhilipp Tomsich	  ROM for loading the next boot-stage after performing basic setup
43225d30b7SPhilipp Tomsich	  from the SPL stage.
44225d30b7SPhilipp Tomsich
45225d30b7SPhilipp Tomsich	  Enable this option, to return to the BOOTROM through the
46225d30b7SPhilipp Tomsich	  BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
47225d30b7SPhilipp Tomsich	  boot device list, if not implemented for a given board)
48225d30b7SPhilipp Tomsich
4924eb39b5SAndrew F. Davisconfig SPL_RAW_IMAGE_SUPPORT
5024eb39b5SAndrew F. Davis	bool "Support SPL loading and booting of RAW images"
5124eb39b5SAndrew F. Davis	default n if (ARCH_MX6 && (SPL_MMC_SUPPORT || SPL_SATA_SUPPORT))
52ae9b57b5SAndrew F. Davis	default y if !TI_SECURE_DEVICE
5324eb39b5SAndrew F. Davis	help
5424eb39b5SAndrew F. Davis	  SPL will support loading and booting a RAW image when this option
5524eb39b5SAndrew F. Davis	  is y. If this is not set, SPL will move on to other available
5624eb39b5SAndrew F. Davis	  boot media to find a suitable image.
5724eb39b5SAndrew F. Davis
58722a6b17SAndrew F. Davisconfig SPL_LEGACY_IMAGE_SUPPORT
59722a6b17SAndrew F. Davis	bool "Support SPL loading and booting of Legacy images"
60ae9b57b5SAndrew F. Davis	default y if !TI_SECURE_DEVICE
61722a6b17SAndrew F. Davis	help
62722a6b17SAndrew F. Davis	  SPL will support loading and booting Legacy images when this option
63722a6b17SAndrew F. Davis	  is y. If this is not set, SPL will move on to other available
64722a6b17SAndrew F. Davis	  boot media to find a suitable image.
65722a6b17SAndrew F. Davis
66c2ae7d82SSimon Glassconfig SPL_SYS_MALLOC_SIMPLE
67c2ae7d82SSimon Glass	bool
68c2ae7d82SSimon Glass	prompt "Only use malloc_simple functions in the SPL"
69c2ae7d82SSimon Glass	help
70c2ae7d82SSimon Glass	  Say Y here to only use the *_simple malloc functions from
71c2ae7d82SSimon Glass	  malloc_simple.c, rather then using the versions from dlmalloc.c;
72c2ae7d82SSimon Glass	  this will make the SPL binary smaller at the cost of more heap
73c2ae7d82SSimon Glass	  usage as the *_simple malloc functions do not re-use free-ed mem.
74c2ae7d82SSimon Glass
75d60b5f74SPhilipp Tomsichconfig TPL_SYS_MALLOC_SIMPLE
76d60b5f74SPhilipp Tomsich	bool
77d60b5f74SPhilipp Tomsich	prompt "Only use malloc_simple functions in the TPL"
78d60b5f74SPhilipp Tomsich	help
79d60b5f74SPhilipp Tomsich	  Say Y here to only use the *_simple malloc functions from
80d60b5f74SPhilipp Tomsich	  malloc_simple.c, rather then using the versions from dlmalloc.c;
81d60b5f74SPhilipp Tomsich	  this will make the TPL binary smaller at the cost of more heap
82d60b5f74SPhilipp Tomsich	  usage as the *_simple malloc functions do not re-use free-ed mem.
83d60b5f74SPhilipp Tomsich
84c2ae7d82SSimon Glassconfig SPL_STACK_R
85c2ae7d82SSimon Glass	bool "Enable SDRAM location for SPL stack"
86c2ae7d82SSimon Glass	help
87c2ae7d82SSimon Glass	  SPL starts off execution in SRAM and thus typically has only a small
88c2ae7d82SSimon Glass	  stack available. Since SPL sets up DRAM while in its board_init_f()
89c2ae7d82SSimon Glass	  function, it is possible for the stack to move there before
90c2ae7d82SSimon Glass	  board_init_r() is reached. This option enables a special SDRAM
91c2ae7d82SSimon Glass	  location for the SPL stack. U-Boot SPL switches to this after
92c2ae7d82SSimon Glass	  board_init_f() completes, and before board_init_r() starts.
93c2ae7d82SSimon Glass
94c2ae7d82SSimon Glassconfig SPL_STACK_R_ADDR
95c2ae7d82SSimon Glass	depends on SPL_STACK_R
96c2ae7d82SSimon Glass	hex "SDRAM location for SPL stack"
97c2ae7d82SSimon Glass	help
98c2ae7d82SSimon Glass	  Specify the address in SDRAM for the SPL stack. This will be set up
99c2ae7d82SSimon Glass	  before board_init_r() is called.
100c2ae7d82SSimon Glass
101c2ae7d82SSimon Glassconfig SPL_STACK_R_MALLOC_SIMPLE_LEN
102c2ae7d82SSimon Glass	depends on SPL_STACK_R && SPL_SYS_MALLOC_SIMPLE
103c2ae7d82SSimon Glass	hex "Size of malloc_simple heap after switching to DRAM SPL stack"
104c2ae7d82SSimon Glass	default 0x100000
105c2ae7d82SSimon Glass	help
106c2ae7d82SSimon Glass	  Specify the amount of the stack to use as memory pool for
107c2ae7d82SSimon Glass	  malloc_simple after switching the stack to DRAM. This may be set
108c2ae7d82SSimon Glass	  to give board_init_r() a larger heap then the initial heap in
109c2ae7d82SSimon Glass	  SRAM which is limited to SYS_MALLOC_F_LEN bytes.
110c2ae7d82SSimon Glass
111c2ae7d82SSimon Glassconfig SPL_SEPARATE_BSS
112c2ae7d82SSimon Glass	bool "BSS section is in a different memory region from text"
113c2ae7d82SSimon Glass	help
114c2ae7d82SSimon Glass	  Some platforms need a large BSS region in SPL and can provide this
115c2ae7d82SSimon Glass	  because RAM is already set up. In this case BSS can be moved to RAM.
116c2ae7d82SSimon Glass	  This option should then be enabled so that the correct device tree
117c2ae7d82SSimon Glass	  location is used. Normally we put the device tree at the end of BSS
118c2ae7d82SSimon Glass	  but with this option enabled, it goes at _image_binary_end.
119c2ae7d82SSimon Glass
120a807ab33SSimon Glassconfig SPL_DISPLAY_PRINT
121a807ab33SSimon Glass	bool "Display a board-specific message in SPL"
122a807ab33SSimon Glass	help
123a807ab33SSimon Glass	  If this option is enabled, U-Boot will call the function
124a807ab33SSimon Glass	  spl_display_print() immediately after displaying the SPL console
125a807ab33SSimon Glass	  banner ("U-Boot SPL ..."). This function should be provided by
126a807ab33SSimon Glass	  the board.
127a807ab33SSimon Glass
12838fed8abSSemen Protsenkoconfig SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
12938fed8abSSemen Protsenko	bool "MMC raw mode: by sector"
13038fed8abSSemen Protsenko	default y if ARCH_SUNXI || ARCH_DAVINCI || ARCH_UNIPHIER ||ARCH_MX6 || \
13138fed8abSSemen Protsenko		     ARCH_ROCKCHIP || ARCH_MVEBU ||  ARCH_SOCFPGA || \
13238fed8abSSemen Protsenko		     ARCH_AT91 || ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || \
13338fed8abSSemen Protsenko		     OMAP44XX || OMAP54XX || AM33XX || AM43XX
13438fed8abSSemen Protsenko	help
13538fed8abSSemen Protsenko	  Use sector number for specifying U-Boot location on MMC/SD in
13638fed8abSSemen Protsenko	  raw mode.
13738fed8abSSemen Protsenko
13838fed8abSSemen Protsenkoconfig SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
13938fed8abSSemen Protsenko	hex "Address on the MMC to load U-Boot from"
140226498b8STom Rini	depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
14138fed8abSSemen Protsenko	default 0x50 if ARCH_SUNXI
14238fed8abSSemen Protsenko	default 0x75 if ARCH_DAVINCI
14338fed8abSSemen Protsenko	default 0x8a if ARCH_MX6
144*b24d32f4SKever Yang	default 0x100 if ARCH_UNIPHIER
14538fed8abSSemen Protsenko	default 0x140 if ARCH_MVEBU
14638fed8abSSemen Protsenko	default 0x200 if ARCH_SOCFPGA || ARCH_AT91
14738fed8abSSemen Protsenko	default 0x300 if ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || OMAP44XX || \
14838fed8abSSemen Protsenko		         OMAP54XX || AM33XX || AM43XX
149*b24d32f4SKever Yang	default 0x4000 if ARCH_ROCKCHIP
15038fed8abSSemen Protsenko	help
15138fed8abSSemen Protsenko	  Address on the MMC to load U-Boot from, when the MMC is being used
15238fed8abSSemen Protsenko	  in raw mode. Units: MMC sectors (1 sector = 512 bytes).
15338fed8abSSemen Protsenko
154949123e3SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
155949123e3SDalon Westergreen	bool "MMC Raw mode: by partition"
156949123e3SDalon Westergreen	help
157949123e3SDalon Westergreen	  Use a partition for loading U-Boot when using MMC/SD in raw mode.
158949123e3SDalon Westergreen
159949123e3SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION
160949123e3SDalon Westergreen	hex "Partition to use to load U-Boot from"
161226498b8STom Rini	depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
162949123e3SDalon Westergreen	default 1
163949123e3SDalon Westergreen	help
164949123e3SDalon Westergreen	  Partition on the MMC to load U-Boot from when the MMC is being
165949123e3SDalon Westergreen	  used in raw mode
166949123e3SDalon Westergreen
167f0fb4fa7SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
168f0fb4fa7SDalon Westergreen	bool "MMC raw mode: by partition type"
169226498b8STom Rini	depends on DOS_PARTITION && SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
170f0fb4fa7SDalon Westergreen	help
171f0fb4fa7SDalon Westergreen	  Use partition type for specifying U-Boot partition on MMC/SD in
172f0fb4fa7SDalon Westergreen	  raw mode. U-Boot will be loaded from the first partition of this
173f0fb4fa7SDalon Westergreen	  type to be found.
174f0fb4fa7SDalon Westergreen
175f0fb4fa7SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE
176f0fb4fa7SDalon Westergreen	hex "Partition Type on the MMC to load U-Boot from"
177226498b8STom Rini	depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
178f0fb4fa7SDalon Westergreen	help
179f0fb4fa7SDalon Westergreen	  Partition Type on the MMC to load U-Boot from, when the MMC is being
180f0fb4fa7SDalon Westergreen	  used in raw mode.
181f0fb4fa7SDalon Westergreen
18211bde1cdSSimon Glassconfig SPL_CRC32_SUPPORT
18311bde1cdSSimon Glass	bool "Support CRC32"
18411bde1cdSSimon Glass	depends on SPL_FIT
18511bde1cdSSimon Glass	help
18611bde1cdSSimon Glass	  Enable this to support CRC32 in FIT images within SPL. This is a
18711bde1cdSSimon Glass	  32-bit checksum value that can be used to verify images. This is
18811bde1cdSSimon Glass	  the least secure type of checksum, suitable for detected
18911bde1cdSSimon Glass	  accidental image corruption. For secure applications you should
19011bde1cdSSimon Glass	  consider SHA1 or SHA256.
19111bde1cdSSimon Glass
19211bde1cdSSimon Glassconfig SPL_MD5_SUPPORT
19311bde1cdSSimon Glass	bool "Support MD5"
19411bde1cdSSimon Glass	depends on SPL_FIT
19511bde1cdSSimon Glass	help
19611bde1cdSSimon Glass	  Enable this to support MD5 in FIT images within SPL. An MD5
19711bde1cdSSimon Glass	  checksum is a 128-bit hash value used to check that the image
19811bde1cdSSimon Glass	  contents have not been corrupted. Note that MD5 is not considered
19911bde1cdSSimon Glass	  secure as it is possible (with a brute-force attack) to adjust the
20011bde1cdSSimon Glass	  image while still retaining the same MD5 hash value. For secure
20111bde1cdSSimon Glass	  applications where images may be changed maliciously, you should
20211bde1cdSSimon Glass	  consider SHA1 or SHA256.
20311bde1cdSSimon Glass
20411bde1cdSSimon Glassconfig SPL_SHA1_SUPPORT
20511bde1cdSSimon Glass	bool "Support SHA1"
20611bde1cdSSimon Glass	depends on SPL_FIT
207089df18bSTom Rini	select SHA1
20811bde1cdSSimon Glass	help
20911bde1cdSSimon Glass	  Enable this to support SHA1 in FIT images within SPL. A SHA1
21011bde1cdSSimon Glass	  checksum is a 160-bit (20-byte) hash value used to check that the
21111bde1cdSSimon Glass	  image contents have not been corrupted or maliciously altered.
21211bde1cdSSimon Glass	  While SHA1 is fairly secure it is coming to the end of its life
21311bde1cdSSimon Glass	  due to the expanding computing power avaiable to brute-force
21411bde1cdSSimon Glass	  attacks. For more security, consider SHA256.
21511bde1cdSSimon Glass
21611bde1cdSSimon Glassconfig SPL_SHA256_SUPPORT
21711bde1cdSSimon Glass	bool "Support SHA256"
21811bde1cdSSimon Glass	depends on SPL_FIT
219089df18bSTom Rini	select SHA256
22011bde1cdSSimon Glass	help
22111bde1cdSSimon Glass	  Enable this to support SHA256 in FIT images within SPL. A SHA256
22211bde1cdSSimon Glass	  checksum is a 256-bit (32-byte) hash value used to check that the
22311bde1cdSSimon Glass	  image contents have not been corrupted. SHA256 is recommended for
22411bde1cdSSimon Glass	  use in secure applications since (as at 2016) there is no known
22511bde1cdSSimon Glass	  feasible attack that could produce a 'collision' with differing
22611bde1cdSSimon Glass	  input data. Use this for the highest security. Note that only the
22711bde1cdSSimon Glass	  SHA256 variant is supported: SHA512 and others are not currently
22811bde1cdSSimon Glass	  supported in U-Boot.
22911bde1cdSSimon Glass
2305e148df9SSimon Glassconfig SPL_CPU_SUPPORT
2315e148df9SSimon Glass	bool "Support CPU drivers"
2325e148df9SSimon Glass	help
2335e148df9SSimon Glass	  Enable this to support CPU drivers in SPL. These drivers can set
2345e148df9SSimon Glass	  up CPUs and provide information about them such as the model and
2355e148df9SSimon Glass	  name. This can be useful in SPL since setting up the CPUs earlier
2365e148df9SSimon Glass	  may improve boot performance. Enable this option to build the
2375e148df9SSimon Glass	  drivers in drivers/cpu as part of an SPL build.
2385e148df9SSimon Glass
23911bde1cdSSimon Glassconfig SPL_CRYPTO_SUPPORT
24011bde1cdSSimon Glass	bool "Support crypto drivers"
24111bde1cdSSimon Glass	help
24211bde1cdSSimon Glass	  Enable crypto drivers in SPL. These drivers can be used to
24311bde1cdSSimon Glass	  accelerate secure boot processing in secure applications. Enable
24411bde1cdSSimon Glass	  this option to build the drivers in drivers/crypto as part of an
24511bde1cdSSimon Glass	  SPL build.
24611bde1cdSSimon Glass
24711bde1cdSSimon Glassconfig SPL_HASH_SUPPORT
24811bde1cdSSimon Glass	bool "Support hashing drivers"
249089df18bSTom Rini	select SHA1
250089df18bSTom Rini	select SHA256
25111bde1cdSSimon Glass	help
25211bde1cdSSimon Glass	  Enable hashing drivers in SPL. These drivers can be used to
25311bde1cdSSimon Glass	  accelerate secure boot processing in secure applications. Enable
25411bde1cdSSimon Glass	  this option to build system-specific drivers for hash acceleration
25511bde1cdSSimon Glass	  as part of an SPL build.
25611bde1cdSSimon Glass
25711bde1cdSSimon Glassconfig SPL_DMA_SUPPORT
25811bde1cdSSimon Glass	bool "Support DMA drivers"
25911bde1cdSSimon Glass	help
26011bde1cdSSimon Glass	  Enable DMA (direct-memory-access) drivers in SPL. These drivers
26111bde1cdSSimon Glass	  can be used to handle memory-to-peripheral data transfer without
26211bde1cdSSimon Glass	  the CPU moving the data. Enable this option to build the drivers
26311bde1cdSSimon Glass	  in drivers/dma as part of an SPL build.
26411bde1cdSSimon Glass
26511bde1cdSSimon Glassconfig SPL_DRIVERS_MISC_SUPPORT
26611bde1cdSSimon Glass	bool "Support misc drivers"
26711bde1cdSSimon Glass	help
26811bde1cdSSimon Glass	  Enable miscellaneous drivers in SPL. These drivers perform various
26911bde1cdSSimon Glass	  tasks that don't fall nicely into other categories, Enable this
27011bde1cdSSimon Glass	  option to build the drivers in drivers/misc as part of an SPL
27111bde1cdSSimon Glass	  build, for those that support building in SPL (not all drivers do).
27211bde1cdSSimon Glass
27311bde1cdSSimon Glassconfig SPL_ENV_SUPPORT
27411bde1cdSSimon Glass	bool "Support an environment"
27511bde1cdSSimon Glass	help
27611bde1cdSSimon Glass	  Enable environment support in SPL. The U-Boot environment provides
27711bde1cdSSimon Glass	  a number of settings (essentially name/value pairs) which can
27811bde1cdSSimon Glass	  control many aspects of U-Boot's operation. Normally this is not
27911bde1cdSSimon Glass	  needed in SPL as it has a much simpler task with less
28011bde1cdSSimon Glass	  configuration. But some boards use this to support 'Falcon' boot
28111bde1cdSSimon Glass	  on EXT2 and FAT, where SPL boots directly into Linux without
28200caae6dSSimon Glass	  starting U-Boot first. Enabling this option will make env_get()
283382bee57SSimon Glass	  and env_set() available in SPL.
28411bde1cdSSimon Glass
285d2d9bdfcSB, Raviconfig SPL_SAVEENV
286d2d9bdfcSB, Ravi	bool "Support save environment"
287226498b8STom Rini	depends on SPL_ENV_SUPPORT
288d2d9bdfcSB, Ravi	help
289d2d9bdfcSB, Ravi	  Enable save environment support in SPL after setenv. By default
290d2d9bdfcSB, Ravi	  the saveenv option is not provided in SPL, but some boards need
291d2d9bdfcSB, Ravi	  this support in 'Falcon' boot, where SPL need to boot from
292d2d9bdfcSB, Ravi	  different images based on environment variable set by OS. For
293d2d9bdfcSB, Ravi	  example OS may set "reboot_image" environment variable to
294d2d9bdfcSB, Ravi	  "recovery" inorder to boot recovery image by SPL. The SPL read
295d2d9bdfcSB, Ravi	  "reboot_image" and act accordingly and change the reboot_image
296d2d9bdfcSB, Ravi	  to default mode using setenv and save the environemnt.
297d2d9bdfcSB, Ravi
29811bde1cdSSimon Glassconfig SPL_ETH_SUPPORT
29911bde1cdSSimon Glass	bool "Support Ethernet"
30011bde1cdSSimon Glass	depends on SPL_ENV_SUPPORT
30111bde1cdSSimon Glass	help
30211bde1cdSSimon Glass	  Enable access to the network subsystem and associated Ethernet
30311bde1cdSSimon Glass	  drivers in SPL. This permits SPL to load U-Boot over an Ethernet
30411bde1cdSSimon Glass	  link rather than from an on-board peripheral. Environment support
30511bde1cdSSimon Glass	  is required since the network stack uses a number of environment
30611bde1cdSSimon Glass	  variables. See also SPL_NET_SUPPORT.
30711bde1cdSSimon Glass
30811bde1cdSSimon Glassconfig SPL_EXT_SUPPORT
30911bde1cdSSimon Glass	bool "Support EXT filesystems"
31011bde1cdSSimon Glass	help
31111bde1cdSSimon Glass	  Enable support for EXT2/3/4 filesystems with SPL. This permits
31211bde1cdSSimon Glass	  U-Boot (or Linux in Falcon mode) to be loaded from an EXT
31311bde1cdSSimon Glass	  filesystem from within SPL. Support for the underlying block
31411bde1cdSSimon Glass	  device (e.g. MMC or USB) must be enabled separately.
31511bde1cdSSimon Glass
31611bde1cdSSimon Glassconfig SPL_FAT_SUPPORT
31711bde1cdSSimon Glass	bool "Support FAT filesystems"
318eedfb89eSSekhar Nori	select FS_FAT
31911bde1cdSSimon Glass	help
32011bde1cdSSimon Glass	  Enable support for FAT and VFAT filesystems with SPL. This
32111bde1cdSSimon Glass	  permits U-Boot (or Linux in Falcon mode) to be loaded from a FAT
32211bde1cdSSimon Glass	  filesystem from within SPL. Support for the underlying block
32311bde1cdSSimon Glass	  device (e.g. MMC or USB) must be enabled separately.
32411bde1cdSSimon Glass
32511bde1cdSSimon Glassconfig SPL_FPGA_SUPPORT
32611bde1cdSSimon Glass	bool "Support FPGAs"
32711bde1cdSSimon Glass	help
32811bde1cdSSimon Glass	  Enable support for FPGAs in SPL. Field-programmable Gate Arrays
32911bde1cdSSimon Glass	  provide software-configurable hardware which is typically used to
33011bde1cdSSimon Glass	  implement peripherals (such as UARTs, LCD displays, MMC) or
33111bde1cdSSimon Glass	  accelerate custom processing functions, such as image processing
33211bde1cdSSimon Glass	  or machine learning. Sometimes it is useful to program the FPGA
33311bde1cdSSimon Glass	  as early as possible during boot, and this option can enable that
33411bde1cdSSimon Glass	  within SPL.
33511bde1cdSSimon Glass
33611bde1cdSSimon Glassconfig SPL_GPIO_SUPPORT
33711bde1cdSSimon Glass	bool "Support GPIO"
33811bde1cdSSimon Glass	help
33911bde1cdSSimon Glass	  Enable support for GPIOs (General-purpose Input/Output) in SPL.
34011bde1cdSSimon Glass	  GPIOs allow U-Boot to read the state of an input line (high or
34111bde1cdSSimon Glass	  low) and set the state of an output line. This can be used to
34211bde1cdSSimon Glass	  drive LEDs, control power to various system parts and read user
34311bde1cdSSimon Glass	  input. GPIOs can be useful in SPL to enable a 'sign-of-life' LED,
34411bde1cdSSimon Glass	  for example. Enable this option to build the drivers in
34511bde1cdSSimon Glass	  drivers/gpio as part of an SPL build.
34611bde1cdSSimon Glass
34711bde1cdSSimon Glassconfig SPL_I2C_SUPPORT
34811bde1cdSSimon Glass	bool "Support I2C"
34911bde1cdSSimon Glass	help
35011bde1cdSSimon Glass	  Enable support for the I2C (Inter-Integrated Circuit) bus in SPL.
35111bde1cdSSimon Glass	  I2C works with a clock and data line which can be driven by a
35211bde1cdSSimon Glass	  one or more masters or slaves. It is a fairly complex bus but is
35311bde1cdSSimon Glass	  widely used as it only needs two lines for communication. Speeds of
35411bde1cdSSimon Glass	  400kbps are typical but up to 3.4Mbps is supported by some
35511bde1cdSSimon Glass	  hardware. I2C can be useful in SPL to configure power management
35611bde1cdSSimon Glass	  ICs (PMICs) before raising the CPU clock speed, for example.
35711bde1cdSSimon Glass	  Enable this option to build the drivers in drivers/i2c as part of
35811bde1cdSSimon Glass	  an SPL build.
35911bde1cdSSimon Glass
36011bde1cdSSimon Glassconfig SPL_LIBCOMMON_SUPPORT
36111bde1cdSSimon Glass	bool "Support common libraries"
36211bde1cdSSimon Glass	help
36311bde1cdSSimon Glass	  Enable support for common U-Boot libraries within SPL. These
36411bde1cdSSimon Glass	  libraries include common code to deal with U-Boot images,
36511bde1cdSSimon Glass	  environment and USB, for example. This option is enabled on many
36611bde1cdSSimon Glass	  boards. Enable this option to build the code in common/ as part of
36711bde1cdSSimon Glass	  an SPL build.
36811bde1cdSSimon Glass
36911bde1cdSSimon Glassconfig SPL_LIBDISK_SUPPORT
37011bde1cdSSimon Glass	bool "Support disk paritions"
37111bde1cdSSimon Glass	help
37211bde1cdSSimon Glass	  Enable support for disk partitions within SPL. 'Disk' is something
37311bde1cdSSimon Glass	  of a misnomer as it includes non-spinning media such as flash (as
37411bde1cdSSimon Glass	  used in MMC and USB sticks). Partitions provide a way for a disk
37511bde1cdSSimon Glass	  to be split up into separate regions, with a partition table placed
37611bde1cdSSimon Glass	  at the start or end which describes the location and size of each
37711bde1cdSSimon Glass	  'partition'. These partitions are typically uses as individual block
37811bde1cdSSimon Glass	  devices, typically with an EXT2 or FAT filesystem in each. This
37911bde1cdSSimon Glass	  option enables whatever partition support has been enabled in
38011bde1cdSSimon Glass	  U-Boot to also be used in SPL. It brings in the code in disk/.
38111bde1cdSSimon Glass
38211bde1cdSSimon Glassconfig SPL_LIBGENERIC_SUPPORT
38311bde1cdSSimon Glass	bool "Support generic libraries"
38411bde1cdSSimon Glass	help
38511bde1cdSSimon Glass	  Enable support for generic U-Boot libraries within SPL. These
38611bde1cdSSimon Glass	  libraries include generic code to deal with device tree, hashing,
38711bde1cdSSimon Glass	  printf(), compression and the like. This option is enabled on many
38811bde1cdSSimon Glass	  boards. Enable this option to build the code in lib/ as part of an
38911bde1cdSSimon Glass	  SPL build.
39011bde1cdSSimon Glass
39111bde1cdSSimon Glassconfig SPL_MMC_SUPPORT
39211bde1cdSSimon Glass	bool "Support MMC"
393226498b8STom Rini	depends on MMC
39411bde1cdSSimon Glass	help
39511bde1cdSSimon Glass	  Enable support for MMC (Multimedia Card) within SPL. This enables
39611bde1cdSSimon Glass	  the MMC protocol implementation and allows any enabled drivers to
39711bde1cdSSimon Glass	  be used within SPL. MMC can be used with or without disk partition
39811bde1cdSSimon Glass	  support depending on the application (SPL_LIBDISK_SUPPORT). Enable
39911bde1cdSSimon Glass	  this option to build the drivers in drivers/mmc as part of an SPL
40011bde1cdSSimon Glass	  build.
40111bde1cdSSimon Glass
40211bde1cdSSimon Glassconfig SPL_MPC8XXX_INIT_DDR_SUPPORT
40311bde1cdSSimon Glass	bool "Support MPC8XXX DDR init"
40411bde1cdSSimon Glass	help
40511bde1cdSSimon Glass	  Enable support for DDR-SDRAM (double-data-rate synchronous dynamic
40611bde1cdSSimon Glass	  random-access memory) on the MPC8XXX family within SPL. This
40711bde1cdSSimon Glass	  allows DRAM to be set up before loading U-Boot into that DRAM,
40811bde1cdSSimon Glass	  where it can run.
40911bde1cdSSimon Glass
41011bde1cdSSimon Glassconfig SPL_MTD_SUPPORT
41111bde1cdSSimon Glass	bool "Support MTD drivers"
41211bde1cdSSimon Glass	help
41311bde1cdSSimon Glass	  Enable support for MTD (Memory Technology Device) within SPL. MTD
41411bde1cdSSimon Glass	  provides a block interface over raw NAND and can also be used with
41511bde1cdSSimon Glass	  SPI flash. This allows SPL to load U-Boot from supported MTD
41611bde1cdSSimon Glass	  devices. See SPL_NAND_SUPPORT and SPL_ONENAND_SUPPORT for how
41711bde1cdSSimon Glass	  to enable specific MTD drivers.
41811bde1cdSSimon Glass
41911bde1cdSSimon Glassconfig SPL_MUSB_NEW_SUPPORT
42011bde1cdSSimon Glass	bool "Support new Mentor Graphics USB"
42111bde1cdSSimon Glass	help
42211bde1cdSSimon Glass	  Enable support for Mentor Graphics USB in SPL. This is a new
42311bde1cdSSimon Glass	  driver used by some boards. Enable this option to build
42411bde1cdSSimon Glass	  the drivers in drivers/usb/musb-new as part of an SPL build. The
42511bde1cdSSimon Glass	  old drivers are in drivers/usb/musb.
42611bde1cdSSimon Glass
42711bde1cdSSimon Glassconfig SPL_NAND_SUPPORT
42811bde1cdSSimon Glass	bool "Support NAND flash"
42911bde1cdSSimon Glass	help
43011bde1cdSSimon Glass	  Enable support for NAND (Negative AND) flash in SPL. NAND flash
43111bde1cdSSimon Glass	  can be used to allow SPL to load U-Boot from supported devices.
43211bde1cdSSimon Glass	  This enables the drivers in drivers/mtd/nand as part of an SPL
43311bde1cdSSimon Glass	  build.
43411bde1cdSSimon Glass
43511bde1cdSSimon Glassconfig SPL_NET_SUPPORT
43611bde1cdSSimon Glass	bool "Support networking"
43711bde1cdSSimon Glass	help
43811bde1cdSSimon Glass	  Enable support for network devices (such as Ethernet) in SPL.
43911bde1cdSSimon Glass	  This permits SPL to load U-Boot over a network link rather than
44011bde1cdSSimon Glass	  from an on-board peripheral. Environment support is required since
44111bde1cdSSimon Glass	  the network stack uses a number of environment variables. See also
44211bde1cdSSimon Glass	  SPL_ETH_SUPPORT.
44311bde1cdSSimon Glass
44411bde1cdSSimon Glassif SPL_NET_SUPPORT
44511bde1cdSSimon Glassconfig SPL_NET_VCI_STRING
44611bde1cdSSimon Glass	string "BOOTP Vendor Class Identifier string sent by SPL"
44711bde1cdSSimon Glass	help
44811bde1cdSSimon Glass	  As defined by RFC 2132 the vendor class identifier field can be
44911bde1cdSSimon Glass	  sent by the client to identify the vendor type and configuration
45011bde1cdSSimon Glass	  of a client.  This is often used in practice to allow for the DHCP
45111bde1cdSSimon Glass	  server to specify different files to load depending on if the ROM,
45211bde1cdSSimon Glass	  SPL or U-Boot itself makes the request
45311bde1cdSSimon Glassendif   # if SPL_NET_SUPPORT
45411bde1cdSSimon Glass
45511bde1cdSSimon Glassconfig SPL_NO_CPU_SUPPORT
45611bde1cdSSimon Glass	bool "Drop CPU code in SPL"
45711bde1cdSSimon Glass	help
45811bde1cdSSimon Glass	  This is specific to the ARM926EJ-S CPU. It disables the standard
45911bde1cdSSimon Glass	  start.S start-up code, presumably so that a replacement can be
46011bde1cdSSimon Glass	  used on that CPU. You should not enable it unless you know what
46111bde1cdSSimon Glass	  you are doing.
46211bde1cdSSimon Glass
46311bde1cdSSimon Glassconfig SPL_NOR_SUPPORT
46411bde1cdSSimon Glass	bool "Support NOR flash"
46511bde1cdSSimon Glass	help
46611bde1cdSSimon Glass	  Enable support for loading U-Boot from memory-mapped NOR (Negative
46711bde1cdSSimon Glass	  OR) flash in SPL. NOR flash is slow to write but fast to read, and
46811bde1cdSSimon Glass	  a memory-mapped device makes it very easy to access. Loading from
46911bde1cdSSimon Glass	  NOR is typically achieved with just a memcpy().
47011bde1cdSSimon Glass
471c6d9e9dbSVikas Manochaconfig SPL_XIP_SUPPORT
472c6d9e9dbSVikas Manocha	bool "Support XIP"
473c6d9e9dbSVikas Manocha	depends on SPL
474c6d9e9dbSVikas Manocha	help
475c6d9e9dbSVikas Manocha	  Enable support for execute in place of U-Boot or kernel image. There
476c6d9e9dbSVikas Manocha	  is no need to copy image from flash to ram if flash supports execute
477c6d9e9dbSVikas Manocha	  in place. Its very useful in systems having enough flash but not
478c6d9e9dbSVikas Manocha	  enough ram to load the image.
479c6d9e9dbSVikas Manocha
48011bde1cdSSimon Glassconfig SPL_ONENAND_SUPPORT
48111bde1cdSSimon Glass	bool "Support OneNAND flash"
48211bde1cdSSimon Glass	help
48311bde1cdSSimon Glass	  Enable support for OneNAND (Negative AND) flash in SPL. OneNAND is
48411bde1cdSSimon Glass	  a type of NAND flash and therefore can be used to allow SPL to
48511bde1cdSSimon Glass	  load U-Boot from supported devices. This enables the drivers in
48611bde1cdSSimon Glass	  drivers/mtd/onenand as part of an SPL build.
48711bde1cdSSimon Glass
488c20ae2ffSHeiko Schocherconfig SPL_OS_BOOT
489c20ae2ffSHeiko Schocher	bool "Activate Falcon Mode"
490226498b8STom Rini	depends on !TI_SECURE_DEVICE
491c20ae2ffSHeiko Schocher	default n
492c20ae2ffSHeiko Schocher	help
493c20ae2ffSHeiko Schocher	  Enable booting directly to an OS from SPL.
494c20ae2ffSHeiko Schocher	  for more info read doc/README.falcon
495c20ae2ffSHeiko Schocher
49629d3bc79SHeiko Schocherif SPL_OS_BOOT
49729d3bc79SHeiko Schocherconfig SYS_OS_BASE
49829d3bc79SHeiko Schocher	hex "addr, where OS is found"
499226498b8STom Rini	depends on SPL_NOR_SUPPORT
50029d3bc79SHeiko Schocher	help
50129d3bc79SHeiko Schocher	  Specify the address, where the OS image is found, which
50229d3bc79SHeiko Schocher	  gets booted.
50329d3bc79SHeiko Schocher
50429d3bc79SHeiko Schocherendif # SPL_OS_BOOT
50529d3bc79SHeiko Schocher
5062446b6b8SSimon Glassconfig SPL_PCI_SUPPORT
5072446b6b8SSimon Glass	bool "Support PCI drivers"
5082446b6b8SSimon Glass	help
5092446b6b8SSimon Glass	  Enable support for PCI in SPL. For platforms that need PCI to boot,
5102446b6b8SSimon Glass	  or must perform some init using PCI in SPL, this provides the
5112446b6b8SSimon Glass	  necessary driver support. This enables the drivers in drivers/pci
5122446b6b8SSimon Glass	  as part of an SPL build.
5132446b6b8SSimon Glass
514bbe41abfSSimon Glassconfig SPL_PCH_SUPPORT
515bbe41abfSSimon Glass	bool "Support PCH drivers"
516bbe41abfSSimon Glass	help
517bbe41abfSSimon Glass	  Enable support for PCH (Platform Controller Hub) devices in SPL.
518bbe41abfSSimon Glass	  These are used to set up GPIOs and the SPI peripheral early in
519bbe41abfSSimon Glass	  boot. This enables the drivers in drivers/pch as part of an SPL
520bbe41abfSSimon Glass	  build.
521bbe41abfSSimon Glass
52211bde1cdSSimon Glassconfig SPL_POST_MEM_SUPPORT
52311bde1cdSSimon Glass	bool "Support POST drivers"
52411bde1cdSSimon Glass	help
52511bde1cdSSimon Glass	  Enable support for POST (Power-on Self Test) in SPL. POST is a
52611bde1cdSSimon Glass	  procedure that checks that the hardware (CPU or board) appears to
52711bde1cdSSimon Glass	  be functionally correctly. It is a sanity check that can be
52811bde1cdSSimon Glass	  performed before booting. This enables the drivers in post/drivers
52911bde1cdSSimon Glass	  as part of an SPL build.
53011bde1cdSSimon Glass
53111bde1cdSSimon Glassconfig SPL_POWER_SUPPORT
53211bde1cdSSimon Glass	bool "Support power drivers"
53311bde1cdSSimon Glass	help
53411bde1cdSSimon Glass	  Enable support for power control in SPL. This includes support
53511bde1cdSSimon Glass	  for PMICs (Power-management Integrated Circuits) and some of the
53611bde1cdSSimon Glass	  features provided by PMICs. In particular, voltage regulators can
53711bde1cdSSimon Glass	  be used to enable/disable power and vary its voltage. That can be
53811bde1cdSSimon Glass	  useful in SPL to turn on boot peripherals and adjust CPU voltage
53911bde1cdSSimon Glass	  so that the clock speed can be increased. This enables the drivers
54011bde1cdSSimon Glass	  in drivers/power, drivers/power/pmic and drivers/power/regulator
54111bde1cdSSimon Glass	  as part of an SPL build.
54211bde1cdSSimon Glass
54322802f4eSStefan Agnerconfig SPL_RAM_SUPPORT
54422802f4eSStefan Agner	bool "Support booting from RAM"
54522802f4eSStefan Agner	default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
54622802f4eSStefan Agner	help
54722802f4eSStefan Agner	  Enable booting of an image in RAM. The image can be preloaded or
54822802f4eSStefan Agner	  it can be loaded by SPL directly into RAM (e.g. using USB).
54922802f4eSStefan Agner
550f417d40fSStefan Agnerconfig SPL_RAM_DEVICE
551f417d40fSStefan Agner	bool "Support booting from preloaded image in RAM"
55222802f4eSStefan Agner	depends on SPL_RAM_SUPPORT
553f417d40fSStefan Agner	default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
554f417d40fSStefan Agner	help
555f417d40fSStefan Agner	  Enable booting of an image already loaded in RAM. The image has to
556f417d40fSStefan Agner	  be already in memory when SPL takes over, e.g. loaded by the boot
557f417d40fSStefan Agner	  ROM.
558f417d40fSStefan Agner
55930bf8a0dSSimon Glassconfig SPL_RTC_SUPPORT
56030bf8a0dSSimon Glass	bool "Support RTC drivers"
56130bf8a0dSSimon Glass	help
56230bf8a0dSSimon Glass	  Enable RTC (Real-time Clock) support in SPL. This includes support
56330bf8a0dSSimon Glass	  for reading and setting the time. Some RTC devices also have some
56430bf8a0dSSimon Glass	  non-volatile (battery-backed) memory which is accessible if
56530bf8a0dSSimon Glass	  needed. This enables the drivers in drivers/rtc as part of an SPL
56630bf8a0dSSimon Glass	  build.
56730bf8a0dSSimon Glass
56811bde1cdSSimon Glassconfig SPL_SATA_SUPPORT
56911bde1cdSSimon Glass	bool "Support loading from SATA"
57011bde1cdSSimon Glass	help
57111bde1cdSSimon Glass	  Enable support for SATA (Serial AT attachment) in SPL. This allows
57211bde1cdSSimon Glass	  use of SATA devices such as hard drives and flash drivers for
57311bde1cdSSimon Glass	  loading U-Boot. SATA is used in higher-end embedded systems and
57411bde1cdSSimon Glass	  can provide higher performance than MMC , at somewhat higher
57511bde1cdSSimon Glass	  expense and power consumption. This enables loading from SATA
57611bde1cdSSimon Glass	  using a configured device.
57711bde1cdSSimon Glass
57811bde1cdSSimon Glassconfig SPL_SERIAL_SUPPORT
57911bde1cdSSimon Glass	bool "Support serial"
58011bde1cdSSimon Glass	help
58111bde1cdSSimon Glass	  Enable support for serial in SPL. This allows use of a serial UART
58211bde1cdSSimon Glass	  for displaying messages while SPL is running. It also brings in
58311bde1cdSSimon Glass	  printf() and panic() functions. This should normally be enabled
58411bde1cdSSimon Glass	  unless there are space reasons not to. Even then, consider
58511bde1cdSSimon Glass	  enabling USE_TINY_PRINTF which is a small printf() version.
58611bde1cdSSimon Glass
58711bde1cdSSimon Glassconfig SPL_SPI_FLASH_SUPPORT
58811bde1cdSSimon Glass	bool "Support SPI flash drivers"
58911bde1cdSSimon Glass	help
59011bde1cdSSimon Glass	  Enable support for using SPI flash in SPL, and loading U-Boot from
59111bde1cdSSimon Glass	  SPI flash. SPI flash (Serial Peripheral Bus flash) is named after
59211bde1cdSSimon Glass	  the SPI bus that is used to connect it to a system. It is a simple
59311bde1cdSSimon Glass	  but fast bidirectional 4-wire bus (clock, chip select and two data
59411bde1cdSSimon Glass	  lines). This enables the drivers in drivers/mtd/spi as part of an
59511bde1cdSSimon Glass	  SPL build. This normally requires SPL_SPI_SUPPORT.
59611bde1cdSSimon Glass
59711bde1cdSSimon Glassconfig SPL_SPI_SUPPORT
59811bde1cdSSimon Glass	bool "Support SPI drivers"
59911bde1cdSSimon Glass	help
60011bde1cdSSimon Glass	  Enable support for using SPI in SPL. This is used for connecting
60111bde1cdSSimon Glass	  to SPI flash for loading U-Boot. See SPL_SPI_FLASH_SUPPORT for
60211bde1cdSSimon Glass	  more details on that. The SPI driver provides the transport for
60311bde1cdSSimon Glass	  data between the SPI flash and the CPU. This option can be used to
60411bde1cdSSimon Glass	  enable SPI drivers that are needed for other purposes also, such
60511bde1cdSSimon Glass	  as a SPI PMIC.
60611bde1cdSSimon Glass
60711bde1cdSSimon Glassconfig SPL_USB_HOST_SUPPORT
60811bde1cdSSimon Glass	bool "Support USB host drivers"
60911bde1cdSSimon Glass	help
61011bde1cdSSimon Glass	  Enable access to USB (Universal Serial Bus) host devices so that
61111bde1cdSSimon Glass	  SPL can load U-Boot from a connected USB peripheral, such as a USB
61211bde1cdSSimon Glass	  flash stick. While USB takes a little longer to start up than most
61311bde1cdSSimon Glass	  buses, it is very flexible since many different types of storage
61411bde1cdSSimon Glass	  device can be attached. This option enables the drivers in
61511bde1cdSSimon Glass	  drivers/usb/host as part of an SPL build.
61611bde1cdSSimon Glass
61711bde1cdSSimon Glassconfig SPL_USB_SUPPORT
61811bde1cdSSimon Glass	bool "Support loading from USB"
61911bde1cdSSimon Glass	depends on SPL_USB_HOST_SUPPORT
62011bde1cdSSimon Glass	help
62111bde1cdSSimon Glass	  Enable support for USB devices in SPL. This allows use of USB
62211bde1cdSSimon Glass	  devices such as hard drives and flash drivers for loading U-Boot.
62311bde1cdSSimon Glass	  The actual drivers are enabled separately using the normal U-Boot
62411bde1cdSSimon Glass	  config options. This enables loading from USB using a configured
62511bde1cdSSimon Glass	  device.
62611bde1cdSSimon Glass
627e94793c8SStefan Agnerconfig SPL_USB_GADGET_SUPPORT
628e94793c8SStefan Agner	bool "Suppport USB Gadget drivers"
629e94793c8SStefan Agner	help
630e94793c8SStefan Agner	  Enable USB Gadget API which allows to enable USB device functions
631e94793c8SStefan Agner	  in SPL.
632e94793c8SStefan Agner
633e94793c8SStefan Agnerif SPL_USB_GADGET_SUPPORT
634e94793c8SStefan Agner
635e94793c8SStefan Agnerconfig SPL_USBETH_SUPPORT
636e94793c8SStefan Agner	bool "Support USB Ethernet drivers"
637e94793c8SStefan Agner	help
638e94793c8SStefan Agner	  Enable access to the USB network subsystem and associated
639e94793c8SStefan Agner	  drivers in SPL. This permits SPL to load U-Boot over a
640e94793c8SStefan Agner	  USB-connected Ethernet link (such as a USB Ethernet dongle) rather
641e94793c8SStefan Agner	  than from an onboard peripheral. Environment support is required
642e94793c8SStefan Agner	  since the network stack uses a number of environment variables.
643e94793c8SStefan Agner	  See also SPL_NET_SUPPORT and SPL_ETH_SUPPORT.
644e94793c8SStefan Agner
6455991703eSStefan Agnerconfig SPL_DFU_SUPPORT
6465991703eSStefan Agner	bool "Support DFU (Device Firmware Upgarde)"
6475991703eSStefan Agner	select SPL_HASH_SUPPORT
64866928afbSB, Ravi	select SPL_DFU_NO_RESET
6491b19cbdbSB, Ravi	depends on SPL_RAM_SUPPORT
6505991703eSStefan Agner	help
6515991703eSStefan Agner	  This feature enables the DFU (Device Firmware Upgarde) in SPL with
6525991703eSStefan Agner	  RAM memory device support. The ROM code will load and execute
6535991703eSStefan Agner	  the SPL built with dfu. The user can load binaries (u-boot/kernel) to
6545991703eSStefan Agner	  selected device partition from host-pc using dfu-utils.
6555991703eSStefan Agner	  This feature is useful to flash the binaries to factory or bare-metal
6565991703eSStefan Agner	  boards using USB interface.
6575991703eSStefan Agner
6585991703eSStefan Agnerchoice
6595991703eSStefan Agner	bool "DFU device selection"
6605991703eSStefan Agner	depends on SPL_DFU_SUPPORT
6615991703eSStefan Agner
6625991703eSStefan Agnerconfig SPL_DFU_RAM
6635991703eSStefan Agner	bool "RAM device"
66422802f4eSStefan Agner	depends on SPL_DFU_SUPPORT && SPL_RAM_SUPPORT
6655991703eSStefan Agner	help
6665991703eSStefan Agner	 select RAM/DDR memory device for loading binary images
6675991703eSStefan Agner	 (u-boot/kernel) to the selected device partition using
6685991703eSStefan Agner	 DFU and execute the u-boot/kernel from RAM.
6695991703eSStefan Agner
6705991703eSStefan Agnerendchoice
6715991703eSStefan Agner
672a3774c1cSStefan Agnerconfig SPL_USB_SDP_SUPPORT
673a3774c1cSStefan Agner	bool "Support SDP (Serial Download Protocol)"
674a3774c1cSStefan Agner	help
675a3774c1cSStefan Agner	  Enable Serial Download Protocol (SDP) device support in SPL. This
676a3774c1cSStefan Agner	  allows to download images into memory and execute (jump to) them
677a3774c1cSStefan Agner	  using the same protocol as implemented by the i.MX family's boot ROM.
678e94793c8SStefan Agnerendif
679e94793c8SStefan Agner
68011bde1cdSSimon Glassconfig SPL_WATCHDOG_SUPPORT
68111bde1cdSSimon Glass	bool "Support watchdog drivers"
68211bde1cdSSimon Glass	help
68311bde1cdSSimon Glass	  Enable support for watchdog drivers in SPL. A watchdog is
68411bde1cdSSimon Glass	  typically a hardware peripheral which can reset the system when it
68511bde1cdSSimon Glass	  detects no activity for a while (such as a software crash). This
68611bde1cdSSimon Glass	  enables the drivers in drivers/watchdog as part of an SPL build.
68711bde1cdSSimon Glass
68811bde1cdSSimon Glassconfig SPL_YMODEM_SUPPORT
68911bde1cdSSimon Glass	bool "Support loading using Ymodem"
69011bde1cdSSimon Glass	help
69111bde1cdSSimon Glass	  While loading from serial is slow it can be a useful backup when
69211bde1cdSSimon Glass	  there is no other option. The Ymodem protocol provides a reliable
69311bde1cdSSimon Glass	  means of transmitting U-Boot over a serial line for using in SPL,
69411bde1cdSSimon Glass	  with a checksum to ensure correctness.
69511bde1cdSSimon Glass
696bcc1726aSKever Yangconfig SPL_ATF_SUPPORT
697bcc1726aSKever Yang	bool "Support ARM Trusted Firmware"
698226498b8STom Rini	depends on ARM64
699bcc1726aSKever Yang	help
700b5b82abcSKever Yang	  ATF(ARM Trusted Firmware) is a component for ARM arch64 which
701bcc1726aSKever Yang	  is loaded by SPL(which is considered as BL2 in ATF terminology).
702bcc1726aSKever Yang	  More detail at: https://github.com/ARM-software/arm-trusted-firmware
703bcc1726aSKever Yang
7041bd2b131SKever Yangconfig SPL_OPTEE_SUPPORT
7051bd2b131SKever Yang	bool "Support OP-TEE Trusted OS"
7061bd2b131SKever Yang	depends on ARM
7071bd2b131SKever Yang	help
7081bd2b131SKever Yang	  OP-TEE is an open source Trusted OS  which is loaded by SPL.
7091bd2b131SKever Yang	  More detail at: https://github.com/OP-TEE/optee_os
7101bd2b131SKever Yang
711226498b8STom Riniconfig TPL
712226498b8STom Rini	bool
713226498b8STom Rini	depends on SUPPORT_TPL
714226498b8STom Rini	prompt "Enable TPL"
715226498b8STom Rini	help
716226498b8STom Rini	  If you want to build TPL as well as the normal image and SPL, say Y.
717226498b8STom Rini
718226498b8STom Riniif TPL
719226498b8STom Rini
720dd6fbcb9SPhilipp Tomsichconfig TPL_LDSCRIPT
721dd6fbcb9SPhilipp Tomsich        string "Linker script for the TPL stage"
722dd6fbcb9SPhilipp Tomsich	depends on TPL
723dd6fbcb9SPhilipp Tomsich	help
724dd6fbcb9SPhilipp Tomsich	  The TPL stage will usually require a different linker-script
725dd6fbcb9SPhilipp Tomsich	  (as it runs from a different memory region) than the regular
726dd6fbcb9SPhilipp Tomsich	  U-Boot stage.  Set this to the path of the linker-script to
727dd6fbcb9SPhilipp Tomsich	  be used for TPL.
728dd6fbcb9SPhilipp Tomsich
729b3ed6ce7SPhilipp Tomsich	  May be left empty to trigger the Makefile infrastructure to
730b3ed6ce7SPhilipp Tomsich	  fall back to the linker-script used for the SPL stage.
731b3ed6ce7SPhilipp Tomsich
732b3ed6ce7SPhilipp Tomsichconfig TPL_NEEDS_SEPARATE_TEXT_BASE
733b3ed6ce7SPhilipp Tomsich        bool "TPL needs a separate text-base"
734b3ed6ce7SPhilipp Tomsich	default n
735b3ed6ce7SPhilipp Tomsich	depends on TPL
736b3ed6ce7SPhilipp Tomsich	help
737b3ed6ce7SPhilipp Tomsich	  Enable, if the TPL stage should not inherit its text-base
738b3ed6ce7SPhilipp Tomsich	  from the SPL stage.  When enabled, a base address for the
739b3ed6ce7SPhilipp Tomsich	  .text sections of the TPL stage has to be set below.
740b3ed6ce7SPhilipp Tomsich
741b3ed6ce7SPhilipp Tomsichconfig TPL_NEEDS_SEPARATE_STACK
742b3ed6ce7SPhilipp Tomsich        bool "TPL needs a separate initial stack-pointer"
743b3ed6ce7SPhilipp Tomsich	default n
744b3ed6ce7SPhilipp Tomsich	depends on TPL
745b3ed6ce7SPhilipp Tomsich	help
746b3ed6ce7SPhilipp Tomsich	  Enable, if the TPL stage should not inherit its initial
747b3ed6ce7SPhilipp Tomsich	  stack-pointer from the settings for the SPL stage.
748b3ed6ce7SPhilipp Tomsich
749b3ed6ce7SPhilipp Tomsichconfig TPL_TEXT_BASE
750b3ed6ce7SPhilipp Tomsich        hex "Base address for the .text section of the TPL stage"
751b3ed6ce7SPhilipp Tomsich	depends on TPL_NEEDS_SEPARATE_TEXT_BASE
752b3ed6ce7SPhilipp Tomsich	help
753b3ed6ce7SPhilipp Tomsich	  The base address for the .text section of the TPL stage.
754b3ed6ce7SPhilipp Tomsich
755b3ed6ce7SPhilipp Tomsichconfig TPL_MAX_SIZE
756b3ed6ce7SPhilipp Tomsich        int "Maximum size (in bytes) for the TPL stage"
7575aa49af3SPhilipp Tomsich	default 0
758b3ed6ce7SPhilipp Tomsich	depends on TPL
759b3ed6ce7SPhilipp Tomsich	help
760b3ed6ce7SPhilipp Tomsich	  The maximum size (in bytes) of the TPL stage.
761b3ed6ce7SPhilipp Tomsich
762b3ed6ce7SPhilipp Tomsichconfig TPL_STACK
763b3ed6ce7SPhilipp Tomsich        hex "Address of the initial stack-pointer for the TPL stage"
764b3ed6ce7SPhilipp Tomsich	depends on TPL_NEEDS_SEPARATE_STACK
765b3ed6ce7SPhilipp Tomsich	help
766b3ed6ce7SPhilipp Tomsich	  The address of the initial stack-pointer for the TPL stage.
767b3ed6ce7SPhilipp Tomsich	  Usually this will be the (aligned) top-of-stack.
768b3ed6ce7SPhilipp Tomsich
769a954fa32SPhilipp Tomsichconfig TPL_BOOTROM_SUPPORT
770a954fa32SPhilipp Tomsich        bool "Support returning to the BOOTROM (from TPL)"
771a954fa32SPhilipp Tomsich	help
772a954fa32SPhilipp Tomsich	  Some platforms (e.g. the Rockchip RK3368) provide support in their
773a954fa32SPhilipp Tomsich	  ROM for loading the next boot-stage after performing basic setup
774a954fa32SPhilipp Tomsich	  from the TPL stage.
775a954fa32SPhilipp Tomsich
776a954fa32SPhilipp Tomsich	  Enable this option, to return to the BOOTROM through the
777a954fa32SPhilipp Tomsich	  BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
778a954fa32SPhilipp Tomsich	  boot device list, if not implemented for a given board)
779a954fa32SPhilipp Tomsich
780c3916e7bSPhilipp Tomsichconfig TPL_DRIVERS_MISC_SUPPORT
781c3916e7bSPhilipp Tomsich	bool "Support misc drivers in TPL"
782c3916e7bSPhilipp Tomsich	help
783c3916e7bSPhilipp Tomsich	  Enable miscellaneous drivers in TPL. These drivers perform various
784c3916e7bSPhilipp Tomsich	  tasks that don't fall nicely into other categories, Enable this
785c3916e7bSPhilipp Tomsich	  option to build the drivers in drivers/misc as part of an TPL
786c3916e7bSPhilipp Tomsich	  build, for those that support building in TPL (not all drivers do).
787c3916e7bSPhilipp Tomsich
788f73329eeSSimon Glassconfig TPL_ENV_SUPPORT
789f73329eeSSimon Glass	bool "Support an environment"
790f73329eeSSimon Glass	help
791f73329eeSSimon Glass	  Enable environment support in TPL. See SPL_ENV_SUPPORT for details.
792f73329eeSSimon Glass
793f73329eeSSimon Glassconfig TPL_I2C_SUPPORT
794f73329eeSSimon Glass	bool "Support I2C"
795f73329eeSSimon Glass	help
796616bd09eSPhilipp Tomsich	  Enable support for the I2C bus in TPL. See SPL_I2C_SUPPORT for
797f73329eeSSimon Glass	  details.
798f73329eeSSimon Glass
799f73329eeSSimon Glassconfig TPL_LIBCOMMON_SUPPORT
800f73329eeSSimon Glass	bool "Support common libraries"
801f73329eeSSimon Glass	help
802f73329eeSSimon Glass	  Enable support for common U-Boot libraries within TPL. See
803f73329eeSSimon Glass	  SPL_LIBCOMMON_SUPPORT for details.
804f73329eeSSimon Glass
805f73329eeSSimon Glassconfig TPL_LIBGENERIC_SUPPORT
806f73329eeSSimon Glass	bool "Support generic libraries"
807f73329eeSSimon Glass	help
808f73329eeSSimon Glass	  Enable support for generic U-Boot libraries within TPL. See
809f73329eeSSimon Glass	  SPL_LIBGENERIC_SUPPORT for details.
810f73329eeSSimon Glass
811f73329eeSSimon Glassconfig TPL_MPC8XXX_INIT_DDR_SUPPORT
812f73329eeSSimon Glass	bool "Support MPC8XXX DDR init"
813f73329eeSSimon Glass	help
814f73329eeSSimon Glass	  Enable support for DDR-SDRAM on the MPC8XXX family within TPL. See
815f73329eeSSimon Glass	  SPL_MPC8XXX_INIT_DDR_SUPPORT for details.
816f73329eeSSimon Glass
817f73329eeSSimon Glassconfig TPL_MMC_SUPPORT
818f73329eeSSimon Glass	bool "Support MMC"
819226498b8STom Rini	depends on MMC
820f73329eeSSimon Glass	help
821f73329eeSSimon Glass	  Enable support for MMC within TPL. See SPL_MMC_SUPPORT for details.
822f73329eeSSimon Glass
823f73329eeSSimon Glassconfig TPL_NAND_SUPPORT
824f73329eeSSimon Glass	bool "Support NAND flash"
825f73329eeSSimon Glass	help
826616bd09eSPhilipp Tomsich	  Enable support for NAND in TPL. See SPL_NAND_SUPPORT for details.
827f73329eeSSimon Glass
828f73329eeSSimon Glassconfig TPL_SERIAL_SUPPORT
829f73329eeSSimon Glass	bool "Support serial"
830f73329eeSSimon Glass	help
831616bd09eSPhilipp Tomsich	  Enable support for serial in TPL. See SPL_SERIAL_SUPPORT for
832f73329eeSSimon Glass	  details.
833f73329eeSSimon Glass
834f73329eeSSimon Glassconfig TPL_SPI_FLASH_SUPPORT
835f73329eeSSimon Glass	bool "Support SPI flash drivers"
836f73329eeSSimon Glass	help
837616bd09eSPhilipp Tomsich	  Enable support for using SPI flash in TPL. See SPL_SPI_FLASH_SUPPORT
838f73329eeSSimon Glass	  for details.
839f73329eeSSimon Glass
840f73329eeSSimon Glassconfig TPL_SPI_SUPPORT
841f73329eeSSimon Glass	bool "Support SPI drivers"
842f73329eeSSimon Glass	help
843616bd09eSPhilipp Tomsich	  Enable support for using SPI in TPL. See SPL_SPI_SUPPORT for
844f73329eeSSimon Glass	  details.
845f73329eeSSimon Glass
846226498b8STom Riniendif # TPL
847226498b8STom Rini
848226498b8STom Riniendif # SPL
84911bde1cdSSimon Glassendmenu
850