xref: /openbmc/u-boot/common/spl/Kconfig (revision 1bc678330e3cfea0062d347cafc2726daf49f221)
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
40219d699cSJohnny Huangconfig SPL_TINY
41219d699cSJohnny Huang	bool "Minilize the SPL size"
42219d699cSJohnny Huang	depends on ASPEED_AST2600
43219d699cSJohnny Huang	help
44219d699cSJohnny Huang	  This option can minilize the SPL size to compatible with AST2600-A0
45219d699cSJohnny Huang	  secure boot.
46219d699cSJohnny Huang
47b0edea3cSSimon Glassconfig SPL_HANDOFF
48b0edea3cSSimon Glass	bool "Pass hand-off information from SPL to U-Boot proper"
49b0edea3cSSimon Glass	depends on HANDOFF
50b0edea3cSSimon Glass	default y
51b0edea3cSSimon Glass	help
52b0edea3cSSimon Glass	  This option enables SPL to write handoff information. This can be
53b0edea3cSSimon Glass	  used to pass information like the size of SDRAM from SPL to U-Boot
54b0edea3cSSimon Glass	  proper. Also SPL can receive information from TPL in the same place
55b0edea3cSSimon Glass	  if that is enabled.
56b0edea3cSSimon Glass
57dd6fbcb9SPhilipp Tomsichconfig SPL_LDSCRIPT
58dd6fbcb9SPhilipp Tomsich	string "Linker script for the SPL stage"
59dd6fbcb9SPhilipp Tomsich	default "arch/$(ARCH)/cpu/u-boot-spl.lds"
60dd6fbcb9SPhilipp Tomsich	help
61dd6fbcb9SPhilipp Tomsich	  The SPL stage will usually require a different linker-script
62dd6fbcb9SPhilipp Tomsich	  (as it runs from a different memory region) than the regular
63dd6fbcb9SPhilipp Tomsich	  U-Boot stage.	 Set this to the path of the linker-script to
64dd6fbcb9SPhilipp Tomsich	  be used for SPL.
65dd6fbcb9SPhilipp Tomsich
660680f1b1SLey Foon Tanconfig SPL_BOARD_INIT
670680f1b1SLey Foon Tan	bool "Call board-specific initialization in SPL"
680680f1b1SLey Foon Tan	help
690680f1b1SLey Foon Tan	  If this option is enabled, U-Boot will call the function
700680f1b1SLey Foon Tan	  spl_board_init() from board_init_r(). This function should be
710680f1b1SLey Foon Tan	  provided by the board.
720680f1b1SLey Foon Tan
73225d30b7SPhilipp Tomsichconfig SPL_BOOTROM_SUPPORT
74225d30b7SPhilipp Tomsich        bool "Support returning to the BOOTROM"
75225d30b7SPhilipp Tomsich	help
76225d30b7SPhilipp Tomsich	  Some platforms (e.g. the Rockchip RK3368) provide support in their
77225d30b7SPhilipp Tomsich	  ROM for loading the next boot-stage after performing basic setup
78225d30b7SPhilipp Tomsich	  from the SPL stage.
79225d30b7SPhilipp Tomsich
80225d30b7SPhilipp Tomsich	  Enable this option, to return to the BOOTROM through the
81225d30b7SPhilipp Tomsich	  BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
82225d30b7SPhilipp Tomsich	  boot device list, if not implemented for a given board)
83225d30b7SPhilipp Tomsich
84afa9609eSLukasz Majewskiconfig SPL_BOOTCOUNT_LIMIT
85afa9609eSLukasz Majewski	bool "Support bootcount in SPL"
86afa9609eSLukasz Majewski	depends on SPL_ENV_SUPPORT
87afa9609eSLukasz Majewski	help
88afa9609eSLukasz Majewski	  On some boards, which use 'falcon' mode, it is necessary to check
89afa9609eSLukasz Majewski	  and increment the number of boot attempts. Such boards do not
90afa9609eSLukasz Majewski	  use proper U-Boot for normal boot flow and hence needs those
91afa9609eSLukasz Majewski	  adjustments to be done in the SPL.
92afa9609eSLukasz Majewski
9324eb39b5SAndrew F. Davisconfig SPL_RAW_IMAGE_SUPPORT
9424eb39b5SAndrew F. Davis	bool "Support SPL loading and booting of RAW images"
9524eb39b5SAndrew F. Davis	default n if (ARCH_MX6 && (SPL_MMC_SUPPORT || SPL_SATA_SUPPORT))
96ae9b57b5SAndrew F. Davis	default y if !TI_SECURE_DEVICE
9724eb39b5SAndrew F. Davis	help
9824eb39b5SAndrew F. Davis	  SPL will support loading and booting a RAW image when this option
9924eb39b5SAndrew F. Davis	  is y. If this is not set, SPL will move on to other available
10024eb39b5SAndrew F. Davis	  boot media to find a suitable image.
10124eb39b5SAndrew F. Davis
102722a6b17SAndrew F. Davisconfig SPL_LEGACY_IMAGE_SUPPORT
103722a6b17SAndrew F. Davis	bool "Support SPL loading and booting of Legacy images"
104ae9b57b5SAndrew F. Davis	default y if !TI_SECURE_DEVICE
105722a6b17SAndrew F. Davis	help
106722a6b17SAndrew F. Davis	  SPL will support loading and booting Legacy images when this option
107722a6b17SAndrew F. Davis	  is y. If this is not set, SPL will move on to other available
108722a6b17SAndrew F. Davis	  boot media to find a suitable image.
109722a6b17SAndrew F. Davis
110dae5c2dcSSimon Goldschmidtconfig SPL_LEGACY_IMAGE_CRC_CHECK
111dae5c2dcSSimon Goldschmidt	bool "Check CRC of Legacy images"
112dae5c2dcSSimon Goldschmidt	depends on SPL_LEGACY_IMAGE_SUPPORT
113dae5c2dcSSimon Goldschmidt	select SPL_CRC32_SUPPORT
114dae5c2dcSSimon Goldschmidt	help
115dae5c2dcSSimon Goldschmidt	  Enable this to check the CRC of Legacy images. While this increases
116dae5c2dcSSimon Goldschmidt	  reliability, it affects both code size and boot duration.
117dae5c2dcSSimon Goldschmidt	  If disabled, Legacy images are booted if the image magic and size
118dae5c2dcSSimon Goldschmidt	  are correct, without further integrity checks.
119dae5c2dcSSimon Goldschmidt
120c2ae7d82SSimon Glassconfig SPL_SYS_MALLOC_SIMPLE
121c2ae7d82SSimon Glass	bool
122c2ae7d82SSimon Glass	prompt "Only use malloc_simple functions in the SPL"
123c2ae7d82SSimon Glass	help
124c2ae7d82SSimon Glass	  Say Y here to only use the *_simple malloc functions from
125c2ae7d82SSimon Glass	  malloc_simple.c, rather then using the versions from dlmalloc.c;
126c2ae7d82SSimon Glass	  this will make the SPL binary smaller at the cost of more heap
127c2ae7d82SSimon Glass	  usage as the *_simple malloc functions do not re-use free-ed mem.
128c2ae7d82SSimon Glass
129d60b5f74SPhilipp Tomsichconfig TPL_SYS_MALLOC_SIMPLE
130d60b5f74SPhilipp Tomsich	bool
131d60b5f74SPhilipp Tomsich	prompt "Only use malloc_simple functions in the TPL"
132d60b5f74SPhilipp Tomsich	help
133d60b5f74SPhilipp Tomsich	  Say Y here to only use the *_simple malloc functions from
134d60b5f74SPhilipp Tomsich	  malloc_simple.c, rather then using the versions from dlmalloc.c;
135d60b5f74SPhilipp Tomsich	  this will make the TPL binary smaller at the cost of more heap
136d60b5f74SPhilipp Tomsich	  usage as the *_simple malloc functions do not re-use free-ed mem.
137d60b5f74SPhilipp Tomsich
138c2ae7d82SSimon Glassconfig SPL_STACK_R
139c2ae7d82SSimon Glass	bool "Enable SDRAM location for SPL stack"
140c2ae7d82SSimon Glass	help
141c2ae7d82SSimon Glass	  SPL starts off execution in SRAM and thus typically has only a small
142c2ae7d82SSimon Glass	  stack available. Since SPL sets up DRAM while in its board_init_f()
143c2ae7d82SSimon Glass	  function, it is possible for the stack to move there before
144c2ae7d82SSimon Glass	  board_init_r() is reached. This option enables a special SDRAM
145c2ae7d82SSimon Glass	  location for the SPL stack. U-Boot SPL switches to this after
146c2ae7d82SSimon Glass	  board_init_f() completes, and before board_init_r() starts.
147c2ae7d82SSimon Glass
148c2ae7d82SSimon Glassconfig SPL_STACK_R_ADDR
149c2ae7d82SSimon Glass	depends on SPL_STACK_R
150c2ae7d82SSimon Glass	hex "SDRAM location for SPL stack"
151ff6c3125STom Rini	default 0x82000000 if ARCH_OMAP2PLUS
152c2ae7d82SSimon Glass	help
153c2ae7d82SSimon Glass	  Specify the address in SDRAM for the SPL stack. This will be set up
154c2ae7d82SSimon Glass	  before board_init_r() is called.
155c2ae7d82SSimon Glass
156c2ae7d82SSimon Glassconfig SPL_STACK_R_MALLOC_SIMPLE_LEN
157c2ae7d82SSimon Glass	depends on SPL_STACK_R && SPL_SYS_MALLOC_SIMPLE
158c2ae7d82SSimon Glass	hex "Size of malloc_simple heap after switching to DRAM SPL stack"
159c2ae7d82SSimon Glass	default 0x100000
160c2ae7d82SSimon Glass	help
161c2ae7d82SSimon Glass	  Specify the amount of the stack to use as memory pool for
162c2ae7d82SSimon Glass	  malloc_simple after switching the stack to DRAM. This may be set
163c2ae7d82SSimon Glass	  to give board_init_r() a larger heap then the initial heap in
164c2ae7d82SSimon Glass	  SRAM which is limited to SYS_MALLOC_F_LEN bytes.
165c2ae7d82SSimon Glass
166c2ae7d82SSimon Glassconfig SPL_SEPARATE_BSS
167c2ae7d82SSimon Glass	bool "BSS section is in a different memory region from text"
168c2ae7d82SSimon Glass	help
169c2ae7d82SSimon Glass	  Some platforms need a large BSS region in SPL and can provide this
170c2ae7d82SSimon Glass	  because RAM is already set up. In this case BSS can be moved to RAM.
171c2ae7d82SSimon Glass	  This option should then be enabled so that the correct device tree
172c2ae7d82SSimon Glass	  location is used. Normally we put the device tree at the end of BSS
173c2ae7d82SSimon Glass	  but with this option enabled, it goes at _image_binary_end.
174c2ae7d82SSimon Glass
175aedc08b2SSimon Glassconfig SPL_BANNER_PRINT
176aedc08b2SSimon Glass	bool "Enable output of the SPL banner 'U-Boot SPL ...'"
177aedc08b2SSimon Glass	default y
178aedc08b2SSimon Glass	help
179aedc08b2SSimon Glass	  If this option is enabled, SPL will print the banner with version
180aedc08b2SSimon Glass	  info. Disabling this option could be useful to reduce TPL boot time
181aedc08b2SSimon Glass	  (e.g. approx. 6 ms faster, when output on i.MX6 with 115200 baud).
182aedc08b2SSimon Glass
183aedc08b2SSimon Glassconfig TPL_BANNER_PRINT
184aedc08b2SSimon Glass	bool "Enable output of the TPL banner 'U-Boot TPL ...'"
185aedc08b2SSimon Glass	default y
1860292bc0dSAnatolij Gustschin	help
1870292bc0dSAnatolij Gustschin	  If this option is enabled, SPL will not print the banner with version
188aedc08b2SSimon Glass	  info. Disabling this option could be useful to reduce SPL boot time
189aedc08b2SSimon Glass	  (e.g. approx. 6 ms faster, when output on i.MX6 with 115200 baud).
1900292bc0dSAnatolij Gustschin
191a807ab33SSimon Glassconfig SPL_DISPLAY_PRINT
192a807ab33SSimon Glass	bool "Display a board-specific message in SPL"
193a807ab33SSimon Glass	help
194a807ab33SSimon Glass	  If this option is enabled, U-Boot will call the function
195a807ab33SSimon Glass	  spl_display_print() immediately after displaying the SPL console
196a807ab33SSimon Glass	  banner ("U-Boot SPL ..."). This function should be provided by
197a807ab33SSimon Glass	  the board.
198a807ab33SSimon Glass
1990d1d4e81SChia-Wei, Wangconfig SPL_SKIP_RELOCATE
2000d1d4e81SChia-Wei, Wang	bool "Skip code relocation in SPL"
2010d1d4e81SChia-Wei, Wang	default y
2020d1d4e81SChia-Wei, Wang	help
2030d1d4e81SChia-Wei, Wang	  The SPL code will be relocated to a high memory if you say no here.
2040d1d4e81SChia-Wei, Wang	  Only ARM and PowerPC SPL support relocate now.
2050d1d4e81SChia-Wei, Wang
2060d1d4e81SChia-Wei, Wangconfig SPL_RELOC_TEXT_BASE
2070d1d4e81SChia-Wei, Wang	hex "Address the SPL relocate to"
2080d1d4e81SChia-Wei, Wang	depends on !SPL_SKIP_RELOCATE
2090d1d4e81SChia-Wei, Wang	help
2100d1d4e81SChia-Wei, Wang	  The address on the ram where the SPL relocate to.
2110d1d4e81SChia-Wei, Wang
21238fed8abSSemen Protsenkoconfig SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
21338fed8abSSemen Protsenko	bool "MMC raw mode: by sector"
2141da1938dSFabio Estevam	default y if ARCH_SUNXI || ARCH_DAVINCI || ARCH_UNIPHIER || \
2151da1938dSFabio Estevam		     ARCH_MX6 || ARCH_MX7 || \
21638fed8abSSemen Protsenko		     ARCH_ROCKCHIP || ARCH_MVEBU ||  ARCH_SOCFPGA || \
21738fed8abSSemen Protsenko		     ARCH_AT91 || ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || \
21838fed8abSSemen Protsenko		     OMAP44XX || OMAP54XX || AM33XX || AM43XX
21938fed8abSSemen Protsenko	help
22038fed8abSSemen Protsenko	  Use sector number for specifying U-Boot location on MMC/SD in
22138fed8abSSemen Protsenko	  raw mode.
22238fed8abSSemen Protsenko
22338fed8abSSemen Protsenkoconfig SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
22438fed8abSSemen Protsenko	hex "Address on the MMC to load U-Boot from"
225226498b8STom Rini	depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
22638fed8abSSemen Protsenko	default 0x50 if ARCH_SUNXI
22738fed8abSSemen Protsenko	default 0x75 if ARCH_DAVINCI
2281da1938dSFabio Estevam	default 0x8a if ARCH_MX6 || ARCH_MX7
2298f4d62b4SKever Yang	default 0x100 if ARCH_UNIPHIER
23038fed8abSSemen Protsenko	default 0x140 if ARCH_MVEBU
23138fed8abSSemen Protsenko	default 0x200 if ARCH_SOCFPGA || ARCH_AT91
23238fed8abSSemen Protsenko	default 0x300 if ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || OMAP44XX || \
233586bde93SLokesh Vutla		         OMAP54XX || AM33XX || AM43XX || ARCH_K3
2348f4d62b4SKever Yang	default 0x4000 if ARCH_ROCKCHIP
23538fed8abSSemen Protsenko	help
23638fed8abSSemen Protsenko	  Address on the MMC to load U-Boot from, when the MMC is being used
23738fed8abSSemen Protsenko	  in raw mode. Units: MMC sectors (1 sector = 512 bytes).
23838fed8abSSemen Protsenko
239949123e3SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
240949123e3SDalon Westergreen	bool "MMC Raw mode: by partition"
241949123e3SDalon Westergreen	help
242949123e3SDalon Westergreen	  Use a partition for loading U-Boot when using MMC/SD in raw mode.
243949123e3SDalon Westergreen
244949123e3SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION
245949123e3SDalon Westergreen	hex "Partition to use to load U-Boot from"
246226498b8STom Rini	depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
247949123e3SDalon Westergreen	default 1
248949123e3SDalon Westergreen	help
249949123e3SDalon Westergreen	  Partition on the MMC to load U-Boot from when the MMC is being
250949123e3SDalon Westergreen	  used in raw mode
251949123e3SDalon Westergreen
252f0fb4fa7SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
253f0fb4fa7SDalon Westergreen	bool "MMC raw mode: by partition type"
254226498b8STom Rini	depends on DOS_PARTITION && SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
255f0fb4fa7SDalon Westergreen	help
256f0fb4fa7SDalon Westergreen	  Use partition type for specifying U-Boot partition on MMC/SD in
257f0fb4fa7SDalon Westergreen	  raw mode. U-Boot will be loaded from the first partition of this
258f0fb4fa7SDalon Westergreen	  type to be found.
259f0fb4fa7SDalon Westergreen
260f0fb4fa7SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE
261f0fb4fa7SDalon Westergreen	hex "Partition Type on the MMC to load U-Boot from"
262226498b8STom Rini	depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
263f0fb4fa7SDalon Westergreen	help
264f0fb4fa7SDalon Westergreen	  Partition Type on the MMC to load U-Boot from, when the MMC is being
265f0fb4fa7SDalon Westergreen	  used in raw mode.
266f0fb4fa7SDalon Westergreen
26711bde1cdSSimon Glassconfig SPL_CRC32_SUPPORT
26811bde1cdSSimon Glass	bool "Support CRC32"
269dae5c2dcSSimon Goldschmidt	default y if SPL_LEGACY_IMAGE_SUPPORT
27011bde1cdSSimon Glass	help
271dae5c2dcSSimon Goldschmidt	  Enable this to support CRC32 in uImages or FIT images within SPL.
272dae5c2dcSSimon Goldschmidt	  This is a 32-bit checksum value that can be used to verify images.
273dae5c2dcSSimon Goldschmidt	  For FIT images, this is the least secure type of checksum, suitable
274dae5c2dcSSimon Goldschmidt	  for detected accidental image corruption. For secure applications you
275dae5c2dcSSimon Goldschmidt	  should consider SHA1 or SHA256.
27611bde1cdSSimon Glass
27711bde1cdSSimon Glassconfig SPL_MD5_SUPPORT
27811bde1cdSSimon Glass	bool "Support MD5"
27911bde1cdSSimon Glass	depends on SPL_FIT
28011bde1cdSSimon Glass	help
28111bde1cdSSimon Glass	  Enable this to support MD5 in FIT images within SPL. An MD5
28211bde1cdSSimon Glass	  checksum is a 128-bit hash value used to check that the image
28311bde1cdSSimon Glass	  contents have not been corrupted. Note that MD5 is not considered
28411bde1cdSSimon Glass	  secure as it is possible (with a brute-force attack) to adjust the
28511bde1cdSSimon Glass	  image while still retaining the same MD5 hash value. For secure
28611bde1cdSSimon Glass	  applications where images may be changed maliciously, you should
287*e9221d03SReuben Dowle	  consider SHA256 or SHA384.
28811bde1cdSSimon Glass
28911bde1cdSSimon Glassconfig SPL_SHA1_SUPPORT
29011bde1cdSSimon Glass	bool "Support SHA1"
29111bde1cdSSimon Glass	depends on SPL_FIT
292089df18bSTom Rini	select SHA1
29311bde1cdSSimon Glass	help
29411bde1cdSSimon Glass	  Enable this to support SHA1 in FIT images within SPL. A SHA1
29511bde1cdSSimon Glass	  checksum is a 160-bit (20-byte) hash value used to check that the
29611bde1cdSSimon Glass	  image contents have not been corrupted or maliciously altered.
29711bde1cdSSimon Glass	  While SHA1 is fairly secure it is coming to the end of its life
298*e9221d03SReuben Dowle	  due to the expanding computing power available to brute-force
299*e9221d03SReuben Dowle	  attacks. For more security, consider SHA256 or SHA384.
30011bde1cdSSimon Glass
30111bde1cdSSimon Glassconfig SPL_SHA256_SUPPORT
30211bde1cdSSimon Glass	bool "Support SHA256"
30311bde1cdSSimon Glass	depends on SPL_FIT
304089df18bSTom Rini	select SHA256
30511bde1cdSSimon Glass	help
30611bde1cdSSimon Glass	  Enable this to support SHA256 in FIT images within SPL. A SHA256
30711bde1cdSSimon Glass	  checksum is a 256-bit (32-byte) hash value used to check that the
308*e9221d03SReuben Dowle	  image contents have not been corrupted.
309*e9221d03SReuben Dowle
310*e9221d03SReuben Dowleconfig SPL_SHA384_SUPPORT
311*e9221d03SReuben Dowle	bool "Support SHA384"
312*e9221d03SReuben Dowle	depends on SPL_FIT
313*e9221d03SReuben Dowle	select SHA384
314*e9221d03SReuben Dowle	select SHA512_ALGO
315*e9221d03SReuben Dowle	help
316*e9221d03SReuben Dowle	  Enable this to support SHA384 in FIT images within SPL. A SHA384
317*e9221d03SReuben Dowle	  checksum is a 384-bit (48-byte) hash value used to check that the
318*e9221d03SReuben Dowle	  image contents have not been corrupted. Use this for the highest
319*e9221d03SReuben Dowle	  security.
320*e9221d03SReuben Dowle
321*e9221d03SReuben Dowleconfig SPL_SHA512_SUPPORT
322*e9221d03SReuben Dowle	bool "Support SHA512"
323*e9221d03SReuben Dowle	depends on SPL_FIT
324*e9221d03SReuben Dowle	select SHA512
325*e9221d03SReuben Dowle	select SHA512_ALGO
326*e9221d03SReuben Dowle	help
327*e9221d03SReuben Dowle	  Enable this to support SHA512 in FIT images within SPL. A SHA512
328*e9221d03SReuben Dowle	  checksum is a 512-bit (64-byte) hash value used to check that the
329*e9221d03SReuben Dowle	  image contents have not been corrupted.
33011bde1cdSSimon Glass
331337bbb62SPhilipp Tomsichconfig SPL_FIT_IMAGE_TINY
332337bbb62SPhilipp Tomsich	bool "Remove functionality from SPL FIT loading to reduce size"
333337bbb62SPhilipp Tomsich	depends on SPL_FIT
3346f796a9bSIcenowy Zheng	default y if MACH_SUN50I || MACH_SUN50I_H5 || MACH_SUN50I_H6
335f6282cddSYe Li	default y if ARCH_IMX8M
336337bbb62SPhilipp Tomsich	help
337337bbb62SPhilipp Tomsich	  Enable this to reduce the size of the FIT image loading code
338337bbb62SPhilipp Tomsich	  in SPL, if space for the SPL binary is very tight.
339337bbb62SPhilipp Tomsich
340337bbb62SPhilipp Tomsich	  This removes the detection of image types (which forces the
341337bbb62SPhilipp Tomsich	  first image to be treated as having a U-Boot style calling
342337bbb62SPhilipp Tomsich	  convention) and skips the recording of each loaded payload
343337bbb62SPhilipp Tomsich	  (i.e. loadable) into the FDT (modifying the loaded FDT to
344337bbb62SPhilipp Tomsich	  ensure this information is available to the next image
345337bbb62SPhilipp Tomsich	  invoked).
346337bbb62SPhilipp Tomsich
3475e148df9SSimon Glassconfig SPL_CPU_SUPPORT
3485e148df9SSimon Glass	bool "Support CPU drivers"
3495e148df9SSimon Glass	help
3505e148df9SSimon Glass	  Enable this to support CPU drivers in SPL. These drivers can set
3515e148df9SSimon Glass	  up CPUs and provide information about them such as the model and
3525e148df9SSimon Glass	  name. This can be useful in SPL since setting up the CPUs earlier
3535e148df9SSimon Glass	  may improve boot performance. Enable this option to build the
3545e148df9SSimon Glass	  drivers in drivers/cpu as part of an SPL build.
3555e148df9SSimon Glass
35611bde1cdSSimon Glassconfig SPL_CRYPTO_SUPPORT
35711bde1cdSSimon Glass	bool "Support crypto drivers"
35811bde1cdSSimon Glass	help
35911bde1cdSSimon Glass	  Enable crypto drivers in SPL. These drivers can be used to
36011bde1cdSSimon Glass	  accelerate secure boot processing in secure applications. Enable
36111bde1cdSSimon Glass	  this option to build the drivers in drivers/crypto as part of an
36211bde1cdSSimon Glass	  SPL build.
36311bde1cdSSimon Glass
36411bde1cdSSimon Glassconfig SPL_HASH_SUPPORT
36511bde1cdSSimon Glass	bool "Support hashing drivers"
366089df18bSTom Rini	select SHA1
367089df18bSTom Rini	select SHA256
36811bde1cdSSimon Glass	help
36911bde1cdSSimon Glass	  Enable hashing drivers in SPL. These drivers can be used to
37011bde1cdSSimon Glass	  accelerate secure boot processing in secure applications. Enable
37111bde1cdSSimon Glass	  this option to build system-specific drivers for hash acceleration
37211bde1cdSSimon Glass	  as part of an SPL build.
37311bde1cdSSimon Glass
3742d424eb0SSimon Glassconfig TPL_HASH_SUPPORT
3752d424eb0SSimon Glass	bool "Support hashing drivers in TPL"
3762d424eb0SSimon Glass	select SHA1
3772d424eb0SSimon Glass	select SHA256
3782d424eb0SSimon Glass	help
3792d424eb0SSimon Glass	  Enable hashing drivers in SPL. These drivers can be used to
3802d424eb0SSimon Glass	  accelerate secure boot processing in secure applications. Enable
3812d424eb0SSimon Glass	  this option to build system-specific drivers for hash acceleration
3822d424eb0SSimon Glass	  as part of an SPL build.
3832d424eb0SSimon Glass
38411bde1cdSSimon Glassconfig SPL_DMA_SUPPORT
38511bde1cdSSimon Glass	bool "Support DMA drivers"
38611bde1cdSSimon Glass	help
38711bde1cdSSimon Glass	  Enable DMA (direct-memory-access) drivers in SPL. These drivers
38811bde1cdSSimon Glass	  can be used to handle memory-to-peripheral data transfer without
38911bde1cdSSimon Glass	  the CPU moving the data. Enable this option to build the drivers
39011bde1cdSSimon Glass	  in drivers/dma as part of an SPL build.
39111bde1cdSSimon Glass
39211bde1cdSSimon Glassconfig SPL_DRIVERS_MISC_SUPPORT
39311bde1cdSSimon Glass	bool "Support misc drivers"
39411bde1cdSSimon Glass	help
39511bde1cdSSimon Glass	  Enable miscellaneous drivers in SPL. These drivers perform various
39611bde1cdSSimon Glass	  tasks that don't fall nicely into other categories, Enable this
39711bde1cdSSimon Glass	  option to build the drivers in drivers/misc as part of an SPL
39811bde1cdSSimon Glass	  build, for those that support building in SPL (not all drivers do).
39911bde1cdSSimon Glass
40011bde1cdSSimon Glassconfig SPL_ENV_SUPPORT
40111bde1cdSSimon Glass	bool "Support an environment"
40211bde1cdSSimon Glass	help
40311bde1cdSSimon Glass	  Enable environment support in SPL. The U-Boot environment provides
40411bde1cdSSimon Glass	  a number of settings (essentially name/value pairs) which can
40511bde1cdSSimon Glass	  control many aspects of U-Boot's operation. Normally this is not
40611bde1cdSSimon Glass	  needed in SPL as it has a much simpler task with less
40711bde1cdSSimon Glass	  configuration. But some boards use this to support 'Falcon' boot
40811bde1cdSSimon Glass	  on EXT2 and FAT, where SPL boots directly into Linux without
40900caae6dSSimon Glass	  starting U-Boot first. Enabling this option will make env_get()
410382bee57SSimon Glass	  and env_set() available in SPL.
41111bde1cdSSimon Glass
412d2d9bdfcSB, Raviconfig SPL_SAVEENV
413d2d9bdfcSB, Ravi	bool "Support save environment"
414226498b8STom Rini	depends on SPL_ENV_SUPPORT
415d6400c3fSJean-Jacques Hiblot	select SPL_MMC_WRITE if ENV_IS_IN_MMC
416d2d9bdfcSB, Ravi	help
417d2d9bdfcSB, Ravi	  Enable save environment support in SPL after setenv. By default
418d2d9bdfcSB, Ravi	  the saveenv option is not provided in SPL, but some boards need
419d2d9bdfcSB, Ravi	  this support in 'Falcon' boot, where SPL need to boot from
420d2d9bdfcSB, Ravi	  different images based on environment variable set by OS. For
421d2d9bdfcSB, Ravi	  example OS may set "reboot_image" environment variable to
422d2d9bdfcSB, Ravi	  "recovery" inorder to boot recovery image by SPL. The SPL read
423d2d9bdfcSB, Ravi	  "reboot_image" and act accordingly and change the reboot_image
424919d25c9SShyam Saini	  to default mode using setenv and save the environment.
425d2d9bdfcSB, Ravi
42611bde1cdSSimon Glassconfig SPL_ETH_SUPPORT
42711bde1cdSSimon Glass	bool "Support Ethernet"
42811bde1cdSSimon Glass	depends on SPL_ENV_SUPPORT
42911bde1cdSSimon Glass	help
43011bde1cdSSimon Glass	  Enable access to the network subsystem and associated Ethernet
43111bde1cdSSimon Glass	  drivers in SPL. This permits SPL to load U-Boot over an Ethernet
43211bde1cdSSimon Glass	  link rather than from an on-board peripheral. Environment support
43311bde1cdSSimon Glass	  is required since the network stack uses a number of environment
43411bde1cdSSimon Glass	  variables. See also SPL_NET_SUPPORT.
43511bde1cdSSimon Glass
436f4b40924STien Fong Cheeconfig SPL_FS_EXT4
43711bde1cdSSimon Glass	bool "Support EXT filesystems"
43811bde1cdSSimon Glass	help
43911bde1cdSSimon Glass	  Enable support for EXT2/3/4 filesystems with SPL. This permits
44011bde1cdSSimon Glass	  U-Boot (or Linux in Falcon mode) to be loaded from an EXT
44111bde1cdSSimon Glass	  filesystem from within SPL. Support for the underlying block
44211bde1cdSSimon Glass	  device (e.g. MMC or USB) must be enabled separately.
44311bde1cdSSimon Glass
4440c3a9ed4STien Fong Cheeconfig SPL_FS_FAT
44511bde1cdSSimon Glass	bool "Support FAT filesystems"
446eedfb89eSSekhar Nori	select FS_FAT
44711bde1cdSSimon Glass	help
44811bde1cdSSimon Glass	  Enable support for FAT and VFAT filesystems with SPL. This
44911bde1cdSSimon Glass	  permits U-Boot (or Linux in Falcon mode) to be loaded from a FAT
45011bde1cdSSimon Glass	  filesystem from within SPL. Support for the underlying block
45111bde1cdSSimon Glass	  device (e.g. MMC or USB) must be enabled separately.
45211bde1cdSSimon Glass
453d8c3ea99STien Fong Cheeconfig SPL_FAT_WRITE
454d8c3ea99STien Fong Chee	bool "Support write for FAT filesystems"
455d8c3ea99STien Fong Chee	help
456d8c3ea99STien Fong Chee	  Enable write support for FAT and VFAT filesystems with SPL.
457d8c3ea99STien Fong Chee	  Support for the underlying block device (e.g. MMC or USB) must be
458d8c3ea99STien Fong Chee	  enabled separately.
459d8c3ea99STien Fong Chee
46011bde1cdSSimon Glassconfig SPL_FPGA_SUPPORT
46111bde1cdSSimon Glass	bool "Support FPGAs"
46211bde1cdSSimon Glass	help
46311bde1cdSSimon Glass	  Enable support for FPGAs in SPL. Field-programmable Gate Arrays
46411bde1cdSSimon Glass	  provide software-configurable hardware which is typically used to
46511bde1cdSSimon Glass	  implement peripherals (such as UARTs, LCD displays, MMC) or
46611bde1cdSSimon Glass	  accelerate custom processing functions, such as image processing
46711bde1cdSSimon Glass	  or machine learning. Sometimes it is useful to program the FPGA
46811bde1cdSSimon Glass	  as early as possible during boot, and this option can enable that
46911bde1cdSSimon Glass	  within SPL.
47011bde1cdSSimon Glass
47111bde1cdSSimon Glassconfig SPL_GPIO_SUPPORT
4722d424eb0SSimon Glass	bool "Support GPIO in SPL"
47311bde1cdSSimon Glass	help
47411bde1cdSSimon Glass	  Enable support for GPIOs (General-purpose Input/Output) in SPL.
47511bde1cdSSimon Glass	  GPIOs allow U-Boot to read the state of an input line (high or
47611bde1cdSSimon Glass	  low) and set the state of an output line. This can be used to
47711bde1cdSSimon Glass	  drive LEDs, control power to various system parts and read user
47811bde1cdSSimon Glass	  input. GPIOs can be useful in SPL to enable a 'sign-of-life' LED,
47911bde1cdSSimon Glass	  for example. Enable this option to build the drivers in
48011bde1cdSSimon Glass	  drivers/gpio as part of an SPL build.
48111bde1cdSSimon Glass
48211bde1cdSSimon Glassconfig SPL_I2C_SUPPORT
48311bde1cdSSimon Glass	bool "Support I2C"
48411bde1cdSSimon Glass	help
48511bde1cdSSimon Glass	  Enable support for the I2C (Inter-Integrated Circuit) bus in SPL.
48611bde1cdSSimon Glass	  I2C works with a clock and data line which can be driven by a
48711bde1cdSSimon Glass	  one or more masters or slaves. It is a fairly complex bus but is
48811bde1cdSSimon Glass	  widely used as it only needs two lines for communication. Speeds of
48911bde1cdSSimon Glass	  400kbps are typical but up to 3.4Mbps is supported by some
49011bde1cdSSimon Glass	  hardware. I2C can be useful in SPL to configure power management
49111bde1cdSSimon Glass	  ICs (PMICs) before raising the CPU clock speed, for example.
49211bde1cdSSimon Glass	  Enable this option to build the drivers in drivers/i2c as part of
49311bde1cdSSimon Glass	  an SPL build.
49411bde1cdSSimon Glass
49511bde1cdSSimon Glassconfig SPL_LIBCOMMON_SUPPORT
49611bde1cdSSimon Glass	bool "Support common libraries"
49711bde1cdSSimon Glass	help
49811bde1cdSSimon Glass	  Enable support for common U-Boot libraries within SPL. These
49911bde1cdSSimon Glass	  libraries include common code to deal with U-Boot images,
50011bde1cdSSimon Glass	  environment and USB, for example. This option is enabled on many
50111bde1cdSSimon Glass	  boards. Enable this option to build the code in common/ as part of
50211bde1cdSSimon Glass	  an SPL build.
50311bde1cdSSimon Glass
50411bde1cdSSimon Glassconfig SPL_LIBDISK_SUPPORT
50500416704SSimon Goldschmidt	bool "Support disk partitions"
50691ff6865STom Rini	select PARTITIONS
50711bde1cdSSimon Glass	help
50811bde1cdSSimon Glass	  Enable support for disk partitions within SPL. 'Disk' is something
50911bde1cdSSimon Glass	  of a misnomer as it includes non-spinning media such as flash (as
51011bde1cdSSimon Glass	  used in MMC and USB sticks). Partitions provide a way for a disk
51111bde1cdSSimon Glass	  to be split up into separate regions, with a partition table placed
51211bde1cdSSimon Glass	  at the start or end which describes the location and size of each
51311bde1cdSSimon Glass	  'partition'. These partitions are typically uses as individual block
51411bde1cdSSimon Glass	  devices, typically with an EXT2 or FAT filesystem in each. This
51511bde1cdSSimon Glass	  option enables whatever partition support has been enabled in
51611bde1cdSSimon Glass	  U-Boot to also be used in SPL. It brings in the code in disk/.
51711bde1cdSSimon Glass
51811bde1cdSSimon Glassconfig SPL_LIBGENERIC_SUPPORT
51911bde1cdSSimon Glass	bool "Support generic libraries"
52011bde1cdSSimon Glass	help
52111bde1cdSSimon Glass	  Enable support for generic U-Boot libraries within SPL. These
52211bde1cdSSimon Glass	  libraries include generic code to deal with device tree, hashing,
52311bde1cdSSimon Glass	  printf(), compression and the like. This option is enabled on many
52411bde1cdSSimon Glass	  boards. Enable this option to build the code in lib/ as part of an
52511bde1cdSSimon Glass	  SPL build.
52611bde1cdSSimon Glass
52788027419SLokesh Vutlaconfig SPL_DM_MAILBOX
52888027419SLokesh Vutla	bool "Support Mailbox"
52988027419SLokesh Vutla	help
53088027419SLokesh Vutla	  Enable support for Mailbox within SPL. This enable the inter
53188027419SLokesh Vutla	  processor communication protocols tobe used within SPL. Enable
53288027419SLokesh Vutla	  this option to build the drivers in drivers/mailbox as part of
53388027419SLokesh Vutla	  SPL build.
53488027419SLokesh Vutla
53511bde1cdSSimon Glassconfig SPL_MMC_SUPPORT
53611bde1cdSSimon Glass	bool "Support MMC"
537226498b8STom Rini	depends on MMC
53891ff6865STom Rini	select HAVE_BLOCK_DEVICE
53911bde1cdSSimon Glass	help
54011bde1cdSSimon Glass	  Enable support for MMC (Multimedia Card) within SPL. This enables
54111bde1cdSSimon Glass	  the MMC protocol implementation and allows any enabled drivers to
54211bde1cdSSimon Glass	  be used within SPL. MMC can be used with or without disk partition
54311bde1cdSSimon Glass	  support depending on the application (SPL_LIBDISK_SUPPORT). Enable
54411bde1cdSSimon Glass	  this option to build the drivers in drivers/mmc as part of an SPL
54511bde1cdSSimon Glass	  build.
54611bde1cdSSimon Glass
547d6400c3fSJean-Jacques Hiblotconfig SPL_MMC_WRITE
548d6400c3fSJean-Jacques Hiblot	bool "MMC/SD/SDIO card support for write operations in SPL"
549d6400c3fSJean-Jacques Hiblot	depends on SPL_MMC_SUPPORT
550d6400c3fSJean-Jacques Hiblot	default n
551d6400c3fSJean-Jacques Hiblot	help
552d6400c3fSJean-Jacques Hiblot	  Enable write access to MMC and SD Cards in SPL
553d6400c3fSJean-Jacques Hiblot
554d6400c3fSJean-Jacques Hiblot
55511bde1cdSSimon Glassconfig SPL_MPC8XXX_INIT_DDR_SUPPORT
55611bde1cdSSimon Glass	bool "Support MPC8XXX DDR init"
55711bde1cdSSimon Glass	help
55811bde1cdSSimon Glass	  Enable support for DDR-SDRAM (double-data-rate synchronous dynamic
55911bde1cdSSimon Glass	  random-access memory) on the MPC8XXX family within SPL. This
56011bde1cdSSimon Glass	  allows DRAM to be set up before loading U-Boot into that DRAM,
56111bde1cdSSimon Glass	  where it can run.
56211bde1cdSSimon Glass
56311bde1cdSSimon Glassconfig SPL_MTD_SUPPORT
56411bde1cdSSimon Glass	bool "Support MTD drivers"
56511bde1cdSSimon Glass	help
56611bde1cdSSimon Glass	  Enable support for MTD (Memory Technology Device) within SPL. MTD
56711bde1cdSSimon Glass	  provides a block interface over raw NAND and can also be used with
56811bde1cdSSimon Glass	  SPI flash. This allows SPL to load U-Boot from supported MTD
56911bde1cdSSimon Glass	  devices. See SPL_NAND_SUPPORT and SPL_ONENAND_SUPPORT for how
57011bde1cdSSimon Glass	  to enable specific MTD drivers.
57111bde1cdSSimon Glass
57211bde1cdSSimon Glassconfig SPL_MUSB_NEW_SUPPORT
57311bde1cdSSimon Glass	bool "Support new Mentor Graphics USB"
57411bde1cdSSimon Glass	help
57511bde1cdSSimon Glass	  Enable support for Mentor Graphics USB in SPL. This is a new
57611bde1cdSSimon Glass	  driver used by some boards. Enable this option to build
57711bde1cdSSimon Glass	  the drivers in drivers/usb/musb-new as part of an SPL build. The
57811bde1cdSSimon Glass	  old drivers are in drivers/usb/musb.
57911bde1cdSSimon Glass
58011bde1cdSSimon Glassconfig SPL_NAND_SUPPORT
58111bde1cdSSimon Glass	bool "Support NAND flash"
58211bde1cdSSimon Glass	help
58311bde1cdSSimon Glass	  Enable support for NAND (Negative AND) flash in SPL. NAND flash
58411bde1cdSSimon Glass	  can be used to allow SPL to load U-Boot from supported devices.
585a430fa06SMiquel Raynal	  This enables the drivers in drivers/mtd/nand/raw as part of an SPL
58611bde1cdSSimon Glass	  build.
58711bde1cdSSimon Glass
58811bde1cdSSimon Glassconfig SPL_NET_SUPPORT
58911bde1cdSSimon Glass	bool "Support networking"
59011bde1cdSSimon Glass	help
59111bde1cdSSimon Glass	  Enable support for network devices (such as Ethernet) in SPL.
59211bde1cdSSimon Glass	  This permits SPL to load U-Boot over a network link rather than
59311bde1cdSSimon Glass	  from an on-board peripheral. Environment support is required since
59411bde1cdSSimon Glass	  the network stack uses a number of environment variables. See also
59511bde1cdSSimon Glass	  SPL_ETH_SUPPORT.
59611bde1cdSSimon Glass
59711bde1cdSSimon Glassif SPL_NET_SUPPORT
59811bde1cdSSimon Glassconfig SPL_NET_VCI_STRING
59911bde1cdSSimon Glass	string "BOOTP Vendor Class Identifier string sent by SPL"
60011bde1cdSSimon Glass	help
60111bde1cdSSimon Glass	  As defined by RFC 2132 the vendor class identifier field can be
60211bde1cdSSimon Glass	  sent by the client to identify the vendor type and configuration
60311bde1cdSSimon Glass	  of a client.  This is often used in practice to allow for the DHCP
60411bde1cdSSimon Glass	  server to specify different files to load depending on if the ROM,
60511bde1cdSSimon Glass	  SPL or U-Boot itself makes the request
60611bde1cdSSimon Glassendif   # if SPL_NET_SUPPORT
60711bde1cdSSimon Glass
60811bde1cdSSimon Glassconfig SPL_NO_CPU_SUPPORT
60911bde1cdSSimon Glass	bool "Drop CPU code in SPL"
61011bde1cdSSimon Glass	help
61111bde1cdSSimon Glass	  This is specific to the ARM926EJ-S CPU. It disables the standard
61211bde1cdSSimon Glass	  start.S start-up code, presumably so that a replacement can be
61311bde1cdSSimon Glass	  used on that CPU. You should not enable it unless you know what
61411bde1cdSSimon Glass	  you are doing.
61511bde1cdSSimon Glass
61611bde1cdSSimon Glassconfig SPL_NOR_SUPPORT
61711bde1cdSSimon Glass	bool "Support NOR flash"
61811bde1cdSSimon Glass	help
61911bde1cdSSimon Glass	  Enable support for loading U-Boot from memory-mapped NOR (Negative
62011bde1cdSSimon Glass	  OR) flash in SPL. NOR flash is slow to write but fast to read, and
62111bde1cdSSimon Glass	  a memory-mapped device makes it very easy to access. Loading from
62211bde1cdSSimon Glass	  NOR is typically achieved with just a memcpy().
62311bde1cdSSimon Glass
624c6d9e9dbSVikas Manochaconfig SPL_XIP_SUPPORT
625c6d9e9dbSVikas Manocha	bool "Support XIP"
626c6d9e9dbSVikas Manocha	depends on SPL
627c6d9e9dbSVikas Manocha	help
628c6d9e9dbSVikas Manocha	  Enable support for execute in place of U-Boot or kernel image. There
629c6d9e9dbSVikas Manocha	  is no need to copy image from flash to ram if flash supports execute
630c6d9e9dbSVikas Manocha	  in place. Its very useful in systems having enough flash but not
631c6d9e9dbSVikas Manocha	  enough ram to load the image.
632c6d9e9dbSVikas Manocha
63311bde1cdSSimon Glassconfig SPL_ONENAND_SUPPORT
63411bde1cdSSimon Glass	bool "Support OneNAND flash"
63511bde1cdSSimon Glass	help
63611bde1cdSSimon Glass	  Enable support for OneNAND (Negative AND) flash in SPL. OneNAND is
63711bde1cdSSimon Glass	  a type of NAND flash and therefore can be used to allow SPL to
63811bde1cdSSimon Glass	  load U-Boot from supported devices. This enables the drivers in
63911bde1cdSSimon Glass	  drivers/mtd/onenand as part of an SPL build.
64011bde1cdSSimon Glass
641c20ae2ffSHeiko Schocherconfig SPL_OS_BOOT
642c20ae2ffSHeiko Schocher	bool "Activate Falcon Mode"
643226498b8STom Rini	depends on !TI_SECURE_DEVICE
644c20ae2ffSHeiko Schocher	default n
645c20ae2ffSHeiko Schocher	help
646c20ae2ffSHeiko Schocher	  Enable booting directly to an OS from SPL.
647c20ae2ffSHeiko Schocher	  for more info read doc/README.falcon
648c20ae2ffSHeiko Schocher
64929d3bc79SHeiko Schocherif SPL_OS_BOOT
65029d3bc79SHeiko Schocherconfig SYS_OS_BASE
65129d3bc79SHeiko Schocher	hex "addr, where OS is found"
652226498b8STom Rini	depends on SPL_NOR_SUPPORT
65329d3bc79SHeiko Schocher	help
65429d3bc79SHeiko Schocher	  Specify the address, where the OS image is found, which
65529d3bc79SHeiko Schocher	  gets booted.
65629d3bc79SHeiko Schocher
65729d3bc79SHeiko Schocherendif # SPL_OS_BOOT
65829d3bc79SHeiko Schocher
6597550dbe3SYork Sunconfig SPL_PAYLOAD
6607550dbe3SYork Sun	string "SPL payload"
6617550dbe3SYork Sun	default "tpl/u-boot-with-tpl.bin" if TPL
6627550dbe3SYork Sun	default "u-boot.bin"
6637550dbe3SYork Sun	help
6642dcfa058SChris Packham	  Payload for SPL boot. For backward compatibility, default to
6657550dbe3SYork Sun	  u-boot.bin, i.e. RAW image without any header. In case of
6667550dbe3SYork Sun	  TPL, tpl/u-boot-with-tpl.bin. For new boards, suggest to
6677550dbe3SYork Sun	  use u-boot.img.
6687550dbe3SYork Sun
669d50d6817SSekhar Noriconfig SPL_PCI
6702446b6b8SSimon Glass	bool "Support PCI drivers"
6712446b6b8SSimon Glass	help
6722446b6b8SSimon Glass	  Enable support for PCI in SPL. For platforms that need PCI to boot,
6732446b6b8SSimon Glass	  or must perform some init using PCI in SPL, this provides the
6742446b6b8SSimon Glass	  necessary driver support. This enables the drivers in drivers/pci
6752446b6b8SSimon Glass	  as part of an SPL build.
6762446b6b8SSimon Glass
677bbe41abfSSimon Glassconfig SPL_PCH_SUPPORT
678bbe41abfSSimon Glass	bool "Support PCH drivers"
679bbe41abfSSimon Glass	help
680bbe41abfSSimon Glass	  Enable support for PCH (Platform Controller Hub) devices in SPL.
681bbe41abfSSimon Glass	  These are used to set up GPIOs and the SPI peripheral early in
682bbe41abfSSimon Glass	  boot. This enables the drivers in drivers/pch as part of an SPL
683bbe41abfSSimon Glass	  build.
684bbe41abfSSimon Glass
68511bde1cdSSimon Glassconfig SPL_POST_MEM_SUPPORT
68611bde1cdSSimon Glass	bool "Support POST drivers"
68711bde1cdSSimon Glass	help
68811bde1cdSSimon Glass	  Enable support for POST (Power-on Self Test) in SPL. POST is a
68911bde1cdSSimon Glass	  procedure that checks that the hardware (CPU or board) appears to
69011bde1cdSSimon Glass	  be functionally correctly. It is a sanity check that can be
69111bde1cdSSimon Glass	  performed before booting. This enables the drivers in post/drivers
69211bde1cdSSimon Glass	  as part of an SPL build.
69311bde1cdSSimon Glass
694bfc6bae8SLey Foon Tanconfig SPL_DM_RESET
6950e373c0aSPatrick Delaunay	bool "Support reset drivers"
6960e373c0aSPatrick Delaunay	depends on SPL
6970e373c0aSPatrick Delaunay	help
6980e373c0aSPatrick Delaunay	  Enable support for reset control in SPL.
6990e373c0aSPatrick Delaunay	  That can be useful in SPL to handle IP reset in driver, as in U-Boot,
7000e373c0aSPatrick Delaunay	  by using the generic reset API provided by driver model.
7010e373c0aSPatrick Delaunay	  This enables the drivers in drivers/reset as part of an SPL build.
7020e373c0aSPatrick Delaunay
70311bde1cdSSimon Glassconfig SPL_POWER_SUPPORT
70411bde1cdSSimon Glass	bool "Support power drivers"
70511bde1cdSSimon Glass	help
70611bde1cdSSimon Glass	  Enable support for power control in SPL. This includes support
70711bde1cdSSimon Glass	  for PMICs (Power-management Integrated Circuits) and some of the
70811bde1cdSSimon Glass	  features provided by PMICs. In particular, voltage regulators can
70911bde1cdSSimon Glass	  be used to enable/disable power and vary its voltage. That can be
71011bde1cdSSimon Glass	  useful in SPL to turn on boot peripherals and adjust CPU voltage
71111bde1cdSSimon Glass	  so that the clock speed can be increased. This enables the drivers
71211bde1cdSSimon Glass	  in drivers/power, drivers/power/pmic and drivers/power/regulator
71311bde1cdSSimon Glass	  as part of an SPL build.
71411bde1cdSSimon Glass
715e13278c9SPeng Fanconfig SPL_POWER_DOMAIN
716e13278c9SPeng Fan	bool "Support power domain drivers"
717e13278c9SPeng Fan	help
718e13278c9SPeng Fan	  Enable support for power domain control in SPL. Many SoCs allow
719e13278c9SPeng Fan	  power to be applied to or removed from portions of the SoC (power
720e13278c9SPeng Fan	  domains). This may be used to save power. This API provides the
721e13278c9SPeng Fan	  means to control such power management hardware. This enables
722e13278c9SPeng Fan	  the drivers in drivers/power/domain as part of a SPL build.
723e13278c9SPeng Fan
72422802f4eSStefan Agnerconfig SPL_RAM_SUPPORT
72522802f4eSStefan Agner	bool "Support booting from RAM"
72622802f4eSStefan Agner	default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
72722802f4eSStefan Agner	help
72822802f4eSStefan Agner	  Enable booting of an image in RAM. The image can be preloaded or
72922802f4eSStefan Agner	  it can be loaded by SPL directly into RAM (e.g. using USB).
73022802f4eSStefan Agner
731f417d40fSStefan Agnerconfig SPL_RAM_DEVICE
732f417d40fSStefan Agner	bool "Support booting from preloaded image in RAM"
73322802f4eSStefan Agner	depends on SPL_RAM_SUPPORT
734f417d40fSStefan Agner	default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
735f417d40fSStefan Agner	help
736f417d40fSStefan Agner	  Enable booting of an image already loaded in RAM. The image has to
737f417d40fSStefan Agner	  be already in memory when SPL takes over, e.g. loaded by the boot
738f417d40fSStefan Agner	  ROM.
739f417d40fSStefan Agner
74008c45314SLokesh Vutlaconfig SPL_REMOTEPROC
74108c45314SLokesh Vutla	bool "Support REMOTEPROCS"
74208c45314SLokesh Vutla	help
74308c45314SLokesh Vutla	  Enable support for REMOTEPROCs in SPL. This permits to load
74408c45314SLokesh Vutla	  a remote processor firmware in SPL.
74508c45314SLokesh Vutla
74630bf8a0dSSimon Glassconfig SPL_RTC_SUPPORT
74730bf8a0dSSimon Glass	bool "Support RTC drivers"
74830bf8a0dSSimon Glass	help
74930bf8a0dSSimon Glass	  Enable RTC (Real-time Clock) support in SPL. This includes support
75030bf8a0dSSimon Glass	  for reading and setting the time. Some RTC devices also have some
75130bf8a0dSSimon Glass	  non-volatile (battery-backed) memory which is accessible if
75230bf8a0dSSimon Glass	  needed. This enables the drivers in drivers/rtc as part of an SPL
75330bf8a0dSSimon Glass	  build.
75430bf8a0dSSimon Glass
75511bde1cdSSimon Glassconfig SPL_SATA_SUPPORT
75611bde1cdSSimon Glass	bool "Support loading from SATA"
75711bde1cdSSimon Glass	help
75811bde1cdSSimon Glass	  Enable support for SATA (Serial AT attachment) in SPL. This allows
75911bde1cdSSimon Glass	  use of SATA devices such as hard drives and flash drivers for
76011bde1cdSSimon Glass	  loading U-Boot. SATA is used in higher-end embedded systems and
76111bde1cdSSimon Glass	  can provide higher performance than MMC , at somewhat higher
76211bde1cdSSimon Glass	  expense and power consumption. This enables loading from SATA
76311bde1cdSSimon Glass	  using a configured device.
76411bde1cdSSimon Glass
76511bde1cdSSimon Glassconfig SPL_SERIAL_SUPPORT
76611bde1cdSSimon Glass	bool "Support serial"
76714ad44abSAlex Kiernan	select SPL_PRINTF
76814ad44abSAlex Kiernan	select SPL_STRTO
76911bde1cdSSimon Glass	help
77011bde1cdSSimon Glass	  Enable support for serial in SPL. This allows use of a serial UART
77111bde1cdSSimon Glass	  for displaying messages while SPL is running. It also brings in
77211bde1cdSSimon Glass	  printf() and panic() functions. This should normally be enabled
77311bde1cdSSimon Glass	  unless there are space reasons not to. Even then, consider
77411bde1cdSSimon Glass	  enabling USE_TINY_PRINTF which is a small printf() version.
77511bde1cdSSimon Glass
77611bde1cdSSimon Glassconfig SPL_SPI_FLASH_SUPPORT
77711bde1cdSSimon Glass	bool "Support SPI flash drivers"
77811bde1cdSSimon Glass	help
77911bde1cdSSimon Glass	  Enable support for using SPI flash in SPL, and loading U-Boot from
78011bde1cdSSimon Glass	  SPI flash. SPI flash (Serial Peripheral Bus flash) is named after
78111bde1cdSSimon Glass	  the SPI bus that is used to connect it to a system. It is a simple
78211bde1cdSSimon Glass	  but fast bidirectional 4-wire bus (clock, chip select and two data
78311bde1cdSSimon Glass	  lines). This enables the drivers in drivers/mtd/spi as part of an
78411bde1cdSSimon Glass	  SPL build. This normally requires SPL_SPI_SUPPORT.
78511bde1cdSSimon Glass
7860c6f187cSVignesh Rif SPL_SPI_FLASH_SUPPORT
7870c6f187cSVignesh R
788778572d7SVignesh Rconfig SPL_SPI_FLASH_TINY
789778572d7SVignesh R	bool "Enable low footprint SPL SPI Flash support"
790778572d7SVignesh R	depends on !SPI_FLASH_BAR
79172875978SVignesh R	default y if SPI_FLASH
792778572d7SVignesh R	help
793778572d7SVignesh R	 Enable lightweight SPL SPI Flash support that supports just reading
794778572d7SVignesh R	 data/images from flash. No support to write/erase flash. Enable
795778572d7SVignesh R	 this if you have SPL size limitations and don't need full
796778572d7SVignesh R	 fledged SPI flash support.
797778572d7SVignesh R
7980c6f187cSVignesh Rconfig SPL_SPI_FLASH_SFDP_SUPPORT
7990c6f187cSVignesh R	bool "SFDP table parsing support for SPI NOR flashes"
800778572d7SVignesh R	depends on !SPI_FLASH_BAR && !SPL_SPI_FLASH_TINY
8010c6f187cSVignesh R	help
8020c6f187cSVignesh R	 Enable support for parsing and auto discovery of parameters for
8030c6f187cSVignesh R	 SPI NOR flashes using Serial Flash Discoverable Parameters (SFDP)
8040c6f187cSVignesh R	 tables as per JESD216 standard in SPL.
8050c6f187cSVignesh R
80655500438SMarek Vasutconfig SPL_SPI_LOAD
80755500438SMarek Vasut	bool "Support loading from SPI flash"
80855500438SMarek Vasut	help
80955500438SMarek Vasut	  Enable support for loading next stage, U-Boot or otherwise, from
81055500438SMarek Vasut	  SPI NOR in U-Boot SPL.
81155500438SMarek Vasut
8120c6f187cSVignesh Rendif # SPL_SPI_FLASH_SUPPORT
8130c6f187cSVignesh R
81411bde1cdSSimon Glassconfig SPL_SPI_SUPPORT
81511bde1cdSSimon Glass	bool "Support SPI drivers"
81611bde1cdSSimon Glass	help
81711bde1cdSSimon Glass	  Enable support for using SPI in SPL. This is used for connecting
81811bde1cdSSimon Glass	  to SPI flash for loading U-Boot. See SPL_SPI_FLASH_SUPPORT for
81911bde1cdSSimon Glass	  more details on that. The SPI driver provides the transport for
82011bde1cdSSimon Glass	  data between the SPI flash and the CPU. This option can be used to
82111bde1cdSSimon Glass	  enable SPI drivers that are needed for other purposes also, such
82211bde1cdSSimon Glass	  as a SPI PMIC.
82311bde1cdSSimon Glass
8248502f9f6SFaiz Abbasconfig SPL_THERMAL
8258502f9f6SFaiz Abbas	bool "Driver support for thermal devices"
8268502f9f6SFaiz Abbas	help
8278502f9f6SFaiz Abbas	  Enable support for temperature-sensing devices. Some SoCs have on-chip
8288502f9f6SFaiz Abbas	  temperature sensors to permit warnings, speed throttling or even
8298502f9f6SFaiz Abbas	  automatic power-off when the temperature gets too high or low. Other
8308502f9f6SFaiz Abbas	  devices may be discrete but connected on a suitable bus.
8318502f9f6SFaiz Abbas
83211bde1cdSSimon Glassconfig SPL_USB_HOST_SUPPORT
83311bde1cdSSimon Glass	bool "Support USB host drivers"
83491ff6865STom Rini	select HAVE_BLOCK_DEVICE
83511bde1cdSSimon Glass	help
83611bde1cdSSimon Glass	  Enable access to USB (Universal Serial Bus) host devices so that
83711bde1cdSSimon Glass	  SPL can load U-Boot from a connected USB peripheral, such as a USB
83811bde1cdSSimon Glass	  flash stick. While USB takes a little longer to start up than most
83911bde1cdSSimon Glass	  buses, it is very flexible since many different types of storage
84011bde1cdSSimon Glass	  device can be attached. This option enables the drivers in
84111bde1cdSSimon Glass	  drivers/usb/host as part of an SPL build.
84211bde1cdSSimon Glass
84379536013SAbel Vesaconfig SPL_USB_STORAGE
84411bde1cdSSimon Glass	bool "Support loading from USB"
84579536013SAbel Vesa	depends on SPL_USB_HOST_SUPPORT && !(BLK && !DM_USB)
84611bde1cdSSimon Glass	help
84711bde1cdSSimon Glass	  Enable support for USB devices in SPL. This allows use of USB
84811bde1cdSSimon Glass	  devices such as hard drives and flash drivers for loading U-Boot.
84911bde1cdSSimon Glass	  The actual drivers are enabled separately using the normal U-Boot
85011bde1cdSSimon Glass	  config options. This enables loading from USB using a configured
85111bde1cdSSimon Glass	  device.
85211bde1cdSSimon Glass
853f811e976SJean-Jacques Hiblotconfig SPL_USB_GADGET
854e94793c8SStefan Agner	bool "Suppport USB Gadget drivers"
855e94793c8SStefan Agner	help
856e94793c8SStefan Agner	  Enable USB Gadget API which allows to enable USB device functions
857e94793c8SStefan Agner	  in SPL.
858e94793c8SStefan Agner
859f811e976SJean-Jacques Hiblotif SPL_USB_GADGET
860e94793c8SStefan Agner
861b432b1ebSFaiz Abbasconfig SPL_USB_ETHER
862e94793c8SStefan Agner	bool "Support USB Ethernet drivers"
863e94793c8SStefan Agner	help
864e94793c8SStefan Agner	  Enable access to the USB network subsystem and associated
865e94793c8SStefan Agner	  drivers in SPL. This permits SPL to load U-Boot over a
866e94793c8SStefan Agner	  USB-connected Ethernet link (such as a USB Ethernet dongle) rather
867e94793c8SStefan Agner	  than from an onboard peripheral. Environment support is required
868e94793c8SStefan Agner	  since the network stack uses a number of environment variables.
869e94793c8SStefan Agner	  See also SPL_NET_SUPPORT and SPL_ETH_SUPPORT.
870e94793c8SStefan Agner
8716536ca4dSAndrew F. Davisconfig SPL_DFU
872c3c19c27SFabio Estevam	bool "Support DFU (Device Firmware Upgrade)"
8735991703eSStefan Agner	select SPL_HASH_SUPPORT
87466928afbSB, Ravi	select SPL_DFU_NO_RESET
8751b19cbdbSB, Ravi	depends on SPL_RAM_SUPPORT
8765991703eSStefan Agner	help
877c3c19c27SFabio Estevam	  This feature enables the DFU (Device Firmware Upgrade) in SPL with
8785991703eSStefan Agner	  RAM memory device support. The ROM code will load and execute
8795991703eSStefan Agner	  the SPL built with dfu. The user can load binaries (u-boot/kernel) to
8805991703eSStefan Agner	  selected device partition from host-pc using dfu-utils.
8815991703eSStefan Agner	  This feature is useful to flash the binaries to factory or bare-metal
8825991703eSStefan Agner	  boards using USB interface.
8835991703eSStefan Agner
8845991703eSStefan Agnerchoice
8855991703eSStefan Agner	bool "DFU device selection"
8866536ca4dSAndrew F. Davis	depends on SPL_DFU
8875991703eSStefan Agner
8885991703eSStefan Agnerconfig SPL_DFU_RAM
8895991703eSStefan Agner	bool "RAM device"
8906536ca4dSAndrew F. Davis	depends on SPL_DFU && SPL_RAM_SUPPORT
8915991703eSStefan Agner	help
8925991703eSStefan Agner	 select RAM/DDR memory device for loading binary images
8935991703eSStefan Agner	 (u-boot/kernel) to the selected device partition using
8945991703eSStefan Agner	 DFU and execute the u-boot/kernel from RAM.
8955991703eSStefan Agner
8965991703eSStefan Agnerendchoice
8975991703eSStefan Agner
898a3774c1cSStefan Agnerconfig SPL_USB_SDP_SUPPORT
899a3774c1cSStefan Agner	bool "Support SDP (Serial Download Protocol)"
900a3774c1cSStefan Agner	help
901a3774c1cSStefan Agner	  Enable Serial Download Protocol (SDP) device support in SPL. This
902a3774c1cSStefan Agner	  allows to download images into memory and execute (jump to) them
903a3774c1cSStefan Agner	  using the same protocol as implemented by the i.MX family's boot ROM.
904e94793c8SStefan Agnerendif
905e94793c8SStefan Agner
90611bde1cdSSimon Glassconfig SPL_WATCHDOG_SUPPORT
90711bde1cdSSimon Glass	bool "Support watchdog drivers"
90811bde1cdSSimon Glass	help
90911bde1cdSSimon Glass	  Enable support for watchdog drivers in SPL. A watchdog is
91011bde1cdSSimon Glass	  typically a hardware peripheral which can reset the system when it
91111bde1cdSSimon Glass	  detects no activity for a while (such as a software crash). This
91211bde1cdSSimon Glass	  enables the drivers in drivers/watchdog as part of an SPL build.
91311bde1cdSSimon Glass
91411bde1cdSSimon Glassconfig SPL_YMODEM_SUPPORT
91511bde1cdSSimon Glass	bool "Support loading using Ymodem"
9163bac19ceSAlex Kiernan	depends on SPL_SERIAL_SUPPORT
91711bde1cdSSimon Glass	help
91811bde1cdSSimon Glass	  While loading from serial is slow it can be a useful backup when
91911bde1cdSSimon Glass	  there is no other option. The Ymodem protocol provides a reliable
92011bde1cdSSimon Glass	  means of transmitting U-Boot over a serial line for using in SPL,
92111bde1cdSSimon Glass	  with a checksum to ensure correctness.
92211bde1cdSSimon Glass
923aa122f6bSPhilipp Tomsichconfig SPL_ATF
924bcc1726aSKever Yang	bool "Support ARM Trusted Firmware"
925226498b8STom Rini	depends on ARM64
926bcc1726aSKever Yang	help
927d21fb63dSPhilipp Tomsich	  ATF(ARM Trusted Firmware) is a component for ARM AArch64 which
928bcc1726aSKever Yang	  is loaded by SPL (which is considered as BL2 in ATF terminology).
929bcc1726aSKever Yang	  More detail at: https://github.com/ARM-software/arm-trusted-firmware
930bcc1726aSKever Yang
931d21fb63dSPhilipp Tomsichconfig SPL_ATF_NO_PLATFORM_PARAM
932d21fb63dSPhilipp Tomsich        bool "Pass no platform parameter"
933d21fb63dSPhilipp Tomsich	depends on SPL_ATF
934d21fb63dSPhilipp Tomsich	help
935d21fb63dSPhilipp Tomsich	  While we expect to call a pointer to a valid FDT (or NULL)
936d21fb63dSPhilipp Tomsich	  as the platform parameter to an ATF, some ATF versions are
937d21fb63dSPhilipp Tomsich	  not U-Boot aware and have an insufficiently robust parameter
938d21fb63dSPhilipp Tomsich	  validation to gracefully reject a FDT being passed.
939d21fb63dSPhilipp Tomsich
940d21fb63dSPhilipp Tomsich	  If this option is enabled, the spl_atf os-type handler will
941d21fb63dSPhilipp Tomsich	  always pass NULL for the platform parameter.
942d21fb63dSPhilipp Tomsich
943d21fb63dSPhilipp Tomsich	  If your ATF is affected, say Y.
944d21fb63dSPhilipp Tomsich
9453bf5f13cSAlex Kiernanconfig SPL_AM33XX_ENABLE_RTC32K_OSC
9463bf5f13cSAlex Kiernan	bool "Enable the RTC32K OSC on AM33xx based platforms"
9473bf5f13cSAlex Kiernan	default y if AM33XX
9483bf5f13cSAlex Kiernan	help
9493bf5f13cSAlex Kiernan	  Enable access to the AM33xx RTC and select the external 32kHz clock
9503bf5f13cSAlex Kiernan	  source.
9513bf5f13cSAlex Kiernan
95270fe2876SKever Yangconfig SPL_OPTEE
95370fe2876SKever Yang	bool "Support OP-TEE Trusted OS"
95470fe2876SKever Yang	depends on ARM
95570fe2876SKever Yang	help
95670fe2876SKever Yang	  OP-TEE is an open source Trusted OS  which is loaded by SPL.
95770fe2876SKever Yang	  More detail at: https://github.com/OP-TEE/optee_os
95870fe2876SKever Yang
959226498b8STom Riniconfig TPL
960226498b8STom Rini	bool
961226498b8STom Rini	depends on SUPPORT_TPL
962226498b8STom Rini	prompt "Enable TPL"
963226498b8STom Rini	help
964226498b8STom Rini	  If you want to build TPL as well as the normal image and SPL, say Y.
965226498b8STom Rini
966226498b8STom Riniif TPL
967226498b8STom Rini
968b0edea3cSSimon Glassconfig TPL_HANDOFF
969b0edea3cSSimon Glass	bool "Pass hand-off information from TPL to SPL and U-Boot proper"
970b0edea3cSSimon Glass	depends on HANDOFF
971b0edea3cSSimon Glass	default y
972b0edea3cSSimon Glass	help
973b0edea3cSSimon Glass	  This option enables TPL to write handoff information. This can be
974b0edea3cSSimon Glass	  used to pass information like the size of SDRAM from TPL to U-Boot
975b0edea3cSSimon Glass	  proper. The information is also available to SPL if it is useful
976b0edea3cSSimon Glass	  there.
977b0edea3cSSimon Glass
978af2f4426SKever Yangconfig TPL_BOARD_INIT
979af2f4426SKever Yang	bool "Call board-specific initialization in TPL"
980af2f4426SKever Yang	help
981af2f4426SKever Yang	  If this option is enabled, U-Boot will call the function
982af2f4426SKever Yang	  spl_board_init() from board_init_r(). This function should be
983af2f4426SKever Yang	  provided by the board.
984af2f4426SKever Yang
985dd6fbcb9SPhilipp Tomsichconfig TPL_LDSCRIPT
986dd6fbcb9SPhilipp Tomsich        string "Linker script for the TPL stage"
987dd6fbcb9SPhilipp Tomsich	depends on TPL
9882f41ade7STom Rini	default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARM64
9892f41ade7STom Rini	default "arch/$(ARCH)/cpu/u-boot-spl.lds"
990dd6fbcb9SPhilipp Tomsich	help
991dd6fbcb9SPhilipp Tomsich	  The TPL stage will usually require a different linker-script
992dd6fbcb9SPhilipp Tomsich	  (as it runs from a different memory region) than the regular
993dd6fbcb9SPhilipp Tomsich	  U-Boot stage.  Set this to the path of the linker-script to
994dd6fbcb9SPhilipp Tomsich	  be used for TPL.
995dd6fbcb9SPhilipp Tomsich
996b3ed6ce7SPhilipp Tomsich	  May be left empty to trigger the Makefile infrastructure to
997b3ed6ce7SPhilipp Tomsich	  fall back to the linker-script used for the SPL stage.
998b3ed6ce7SPhilipp Tomsich
999b3ed6ce7SPhilipp Tomsichconfig TPL_NEEDS_SEPARATE_TEXT_BASE
1000b3ed6ce7SPhilipp Tomsich        bool "TPL needs a separate text-base"
1001b3ed6ce7SPhilipp Tomsich	default n
1002b3ed6ce7SPhilipp Tomsich	depends on TPL
1003b3ed6ce7SPhilipp Tomsich	help
1004b3ed6ce7SPhilipp Tomsich	  Enable, if the TPL stage should not inherit its text-base
1005b3ed6ce7SPhilipp Tomsich	  from the SPL stage.  When enabled, a base address for the
1006b3ed6ce7SPhilipp Tomsich	  .text sections of the TPL stage has to be set below.
1007b3ed6ce7SPhilipp Tomsich
1008b3ed6ce7SPhilipp Tomsichconfig TPL_NEEDS_SEPARATE_STACK
1009b3ed6ce7SPhilipp Tomsich        bool "TPL needs a separate initial stack-pointer"
1010b3ed6ce7SPhilipp Tomsich	default n
1011b3ed6ce7SPhilipp Tomsich	depends on TPL
1012b3ed6ce7SPhilipp Tomsich	help
1013b3ed6ce7SPhilipp Tomsich	  Enable, if the TPL stage should not inherit its initial
1014b3ed6ce7SPhilipp Tomsich	  stack-pointer from the settings for the SPL stage.
1015b3ed6ce7SPhilipp Tomsich
1016b3ed6ce7SPhilipp Tomsichconfig TPL_TEXT_BASE
1017b3ed6ce7SPhilipp Tomsich        hex "Base address for the .text section of the TPL stage"
1018b3ed6ce7SPhilipp Tomsich	depends on TPL_NEEDS_SEPARATE_TEXT_BASE
1019b3ed6ce7SPhilipp Tomsich	help
1020b3ed6ce7SPhilipp Tomsich	  The base address for the .text section of the TPL stage.
1021b3ed6ce7SPhilipp Tomsich
1022b3ed6ce7SPhilipp Tomsichconfig TPL_MAX_SIZE
1023b3ed6ce7SPhilipp Tomsich        int "Maximum size (in bytes) for the TPL stage"
10245aa49af3SPhilipp Tomsich	default 0
1025b3ed6ce7SPhilipp Tomsich	depends on TPL
1026b3ed6ce7SPhilipp Tomsich	help
1027b3ed6ce7SPhilipp Tomsich	  The maximum size (in bytes) of the TPL stage.
1028b3ed6ce7SPhilipp Tomsich
1029b3ed6ce7SPhilipp Tomsichconfig TPL_STACK
1030b3ed6ce7SPhilipp Tomsich        hex "Address of the initial stack-pointer for the TPL stage"
1031b3ed6ce7SPhilipp Tomsich	depends on TPL_NEEDS_SEPARATE_STACK
1032b3ed6ce7SPhilipp Tomsich	help
1033b3ed6ce7SPhilipp Tomsich	  The address of the initial stack-pointer for the TPL stage.
1034b3ed6ce7SPhilipp Tomsich	  Usually this will be the (aligned) top-of-stack.
1035b3ed6ce7SPhilipp Tomsich
1036a954fa32SPhilipp Tomsichconfig TPL_BOOTROM_SUPPORT
1037a954fa32SPhilipp Tomsich        bool "Support returning to the BOOTROM (from TPL)"
1038a954fa32SPhilipp Tomsich	help
1039a954fa32SPhilipp Tomsich	  Some platforms (e.g. the Rockchip RK3368) provide support in their
1040a954fa32SPhilipp Tomsich	  ROM for loading the next boot-stage after performing basic setup
1041a954fa32SPhilipp Tomsich	  from the TPL stage.
1042a954fa32SPhilipp Tomsich
1043a954fa32SPhilipp Tomsich	  Enable this option, to return to the BOOTROM through the
1044a954fa32SPhilipp Tomsich	  BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
1045a954fa32SPhilipp Tomsich	  boot device list, if not implemented for a given board)
1046a954fa32SPhilipp Tomsich
1047c3916e7bSPhilipp Tomsichconfig TPL_DRIVERS_MISC_SUPPORT
1048c3916e7bSPhilipp Tomsich	bool "Support misc drivers in TPL"
1049c3916e7bSPhilipp Tomsich	help
1050c3916e7bSPhilipp Tomsich	  Enable miscellaneous drivers in TPL. These drivers perform various
1051c3916e7bSPhilipp Tomsich	  tasks that don't fall nicely into other categories, Enable this
1052c3916e7bSPhilipp Tomsich	  option to build the drivers in drivers/misc as part of an TPL
1053c3916e7bSPhilipp Tomsich	  build, for those that support building in TPL (not all drivers do).
1054c3916e7bSPhilipp Tomsich
1055f73329eeSSimon Glassconfig TPL_ENV_SUPPORT
1056f73329eeSSimon Glass	bool "Support an environment"
1057f73329eeSSimon Glass	help
1058f73329eeSSimon Glass	  Enable environment support in TPL. See SPL_ENV_SUPPORT for details.
1059f73329eeSSimon Glass
10602d424eb0SSimon Glassconfig TPL_GPIO_SUPPORT
10612d424eb0SSimon Glass	bool "Support GPIO in TPL"
10622d424eb0SSimon Glass	help
10632d424eb0SSimon Glass	  Enable support for GPIOs (General-purpose Input/Output) in TPL.
10642d424eb0SSimon Glass	  GPIOs allow U-Boot to read the state of an input line (high or
10652d424eb0SSimon Glass	  low) and set the state of an output line. This can be used to
10662d424eb0SSimon Glass	  drive LEDs, control power to various system parts and read user
10672d424eb0SSimon Glass	  input. GPIOs can be useful in TPL to enable a 'sign-of-life' LED,
10682d424eb0SSimon Glass	  for example. Enable this option to build the drivers in
10692d424eb0SSimon Glass	  drivers/gpio as part of an TPL build.
10702d424eb0SSimon Glass
1071f73329eeSSimon Glassconfig TPL_I2C_SUPPORT
1072f73329eeSSimon Glass	bool "Support I2C"
1073f73329eeSSimon Glass	help
1074616bd09eSPhilipp Tomsich	  Enable support for the I2C bus in TPL. See SPL_I2C_SUPPORT for
1075f73329eeSSimon Glass	  details.
1076f73329eeSSimon Glass
1077f73329eeSSimon Glassconfig TPL_LIBCOMMON_SUPPORT
1078f73329eeSSimon Glass	bool "Support common libraries"
1079f73329eeSSimon Glass	help
1080f73329eeSSimon Glass	  Enable support for common U-Boot libraries within TPL. See
1081f73329eeSSimon Glass	  SPL_LIBCOMMON_SUPPORT for details.
1082f73329eeSSimon Glass
1083f73329eeSSimon Glassconfig TPL_LIBGENERIC_SUPPORT
1084f73329eeSSimon Glass	bool "Support generic libraries"
1085f73329eeSSimon Glass	help
1086f73329eeSSimon Glass	  Enable support for generic U-Boot libraries within TPL. See
1087f73329eeSSimon Glass	  SPL_LIBGENERIC_SUPPORT for details.
1088f73329eeSSimon Glass
1089f73329eeSSimon Glassconfig TPL_MPC8XXX_INIT_DDR_SUPPORT
1090f73329eeSSimon Glass	bool "Support MPC8XXX DDR init"
1091f73329eeSSimon Glass	help
1092f73329eeSSimon Glass	  Enable support for DDR-SDRAM on the MPC8XXX family within TPL. See
1093f73329eeSSimon Glass	  SPL_MPC8XXX_INIT_DDR_SUPPORT for details.
1094f73329eeSSimon Glass
1095f73329eeSSimon Glassconfig TPL_MMC_SUPPORT
1096f73329eeSSimon Glass	bool "Support MMC"
1097226498b8STom Rini	depends on MMC
1098f73329eeSSimon Glass	help
1099f73329eeSSimon Glass	  Enable support for MMC within TPL. See SPL_MMC_SUPPORT for details.
1100f73329eeSSimon Glass
1101f73329eeSSimon Glassconfig TPL_NAND_SUPPORT
1102f73329eeSSimon Glass	bool "Support NAND flash"
1103f73329eeSSimon Glass	help
1104616bd09eSPhilipp Tomsich	  Enable support for NAND in TPL. See SPL_NAND_SUPPORT for details.
1105f73329eeSSimon Glass
1106d50d6817SSekhar Noriconfig TPL_PCI
11072d424eb0SSimon Glass	bool "Support PCI drivers"
11082d424eb0SSimon Glass	help
11092d424eb0SSimon Glass	  Enable support for PCI in TPL. For platforms that need PCI to boot,
11102d424eb0SSimon Glass	  or must perform some init using PCI in SPL, this provides the
11112d424eb0SSimon Glass	  necessary driver support. This enables the drivers in drivers/pci
11122d424eb0SSimon Glass	  as part of a TPL build.
11132d424eb0SSimon Glass
11142d424eb0SSimon Glassconfig TPL_PCH_SUPPORT
11152d424eb0SSimon Glass	bool "Support PCH drivers"
11162d424eb0SSimon Glass	help
11172d424eb0SSimon Glass	  Enable support for PCH (Platform Controller Hub) devices in TPL.
11182d424eb0SSimon Glass	  These are used to set up GPIOs and the SPI peripheral early in
11192d424eb0SSimon Glass	  boot. This enables the drivers in drivers/pch as part of a TPL
11202d424eb0SSimon Glass	  build.
11212d424eb0SSimon Glass
1122d79dfd45SMarek Vasutconfig TPL_RAM_SUPPORT
1123d79dfd45SMarek Vasut	bool "Support booting from RAM"
1124d79dfd45SMarek Vasut	help
1125d79dfd45SMarek Vasut	  Enable booting of an image in RAM. The image can be preloaded or
1126d79dfd45SMarek Vasut	  it can be loaded by TPL directly into RAM (e.g. using USB).
1127d79dfd45SMarek Vasut
1128d79dfd45SMarek Vasutconfig TPL_RAM_DEVICE
1129d79dfd45SMarek Vasut	bool "Support booting from preloaded image in RAM"
1130d79dfd45SMarek Vasut	depends on TPL_RAM_SUPPORT
1131d79dfd45SMarek Vasut	help
1132d79dfd45SMarek Vasut	  Enable booting of an image already loaded in RAM. The image has to
1133d79dfd45SMarek Vasut	  be already in memory when TPL takes over, e.g. loaded by the boot
1134d79dfd45SMarek Vasut	  ROM.
1135d79dfd45SMarek Vasut
11362d424eb0SSimon Glassconfig TPL_RTC_SUPPORT
11372d424eb0SSimon Glass	bool "Support RTC drivers"
11382d424eb0SSimon Glass	help
11392d424eb0SSimon Glass	  Enable RTC (Real-time Clock) support in TPL. This includes support
11402d424eb0SSimon Glass	  for reading and setting the time. Some RTC devices also have some
11412d424eb0SSimon Glass	  non-volatile (battery-backed) memory which is accessible if
11422d424eb0SSimon Glass	  needed. This enables the drivers in drivers/rtc as part of an TPL
11432d424eb0SSimon Glass	  build.
11442d424eb0SSimon Glass
1145f73329eeSSimon Glassconfig TPL_SERIAL_SUPPORT
1146f73329eeSSimon Glass	bool "Support serial"
114714ad44abSAlex Kiernan	select TPL_PRINTF
114814ad44abSAlex Kiernan	select TPL_STRTO
1149f73329eeSSimon Glass	help
1150616bd09eSPhilipp Tomsich	  Enable support for serial in TPL. See SPL_SERIAL_SUPPORT for
1151f73329eeSSimon Glass	  details.
1152f73329eeSSimon Glass
1153f73329eeSSimon Glassconfig TPL_SPI_FLASH_SUPPORT
1154f73329eeSSimon Glass	bool "Support SPI flash drivers"
1155f73329eeSSimon Glass	help
1156616bd09eSPhilipp Tomsich	  Enable support for using SPI flash in TPL. See SPL_SPI_FLASH_SUPPORT
1157f73329eeSSimon Glass	  for details.
1158f73329eeSSimon Glass
11591e725e27SMarek Vasutconfig TPL_SPI_LOAD
11601e725e27SMarek Vasut	bool "Support loading from SPI flash"
11611e725e27SMarek Vasut	depends on TPL_SPI_FLASH_SUPPORT
11621e725e27SMarek Vasut	help
11631e725e27SMarek Vasut	  Enable support for loading next stage, U-Boot or otherwise, from
11641e725e27SMarek Vasut	  SPI NOR in U-Boot TPL.
11651e725e27SMarek Vasut
1166f73329eeSSimon Glassconfig TPL_SPI_SUPPORT
1167f73329eeSSimon Glass	bool "Support SPI drivers"
1168f73329eeSSimon Glass	help
1169616bd09eSPhilipp Tomsich	  Enable support for using SPI in TPL. See SPL_SPI_SUPPORT for
1170f73329eeSSimon Glass	  details.
1171f73329eeSSimon Glass
11726ce3d67cSMarek Vasutconfig TPL_YMODEM_SUPPORT
11736ce3d67cSMarek Vasut	bool "Support loading using Ymodem"
11743bac19ceSAlex Kiernan	depends on TPL_SERIAL_SUPPORT
11756ce3d67cSMarek Vasut	help
11766ce3d67cSMarek Vasut	  While loading from serial is slow it can be a useful backup when
11776ce3d67cSMarek Vasut	  there is no other option. The Ymodem protocol provides a reliable
11786ce3d67cSMarek Vasut	  means of transmitting U-Boot over a serial line for using in TPL,
11796ce3d67cSMarek Vasut	  with a checksum to ensure correctness.
11806ce3d67cSMarek Vasut
1181226498b8STom Riniendif # TPL
1182226498b8STom Rini
1183226498b8STom Riniendif # SPL
118411bde1cdSSimon Glassendmenu
1185