xref: /openbmc/u-boot/common/spl/Kconfig (revision 2f41ade79e5969ebea03a7dcadbeae8e03787d7e)
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
1975670c81STom Riniconfig SPL_FRAMEWORK
2075670c81STom Rini	bool "Support SPL based upon the common SPL framework"
2175670c81STom Rini	depends on SPL
2275670c81STom Rini	default y
2375670c81STom Rini	help
2475670c81STom Rini	  Enable the SPL framework under common/spl/.  This framework
2575670c81STom Rini	  supports MMC, NAND and YMODEM and other methods loading of U-Boot
2675670c81STom Rini	  and the Linux Kernel.  If unsure, say Y.
2775670c81STom Rini
28b0edea3cSSimon Glassconfig HANDOFF
29b0edea3cSSimon Glass	bool "Pass hand-off information from SPL to U-Boot proper"
30b0edea3cSSimon Glass	depends on BLOBLIST
31b0edea3cSSimon Glass	help
32b0edea3cSSimon Glass	  It is useful to be able to pass information from SPL to U-Boot
33b0edea3cSSimon Glass	  proper to preserve state that is known in SPL and is needed in U-Boot.
34b0edea3cSSimon Glass	  Enable this to locate the handoff information in U-Boot proper, early
35b0edea3cSSimon Glass	  in boot. It is available in gd->handoff. The state state is set up
36b0edea3cSSimon Glass	  in SPL (or TPL if that is being used).
37b0edea3cSSimon Glass
38226498b8STom Riniif SPL
39226498b8STom Rini
40b0edea3cSSimon Glassconfig SPL_HANDOFF
41b0edea3cSSimon Glass	bool "Pass hand-off information from SPL to U-Boot proper"
42b0edea3cSSimon Glass	depends on HANDOFF
43b0edea3cSSimon Glass	default y
44b0edea3cSSimon Glass	help
45b0edea3cSSimon Glass	  This option enables SPL to write handoff information. This can be
46b0edea3cSSimon Glass	  used to pass information like the size of SDRAM from SPL to U-Boot
47b0edea3cSSimon Glass	  proper. Also SPL can receive information from TPL in the same place
48b0edea3cSSimon Glass	  if that is enabled.
49b0edea3cSSimon Glass
50dd6fbcb9SPhilipp Tomsichconfig SPL_LDSCRIPT
51dd6fbcb9SPhilipp Tomsich	string "Linker script for the SPL stage"
52dd6fbcb9SPhilipp Tomsich	default "arch/$(ARCH)/cpu/u-boot-spl.lds"
53dd6fbcb9SPhilipp Tomsich	help
54dd6fbcb9SPhilipp Tomsich	  The SPL stage will usually require a different linker-script
55dd6fbcb9SPhilipp Tomsich	  (as it runs from a different memory region) than the regular
56dd6fbcb9SPhilipp Tomsich	  U-Boot stage.	 Set this to the path of the linker-script to
57dd6fbcb9SPhilipp Tomsich	  be used for SPL.
58dd6fbcb9SPhilipp Tomsich
590680f1b1SLey Foon Tanconfig SPL_BOARD_INIT
600680f1b1SLey Foon Tan	bool "Call board-specific initialization in SPL"
610680f1b1SLey Foon Tan	help
620680f1b1SLey Foon Tan	  If this option is enabled, U-Boot will call the function
630680f1b1SLey Foon Tan	  spl_board_init() from board_init_r(). This function should be
640680f1b1SLey Foon Tan	  provided by the board.
650680f1b1SLey Foon Tan
66225d30b7SPhilipp Tomsichconfig SPL_BOOTROM_SUPPORT
67225d30b7SPhilipp Tomsich        bool "Support returning to the BOOTROM"
68225d30b7SPhilipp Tomsich	help
69225d30b7SPhilipp Tomsich	  Some platforms (e.g. the Rockchip RK3368) provide support in their
70225d30b7SPhilipp Tomsich	  ROM for loading the next boot-stage after performing basic setup
71225d30b7SPhilipp Tomsich	  from the SPL stage.
72225d30b7SPhilipp Tomsich
73225d30b7SPhilipp Tomsich	  Enable this option, to return to the BOOTROM through the
74225d30b7SPhilipp Tomsich	  BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
75225d30b7SPhilipp Tomsich	  boot device list, if not implemented for a given board)
76225d30b7SPhilipp Tomsich
77afa9609eSLukasz Majewskiconfig SPL_BOOTCOUNT_LIMIT
78afa9609eSLukasz Majewski	bool "Support bootcount in SPL"
79afa9609eSLukasz Majewski	depends on SPL_ENV_SUPPORT
80afa9609eSLukasz Majewski	help
81afa9609eSLukasz Majewski	  On some boards, which use 'falcon' mode, it is necessary to check
82afa9609eSLukasz Majewski	  and increment the number of boot attempts. Such boards do not
83afa9609eSLukasz Majewski	  use proper U-Boot for normal boot flow and hence needs those
84afa9609eSLukasz Majewski	  adjustments to be done in the SPL.
85afa9609eSLukasz Majewski
8624eb39b5SAndrew F. Davisconfig SPL_RAW_IMAGE_SUPPORT
8724eb39b5SAndrew F. Davis	bool "Support SPL loading and booting of RAW images"
8824eb39b5SAndrew F. Davis	default n if (ARCH_MX6 && (SPL_MMC_SUPPORT || SPL_SATA_SUPPORT))
89ae9b57b5SAndrew F. Davis	default y if !TI_SECURE_DEVICE
9024eb39b5SAndrew F. Davis	help
9124eb39b5SAndrew F. Davis	  SPL will support loading and booting a RAW image when this option
9224eb39b5SAndrew F. Davis	  is y. If this is not set, SPL will move on to other available
9324eb39b5SAndrew F. Davis	  boot media to find a suitable image.
9424eb39b5SAndrew F. Davis
95722a6b17SAndrew F. Davisconfig SPL_LEGACY_IMAGE_SUPPORT
96722a6b17SAndrew F. Davis	bool "Support SPL loading and booting of Legacy images"
97ae9b57b5SAndrew F. Davis	default y if !TI_SECURE_DEVICE
98722a6b17SAndrew F. Davis	help
99722a6b17SAndrew F. Davis	  SPL will support loading and booting Legacy images when this option
100722a6b17SAndrew F. Davis	  is y. If this is not set, SPL will move on to other available
101722a6b17SAndrew F. Davis	  boot media to find a suitable image.
102722a6b17SAndrew F. Davis
103c2ae7d82SSimon Glassconfig SPL_SYS_MALLOC_SIMPLE
104c2ae7d82SSimon Glass	bool
105c2ae7d82SSimon Glass	prompt "Only use malloc_simple functions in the SPL"
106c2ae7d82SSimon Glass	help
107c2ae7d82SSimon Glass	  Say Y here to only use the *_simple malloc functions from
108c2ae7d82SSimon Glass	  malloc_simple.c, rather then using the versions from dlmalloc.c;
109c2ae7d82SSimon Glass	  this will make the SPL binary smaller at the cost of more heap
110c2ae7d82SSimon Glass	  usage as the *_simple malloc functions do not re-use free-ed mem.
111c2ae7d82SSimon Glass
112d60b5f74SPhilipp Tomsichconfig TPL_SYS_MALLOC_SIMPLE
113d60b5f74SPhilipp Tomsich	bool
114d60b5f74SPhilipp Tomsich	prompt "Only use malloc_simple functions in the TPL"
115d60b5f74SPhilipp Tomsich	help
116d60b5f74SPhilipp Tomsich	  Say Y here to only use the *_simple malloc functions from
117d60b5f74SPhilipp Tomsich	  malloc_simple.c, rather then using the versions from dlmalloc.c;
118d60b5f74SPhilipp Tomsich	  this will make the TPL binary smaller at the cost of more heap
119d60b5f74SPhilipp Tomsich	  usage as the *_simple malloc functions do not re-use free-ed mem.
120d60b5f74SPhilipp Tomsich
121c2ae7d82SSimon Glassconfig SPL_STACK_R
122c2ae7d82SSimon Glass	bool "Enable SDRAM location for SPL stack"
123c2ae7d82SSimon Glass	help
124c2ae7d82SSimon Glass	  SPL starts off execution in SRAM and thus typically has only a small
125c2ae7d82SSimon Glass	  stack available. Since SPL sets up DRAM while in its board_init_f()
126c2ae7d82SSimon Glass	  function, it is possible for the stack to move there before
127c2ae7d82SSimon Glass	  board_init_r() is reached. This option enables a special SDRAM
128c2ae7d82SSimon Glass	  location for the SPL stack. U-Boot SPL switches to this after
129c2ae7d82SSimon Glass	  board_init_f() completes, and before board_init_r() starts.
130c2ae7d82SSimon Glass
131c2ae7d82SSimon Glassconfig SPL_STACK_R_ADDR
132c2ae7d82SSimon Glass	depends on SPL_STACK_R
133c2ae7d82SSimon Glass	hex "SDRAM location for SPL stack"
134ff6c3125STom Rini	default 0x82000000 if ARCH_OMAP2PLUS
135c2ae7d82SSimon Glass	help
136c2ae7d82SSimon Glass	  Specify the address in SDRAM for the SPL stack. This will be set up
137c2ae7d82SSimon Glass	  before board_init_r() is called.
138c2ae7d82SSimon Glass
139c2ae7d82SSimon Glassconfig SPL_STACK_R_MALLOC_SIMPLE_LEN
140c2ae7d82SSimon Glass	depends on SPL_STACK_R && SPL_SYS_MALLOC_SIMPLE
141c2ae7d82SSimon Glass	hex "Size of malloc_simple heap after switching to DRAM SPL stack"
142c2ae7d82SSimon Glass	default 0x100000
143c2ae7d82SSimon Glass	help
144c2ae7d82SSimon Glass	  Specify the amount of the stack to use as memory pool for
145c2ae7d82SSimon Glass	  malloc_simple after switching the stack to DRAM. This may be set
146c2ae7d82SSimon Glass	  to give board_init_r() a larger heap then the initial heap in
147c2ae7d82SSimon Glass	  SRAM which is limited to SYS_MALLOC_F_LEN bytes.
148c2ae7d82SSimon Glass
149c2ae7d82SSimon Glassconfig SPL_SEPARATE_BSS
150c2ae7d82SSimon Glass	bool "BSS section is in a different memory region from text"
151c2ae7d82SSimon Glass	help
152c2ae7d82SSimon Glass	  Some platforms need a large BSS region in SPL and can provide this
153c2ae7d82SSimon Glass	  because RAM is already set up. In this case BSS can be moved to RAM.
154c2ae7d82SSimon Glass	  This option should then be enabled so that the correct device tree
155c2ae7d82SSimon Glass	  location is used. Normally we put the device tree at the end of BSS
156c2ae7d82SSimon Glass	  but with this option enabled, it goes at _image_binary_end.
157c2ae7d82SSimon Glass
158aedc08b2SSimon Glassconfig SPL_BANNER_PRINT
159aedc08b2SSimon Glass	bool "Enable output of the SPL banner 'U-Boot SPL ...'"
160aedc08b2SSimon Glass	default y
161aedc08b2SSimon Glass	help
162aedc08b2SSimon Glass	  If this option is enabled, SPL will print the banner with version
163aedc08b2SSimon Glass	  info. Disabling this option could be useful to reduce TPL boot time
164aedc08b2SSimon Glass	  (e.g. approx. 6 ms faster, when output on i.MX6 with 115200 baud).
165aedc08b2SSimon Glass
166aedc08b2SSimon Glassconfig TPL_BANNER_PRINT
167aedc08b2SSimon Glass	bool "Enable output of the TPL banner 'U-Boot TPL ...'"
168aedc08b2SSimon Glass	default y
1690292bc0dSAnatolij Gustschin	help
1700292bc0dSAnatolij Gustschin	  If this option is enabled, SPL will not print the banner with version
171aedc08b2SSimon Glass	  info. Disabling this option could be useful to reduce SPL boot time
172aedc08b2SSimon Glass	  (e.g. approx. 6 ms faster, when output on i.MX6 with 115200 baud).
1730292bc0dSAnatolij Gustschin
174a807ab33SSimon Glassconfig SPL_DISPLAY_PRINT
175a807ab33SSimon Glass	bool "Display a board-specific message in SPL"
176a807ab33SSimon Glass	help
177a807ab33SSimon Glass	  If this option is enabled, U-Boot will call the function
178a807ab33SSimon Glass	  spl_display_print() immediately after displaying the SPL console
179a807ab33SSimon Glass	  banner ("U-Boot SPL ..."). This function should be provided by
180a807ab33SSimon Glass	  the board.
181a807ab33SSimon Glass
18238fed8abSSemen Protsenkoconfig SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
18338fed8abSSemen Protsenko	bool "MMC raw mode: by sector"
1841da1938dSFabio Estevam	default y if ARCH_SUNXI || ARCH_DAVINCI || ARCH_UNIPHIER || \
1851da1938dSFabio Estevam		     ARCH_MX6 || ARCH_MX7 || \
18638fed8abSSemen Protsenko		     ARCH_ROCKCHIP || ARCH_MVEBU ||  ARCH_SOCFPGA || \
18738fed8abSSemen Protsenko		     ARCH_AT91 || ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || \
18838fed8abSSemen Protsenko		     OMAP44XX || OMAP54XX || AM33XX || AM43XX
18938fed8abSSemen Protsenko	help
19038fed8abSSemen Protsenko	  Use sector number for specifying U-Boot location on MMC/SD in
19138fed8abSSemen Protsenko	  raw mode.
19238fed8abSSemen Protsenko
19338fed8abSSemen Protsenkoconfig SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
19438fed8abSSemen Protsenko	hex "Address on the MMC to load U-Boot from"
195226498b8STom Rini	depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
19638fed8abSSemen Protsenko	default 0x50 if ARCH_SUNXI
19738fed8abSSemen Protsenko	default 0x75 if ARCH_DAVINCI
1981da1938dSFabio Estevam	default 0x8a if ARCH_MX6 || ARCH_MX7
1998f4d62b4SKever Yang	default 0x100 if ARCH_UNIPHIER
20038fed8abSSemen Protsenko	default 0x140 if ARCH_MVEBU
20138fed8abSSemen Protsenko	default 0x200 if ARCH_SOCFPGA || ARCH_AT91
20238fed8abSSemen Protsenko	default 0x300 if ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || OMAP44XX || \
203586bde93SLokesh Vutla		         OMAP54XX || AM33XX || AM43XX || ARCH_K3
2048f4d62b4SKever Yang	default 0x4000 if ARCH_ROCKCHIP
20538fed8abSSemen Protsenko	help
20638fed8abSSemen Protsenko	  Address on the MMC to load U-Boot from, when the MMC is being used
20738fed8abSSemen Protsenko	  in raw mode. Units: MMC sectors (1 sector = 512 bytes).
20838fed8abSSemen Protsenko
209949123e3SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
210949123e3SDalon Westergreen	bool "MMC Raw mode: by partition"
211949123e3SDalon Westergreen	help
212949123e3SDalon Westergreen	  Use a partition for loading U-Boot when using MMC/SD in raw mode.
213949123e3SDalon Westergreen
214949123e3SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION
215949123e3SDalon Westergreen	hex "Partition to use to load U-Boot from"
216226498b8STom Rini	depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
217949123e3SDalon Westergreen	default 1
218949123e3SDalon Westergreen	help
219949123e3SDalon Westergreen	  Partition on the MMC to load U-Boot from when the MMC is being
220949123e3SDalon Westergreen	  used in raw mode
221949123e3SDalon Westergreen
222f0fb4fa7SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
223f0fb4fa7SDalon Westergreen	bool "MMC raw mode: by partition type"
224226498b8STom Rini	depends on DOS_PARTITION && SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
225f0fb4fa7SDalon Westergreen	help
226f0fb4fa7SDalon Westergreen	  Use partition type for specifying U-Boot partition on MMC/SD in
227f0fb4fa7SDalon Westergreen	  raw mode. U-Boot will be loaded from the first partition of this
228f0fb4fa7SDalon Westergreen	  type to be found.
229f0fb4fa7SDalon Westergreen
230f0fb4fa7SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE
231f0fb4fa7SDalon Westergreen	hex "Partition Type on the MMC to load U-Boot from"
232226498b8STom Rini	depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
233f0fb4fa7SDalon Westergreen	help
234f0fb4fa7SDalon Westergreen	  Partition Type on the MMC to load U-Boot from, when the MMC is being
235f0fb4fa7SDalon Westergreen	  used in raw mode.
236f0fb4fa7SDalon Westergreen
23711bde1cdSSimon Glassconfig SPL_CRC32_SUPPORT
23811bde1cdSSimon Glass	bool "Support CRC32"
23911bde1cdSSimon Glass	depends on SPL_FIT
24011bde1cdSSimon Glass	help
24111bde1cdSSimon Glass	  Enable this to support CRC32 in FIT images within SPL. This is a
24211bde1cdSSimon Glass	  32-bit checksum value that can be used to verify images. This is
24311bde1cdSSimon Glass	  the least secure type of checksum, suitable for detected
24411bde1cdSSimon Glass	  accidental image corruption. For secure applications you should
24511bde1cdSSimon Glass	  consider SHA1 or SHA256.
24611bde1cdSSimon Glass
24711bde1cdSSimon Glassconfig SPL_MD5_SUPPORT
24811bde1cdSSimon Glass	bool "Support MD5"
24911bde1cdSSimon Glass	depends on SPL_FIT
25011bde1cdSSimon Glass	help
25111bde1cdSSimon Glass	  Enable this to support MD5 in FIT images within SPL. An MD5
25211bde1cdSSimon Glass	  checksum is a 128-bit hash value used to check that the image
25311bde1cdSSimon Glass	  contents have not been corrupted. Note that MD5 is not considered
25411bde1cdSSimon Glass	  secure as it is possible (with a brute-force attack) to adjust the
25511bde1cdSSimon Glass	  image while still retaining the same MD5 hash value. For secure
25611bde1cdSSimon Glass	  applications where images may be changed maliciously, you should
25711bde1cdSSimon Glass	  consider SHA1 or SHA256.
25811bde1cdSSimon Glass
25911bde1cdSSimon Glassconfig SPL_SHA1_SUPPORT
26011bde1cdSSimon Glass	bool "Support SHA1"
26111bde1cdSSimon Glass	depends on SPL_FIT
262089df18bSTom Rini	select SHA1
26311bde1cdSSimon Glass	help
26411bde1cdSSimon Glass	  Enable this to support SHA1 in FIT images within SPL. A SHA1
26511bde1cdSSimon Glass	  checksum is a 160-bit (20-byte) hash value used to check that the
26611bde1cdSSimon Glass	  image contents have not been corrupted or maliciously altered.
26711bde1cdSSimon Glass	  While SHA1 is fairly secure it is coming to the end of its life
26811bde1cdSSimon Glass	  due to the expanding computing power avaiable to brute-force
26911bde1cdSSimon Glass	  attacks. For more security, consider SHA256.
27011bde1cdSSimon Glass
27111bde1cdSSimon Glassconfig SPL_SHA256_SUPPORT
27211bde1cdSSimon Glass	bool "Support SHA256"
27311bde1cdSSimon Glass	depends on SPL_FIT
274089df18bSTom Rini	select SHA256
27511bde1cdSSimon Glass	help
27611bde1cdSSimon Glass	  Enable this to support SHA256 in FIT images within SPL. A SHA256
27711bde1cdSSimon Glass	  checksum is a 256-bit (32-byte) hash value used to check that the
27811bde1cdSSimon Glass	  image contents have not been corrupted. SHA256 is recommended for
27911bde1cdSSimon Glass	  use in secure applications since (as at 2016) there is no known
28011bde1cdSSimon Glass	  feasible attack that could produce a 'collision' with differing
28111bde1cdSSimon Glass	  input data. Use this for the highest security. Note that only the
28211bde1cdSSimon Glass	  SHA256 variant is supported: SHA512 and others are not currently
28311bde1cdSSimon Glass	  supported in U-Boot.
28411bde1cdSSimon Glass
285337bbb62SPhilipp Tomsichconfig SPL_FIT_IMAGE_TINY
286337bbb62SPhilipp Tomsich	bool "Remove functionality from SPL FIT loading to reduce size"
287337bbb62SPhilipp Tomsich	depends on SPL_FIT
2886f796a9bSIcenowy Zheng	default y if MACH_SUN50I || MACH_SUN50I_H5 || MACH_SUN50I_H6
289f6282cddSYe Li	default y if ARCH_IMX8M
290337bbb62SPhilipp Tomsich	help
291337bbb62SPhilipp Tomsich	  Enable this to reduce the size of the FIT image loading code
292337bbb62SPhilipp Tomsich	  in SPL, if space for the SPL binary is very tight.
293337bbb62SPhilipp Tomsich
294337bbb62SPhilipp Tomsich	  This removes the detection of image types (which forces the
295337bbb62SPhilipp Tomsich	  first image to be treated as having a U-Boot style calling
296337bbb62SPhilipp Tomsich	  convention) and skips the recording of each loaded payload
297337bbb62SPhilipp Tomsich	  (i.e. loadable) into the FDT (modifying the loaded FDT to
298337bbb62SPhilipp Tomsich	  ensure this information is available to the next image
299337bbb62SPhilipp Tomsich	  invoked).
300337bbb62SPhilipp Tomsich
3015e148df9SSimon Glassconfig SPL_CPU_SUPPORT
3025e148df9SSimon Glass	bool "Support CPU drivers"
3035e148df9SSimon Glass	help
3045e148df9SSimon Glass	  Enable this to support CPU drivers in SPL. These drivers can set
3055e148df9SSimon Glass	  up CPUs and provide information about them such as the model and
3065e148df9SSimon Glass	  name. This can be useful in SPL since setting up the CPUs earlier
3075e148df9SSimon Glass	  may improve boot performance. Enable this option to build the
3085e148df9SSimon Glass	  drivers in drivers/cpu as part of an SPL build.
3095e148df9SSimon Glass
31011bde1cdSSimon Glassconfig SPL_CRYPTO_SUPPORT
31111bde1cdSSimon Glass	bool "Support crypto drivers"
31211bde1cdSSimon Glass	help
31311bde1cdSSimon Glass	  Enable crypto drivers in SPL. These drivers can be used to
31411bde1cdSSimon Glass	  accelerate secure boot processing in secure applications. Enable
31511bde1cdSSimon Glass	  this option to build the drivers in drivers/crypto as part of an
31611bde1cdSSimon Glass	  SPL build.
31711bde1cdSSimon Glass
31811bde1cdSSimon Glassconfig SPL_HASH_SUPPORT
31911bde1cdSSimon Glass	bool "Support hashing drivers"
320089df18bSTom Rini	select SHA1
321089df18bSTom Rini	select SHA256
32211bde1cdSSimon Glass	help
32311bde1cdSSimon Glass	  Enable hashing drivers in SPL. These drivers can be used to
32411bde1cdSSimon Glass	  accelerate secure boot processing in secure applications. Enable
32511bde1cdSSimon Glass	  this option to build system-specific drivers for hash acceleration
32611bde1cdSSimon Glass	  as part of an SPL build.
32711bde1cdSSimon Glass
3282d424eb0SSimon Glassconfig TPL_HASH_SUPPORT
3292d424eb0SSimon Glass	bool "Support hashing drivers in TPL"
3302d424eb0SSimon Glass	select SHA1
3312d424eb0SSimon Glass	select SHA256
3322d424eb0SSimon Glass	help
3332d424eb0SSimon Glass	  Enable hashing drivers in SPL. These drivers can be used to
3342d424eb0SSimon Glass	  accelerate secure boot processing in secure applications. Enable
3352d424eb0SSimon Glass	  this option to build system-specific drivers for hash acceleration
3362d424eb0SSimon Glass	  as part of an SPL build.
3372d424eb0SSimon Glass
33811bde1cdSSimon Glassconfig SPL_DMA_SUPPORT
33911bde1cdSSimon Glass	bool "Support DMA drivers"
34011bde1cdSSimon Glass	help
34111bde1cdSSimon Glass	  Enable DMA (direct-memory-access) drivers in SPL. These drivers
34211bde1cdSSimon Glass	  can be used to handle memory-to-peripheral data transfer without
34311bde1cdSSimon Glass	  the CPU moving the data. Enable this option to build the drivers
34411bde1cdSSimon Glass	  in drivers/dma as part of an SPL build.
34511bde1cdSSimon Glass
34611bde1cdSSimon Glassconfig SPL_DRIVERS_MISC_SUPPORT
34711bde1cdSSimon Glass	bool "Support misc drivers"
34811bde1cdSSimon Glass	help
34911bde1cdSSimon Glass	  Enable miscellaneous drivers in SPL. These drivers perform various
35011bde1cdSSimon Glass	  tasks that don't fall nicely into other categories, Enable this
35111bde1cdSSimon Glass	  option to build the drivers in drivers/misc as part of an SPL
35211bde1cdSSimon Glass	  build, for those that support building in SPL (not all drivers do).
35311bde1cdSSimon Glass
35411bde1cdSSimon Glassconfig SPL_ENV_SUPPORT
35511bde1cdSSimon Glass	bool "Support an environment"
35611bde1cdSSimon Glass	help
35711bde1cdSSimon Glass	  Enable environment support in SPL. The U-Boot environment provides
35811bde1cdSSimon Glass	  a number of settings (essentially name/value pairs) which can
35911bde1cdSSimon Glass	  control many aspects of U-Boot's operation. Normally this is not
36011bde1cdSSimon Glass	  needed in SPL as it has a much simpler task with less
36111bde1cdSSimon Glass	  configuration. But some boards use this to support 'Falcon' boot
36211bde1cdSSimon Glass	  on EXT2 and FAT, where SPL boots directly into Linux without
36300caae6dSSimon Glass	  starting U-Boot first. Enabling this option will make env_get()
364382bee57SSimon Glass	  and env_set() available in SPL.
36511bde1cdSSimon Glass
366d2d9bdfcSB, Raviconfig SPL_SAVEENV
367d2d9bdfcSB, Ravi	bool "Support save environment"
368226498b8STom Rini	depends on SPL_ENV_SUPPORT
369d6400c3fSJean-Jacques Hiblot	select SPL_MMC_WRITE if ENV_IS_IN_MMC
370d2d9bdfcSB, Ravi	help
371d2d9bdfcSB, Ravi	  Enable save environment support in SPL after setenv. By default
372d2d9bdfcSB, Ravi	  the saveenv option is not provided in SPL, but some boards need
373d2d9bdfcSB, Ravi	  this support in 'Falcon' boot, where SPL need to boot from
374d2d9bdfcSB, Ravi	  different images based on environment variable set by OS. For
375d2d9bdfcSB, Ravi	  example OS may set "reboot_image" environment variable to
376d2d9bdfcSB, Ravi	  "recovery" inorder to boot recovery image by SPL. The SPL read
377d2d9bdfcSB, Ravi	  "reboot_image" and act accordingly and change the reboot_image
378919d25c9SShyam Saini	  to default mode using setenv and save the environment.
379d2d9bdfcSB, Ravi
38011bde1cdSSimon Glassconfig SPL_ETH_SUPPORT
38111bde1cdSSimon Glass	bool "Support Ethernet"
38211bde1cdSSimon Glass	depends on SPL_ENV_SUPPORT
38311bde1cdSSimon Glass	help
38411bde1cdSSimon Glass	  Enable access to the network subsystem and associated Ethernet
38511bde1cdSSimon Glass	  drivers in SPL. This permits SPL to load U-Boot over an Ethernet
38611bde1cdSSimon Glass	  link rather than from an on-board peripheral. Environment support
38711bde1cdSSimon Glass	  is required since the network stack uses a number of environment
38811bde1cdSSimon Glass	  variables. See also SPL_NET_SUPPORT.
38911bde1cdSSimon Glass
39011bde1cdSSimon Glassconfig SPL_EXT_SUPPORT
39111bde1cdSSimon Glass	bool "Support EXT filesystems"
39211bde1cdSSimon Glass	help
39311bde1cdSSimon Glass	  Enable support for EXT2/3/4 filesystems with SPL. This permits
39411bde1cdSSimon Glass	  U-Boot (or Linux in Falcon mode) to be loaded from an EXT
39511bde1cdSSimon Glass	  filesystem from within SPL. Support for the underlying block
39611bde1cdSSimon Glass	  device (e.g. MMC or USB) must be enabled separately.
39711bde1cdSSimon Glass
39811bde1cdSSimon Glassconfig SPL_FAT_SUPPORT
39911bde1cdSSimon Glass	bool "Support FAT filesystems"
400eedfb89eSSekhar Nori	select FS_FAT
40111bde1cdSSimon Glass	help
40211bde1cdSSimon Glass	  Enable support for FAT and VFAT filesystems with SPL. This
40311bde1cdSSimon Glass	  permits U-Boot (or Linux in Falcon mode) to be loaded from a FAT
40411bde1cdSSimon Glass	  filesystem from within SPL. Support for the underlying block
40511bde1cdSSimon Glass	  device (e.g. MMC or USB) must be enabled separately.
40611bde1cdSSimon Glass
40711bde1cdSSimon Glassconfig SPL_FPGA_SUPPORT
40811bde1cdSSimon Glass	bool "Support FPGAs"
40911bde1cdSSimon Glass	help
41011bde1cdSSimon Glass	  Enable support for FPGAs in SPL. Field-programmable Gate Arrays
41111bde1cdSSimon Glass	  provide software-configurable hardware which is typically used to
41211bde1cdSSimon Glass	  implement peripherals (such as UARTs, LCD displays, MMC) or
41311bde1cdSSimon Glass	  accelerate custom processing functions, such as image processing
41411bde1cdSSimon Glass	  or machine learning. Sometimes it is useful to program the FPGA
41511bde1cdSSimon Glass	  as early as possible during boot, and this option can enable that
41611bde1cdSSimon Glass	  within SPL.
41711bde1cdSSimon Glass
41811bde1cdSSimon Glassconfig SPL_GPIO_SUPPORT
4192d424eb0SSimon Glass	bool "Support GPIO in SPL"
42011bde1cdSSimon Glass	help
42111bde1cdSSimon Glass	  Enable support for GPIOs (General-purpose Input/Output) in SPL.
42211bde1cdSSimon Glass	  GPIOs allow U-Boot to read the state of an input line (high or
42311bde1cdSSimon Glass	  low) and set the state of an output line. This can be used to
42411bde1cdSSimon Glass	  drive LEDs, control power to various system parts and read user
42511bde1cdSSimon Glass	  input. GPIOs can be useful in SPL to enable a 'sign-of-life' LED,
42611bde1cdSSimon Glass	  for example. Enable this option to build the drivers in
42711bde1cdSSimon Glass	  drivers/gpio as part of an SPL build.
42811bde1cdSSimon Glass
42911bde1cdSSimon Glassconfig SPL_I2C_SUPPORT
43011bde1cdSSimon Glass	bool "Support I2C"
43111bde1cdSSimon Glass	help
43211bde1cdSSimon Glass	  Enable support for the I2C (Inter-Integrated Circuit) bus in SPL.
43311bde1cdSSimon Glass	  I2C works with a clock and data line which can be driven by a
43411bde1cdSSimon Glass	  one or more masters or slaves. It is a fairly complex bus but is
43511bde1cdSSimon Glass	  widely used as it only needs two lines for communication. Speeds of
43611bde1cdSSimon Glass	  400kbps are typical but up to 3.4Mbps is supported by some
43711bde1cdSSimon Glass	  hardware. I2C can be useful in SPL to configure power management
43811bde1cdSSimon Glass	  ICs (PMICs) before raising the CPU clock speed, for example.
43911bde1cdSSimon Glass	  Enable this option to build the drivers in drivers/i2c as part of
44011bde1cdSSimon Glass	  an SPL build.
44111bde1cdSSimon Glass
44211bde1cdSSimon Glassconfig SPL_LIBCOMMON_SUPPORT
44311bde1cdSSimon Glass	bool "Support common libraries"
44411bde1cdSSimon Glass	help
44511bde1cdSSimon Glass	  Enable support for common U-Boot libraries within SPL. These
44611bde1cdSSimon Glass	  libraries include common code to deal with U-Boot images,
44711bde1cdSSimon Glass	  environment and USB, for example. This option is enabled on many
44811bde1cdSSimon Glass	  boards. Enable this option to build the code in common/ as part of
44911bde1cdSSimon Glass	  an SPL build.
45011bde1cdSSimon Glass
45111bde1cdSSimon Glassconfig SPL_LIBDISK_SUPPORT
45200416704SSimon Goldschmidt	bool "Support disk partitions"
45391ff6865STom Rini	select PARTITIONS
45411bde1cdSSimon Glass	help
45511bde1cdSSimon Glass	  Enable support for disk partitions within SPL. 'Disk' is something
45611bde1cdSSimon Glass	  of a misnomer as it includes non-spinning media such as flash (as
45711bde1cdSSimon Glass	  used in MMC and USB sticks). Partitions provide a way for a disk
45811bde1cdSSimon Glass	  to be split up into separate regions, with a partition table placed
45911bde1cdSSimon Glass	  at the start or end which describes the location and size of each
46011bde1cdSSimon Glass	  'partition'. These partitions are typically uses as individual block
46111bde1cdSSimon Glass	  devices, typically with an EXT2 or FAT filesystem in each. This
46211bde1cdSSimon Glass	  option enables whatever partition support has been enabled in
46311bde1cdSSimon Glass	  U-Boot to also be used in SPL. It brings in the code in disk/.
46411bde1cdSSimon Glass
46511bde1cdSSimon Glassconfig SPL_LIBGENERIC_SUPPORT
46611bde1cdSSimon Glass	bool "Support generic libraries"
46711bde1cdSSimon Glass	help
46811bde1cdSSimon Glass	  Enable support for generic U-Boot libraries within SPL. These
46911bde1cdSSimon Glass	  libraries include generic code to deal with device tree, hashing,
47011bde1cdSSimon Glass	  printf(), compression and the like. This option is enabled on many
47111bde1cdSSimon Glass	  boards. Enable this option to build the code in lib/ as part of an
47211bde1cdSSimon Glass	  SPL build.
47311bde1cdSSimon Glass
47488027419SLokesh Vutlaconfig SPL_DM_MAILBOX
47588027419SLokesh Vutla	bool "Support Mailbox"
47688027419SLokesh Vutla	help
47788027419SLokesh Vutla	  Enable support for Mailbox within SPL. This enable the inter
47888027419SLokesh Vutla	  processor communication protocols tobe used within SPL. Enable
47988027419SLokesh Vutla	  this option to build the drivers in drivers/mailbox as part of
48088027419SLokesh Vutla	  SPL build.
48188027419SLokesh Vutla
48211bde1cdSSimon Glassconfig SPL_MMC_SUPPORT
48311bde1cdSSimon Glass	bool "Support MMC"
484226498b8STom Rini	depends on MMC
48591ff6865STom Rini	select HAVE_BLOCK_DEVICE
48611bde1cdSSimon Glass	help
48711bde1cdSSimon Glass	  Enable support for MMC (Multimedia Card) within SPL. This enables
48811bde1cdSSimon Glass	  the MMC protocol implementation and allows any enabled drivers to
48911bde1cdSSimon Glass	  be used within SPL. MMC can be used with or without disk partition
49011bde1cdSSimon Glass	  support depending on the application (SPL_LIBDISK_SUPPORT). Enable
49111bde1cdSSimon Glass	  this option to build the drivers in drivers/mmc as part of an SPL
49211bde1cdSSimon Glass	  build.
49311bde1cdSSimon Glass
494d6400c3fSJean-Jacques Hiblotconfig SPL_MMC_WRITE
495d6400c3fSJean-Jacques Hiblot	bool "MMC/SD/SDIO card support for write operations in SPL"
496d6400c3fSJean-Jacques Hiblot	depends on SPL_MMC_SUPPORT
497d6400c3fSJean-Jacques Hiblot	default n
498d6400c3fSJean-Jacques Hiblot	help
499d6400c3fSJean-Jacques Hiblot	  Enable write access to MMC and SD Cards in SPL
500d6400c3fSJean-Jacques Hiblot
501d6400c3fSJean-Jacques Hiblot
50211bde1cdSSimon Glassconfig SPL_MPC8XXX_INIT_DDR_SUPPORT
50311bde1cdSSimon Glass	bool "Support MPC8XXX DDR init"
50411bde1cdSSimon Glass	help
50511bde1cdSSimon Glass	  Enable support for DDR-SDRAM (double-data-rate synchronous dynamic
50611bde1cdSSimon Glass	  random-access memory) on the MPC8XXX family within SPL. This
50711bde1cdSSimon Glass	  allows DRAM to be set up before loading U-Boot into that DRAM,
50811bde1cdSSimon Glass	  where it can run.
50911bde1cdSSimon Glass
51011bde1cdSSimon Glassconfig SPL_MTD_SUPPORT
51111bde1cdSSimon Glass	bool "Support MTD drivers"
51211bde1cdSSimon Glass	help
51311bde1cdSSimon Glass	  Enable support for MTD (Memory Technology Device) within SPL. MTD
51411bde1cdSSimon Glass	  provides a block interface over raw NAND and can also be used with
51511bde1cdSSimon Glass	  SPI flash. This allows SPL to load U-Boot from supported MTD
51611bde1cdSSimon Glass	  devices. See SPL_NAND_SUPPORT and SPL_ONENAND_SUPPORT for how
51711bde1cdSSimon Glass	  to enable specific MTD drivers.
51811bde1cdSSimon Glass
51911bde1cdSSimon Glassconfig SPL_MUSB_NEW_SUPPORT
52011bde1cdSSimon Glass	bool "Support new Mentor Graphics USB"
52111bde1cdSSimon Glass	help
52211bde1cdSSimon Glass	  Enable support for Mentor Graphics USB in SPL. This is a new
52311bde1cdSSimon Glass	  driver used by some boards. Enable this option to build
52411bde1cdSSimon Glass	  the drivers in drivers/usb/musb-new as part of an SPL build. The
52511bde1cdSSimon Glass	  old drivers are in drivers/usb/musb.
52611bde1cdSSimon Glass
52711bde1cdSSimon Glassconfig SPL_NAND_SUPPORT
52811bde1cdSSimon Glass	bool "Support NAND flash"
52911bde1cdSSimon Glass	help
53011bde1cdSSimon Glass	  Enable support for NAND (Negative AND) flash in SPL. NAND flash
53111bde1cdSSimon Glass	  can be used to allow SPL to load U-Boot from supported devices.
532a430fa06SMiquel Raynal	  This enables the drivers in drivers/mtd/nand/raw as part of an SPL
53311bde1cdSSimon Glass	  build.
53411bde1cdSSimon Glass
53511bde1cdSSimon Glassconfig SPL_NET_SUPPORT
53611bde1cdSSimon Glass	bool "Support networking"
53711bde1cdSSimon Glass	help
53811bde1cdSSimon Glass	  Enable support for network devices (such as Ethernet) in SPL.
53911bde1cdSSimon Glass	  This permits SPL to load U-Boot over a network link rather than
54011bde1cdSSimon Glass	  from an on-board peripheral. Environment support is required since
54111bde1cdSSimon Glass	  the network stack uses a number of environment variables. See also
54211bde1cdSSimon Glass	  SPL_ETH_SUPPORT.
54311bde1cdSSimon Glass
54411bde1cdSSimon Glassif SPL_NET_SUPPORT
54511bde1cdSSimon Glassconfig SPL_NET_VCI_STRING
54611bde1cdSSimon Glass	string "BOOTP Vendor Class Identifier string sent by SPL"
54711bde1cdSSimon Glass	help
54811bde1cdSSimon Glass	  As defined by RFC 2132 the vendor class identifier field can be
54911bde1cdSSimon Glass	  sent by the client to identify the vendor type and configuration
55011bde1cdSSimon Glass	  of a client.  This is often used in practice to allow for the DHCP
55111bde1cdSSimon Glass	  server to specify different files to load depending on if the ROM,
55211bde1cdSSimon Glass	  SPL or U-Boot itself makes the request
55311bde1cdSSimon Glassendif   # if SPL_NET_SUPPORT
55411bde1cdSSimon Glass
55511bde1cdSSimon Glassconfig SPL_NO_CPU_SUPPORT
55611bde1cdSSimon Glass	bool "Drop CPU code in SPL"
55711bde1cdSSimon Glass	help
55811bde1cdSSimon Glass	  This is specific to the ARM926EJ-S CPU. It disables the standard
55911bde1cdSSimon Glass	  start.S start-up code, presumably so that a replacement can be
56011bde1cdSSimon Glass	  used on that CPU. You should not enable it unless you know what
56111bde1cdSSimon Glass	  you are doing.
56211bde1cdSSimon Glass
56311bde1cdSSimon Glassconfig SPL_NOR_SUPPORT
56411bde1cdSSimon Glass	bool "Support NOR flash"
56511bde1cdSSimon Glass	help
56611bde1cdSSimon Glass	  Enable support for loading U-Boot from memory-mapped NOR (Negative
56711bde1cdSSimon Glass	  OR) flash in SPL. NOR flash is slow to write but fast to read, and
56811bde1cdSSimon Glass	  a memory-mapped device makes it very easy to access. Loading from
56911bde1cdSSimon Glass	  NOR is typically achieved with just a memcpy().
57011bde1cdSSimon Glass
571c6d9e9dbSVikas Manochaconfig SPL_XIP_SUPPORT
572c6d9e9dbSVikas Manocha	bool "Support XIP"
573c6d9e9dbSVikas Manocha	depends on SPL
574c6d9e9dbSVikas Manocha	help
575c6d9e9dbSVikas Manocha	  Enable support for execute in place of U-Boot or kernel image. There
576c6d9e9dbSVikas Manocha	  is no need to copy image from flash to ram if flash supports execute
577c6d9e9dbSVikas Manocha	  in place. Its very useful in systems having enough flash but not
578c6d9e9dbSVikas Manocha	  enough ram to load the image.
579c6d9e9dbSVikas Manocha
58011bde1cdSSimon Glassconfig SPL_ONENAND_SUPPORT
58111bde1cdSSimon Glass	bool "Support OneNAND flash"
58211bde1cdSSimon Glass	help
58311bde1cdSSimon Glass	  Enable support for OneNAND (Negative AND) flash in SPL. OneNAND is
58411bde1cdSSimon Glass	  a type of NAND flash and therefore can be used to allow SPL to
58511bde1cdSSimon Glass	  load U-Boot from supported devices. This enables the drivers in
58611bde1cdSSimon Glass	  drivers/mtd/onenand as part of an SPL build.
58711bde1cdSSimon Glass
588c20ae2ffSHeiko Schocherconfig SPL_OS_BOOT
589c20ae2ffSHeiko Schocher	bool "Activate Falcon Mode"
590226498b8STom Rini	depends on !TI_SECURE_DEVICE
591c20ae2ffSHeiko Schocher	default n
592c20ae2ffSHeiko Schocher	help
593c20ae2ffSHeiko Schocher	  Enable booting directly to an OS from SPL.
594c20ae2ffSHeiko Schocher	  for more info read doc/README.falcon
595c20ae2ffSHeiko Schocher
59629d3bc79SHeiko Schocherif SPL_OS_BOOT
59729d3bc79SHeiko Schocherconfig SYS_OS_BASE
59829d3bc79SHeiko Schocher	hex "addr, where OS is found"
599226498b8STom Rini	depends on SPL_NOR_SUPPORT
60029d3bc79SHeiko Schocher	help
60129d3bc79SHeiko Schocher	  Specify the address, where the OS image is found, which
60229d3bc79SHeiko Schocher	  gets booted.
60329d3bc79SHeiko Schocher
60429d3bc79SHeiko Schocherendif # SPL_OS_BOOT
60529d3bc79SHeiko Schocher
6067550dbe3SYork Sunconfig SPL_PAYLOAD
6077550dbe3SYork Sun	string "SPL payload"
6087550dbe3SYork Sun	default "tpl/u-boot-with-tpl.bin" if TPL
6097550dbe3SYork Sun	default "u-boot.bin"
6107550dbe3SYork Sun	help
6112dcfa058SChris Packham	  Payload for SPL boot. For backward compatibility, default to
6127550dbe3SYork Sun	  u-boot.bin, i.e. RAW image without any header. In case of
6137550dbe3SYork Sun	  TPL, tpl/u-boot-with-tpl.bin. For new boards, suggest to
6147550dbe3SYork Sun	  use u-boot.img.
6157550dbe3SYork Sun
616d50d6817SSekhar Noriconfig SPL_PCI
6172446b6b8SSimon Glass	bool "Support PCI drivers"
6182446b6b8SSimon Glass	help
6192446b6b8SSimon Glass	  Enable support for PCI in SPL. For platforms that need PCI to boot,
6202446b6b8SSimon Glass	  or must perform some init using PCI in SPL, this provides the
6212446b6b8SSimon Glass	  necessary driver support. This enables the drivers in drivers/pci
6222446b6b8SSimon Glass	  as part of an SPL build.
6232446b6b8SSimon Glass
624bbe41abfSSimon Glassconfig SPL_PCH_SUPPORT
625bbe41abfSSimon Glass	bool "Support PCH drivers"
626bbe41abfSSimon Glass	help
627bbe41abfSSimon Glass	  Enable support for PCH (Platform Controller Hub) devices in SPL.
628bbe41abfSSimon Glass	  These are used to set up GPIOs and the SPI peripheral early in
629bbe41abfSSimon Glass	  boot. This enables the drivers in drivers/pch as part of an SPL
630bbe41abfSSimon Glass	  build.
631bbe41abfSSimon Glass
63211bde1cdSSimon Glassconfig SPL_POST_MEM_SUPPORT
63311bde1cdSSimon Glass	bool "Support POST drivers"
63411bde1cdSSimon Glass	help
63511bde1cdSSimon Glass	  Enable support for POST (Power-on Self Test) in SPL. POST is a
63611bde1cdSSimon Glass	  procedure that checks that the hardware (CPU or board) appears to
63711bde1cdSSimon Glass	  be functionally correctly. It is a sanity check that can be
63811bde1cdSSimon Glass	  performed before booting. This enables the drivers in post/drivers
63911bde1cdSSimon Glass	  as part of an SPL build.
64011bde1cdSSimon Glass
641bfc6bae8SLey Foon Tanconfig SPL_DM_RESET
6420e373c0aSPatrick Delaunay	bool "Support reset drivers"
6430e373c0aSPatrick Delaunay	depends on SPL
6440e373c0aSPatrick Delaunay	help
6450e373c0aSPatrick Delaunay	  Enable support for reset control in SPL.
6460e373c0aSPatrick Delaunay	  That can be useful in SPL to handle IP reset in driver, as in U-Boot,
6470e373c0aSPatrick Delaunay	  by using the generic reset API provided by driver model.
6480e373c0aSPatrick Delaunay	  This enables the drivers in drivers/reset as part of an SPL build.
6490e373c0aSPatrick Delaunay
65011bde1cdSSimon Glassconfig SPL_POWER_SUPPORT
65111bde1cdSSimon Glass	bool "Support power drivers"
65211bde1cdSSimon Glass	help
65311bde1cdSSimon Glass	  Enable support for power control in SPL. This includes support
65411bde1cdSSimon Glass	  for PMICs (Power-management Integrated Circuits) and some of the
65511bde1cdSSimon Glass	  features provided by PMICs. In particular, voltage regulators can
65611bde1cdSSimon Glass	  be used to enable/disable power and vary its voltage. That can be
65711bde1cdSSimon Glass	  useful in SPL to turn on boot peripherals and adjust CPU voltage
65811bde1cdSSimon Glass	  so that the clock speed can be increased. This enables the drivers
65911bde1cdSSimon Glass	  in drivers/power, drivers/power/pmic and drivers/power/regulator
66011bde1cdSSimon Glass	  as part of an SPL build.
66111bde1cdSSimon Glass
662e13278c9SPeng Fanconfig SPL_POWER_DOMAIN
663e13278c9SPeng Fan	bool "Support power domain drivers"
664e13278c9SPeng Fan	help
665e13278c9SPeng Fan	  Enable support for power domain control in SPL. Many SoCs allow
666e13278c9SPeng Fan	  power to be applied to or removed from portions of the SoC (power
667e13278c9SPeng Fan	  domains). This may be used to save power. This API provides the
668e13278c9SPeng Fan	  means to control such power management hardware. This enables
669e13278c9SPeng Fan	  the drivers in drivers/power/domain as part of a SPL build.
670e13278c9SPeng Fan
67122802f4eSStefan Agnerconfig SPL_RAM_SUPPORT
67222802f4eSStefan Agner	bool "Support booting from RAM"
67322802f4eSStefan Agner	default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
67422802f4eSStefan Agner	help
67522802f4eSStefan Agner	  Enable booting of an image in RAM. The image can be preloaded or
67622802f4eSStefan Agner	  it can be loaded by SPL directly into RAM (e.g. using USB).
67722802f4eSStefan Agner
678f417d40fSStefan Agnerconfig SPL_RAM_DEVICE
679f417d40fSStefan Agner	bool "Support booting from preloaded image in RAM"
68022802f4eSStefan Agner	depends on SPL_RAM_SUPPORT
681f417d40fSStefan Agner	default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
682f417d40fSStefan Agner	help
683f417d40fSStefan Agner	  Enable booting of an image already loaded in RAM. The image has to
684f417d40fSStefan Agner	  be already in memory when SPL takes over, e.g. loaded by the boot
685f417d40fSStefan Agner	  ROM.
686f417d40fSStefan Agner
68708c45314SLokesh Vutlaconfig SPL_REMOTEPROC
68808c45314SLokesh Vutla	bool "Support REMOTEPROCS"
68908c45314SLokesh Vutla	help
69008c45314SLokesh Vutla	  Enable support for REMOTEPROCs in SPL. This permits to load
69108c45314SLokesh Vutla	  a remote processor firmware in SPL.
69208c45314SLokesh Vutla
69330bf8a0dSSimon Glassconfig SPL_RTC_SUPPORT
69430bf8a0dSSimon Glass	bool "Support RTC drivers"
69530bf8a0dSSimon Glass	help
69630bf8a0dSSimon Glass	  Enable RTC (Real-time Clock) support in SPL. This includes support
69730bf8a0dSSimon Glass	  for reading and setting the time. Some RTC devices also have some
69830bf8a0dSSimon Glass	  non-volatile (battery-backed) memory which is accessible if
69930bf8a0dSSimon Glass	  needed. This enables the drivers in drivers/rtc as part of an SPL
70030bf8a0dSSimon Glass	  build.
70130bf8a0dSSimon Glass
70211bde1cdSSimon Glassconfig SPL_SATA_SUPPORT
70311bde1cdSSimon Glass	bool "Support loading from SATA"
70411bde1cdSSimon Glass	help
70511bde1cdSSimon Glass	  Enable support for SATA (Serial AT attachment) in SPL. This allows
70611bde1cdSSimon Glass	  use of SATA devices such as hard drives and flash drivers for
70711bde1cdSSimon Glass	  loading U-Boot. SATA is used in higher-end embedded systems and
70811bde1cdSSimon Glass	  can provide higher performance than MMC , at somewhat higher
70911bde1cdSSimon Glass	  expense and power consumption. This enables loading from SATA
71011bde1cdSSimon Glass	  using a configured device.
71111bde1cdSSimon Glass
71211bde1cdSSimon Glassconfig SPL_SERIAL_SUPPORT
71311bde1cdSSimon Glass	bool "Support serial"
71414ad44abSAlex Kiernan	select SPL_PRINTF
71514ad44abSAlex Kiernan	select SPL_STRTO
71611bde1cdSSimon Glass	help
71711bde1cdSSimon Glass	  Enable support for serial in SPL. This allows use of a serial UART
71811bde1cdSSimon Glass	  for displaying messages while SPL is running. It also brings in
71911bde1cdSSimon Glass	  printf() and panic() functions. This should normally be enabled
72011bde1cdSSimon Glass	  unless there are space reasons not to. Even then, consider
72111bde1cdSSimon Glass	  enabling USE_TINY_PRINTF which is a small printf() version.
72211bde1cdSSimon Glass
72311bde1cdSSimon Glassconfig SPL_SPI_FLASH_SUPPORT
72411bde1cdSSimon Glass	bool "Support SPI flash drivers"
72511bde1cdSSimon Glass	help
72611bde1cdSSimon Glass	  Enable support for using SPI flash in SPL, and loading U-Boot from
72711bde1cdSSimon Glass	  SPI flash. SPI flash (Serial Peripheral Bus flash) is named after
72811bde1cdSSimon Glass	  the SPI bus that is used to connect it to a system. It is a simple
72911bde1cdSSimon Glass	  but fast bidirectional 4-wire bus (clock, chip select and two data
73011bde1cdSSimon Glass	  lines). This enables the drivers in drivers/mtd/spi as part of an
73111bde1cdSSimon Glass	  SPL build. This normally requires SPL_SPI_SUPPORT.
73211bde1cdSSimon Glass
73355500438SMarek Vasutconfig SPL_SPI_LOAD
73455500438SMarek Vasut	bool "Support loading from SPI flash"
73555500438SMarek Vasut	depends on SPL_SPI_FLASH_SUPPORT
73655500438SMarek Vasut	help
73755500438SMarek Vasut	  Enable support for loading next stage, U-Boot or otherwise, from
73855500438SMarek Vasut	  SPI NOR in U-Boot SPL.
73955500438SMarek Vasut
74011bde1cdSSimon Glassconfig SPL_SPI_SUPPORT
74111bde1cdSSimon Glass	bool "Support SPI drivers"
74211bde1cdSSimon Glass	help
74311bde1cdSSimon Glass	  Enable support for using SPI in SPL. This is used for connecting
74411bde1cdSSimon Glass	  to SPI flash for loading U-Boot. See SPL_SPI_FLASH_SUPPORT for
74511bde1cdSSimon Glass	  more details on that. The SPI driver provides the transport for
74611bde1cdSSimon Glass	  data between the SPI flash and the CPU. This option can be used to
74711bde1cdSSimon Glass	  enable SPI drivers that are needed for other purposes also, such
74811bde1cdSSimon Glass	  as a SPI PMIC.
74911bde1cdSSimon Glass
7508502f9f6SFaiz Abbasconfig SPL_THERMAL
7518502f9f6SFaiz Abbas	bool "Driver support for thermal devices"
7528502f9f6SFaiz Abbas	help
7538502f9f6SFaiz Abbas	  Enable support for temperature-sensing devices. Some SoCs have on-chip
7548502f9f6SFaiz Abbas	  temperature sensors to permit warnings, speed throttling or even
7558502f9f6SFaiz Abbas	  automatic power-off when the temperature gets too high or low. Other
7568502f9f6SFaiz Abbas	  devices may be discrete but connected on a suitable bus.
7578502f9f6SFaiz Abbas
75811bde1cdSSimon Glassconfig SPL_USB_HOST_SUPPORT
75911bde1cdSSimon Glass	bool "Support USB host drivers"
76091ff6865STom Rini	select HAVE_BLOCK_DEVICE
76111bde1cdSSimon Glass	help
76211bde1cdSSimon Glass	  Enable access to USB (Universal Serial Bus) host devices so that
76311bde1cdSSimon Glass	  SPL can load U-Boot from a connected USB peripheral, such as a USB
76411bde1cdSSimon Glass	  flash stick. While USB takes a little longer to start up than most
76511bde1cdSSimon Glass	  buses, it is very flexible since many different types of storage
76611bde1cdSSimon Glass	  device can be attached. This option enables the drivers in
76711bde1cdSSimon Glass	  drivers/usb/host as part of an SPL build.
76811bde1cdSSimon Glass
76911bde1cdSSimon Glassconfig SPL_USB_SUPPORT
77011bde1cdSSimon Glass	bool "Support loading from USB"
77111bde1cdSSimon Glass	depends on SPL_USB_HOST_SUPPORT
77211bde1cdSSimon Glass	help
77311bde1cdSSimon Glass	  Enable support for USB devices in SPL. This allows use of USB
77411bde1cdSSimon Glass	  devices such as hard drives and flash drivers for loading U-Boot.
77511bde1cdSSimon Glass	  The actual drivers are enabled separately using the normal U-Boot
77611bde1cdSSimon Glass	  config options. This enables loading from USB using a configured
77711bde1cdSSimon Glass	  device.
77811bde1cdSSimon Glass
779f811e976SJean-Jacques Hiblotconfig SPL_USB_GADGET
780e94793c8SStefan Agner	bool "Suppport USB Gadget drivers"
781e94793c8SStefan Agner	help
782e94793c8SStefan Agner	  Enable USB Gadget API which allows to enable USB device functions
783e94793c8SStefan Agner	  in SPL.
784e94793c8SStefan Agner
785f811e976SJean-Jacques Hiblotif SPL_USB_GADGET
786e94793c8SStefan Agner
787b432b1ebSFaiz Abbasconfig SPL_USB_ETHER
788e94793c8SStefan Agner	bool "Support USB Ethernet drivers"
789e94793c8SStefan Agner	help
790e94793c8SStefan Agner	  Enable access to the USB network subsystem and associated
791e94793c8SStefan Agner	  drivers in SPL. This permits SPL to load U-Boot over a
792e94793c8SStefan Agner	  USB-connected Ethernet link (such as a USB Ethernet dongle) rather
793e94793c8SStefan Agner	  than from an onboard peripheral. Environment support is required
794e94793c8SStefan Agner	  since the network stack uses a number of environment variables.
795e94793c8SStefan Agner	  See also SPL_NET_SUPPORT and SPL_ETH_SUPPORT.
796e94793c8SStefan Agner
7976536ca4dSAndrew F. Davisconfig SPL_DFU
798c3c19c27SFabio Estevam	bool "Support DFU (Device Firmware Upgrade)"
7995991703eSStefan Agner	select SPL_HASH_SUPPORT
80066928afbSB, Ravi	select SPL_DFU_NO_RESET
8011b19cbdbSB, Ravi	depends on SPL_RAM_SUPPORT
8025991703eSStefan Agner	help
803c3c19c27SFabio Estevam	  This feature enables the DFU (Device Firmware Upgrade) in SPL with
8045991703eSStefan Agner	  RAM memory device support. The ROM code will load and execute
8055991703eSStefan Agner	  the SPL built with dfu. The user can load binaries (u-boot/kernel) to
8065991703eSStefan Agner	  selected device partition from host-pc using dfu-utils.
8075991703eSStefan Agner	  This feature is useful to flash the binaries to factory or bare-metal
8085991703eSStefan Agner	  boards using USB interface.
8095991703eSStefan Agner
8105991703eSStefan Agnerchoice
8115991703eSStefan Agner	bool "DFU device selection"
8126536ca4dSAndrew F. Davis	depends on SPL_DFU
8135991703eSStefan Agner
8145991703eSStefan Agnerconfig SPL_DFU_RAM
8155991703eSStefan Agner	bool "RAM device"
8166536ca4dSAndrew F. Davis	depends on SPL_DFU && SPL_RAM_SUPPORT
8175991703eSStefan Agner	help
8185991703eSStefan Agner	 select RAM/DDR memory device for loading binary images
8195991703eSStefan Agner	 (u-boot/kernel) to the selected device partition using
8205991703eSStefan Agner	 DFU and execute the u-boot/kernel from RAM.
8215991703eSStefan Agner
8225991703eSStefan Agnerendchoice
8235991703eSStefan Agner
824a3774c1cSStefan Agnerconfig SPL_USB_SDP_SUPPORT
825a3774c1cSStefan Agner	bool "Support SDP (Serial Download Protocol)"
826a3774c1cSStefan Agner	help
827a3774c1cSStefan Agner	  Enable Serial Download Protocol (SDP) device support in SPL. This
828a3774c1cSStefan Agner	  allows to download images into memory and execute (jump to) them
829a3774c1cSStefan Agner	  using the same protocol as implemented by the i.MX family's boot ROM.
830e94793c8SStefan Agnerendif
831e94793c8SStefan Agner
83211bde1cdSSimon Glassconfig SPL_WATCHDOG_SUPPORT
83311bde1cdSSimon Glass	bool "Support watchdog drivers"
83411bde1cdSSimon Glass	help
83511bde1cdSSimon Glass	  Enable support for watchdog drivers in SPL. A watchdog is
83611bde1cdSSimon Glass	  typically a hardware peripheral which can reset the system when it
83711bde1cdSSimon Glass	  detects no activity for a while (such as a software crash). This
83811bde1cdSSimon Glass	  enables the drivers in drivers/watchdog as part of an SPL build.
83911bde1cdSSimon Glass
84011bde1cdSSimon Glassconfig SPL_YMODEM_SUPPORT
84111bde1cdSSimon Glass	bool "Support loading using Ymodem"
8423bac19ceSAlex Kiernan	depends on SPL_SERIAL_SUPPORT
84311bde1cdSSimon Glass	help
84411bde1cdSSimon Glass	  While loading from serial is slow it can be a useful backup when
84511bde1cdSSimon Glass	  there is no other option. The Ymodem protocol provides a reliable
84611bde1cdSSimon Glass	  means of transmitting U-Boot over a serial line for using in SPL,
84711bde1cdSSimon Glass	  with a checksum to ensure correctness.
84811bde1cdSSimon Glass
849aa122f6bSPhilipp Tomsichconfig SPL_ATF
850bcc1726aSKever Yang	bool "Support ARM Trusted Firmware"
851226498b8STom Rini	depends on ARM64
852bcc1726aSKever Yang	help
853d21fb63dSPhilipp Tomsich	  ATF(ARM Trusted Firmware) is a component for ARM AArch64 which
854bcc1726aSKever Yang	  is loaded by SPL (which is considered as BL2 in ATF terminology).
855bcc1726aSKever Yang	  More detail at: https://github.com/ARM-software/arm-trusted-firmware
856bcc1726aSKever Yang
857d21fb63dSPhilipp Tomsichconfig SPL_ATF_NO_PLATFORM_PARAM
858d21fb63dSPhilipp Tomsich        bool "Pass no platform parameter"
859d21fb63dSPhilipp Tomsich	depends on SPL_ATF
860d21fb63dSPhilipp Tomsich	help
861d21fb63dSPhilipp Tomsich	  While we expect to call a pointer to a valid FDT (or NULL)
862d21fb63dSPhilipp Tomsich	  as the platform parameter to an ATF, some ATF versions are
863d21fb63dSPhilipp Tomsich	  not U-Boot aware and have an insufficiently robust parameter
864d21fb63dSPhilipp Tomsich	  validation to gracefully reject a FDT being passed.
865d21fb63dSPhilipp Tomsich
866d21fb63dSPhilipp Tomsich	  If this option is enabled, the spl_atf os-type handler will
867d21fb63dSPhilipp Tomsich	  always pass NULL for the platform parameter.
868d21fb63dSPhilipp Tomsich
869d21fb63dSPhilipp Tomsich	  If your ATF is affected, say Y.
870d21fb63dSPhilipp Tomsich
8713bf5f13cSAlex Kiernanconfig SPL_AM33XX_ENABLE_RTC32K_OSC
8723bf5f13cSAlex Kiernan	bool "Enable the RTC32K OSC on AM33xx based platforms"
8733bf5f13cSAlex Kiernan	default y if AM33XX
8743bf5f13cSAlex Kiernan	help
8753bf5f13cSAlex Kiernan	  Enable access to the AM33xx RTC and select the external 32kHz clock
8763bf5f13cSAlex Kiernan	  source.
8773bf5f13cSAlex Kiernan
87870fe2876SKever Yangconfig SPL_OPTEE
87970fe2876SKever Yang	bool "Support OP-TEE Trusted OS"
88070fe2876SKever Yang	depends on ARM
88170fe2876SKever Yang	help
88270fe2876SKever Yang	  OP-TEE is an open source Trusted OS  which is loaded by SPL.
88370fe2876SKever Yang	  More detail at: https://github.com/OP-TEE/optee_os
88470fe2876SKever Yang
885226498b8STom Riniconfig TPL
886226498b8STom Rini	bool
887226498b8STom Rini	depends on SUPPORT_TPL
888226498b8STom Rini	prompt "Enable TPL"
889226498b8STom Rini	help
890226498b8STom Rini	  If you want to build TPL as well as the normal image and SPL, say Y.
891226498b8STom Rini
892226498b8STom Riniif TPL
893226498b8STom Rini
894b0edea3cSSimon Glassconfig TPL_HANDOFF
895b0edea3cSSimon Glass	bool "Pass hand-off information from TPL to SPL and U-Boot proper"
896b0edea3cSSimon Glass	depends on HANDOFF
897b0edea3cSSimon Glass	default y
898b0edea3cSSimon Glass	help
899b0edea3cSSimon Glass	  This option enables TPL to write handoff information. This can be
900b0edea3cSSimon Glass	  used to pass information like the size of SDRAM from TPL to U-Boot
901b0edea3cSSimon Glass	  proper. The information is also available to SPL if it is useful
902b0edea3cSSimon Glass	  there.
903b0edea3cSSimon Glass
904af2f4426SKever Yangconfig TPL_BOARD_INIT
905af2f4426SKever Yang	bool "Call board-specific initialization in TPL"
906af2f4426SKever Yang	help
907af2f4426SKever Yang	  If this option is enabled, U-Boot will call the function
908af2f4426SKever Yang	  spl_board_init() from board_init_r(). This function should be
909af2f4426SKever Yang	  provided by the board.
910af2f4426SKever Yang
911dd6fbcb9SPhilipp Tomsichconfig TPL_LDSCRIPT
912dd6fbcb9SPhilipp Tomsich        string "Linker script for the TPL stage"
913dd6fbcb9SPhilipp Tomsich	depends on TPL
914*2f41ade7STom Rini	default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARM64
915*2f41ade7STom Rini	default "arch/$(ARCH)/cpu/u-boot-spl.lds"
916dd6fbcb9SPhilipp Tomsich	help
917dd6fbcb9SPhilipp Tomsich	  The TPL stage will usually require a different linker-script
918dd6fbcb9SPhilipp Tomsich	  (as it runs from a different memory region) than the regular
919dd6fbcb9SPhilipp Tomsich	  U-Boot stage.  Set this to the path of the linker-script to
920dd6fbcb9SPhilipp Tomsich	  be used for TPL.
921dd6fbcb9SPhilipp Tomsich
922b3ed6ce7SPhilipp Tomsich	  May be left empty to trigger the Makefile infrastructure to
923b3ed6ce7SPhilipp Tomsich	  fall back to the linker-script used for the SPL stage.
924b3ed6ce7SPhilipp Tomsich
925b3ed6ce7SPhilipp Tomsichconfig TPL_NEEDS_SEPARATE_TEXT_BASE
926b3ed6ce7SPhilipp Tomsich        bool "TPL needs a separate text-base"
927b3ed6ce7SPhilipp Tomsich	default n
928b3ed6ce7SPhilipp Tomsich	depends on TPL
929b3ed6ce7SPhilipp Tomsich	help
930b3ed6ce7SPhilipp Tomsich	  Enable, if the TPL stage should not inherit its text-base
931b3ed6ce7SPhilipp Tomsich	  from the SPL stage.  When enabled, a base address for the
932b3ed6ce7SPhilipp Tomsich	  .text sections of the TPL stage has to be set below.
933b3ed6ce7SPhilipp Tomsich
934b3ed6ce7SPhilipp Tomsichconfig TPL_NEEDS_SEPARATE_STACK
935b3ed6ce7SPhilipp Tomsich        bool "TPL needs a separate initial stack-pointer"
936b3ed6ce7SPhilipp Tomsich	default n
937b3ed6ce7SPhilipp Tomsich	depends on TPL
938b3ed6ce7SPhilipp Tomsich	help
939b3ed6ce7SPhilipp Tomsich	  Enable, if the TPL stage should not inherit its initial
940b3ed6ce7SPhilipp Tomsich	  stack-pointer from the settings for the SPL stage.
941b3ed6ce7SPhilipp Tomsich
942b3ed6ce7SPhilipp Tomsichconfig TPL_TEXT_BASE
943b3ed6ce7SPhilipp Tomsich        hex "Base address for the .text section of the TPL stage"
944b3ed6ce7SPhilipp Tomsich	depends on TPL_NEEDS_SEPARATE_TEXT_BASE
945b3ed6ce7SPhilipp Tomsich	help
946b3ed6ce7SPhilipp Tomsich	  The base address for the .text section of the TPL stage.
947b3ed6ce7SPhilipp Tomsich
948b3ed6ce7SPhilipp Tomsichconfig TPL_MAX_SIZE
949b3ed6ce7SPhilipp Tomsich        int "Maximum size (in bytes) for the TPL stage"
9505aa49af3SPhilipp Tomsich	default 0
951b3ed6ce7SPhilipp Tomsich	depends on TPL
952b3ed6ce7SPhilipp Tomsich	help
953b3ed6ce7SPhilipp Tomsich	  The maximum size (in bytes) of the TPL stage.
954b3ed6ce7SPhilipp Tomsich
955b3ed6ce7SPhilipp Tomsichconfig TPL_STACK
956b3ed6ce7SPhilipp Tomsich        hex "Address of the initial stack-pointer for the TPL stage"
957b3ed6ce7SPhilipp Tomsich	depends on TPL_NEEDS_SEPARATE_STACK
958b3ed6ce7SPhilipp Tomsich	help
959b3ed6ce7SPhilipp Tomsich	  The address of the initial stack-pointer for the TPL stage.
960b3ed6ce7SPhilipp Tomsich	  Usually this will be the (aligned) top-of-stack.
961b3ed6ce7SPhilipp Tomsich
962a954fa32SPhilipp Tomsichconfig TPL_BOOTROM_SUPPORT
963a954fa32SPhilipp Tomsich        bool "Support returning to the BOOTROM (from TPL)"
964a954fa32SPhilipp Tomsich	help
965a954fa32SPhilipp Tomsich	  Some platforms (e.g. the Rockchip RK3368) provide support in their
966a954fa32SPhilipp Tomsich	  ROM for loading the next boot-stage after performing basic setup
967a954fa32SPhilipp Tomsich	  from the TPL stage.
968a954fa32SPhilipp Tomsich
969a954fa32SPhilipp Tomsich	  Enable this option, to return to the BOOTROM through the
970a954fa32SPhilipp Tomsich	  BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
971a954fa32SPhilipp Tomsich	  boot device list, if not implemented for a given board)
972a954fa32SPhilipp Tomsich
973c3916e7bSPhilipp Tomsichconfig TPL_DRIVERS_MISC_SUPPORT
974c3916e7bSPhilipp Tomsich	bool "Support misc drivers in TPL"
975c3916e7bSPhilipp Tomsich	help
976c3916e7bSPhilipp Tomsich	  Enable miscellaneous drivers in TPL. These drivers perform various
977c3916e7bSPhilipp Tomsich	  tasks that don't fall nicely into other categories, Enable this
978c3916e7bSPhilipp Tomsich	  option to build the drivers in drivers/misc as part of an TPL
979c3916e7bSPhilipp Tomsich	  build, for those that support building in TPL (not all drivers do).
980c3916e7bSPhilipp Tomsich
981f73329eeSSimon Glassconfig TPL_ENV_SUPPORT
982f73329eeSSimon Glass	bool "Support an environment"
983f73329eeSSimon Glass	help
984f73329eeSSimon Glass	  Enable environment support in TPL. See SPL_ENV_SUPPORT for details.
985f73329eeSSimon Glass
9862d424eb0SSimon Glassconfig TPL_GPIO_SUPPORT
9872d424eb0SSimon Glass	bool "Support GPIO in TPL"
9882d424eb0SSimon Glass	help
9892d424eb0SSimon Glass	  Enable support for GPIOs (General-purpose Input/Output) in TPL.
9902d424eb0SSimon Glass	  GPIOs allow U-Boot to read the state of an input line (high or
9912d424eb0SSimon Glass	  low) and set the state of an output line. This can be used to
9922d424eb0SSimon Glass	  drive LEDs, control power to various system parts and read user
9932d424eb0SSimon Glass	  input. GPIOs can be useful in TPL to enable a 'sign-of-life' LED,
9942d424eb0SSimon Glass	  for example. Enable this option to build the drivers in
9952d424eb0SSimon Glass	  drivers/gpio as part of an TPL build.
9962d424eb0SSimon Glass
997f73329eeSSimon Glassconfig TPL_I2C_SUPPORT
998f73329eeSSimon Glass	bool "Support I2C"
999f73329eeSSimon Glass	help
1000616bd09eSPhilipp Tomsich	  Enable support for the I2C bus in TPL. See SPL_I2C_SUPPORT for
1001f73329eeSSimon Glass	  details.
1002f73329eeSSimon Glass
1003f73329eeSSimon Glassconfig TPL_LIBCOMMON_SUPPORT
1004f73329eeSSimon Glass	bool "Support common libraries"
1005f73329eeSSimon Glass	help
1006f73329eeSSimon Glass	  Enable support for common U-Boot libraries within TPL. See
1007f73329eeSSimon Glass	  SPL_LIBCOMMON_SUPPORT for details.
1008f73329eeSSimon Glass
1009f73329eeSSimon Glassconfig TPL_LIBGENERIC_SUPPORT
1010f73329eeSSimon Glass	bool "Support generic libraries"
1011f73329eeSSimon Glass	help
1012f73329eeSSimon Glass	  Enable support for generic U-Boot libraries within TPL. See
1013f73329eeSSimon Glass	  SPL_LIBGENERIC_SUPPORT for details.
1014f73329eeSSimon Glass
1015f73329eeSSimon Glassconfig TPL_MPC8XXX_INIT_DDR_SUPPORT
1016f73329eeSSimon Glass	bool "Support MPC8XXX DDR init"
1017f73329eeSSimon Glass	help
1018f73329eeSSimon Glass	  Enable support for DDR-SDRAM on the MPC8XXX family within TPL. See
1019f73329eeSSimon Glass	  SPL_MPC8XXX_INIT_DDR_SUPPORT for details.
1020f73329eeSSimon Glass
1021f73329eeSSimon Glassconfig TPL_MMC_SUPPORT
1022f73329eeSSimon Glass	bool "Support MMC"
1023226498b8STom Rini	depends on MMC
1024f73329eeSSimon Glass	help
1025f73329eeSSimon Glass	  Enable support for MMC within TPL. See SPL_MMC_SUPPORT for details.
1026f73329eeSSimon Glass
1027f73329eeSSimon Glassconfig TPL_NAND_SUPPORT
1028f73329eeSSimon Glass	bool "Support NAND flash"
1029f73329eeSSimon Glass	help
1030616bd09eSPhilipp Tomsich	  Enable support for NAND in TPL. See SPL_NAND_SUPPORT for details.
1031f73329eeSSimon Glass
1032d50d6817SSekhar Noriconfig TPL_PCI
10332d424eb0SSimon Glass	bool "Support PCI drivers"
10342d424eb0SSimon Glass	help
10352d424eb0SSimon Glass	  Enable support for PCI in TPL. For platforms that need PCI to boot,
10362d424eb0SSimon Glass	  or must perform some init using PCI in SPL, this provides the
10372d424eb0SSimon Glass	  necessary driver support. This enables the drivers in drivers/pci
10382d424eb0SSimon Glass	  as part of a TPL build.
10392d424eb0SSimon Glass
10402d424eb0SSimon Glassconfig TPL_PCH_SUPPORT
10412d424eb0SSimon Glass	bool "Support PCH drivers"
10422d424eb0SSimon Glass	help
10432d424eb0SSimon Glass	  Enable support for PCH (Platform Controller Hub) devices in TPL.
10442d424eb0SSimon Glass	  These are used to set up GPIOs and the SPI peripheral early in
10452d424eb0SSimon Glass	  boot. This enables the drivers in drivers/pch as part of a TPL
10462d424eb0SSimon Glass	  build.
10472d424eb0SSimon Glass
1048d79dfd45SMarek Vasutconfig TPL_RAM_SUPPORT
1049d79dfd45SMarek Vasut	bool "Support booting from RAM"
1050d79dfd45SMarek Vasut	help
1051d79dfd45SMarek Vasut	  Enable booting of an image in RAM. The image can be preloaded or
1052d79dfd45SMarek Vasut	  it can be loaded by TPL directly into RAM (e.g. using USB).
1053d79dfd45SMarek Vasut
1054d79dfd45SMarek Vasutconfig TPL_RAM_DEVICE
1055d79dfd45SMarek Vasut	bool "Support booting from preloaded image in RAM"
1056d79dfd45SMarek Vasut	depends on TPL_RAM_SUPPORT
1057d79dfd45SMarek Vasut	help
1058d79dfd45SMarek Vasut	  Enable booting of an image already loaded in RAM. The image has to
1059d79dfd45SMarek Vasut	  be already in memory when TPL takes over, e.g. loaded by the boot
1060d79dfd45SMarek Vasut	  ROM.
1061d79dfd45SMarek Vasut
10622d424eb0SSimon Glassconfig TPL_RTC_SUPPORT
10632d424eb0SSimon Glass	bool "Support RTC drivers"
10642d424eb0SSimon Glass	help
10652d424eb0SSimon Glass	  Enable RTC (Real-time Clock) support in TPL. This includes support
10662d424eb0SSimon Glass	  for reading and setting the time. Some RTC devices also have some
10672d424eb0SSimon Glass	  non-volatile (battery-backed) memory which is accessible if
10682d424eb0SSimon Glass	  needed. This enables the drivers in drivers/rtc as part of an TPL
10692d424eb0SSimon Glass	  build.
10702d424eb0SSimon Glass
1071f73329eeSSimon Glassconfig TPL_SERIAL_SUPPORT
1072f73329eeSSimon Glass	bool "Support serial"
107314ad44abSAlex Kiernan	select TPL_PRINTF
107414ad44abSAlex Kiernan	select TPL_STRTO
1075f73329eeSSimon Glass	help
1076616bd09eSPhilipp Tomsich	  Enable support for serial in TPL. See SPL_SERIAL_SUPPORT for
1077f73329eeSSimon Glass	  details.
1078f73329eeSSimon Glass
1079f73329eeSSimon Glassconfig TPL_SPI_FLASH_SUPPORT
1080f73329eeSSimon Glass	bool "Support SPI flash drivers"
1081f73329eeSSimon Glass	help
1082616bd09eSPhilipp Tomsich	  Enable support for using SPI flash in TPL. See SPL_SPI_FLASH_SUPPORT
1083f73329eeSSimon Glass	  for details.
1084f73329eeSSimon Glass
10851e725e27SMarek Vasutconfig TPL_SPI_LOAD
10861e725e27SMarek Vasut	bool "Support loading from SPI flash"
10871e725e27SMarek Vasut	depends on TPL_SPI_FLASH_SUPPORT
10881e725e27SMarek Vasut	help
10891e725e27SMarek Vasut	  Enable support for loading next stage, U-Boot or otherwise, from
10901e725e27SMarek Vasut	  SPI NOR in U-Boot TPL.
10911e725e27SMarek Vasut
1092f73329eeSSimon Glassconfig TPL_SPI_SUPPORT
1093f73329eeSSimon Glass	bool "Support SPI drivers"
1094f73329eeSSimon Glass	help
1095616bd09eSPhilipp Tomsich	  Enable support for using SPI in TPL. See SPL_SPI_SUPPORT for
1096f73329eeSSimon Glass	  details.
1097f73329eeSSimon Glass
10986ce3d67cSMarek Vasutconfig TPL_YMODEM_SUPPORT
10996ce3d67cSMarek Vasut	bool "Support loading using Ymodem"
11003bac19ceSAlex Kiernan	depends on TPL_SERIAL_SUPPORT
11016ce3d67cSMarek Vasut	help
11026ce3d67cSMarek Vasut	  While loading from serial is slow it can be a useful backup when
11036ce3d67cSMarek Vasut	  there is no other option. The Ymodem protocol provides a reliable
11046ce3d67cSMarek Vasut	  means of transmitting U-Boot over a serial line for using in TPL,
11056ce3d67cSMarek Vasut	  with a checksum to ensure correctness.
11066ce3d67cSMarek Vasut
1107226498b8STom Riniendif # TPL
1108226498b8STom Rini
1109226498b8STom Riniendif # SPL
111011bde1cdSSimon Glassendmenu
1111