xref: /openbmc/u-boot/common/spl/Kconfig (revision 14ad44ab466a8f4630c603f4c0bb5c57d0f27ae6)
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
28226498b8STom Riniif SPL
29226498b8STom Rini
30dd6fbcb9SPhilipp Tomsichconfig SPL_LDSCRIPT
31dd6fbcb9SPhilipp Tomsich	string "Linker script for the SPL stage"
32dd6fbcb9SPhilipp Tomsich	default "arch/$(ARCH)/cpu/u-boot-spl.lds"
33dd6fbcb9SPhilipp Tomsich	help
34dd6fbcb9SPhilipp Tomsich	  The SPL stage will usually require a different linker-script
35dd6fbcb9SPhilipp Tomsich	  (as it runs from a different memory region) than the regular
36dd6fbcb9SPhilipp Tomsich	  U-Boot stage.	 Set this to the path of the linker-script to
37dd6fbcb9SPhilipp Tomsich	  be used for SPL.
38dd6fbcb9SPhilipp Tomsich
390680f1b1SLey Foon Tanconfig SPL_BOARD_INIT
400680f1b1SLey Foon Tan	bool "Call board-specific initialization in SPL"
410680f1b1SLey Foon Tan	help
420680f1b1SLey Foon Tan	  If this option is enabled, U-Boot will call the function
430680f1b1SLey Foon Tan	  spl_board_init() from board_init_r(). This function should be
440680f1b1SLey Foon Tan	  provided by the board.
450680f1b1SLey Foon Tan
46225d30b7SPhilipp Tomsichconfig SPL_BOOTROM_SUPPORT
47225d30b7SPhilipp Tomsich        bool "Support returning to the BOOTROM"
48225d30b7SPhilipp Tomsich	help
49225d30b7SPhilipp Tomsich	  Some platforms (e.g. the Rockchip RK3368) provide support in their
50225d30b7SPhilipp Tomsich	  ROM for loading the next boot-stage after performing basic setup
51225d30b7SPhilipp Tomsich	  from the SPL stage.
52225d30b7SPhilipp Tomsich
53225d30b7SPhilipp Tomsich	  Enable this option, to return to the BOOTROM through the
54225d30b7SPhilipp Tomsich	  BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
55225d30b7SPhilipp Tomsich	  boot device list, if not implemented for a given board)
56225d30b7SPhilipp Tomsich
5724eb39b5SAndrew F. Davisconfig SPL_RAW_IMAGE_SUPPORT
5824eb39b5SAndrew F. Davis	bool "Support SPL loading and booting of RAW images"
5924eb39b5SAndrew F. Davis	default n if (ARCH_MX6 && (SPL_MMC_SUPPORT || SPL_SATA_SUPPORT))
60ae9b57b5SAndrew F. Davis	default y if !TI_SECURE_DEVICE
6124eb39b5SAndrew F. Davis	help
6224eb39b5SAndrew F. Davis	  SPL will support loading and booting a RAW image when this option
6324eb39b5SAndrew F. Davis	  is y. If this is not set, SPL will move on to other available
6424eb39b5SAndrew F. Davis	  boot media to find a suitable image.
6524eb39b5SAndrew F. Davis
66722a6b17SAndrew F. Davisconfig SPL_LEGACY_IMAGE_SUPPORT
67722a6b17SAndrew F. Davis	bool "Support SPL loading and booting of Legacy images"
68ae9b57b5SAndrew F. Davis	default y if !TI_SECURE_DEVICE
69722a6b17SAndrew F. Davis	help
70722a6b17SAndrew F. Davis	  SPL will support loading and booting Legacy images when this option
71722a6b17SAndrew F. Davis	  is y. If this is not set, SPL will move on to other available
72722a6b17SAndrew F. Davis	  boot media to find a suitable image.
73722a6b17SAndrew F. Davis
74c2ae7d82SSimon Glassconfig SPL_SYS_MALLOC_SIMPLE
75c2ae7d82SSimon Glass	bool
76c2ae7d82SSimon Glass	prompt "Only use malloc_simple functions in the SPL"
77c2ae7d82SSimon Glass	help
78c2ae7d82SSimon Glass	  Say Y here to only use the *_simple malloc functions from
79c2ae7d82SSimon Glass	  malloc_simple.c, rather then using the versions from dlmalloc.c;
80c2ae7d82SSimon Glass	  this will make the SPL binary smaller at the cost of more heap
81c2ae7d82SSimon Glass	  usage as the *_simple malloc functions do not re-use free-ed mem.
82c2ae7d82SSimon Glass
83d60b5f74SPhilipp Tomsichconfig TPL_SYS_MALLOC_SIMPLE
84d60b5f74SPhilipp Tomsich	bool
85d60b5f74SPhilipp Tomsich	prompt "Only use malloc_simple functions in the TPL"
86d60b5f74SPhilipp Tomsich	help
87d60b5f74SPhilipp Tomsich	  Say Y here to only use the *_simple malloc functions from
88d60b5f74SPhilipp Tomsich	  malloc_simple.c, rather then using the versions from dlmalloc.c;
89d60b5f74SPhilipp Tomsich	  this will make the TPL binary smaller at the cost of more heap
90d60b5f74SPhilipp Tomsich	  usage as the *_simple malloc functions do not re-use free-ed mem.
91d60b5f74SPhilipp Tomsich
92c2ae7d82SSimon Glassconfig SPL_STACK_R
93c2ae7d82SSimon Glass	bool "Enable SDRAM location for SPL stack"
94c2ae7d82SSimon Glass	help
95c2ae7d82SSimon Glass	  SPL starts off execution in SRAM and thus typically has only a small
96c2ae7d82SSimon Glass	  stack available. Since SPL sets up DRAM while in its board_init_f()
97c2ae7d82SSimon Glass	  function, it is possible for the stack to move there before
98c2ae7d82SSimon Glass	  board_init_r() is reached. This option enables a special SDRAM
99c2ae7d82SSimon Glass	  location for the SPL stack. U-Boot SPL switches to this after
100c2ae7d82SSimon Glass	  board_init_f() completes, and before board_init_r() starts.
101c2ae7d82SSimon Glass
102c2ae7d82SSimon Glassconfig SPL_STACK_R_ADDR
103c2ae7d82SSimon Glass	depends on SPL_STACK_R
104c2ae7d82SSimon Glass	hex "SDRAM location for SPL stack"
105ff6c3125STom Rini	default 0x82000000 if ARCH_OMAP2PLUS
106c2ae7d82SSimon Glass	help
107c2ae7d82SSimon Glass	  Specify the address in SDRAM for the SPL stack. This will be set up
108c2ae7d82SSimon Glass	  before board_init_r() is called.
109c2ae7d82SSimon Glass
110c2ae7d82SSimon Glassconfig SPL_STACK_R_MALLOC_SIMPLE_LEN
111c2ae7d82SSimon Glass	depends on SPL_STACK_R && SPL_SYS_MALLOC_SIMPLE
112c2ae7d82SSimon Glass	hex "Size of malloc_simple heap after switching to DRAM SPL stack"
113c2ae7d82SSimon Glass	default 0x100000
114c2ae7d82SSimon Glass	help
115c2ae7d82SSimon Glass	  Specify the amount of the stack to use as memory pool for
116c2ae7d82SSimon Glass	  malloc_simple after switching the stack to DRAM. This may be set
117c2ae7d82SSimon Glass	  to give board_init_r() a larger heap then the initial heap in
118c2ae7d82SSimon Glass	  SRAM which is limited to SYS_MALLOC_F_LEN bytes.
119c2ae7d82SSimon Glass
120c2ae7d82SSimon Glassconfig SPL_SEPARATE_BSS
121c2ae7d82SSimon Glass	bool "BSS section is in a different memory region from text"
122c2ae7d82SSimon Glass	help
123c2ae7d82SSimon Glass	  Some platforms need a large BSS region in SPL and can provide this
124c2ae7d82SSimon Glass	  because RAM is already set up. In this case BSS can be moved to RAM.
125c2ae7d82SSimon Glass	  This option should then be enabled so that the correct device tree
126c2ae7d82SSimon Glass	  location is used. Normally we put the device tree at the end of BSS
127c2ae7d82SSimon Glass	  but with this option enabled, it goes at _image_binary_end.
128c2ae7d82SSimon Glass
1290292bc0dSAnatolij Gustschinconfig SPL_DISABLE_BANNER_PRINT
1300292bc0dSAnatolij Gustschin	bool "Disable output of the SPL banner 'U-Boot SPL ...'"
1310292bc0dSAnatolij Gustschin	help
1320292bc0dSAnatolij Gustschin	  If this option is enabled, SPL will not print the banner with version
1330292bc0dSAnatolij Gustschin	  info. Selecting this option could be useful to reduce SPL boot time
1340292bc0dSAnatolij Gustschin	  (e.g. approx. 6 ms slower, when output on i.MX6 with 115200 baud).
1350292bc0dSAnatolij Gustschin
136a807ab33SSimon Glassconfig SPL_DISPLAY_PRINT
137a807ab33SSimon Glass	bool "Display a board-specific message in SPL"
138a807ab33SSimon Glass	help
139a807ab33SSimon Glass	  If this option is enabled, U-Boot will call the function
140a807ab33SSimon Glass	  spl_display_print() immediately after displaying the SPL console
141a807ab33SSimon Glass	  banner ("U-Boot SPL ..."). This function should be provided by
142a807ab33SSimon Glass	  the board.
143a807ab33SSimon Glass
14438fed8abSSemen Protsenkoconfig SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
14538fed8abSSemen Protsenko	bool "MMC raw mode: by sector"
14638fed8abSSemen Protsenko	default y if ARCH_SUNXI || ARCH_DAVINCI || ARCH_UNIPHIER ||ARCH_MX6 || \
14738fed8abSSemen Protsenko		     ARCH_ROCKCHIP || ARCH_MVEBU ||  ARCH_SOCFPGA || \
14838fed8abSSemen Protsenko		     ARCH_AT91 || ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || \
14938fed8abSSemen Protsenko		     OMAP44XX || OMAP54XX || AM33XX || AM43XX
15038fed8abSSemen Protsenko	help
15138fed8abSSemen Protsenko	  Use sector number for specifying U-Boot location on MMC/SD in
15238fed8abSSemen Protsenko	  raw mode.
15338fed8abSSemen Protsenko
15438fed8abSSemen Protsenkoconfig SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
15538fed8abSSemen Protsenko	hex "Address on the MMC to load U-Boot from"
156226498b8STom Rini	depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
15738fed8abSSemen Protsenko	default 0x50 if ARCH_SUNXI
15838fed8abSSemen Protsenko	default 0x75 if ARCH_DAVINCI
15938fed8abSSemen Protsenko	default 0x8a if ARCH_MX6
1608f4d62b4SKever Yang	default 0x100 if ARCH_UNIPHIER
16138fed8abSSemen Protsenko	default 0x140 if ARCH_MVEBU
16238fed8abSSemen Protsenko	default 0x200 if ARCH_SOCFPGA || ARCH_AT91
16338fed8abSSemen Protsenko	default 0x300 if ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || OMAP44XX || \
16438fed8abSSemen Protsenko		         OMAP54XX || AM33XX || AM43XX
1658f4d62b4SKever Yang	default 0x4000 if ARCH_ROCKCHIP
16638fed8abSSemen Protsenko	help
16738fed8abSSemen Protsenko	  Address on the MMC to load U-Boot from, when the MMC is being used
16838fed8abSSemen Protsenko	  in raw mode. Units: MMC sectors (1 sector = 512 bytes).
16938fed8abSSemen Protsenko
170949123e3SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
171949123e3SDalon Westergreen	bool "MMC Raw mode: by partition"
172949123e3SDalon Westergreen	help
173949123e3SDalon Westergreen	  Use a partition for loading U-Boot when using MMC/SD in raw mode.
174949123e3SDalon Westergreen
175949123e3SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION
176949123e3SDalon Westergreen	hex "Partition to use to load U-Boot from"
177226498b8STom Rini	depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
178949123e3SDalon Westergreen	default 1
179949123e3SDalon Westergreen	help
180949123e3SDalon Westergreen	  Partition on the MMC to load U-Boot from when the MMC is being
181949123e3SDalon Westergreen	  used in raw mode
182949123e3SDalon Westergreen
183f0fb4fa7SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
184f0fb4fa7SDalon Westergreen	bool "MMC raw mode: by partition type"
185226498b8STom Rini	depends on DOS_PARTITION && SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
186f0fb4fa7SDalon Westergreen	help
187f0fb4fa7SDalon Westergreen	  Use partition type for specifying U-Boot partition on MMC/SD in
188f0fb4fa7SDalon Westergreen	  raw mode. U-Boot will be loaded from the first partition of this
189f0fb4fa7SDalon Westergreen	  type to be found.
190f0fb4fa7SDalon Westergreen
191f0fb4fa7SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE
192f0fb4fa7SDalon Westergreen	hex "Partition Type on the MMC to load U-Boot from"
193226498b8STom Rini	depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
194f0fb4fa7SDalon Westergreen	help
195f0fb4fa7SDalon Westergreen	  Partition Type on the MMC to load U-Boot from, when the MMC is being
196f0fb4fa7SDalon Westergreen	  used in raw mode.
197f0fb4fa7SDalon Westergreen
19811bde1cdSSimon Glassconfig SPL_CRC32_SUPPORT
19911bde1cdSSimon Glass	bool "Support CRC32"
20011bde1cdSSimon Glass	depends on SPL_FIT
20111bde1cdSSimon Glass	help
20211bde1cdSSimon Glass	  Enable this to support CRC32 in FIT images within SPL. This is a
20311bde1cdSSimon Glass	  32-bit checksum value that can be used to verify images. This is
20411bde1cdSSimon Glass	  the least secure type of checksum, suitable for detected
20511bde1cdSSimon Glass	  accidental image corruption. For secure applications you should
20611bde1cdSSimon Glass	  consider SHA1 or SHA256.
20711bde1cdSSimon Glass
20811bde1cdSSimon Glassconfig SPL_MD5_SUPPORT
20911bde1cdSSimon Glass	bool "Support MD5"
21011bde1cdSSimon Glass	depends on SPL_FIT
21111bde1cdSSimon Glass	help
21211bde1cdSSimon Glass	  Enable this to support MD5 in FIT images within SPL. An MD5
21311bde1cdSSimon Glass	  checksum is a 128-bit hash value used to check that the image
21411bde1cdSSimon Glass	  contents have not been corrupted. Note that MD5 is not considered
21511bde1cdSSimon Glass	  secure as it is possible (with a brute-force attack) to adjust the
21611bde1cdSSimon Glass	  image while still retaining the same MD5 hash value. For secure
21711bde1cdSSimon Glass	  applications where images may be changed maliciously, you should
21811bde1cdSSimon Glass	  consider SHA1 or SHA256.
21911bde1cdSSimon Glass
22011bde1cdSSimon Glassconfig SPL_SHA1_SUPPORT
22111bde1cdSSimon Glass	bool "Support SHA1"
22211bde1cdSSimon Glass	depends on SPL_FIT
223089df18bSTom Rini	select SHA1
22411bde1cdSSimon Glass	help
22511bde1cdSSimon Glass	  Enable this to support SHA1 in FIT images within SPL. A SHA1
22611bde1cdSSimon Glass	  checksum is a 160-bit (20-byte) hash value used to check that the
22711bde1cdSSimon Glass	  image contents have not been corrupted or maliciously altered.
22811bde1cdSSimon Glass	  While SHA1 is fairly secure it is coming to the end of its life
22911bde1cdSSimon Glass	  due to the expanding computing power avaiable to brute-force
23011bde1cdSSimon Glass	  attacks. For more security, consider SHA256.
23111bde1cdSSimon Glass
23211bde1cdSSimon Glassconfig SPL_SHA256_SUPPORT
23311bde1cdSSimon Glass	bool "Support SHA256"
23411bde1cdSSimon Glass	depends on SPL_FIT
235089df18bSTom Rini	select SHA256
23611bde1cdSSimon Glass	help
23711bde1cdSSimon Glass	  Enable this to support SHA256 in FIT images within SPL. A SHA256
23811bde1cdSSimon Glass	  checksum is a 256-bit (32-byte) hash value used to check that the
23911bde1cdSSimon Glass	  image contents have not been corrupted. SHA256 is recommended for
24011bde1cdSSimon Glass	  use in secure applications since (as at 2016) there is no known
24111bde1cdSSimon Glass	  feasible attack that could produce a 'collision' with differing
24211bde1cdSSimon Glass	  input data. Use this for the highest security. Note that only the
24311bde1cdSSimon Glass	  SHA256 variant is supported: SHA512 and others are not currently
24411bde1cdSSimon Glass	  supported in U-Boot.
24511bde1cdSSimon Glass
246337bbb62SPhilipp Tomsichconfig SPL_FIT_IMAGE_TINY
247337bbb62SPhilipp Tomsich	bool "Remove functionality from SPL FIT loading to reduce size"
248337bbb62SPhilipp Tomsich	depends on SPL_FIT
249337bbb62SPhilipp Tomsich	default y if MACH_SUN50I || MACH_SUN50I_H5
250337bbb62SPhilipp Tomsich	help
251337bbb62SPhilipp Tomsich	  Enable this to reduce the size of the FIT image loading code
252337bbb62SPhilipp Tomsich	  in SPL, if space for the SPL binary is very tight.
253337bbb62SPhilipp Tomsich
254337bbb62SPhilipp Tomsich	  This removes the detection of image types (which forces the
255337bbb62SPhilipp Tomsich	  first image to be treated as having a U-Boot style calling
256337bbb62SPhilipp Tomsich	  convention) and skips the recording of each loaded payload
257337bbb62SPhilipp Tomsich	  (i.e. loadable) into the FDT (modifying the loaded FDT to
258337bbb62SPhilipp Tomsich	  ensure this information is available to the next image
259337bbb62SPhilipp Tomsich	  invoked).
260337bbb62SPhilipp Tomsich
2615e148df9SSimon Glassconfig SPL_CPU_SUPPORT
2625e148df9SSimon Glass	bool "Support CPU drivers"
2635e148df9SSimon Glass	help
2645e148df9SSimon Glass	  Enable this to support CPU drivers in SPL. These drivers can set
2655e148df9SSimon Glass	  up CPUs and provide information about them such as the model and
2665e148df9SSimon Glass	  name. This can be useful in SPL since setting up the CPUs earlier
2675e148df9SSimon Glass	  may improve boot performance. Enable this option to build the
2685e148df9SSimon Glass	  drivers in drivers/cpu as part of an SPL build.
2695e148df9SSimon Glass
27011bde1cdSSimon Glassconfig SPL_CRYPTO_SUPPORT
27111bde1cdSSimon Glass	bool "Support crypto drivers"
27211bde1cdSSimon Glass	help
27311bde1cdSSimon Glass	  Enable crypto drivers in SPL. These drivers can be used to
27411bde1cdSSimon Glass	  accelerate secure boot processing in secure applications. Enable
27511bde1cdSSimon Glass	  this option to build the drivers in drivers/crypto as part of an
27611bde1cdSSimon Glass	  SPL build.
27711bde1cdSSimon Glass
27811bde1cdSSimon Glassconfig SPL_HASH_SUPPORT
27911bde1cdSSimon Glass	bool "Support hashing drivers"
280089df18bSTom Rini	select SHA1
281089df18bSTom Rini	select SHA256
28211bde1cdSSimon Glass	help
28311bde1cdSSimon Glass	  Enable hashing drivers in SPL. These drivers can be used to
28411bde1cdSSimon Glass	  accelerate secure boot processing in secure applications. Enable
28511bde1cdSSimon Glass	  this option to build system-specific drivers for hash acceleration
28611bde1cdSSimon Glass	  as part of an SPL build.
28711bde1cdSSimon Glass
28811bde1cdSSimon Glassconfig SPL_DMA_SUPPORT
28911bde1cdSSimon Glass	bool "Support DMA drivers"
29011bde1cdSSimon Glass	help
29111bde1cdSSimon Glass	  Enable DMA (direct-memory-access) drivers in SPL. These drivers
29211bde1cdSSimon Glass	  can be used to handle memory-to-peripheral data transfer without
29311bde1cdSSimon Glass	  the CPU moving the data. Enable this option to build the drivers
29411bde1cdSSimon Glass	  in drivers/dma as part of an SPL build.
29511bde1cdSSimon Glass
29611bde1cdSSimon Glassconfig SPL_DRIVERS_MISC_SUPPORT
29711bde1cdSSimon Glass	bool "Support misc drivers"
29811bde1cdSSimon Glass	help
29911bde1cdSSimon Glass	  Enable miscellaneous drivers in SPL. These drivers perform various
30011bde1cdSSimon Glass	  tasks that don't fall nicely into other categories, Enable this
30111bde1cdSSimon Glass	  option to build the drivers in drivers/misc as part of an SPL
30211bde1cdSSimon Glass	  build, for those that support building in SPL (not all drivers do).
30311bde1cdSSimon Glass
30411bde1cdSSimon Glassconfig SPL_ENV_SUPPORT
30511bde1cdSSimon Glass	bool "Support an environment"
30611bde1cdSSimon Glass	help
30711bde1cdSSimon Glass	  Enable environment support in SPL. The U-Boot environment provides
30811bde1cdSSimon Glass	  a number of settings (essentially name/value pairs) which can
30911bde1cdSSimon Glass	  control many aspects of U-Boot's operation. Normally this is not
31011bde1cdSSimon Glass	  needed in SPL as it has a much simpler task with less
31111bde1cdSSimon Glass	  configuration. But some boards use this to support 'Falcon' boot
31211bde1cdSSimon Glass	  on EXT2 and FAT, where SPL boots directly into Linux without
31300caae6dSSimon Glass	  starting U-Boot first. Enabling this option will make env_get()
314382bee57SSimon Glass	  and env_set() available in SPL.
31511bde1cdSSimon Glass
316d2d9bdfcSB, Raviconfig SPL_SAVEENV
317d2d9bdfcSB, Ravi	bool "Support save environment"
318226498b8STom Rini	depends on SPL_ENV_SUPPORT
319d6400c3fSJean-Jacques Hiblot	select SPL_MMC_WRITE if ENV_IS_IN_MMC
320d2d9bdfcSB, Ravi	help
321d2d9bdfcSB, Ravi	  Enable save environment support in SPL after setenv. By default
322d2d9bdfcSB, Ravi	  the saveenv option is not provided in SPL, but some boards need
323d2d9bdfcSB, Ravi	  this support in 'Falcon' boot, where SPL need to boot from
324d2d9bdfcSB, Ravi	  different images based on environment variable set by OS. For
325d2d9bdfcSB, Ravi	  example OS may set "reboot_image" environment variable to
326d2d9bdfcSB, Ravi	  "recovery" inorder to boot recovery image by SPL. The SPL read
327d2d9bdfcSB, Ravi	  "reboot_image" and act accordingly and change the reboot_image
328d2d9bdfcSB, Ravi	  to default mode using setenv and save the environemnt.
329d2d9bdfcSB, Ravi
33011bde1cdSSimon Glassconfig SPL_ETH_SUPPORT
33111bde1cdSSimon Glass	bool "Support Ethernet"
33211bde1cdSSimon Glass	depends on SPL_ENV_SUPPORT
33311bde1cdSSimon Glass	help
33411bde1cdSSimon Glass	  Enable access to the network subsystem and associated Ethernet
33511bde1cdSSimon Glass	  drivers in SPL. This permits SPL to load U-Boot over an Ethernet
33611bde1cdSSimon Glass	  link rather than from an on-board peripheral. Environment support
33711bde1cdSSimon Glass	  is required since the network stack uses a number of environment
33811bde1cdSSimon Glass	  variables. See also SPL_NET_SUPPORT.
33911bde1cdSSimon Glass
34011bde1cdSSimon Glassconfig SPL_EXT_SUPPORT
34111bde1cdSSimon Glass	bool "Support EXT filesystems"
34211bde1cdSSimon Glass	help
34311bde1cdSSimon Glass	  Enable support for EXT2/3/4 filesystems with SPL. This permits
34411bde1cdSSimon Glass	  U-Boot (or Linux in Falcon mode) to be loaded from an EXT
34511bde1cdSSimon Glass	  filesystem from within SPL. Support for the underlying block
34611bde1cdSSimon Glass	  device (e.g. MMC or USB) must be enabled separately.
34711bde1cdSSimon Glass
34811bde1cdSSimon Glassconfig SPL_FAT_SUPPORT
34911bde1cdSSimon Glass	bool "Support FAT filesystems"
350eedfb89eSSekhar Nori	select FS_FAT
35111bde1cdSSimon Glass	help
35211bde1cdSSimon Glass	  Enable support for FAT and VFAT filesystems with SPL. This
35311bde1cdSSimon Glass	  permits U-Boot (or Linux in Falcon mode) to be loaded from a FAT
35411bde1cdSSimon Glass	  filesystem from within SPL. Support for the underlying block
35511bde1cdSSimon Glass	  device (e.g. MMC or USB) must be enabled separately.
35611bde1cdSSimon Glass
35711bde1cdSSimon Glassconfig SPL_FPGA_SUPPORT
35811bde1cdSSimon Glass	bool "Support FPGAs"
35911bde1cdSSimon Glass	help
36011bde1cdSSimon Glass	  Enable support for FPGAs in SPL. Field-programmable Gate Arrays
36111bde1cdSSimon Glass	  provide software-configurable hardware which is typically used to
36211bde1cdSSimon Glass	  implement peripherals (such as UARTs, LCD displays, MMC) or
36311bde1cdSSimon Glass	  accelerate custom processing functions, such as image processing
36411bde1cdSSimon Glass	  or machine learning. Sometimes it is useful to program the FPGA
36511bde1cdSSimon Glass	  as early as possible during boot, and this option can enable that
36611bde1cdSSimon Glass	  within SPL.
36711bde1cdSSimon Glass
36811bde1cdSSimon Glassconfig SPL_GPIO_SUPPORT
36911bde1cdSSimon Glass	bool "Support GPIO"
37011bde1cdSSimon Glass	help
37111bde1cdSSimon Glass	  Enable support for GPIOs (General-purpose Input/Output) in SPL.
37211bde1cdSSimon Glass	  GPIOs allow U-Boot to read the state of an input line (high or
37311bde1cdSSimon Glass	  low) and set the state of an output line. This can be used to
37411bde1cdSSimon Glass	  drive LEDs, control power to various system parts and read user
37511bde1cdSSimon Glass	  input. GPIOs can be useful in SPL to enable a 'sign-of-life' LED,
37611bde1cdSSimon Glass	  for example. Enable this option to build the drivers in
37711bde1cdSSimon Glass	  drivers/gpio as part of an SPL build.
37811bde1cdSSimon Glass
37911bde1cdSSimon Glassconfig SPL_I2C_SUPPORT
38011bde1cdSSimon Glass	bool "Support I2C"
38111bde1cdSSimon Glass	help
38211bde1cdSSimon Glass	  Enable support for the I2C (Inter-Integrated Circuit) bus in SPL.
38311bde1cdSSimon Glass	  I2C works with a clock and data line which can be driven by a
38411bde1cdSSimon Glass	  one or more masters or slaves. It is a fairly complex bus but is
38511bde1cdSSimon Glass	  widely used as it only needs two lines for communication. Speeds of
38611bde1cdSSimon Glass	  400kbps are typical but up to 3.4Mbps is supported by some
38711bde1cdSSimon Glass	  hardware. I2C can be useful in SPL to configure power management
38811bde1cdSSimon Glass	  ICs (PMICs) before raising the CPU clock speed, for example.
38911bde1cdSSimon Glass	  Enable this option to build the drivers in drivers/i2c as part of
39011bde1cdSSimon Glass	  an SPL build.
39111bde1cdSSimon Glass
39211bde1cdSSimon Glassconfig SPL_LIBCOMMON_SUPPORT
39311bde1cdSSimon Glass	bool "Support common libraries"
39411bde1cdSSimon Glass	help
39511bde1cdSSimon Glass	  Enable support for common U-Boot libraries within SPL. These
39611bde1cdSSimon Glass	  libraries include common code to deal with U-Boot images,
39711bde1cdSSimon Glass	  environment and USB, for example. This option is enabled on many
39811bde1cdSSimon Glass	  boards. Enable this option to build the code in common/ as part of
39911bde1cdSSimon Glass	  an SPL build.
40011bde1cdSSimon Glass
40111bde1cdSSimon Glassconfig SPL_LIBDISK_SUPPORT
40211bde1cdSSimon Glass	bool "Support disk paritions"
40311bde1cdSSimon Glass	help
40411bde1cdSSimon Glass	  Enable support for disk partitions within SPL. 'Disk' is something
40511bde1cdSSimon Glass	  of a misnomer as it includes non-spinning media such as flash (as
40611bde1cdSSimon Glass	  used in MMC and USB sticks). Partitions provide a way for a disk
40711bde1cdSSimon Glass	  to be split up into separate regions, with a partition table placed
40811bde1cdSSimon Glass	  at the start or end which describes the location and size of each
40911bde1cdSSimon Glass	  'partition'. These partitions are typically uses as individual block
41011bde1cdSSimon Glass	  devices, typically with an EXT2 or FAT filesystem in each. This
41111bde1cdSSimon Glass	  option enables whatever partition support has been enabled in
41211bde1cdSSimon Glass	  U-Boot to also be used in SPL. It brings in the code in disk/.
41311bde1cdSSimon Glass
41411bde1cdSSimon Glassconfig SPL_LIBGENERIC_SUPPORT
41511bde1cdSSimon Glass	bool "Support generic libraries"
41611bde1cdSSimon Glass	help
41711bde1cdSSimon Glass	  Enable support for generic U-Boot libraries within SPL. These
41811bde1cdSSimon Glass	  libraries include generic code to deal with device tree, hashing,
41911bde1cdSSimon Glass	  printf(), compression and the like. This option is enabled on many
42011bde1cdSSimon Glass	  boards. Enable this option to build the code in lib/ as part of an
42111bde1cdSSimon Glass	  SPL build.
42211bde1cdSSimon Glass
42311bde1cdSSimon Glassconfig SPL_MMC_SUPPORT
42411bde1cdSSimon Glass	bool "Support MMC"
425226498b8STom Rini	depends on MMC
42611bde1cdSSimon Glass	help
42711bde1cdSSimon Glass	  Enable support for MMC (Multimedia Card) within SPL. This enables
42811bde1cdSSimon Glass	  the MMC protocol implementation and allows any enabled drivers to
42911bde1cdSSimon Glass	  be used within SPL. MMC can be used with or without disk partition
43011bde1cdSSimon Glass	  support depending on the application (SPL_LIBDISK_SUPPORT). Enable
43111bde1cdSSimon Glass	  this option to build the drivers in drivers/mmc as part of an SPL
43211bde1cdSSimon Glass	  build.
43311bde1cdSSimon Glass
434d6400c3fSJean-Jacques Hiblotconfig SPL_MMC_WRITE
435d6400c3fSJean-Jacques Hiblot	bool "MMC/SD/SDIO card support for write operations in SPL"
436d6400c3fSJean-Jacques Hiblot	depends on SPL_MMC_SUPPORT
437d6400c3fSJean-Jacques Hiblot	default n
438d6400c3fSJean-Jacques Hiblot	help
439d6400c3fSJean-Jacques Hiblot	  Enable write access to MMC and SD Cards in SPL
440d6400c3fSJean-Jacques Hiblot
441d6400c3fSJean-Jacques Hiblot
44211bde1cdSSimon Glassconfig SPL_MPC8XXX_INIT_DDR_SUPPORT
44311bde1cdSSimon Glass	bool "Support MPC8XXX DDR init"
44411bde1cdSSimon Glass	help
44511bde1cdSSimon Glass	  Enable support for DDR-SDRAM (double-data-rate synchronous dynamic
44611bde1cdSSimon Glass	  random-access memory) on the MPC8XXX family within SPL. This
44711bde1cdSSimon Glass	  allows DRAM to be set up before loading U-Boot into that DRAM,
44811bde1cdSSimon Glass	  where it can run.
44911bde1cdSSimon Glass
45011bde1cdSSimon Glassconfig SPL_MTD_SUPPORT
45111bde1cdSSimon Glass	bool "Support MTD drivers"
45211bde1cdSSimon Glass	help
45311bde1cdSSimon Glass	  Enable support for MTD (Memory Technology Device) within SPL. MTD
45411bde1cdSSimon Glass	  provides a block interface over raw NAND and can also be used with
45511bde1cdSSimon Glass	  SPI flash. This allows SPL to load U-Boot from supported MTD
45611bde1cdSSimon Glass	  devices. See SPL_NAND_SUPPORT and SPL_ONENAND_SUPPORT for how
45711bde1cdSSimon Glass	  to enable specific MTD drivers.
45811bde1cdSSimon Glass
45911bde1cdSSimon Glassconfig SPL_MUSB_NEW_SUPPORT
46011bde1cdSSimon Glass	bool "Support new Mentor Graphics USB"
46111bde1cdSSimon Glass	help
46211bde1cdSSimon Glass	  Enable support for Mentor Graphics USB in SPL. This is a new
46311bde1cdSSimon Glass	  driver used by some boards. Enable this option to build
46411bde1cdSSimon Glass	  the drivers in drivers/usb/musb-new as part of an SPL build. The
46511bde1cdSSimon Glass	  old drivers are in drivers/usb/musb.
46611bde1cdSSimon Glass
46711bde1cdSSimon Glassconfig SPL_NAND_SUPPORT
46811bde1cdSSimon Glass	bool "Support NAND flash"
46911bde1cdSSimon Glass	help
47011bde1cdSSimon Glass	  Enable support for NAND (Negative AND) flash in SPL. NAND flash
47111bde1cdSSimon Glass	  can be used to allow SPL to load U-Boot from supported devices.
47211bde1cdSSimon Glass	  This enables the drivers in drivers/mtd/nand as part of an SPL
47311bde1cdSSimon Glass	  build.
47411bde1cdSSimon Glass
47511bde1cdSSimon Glassconfig SPL_NET_SUPPORT
47611bde1cdSSimon Glass	bool "Support networking"
47711bde1cdSSimon Glass	help
47811bde1cdSSimon Glass	  Enable support for network devices (such as Ethernet) in SPL.
47911bde1cdSSimon Glass	  This permits SPL to load U-Boot over a network link rather than
48011bde1cdSSimon Glass	  from an on-board peripheral. Environment support is required since
48111bde1cdSSimon Glass	  the network stack uses a number of environment variables. See also
48211bde1cdSSimon Glass	  SPL_ETH_SUPPORT.
48311bde1cdSSimon Glass
48411bde1cdSSimon Glassif SPL_NET_SUPPORT
48511bde1cdSSimon Glassconfig SPL_NET_VCI_STRING
48611bde1cdSSimon Glass	string "BOOTP Vendor Class Identifier string sent by SPL"
48711bde1cdSSimon Glass	help
48811bde1cdSSimon Glass	  As defined by RFC 2132 the vendor class identifier field can be
48911bde1cdSSimon Glass	  sent by the client to identify the vendor type and configuration
49011bde1cdSSimon Glass	  of a client.  This is often used in practice to allow for the DHCP
49111bde1cdSSimon Glass	  server to specify different files to load depending on if the ROM,
49211bde1cdSSimon Glass	  SPL or U-Boot itself makes the request
49311bde1cdSSimon Glassendif   # if SPL_NET_SUPPORT
49411bde1cdSSimon Glass
49511bde1cdSSimon Glassconfig SPL_NO_CPU_SUPPORT
49611bde1cdSSimon Glass	bool "Drop CPU code in SPL"
49711bde1cdSSimon Glass	help
49811bde1cdSSimon Glass	  This is specific to the ARM926EJ-S CPU. It disables the standard
49911bde1cdSSimon Glass	  start.S start-up code, presumably so that a replacement can be
50011bde1cdSSimon Glass	  used on that CPU. You should not enable it unless you know what
50111bde1cdSSimon Glass	  you are doing.
50211bde1cdSSimon Glass
50311bde1cdSSimon Glassconfig SPL_NOR_SUPPORT
50411bde1cdSSimon Glass	bool "Support NOR flash"
50511bde1cdSSimon Glass	help
50611bde1cdSSimon Glass	  Enable support for loading U-Boot from memory-mapped NOR (Negative
50711bde1cdSSimon Glass	  OR) flash in SPL. NOR flash is slow to write but fast to read, and
50811bde1cdSSimon Glass	  a memory-mapped device makes it very easy to access. Loading from
50911bde1cdSSimon Glass	  NOR is typically achieved with just a memcpy().
51011bde1cdSSimon Glass
511c6d9e9dbSVikas Manochaconfig SPL_XIP_SUPPORT
512c6d9e9dbSVikas Manocha	bool "Support XIP"
513c6d9e9dbSVikas Manocha	depends on SPL
514c6d9e9dbSVikas Manocha	help
515c6d9e9dbSVikas Manocha	  Enable support for execute in place of U-Boot or kernel image. There
516c6d9e9dbSVikas Manocha	  is no need to copy image from flash to ram if flash supports execute
517c6d9e9dbSVikas Manocha	  in place. Its very useful in systems having enough flash but not
518c6d9e9dbSVikas Manocha	  enough ram to load the image.
519c6d9e9dbSVikas Manocha
52011bde1cdSSimon Glassconfig SPL_ONENAND_SUPPORT
52111bde1cdSSimon Glass	bool "Support OneNAND flash"
52211bde1cdSSimon Glass	help
52311bde1cdSSimon Glass	  Enable support for OneNAND (Negative AND) flash in SPL. OneNAND is
52411bde1cdSSimon Glass	  a type of NAND flash and therefore can be used to allow SPL to
52511bde1cdSSimon Glass	  load U-Boot from supported devices. This enables the drivers in
52611bde1cdSSimon Glass	  drivers/mtd/onenand as part of an SPL build.
52711bde1cdSSimon Glass
528c20ae2ffSHeiko Schocherconfig SPL_OS_BOOT
529c20ae2ffSHeiko Schocher	bool "Activate Falcon Mode"
530226498b8STom Rini	depends on !TI_SECURE_DEVICE
531c20ae2ffSHeiko Schocher	default n
532c20ae2ffSHeiko Schocher	help
533c20ae2ffSHeiko Schocher	  Enable booting directly to an OS from SPL.
534c20ae2ffSHeiko Schocher	  for more info read doc/README.falcon
535c20ae2ffSHeiko Schocher
53629d3bc79SHeiko Schocherif SPL_OS_BOOT
53729d3bc79SHeiko Schocherconfig SYS_OS_BASE
53829d3bc79SHeiko Schocher	hex "addr, where OS is found"
539226498b8STom Rini	depends on SPL_NOR_SUPPORT
54029d3bc79SHeiko Schocher	help
54129d3bc79SHeiko Schocher	  Specify the address, where the OS image is found, which
54229d3bc79SHeiko Schocher	  gets booted.
54329d3bc79SHeiko Schocher
54429d3bc79SHeiko Schocherendif # SPL_OS_BOOT
54529d3bc79SHeiko Schocher
5462446b6b8SSimon Glassconfig SPL_PCI_SUPPORT
5472446b6b8SSimon Glass	bool "Support PCI drivers"
5482446b6b8SSimon Glass	help
5492446b6b8SSimon Glass	  Enable support for PCI in SPL. For platforms that need PCI to boot,
5502446b6b8SSimon Glass	  or must perform some init using PCI in SPL, this provides the
5512446b6b8SSimon Glass	  necessary driver support. This enables the drivers in drivers/pci
5522446b6b8SSimon Glass	  as part of an SPL build.
5532446b6b8SSimon Glass
554bbe41abfSSimon Glassconfig SPL_PCH_SUPPORT
555bbe41abfSSimon Glass	bool "Support PCH drivers"
556bbe41abfSSimon Glass	help
557bbe41abfSSimon Glass	  Enable support for PCH (Platform Controller Hub) devices in SPL.
558bbe41abfSSimon Glass	  These are used to set up GPIOs and the SPI peripheral early in
559bbe41abfSSimon Glass	  boot. This enables the drivers in drivers/pch as part of an SPL
560bbe41abfSSimon Glass	  build.
561bbe41abfSSimon Glass
56211bde1cdSSimon Glassconfig SPL_POST_MEM_SUPPORT
56311bde1cdSSimon Glass	bool "Support POST drivers"
56411bde1cdSSimon Glass	help
56511bde1cdSSimon Glass	  Enable support for POST (Power-on Self Test) in SPL. POST is a
56611bde1cdSSimon Glass	  procedure that checks that the hardware (CPU or board) appears to
56711bde1cdSSimon Glass	  be functionally correctly. It is a sanity check that can be
56811bde1cdSSimon Glass	  performed before booting. This enables the drivers in post/drivers
56911bde1cdSSimon Glass	  as part of an SPL build.
57011bde1cdSSimon Glass
5710e373c0aSPatrick Delaunayconfig SPL_RESET_SUPPORT
5720e373c0aSPatrick Delaunay	bool "Support reset drivers"
5730e373c0aSPatrick Delaunay	depends on SPL
5740e373c0aSPatrick Delaunay	help
5750e373c0aSPatrick Delaunay	  Enable support for reset control in SPL.
5760e373c0aSPatrick Delaunay	  That can be useful in SPL to handle IP reset in driver, as in U-Boot,
5770e373c0aSPatrick Delaunay	  by using the generic reset API provided by driver model.
5780e373c0aSPatrick Delaunay	  This enables the drivers in drivers/reset as part of an SPL build.
5790e373c0aSPatrick Delaunay
58011bde1cdSSimon Glassconfig SPL_POWER_SUPPORT
58111bde1cdSSimon Glass	bool "Support power drivers"
58211bde1cdSSimon Glass	help
58311bde1cdSSimon Glass	  Enable support for power control in SPL. This includes support
58411bde1cdSSimon Glass	  for PMICs (Power-management Integrated Circuits) and some of the
58511bde1cdSSimon Glass	  features provided by PMICs. In particular, voltage regulators can
58611bde1cdSSimon Glass	  be used to enable/disable power and vary its voltage. That can be
58711bde1cdSSimon Glass	  useful in SPL to turn on boot peripherals and adjust CPU voltage
58811bde1cdSSimon Glass	  so that the clock speed can be increased. This enables the drivers
58911bde1cdSSimon Glass	  in drivers/power, drivers/power/pmic and drivers/power/regulator
59011bde1cdSSimon Glass	  as part of an SPL build.
59111bde1cdSSimon Glass
59222802f4eSStefan Agnerconfig SPL_RAM_SUPPORT
59322802f4eSStefan Agner	bool "Support booting from RAM"
59422802f4eSStefan Agner	default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
59522802f4eSStefan Agner	help
59622802f4eSStefan Agner	  Enable booting of an image in RAM. The image can be preloaded or
59722802f4eSStefan Agner	  it can be loaded by SPL directly into RAM (e.g. using USB).
59822802f4eSStefan Agner
599f417d40fSStefan Agnerconfig SPL_RAM_DEVICE
600f417d40fSStefan Agner	bool "Support booting from preloaded image in RAM"
60122802f4eSStefan Agner	depends on SPL_RAM_SUPPORT
602f417d40fSStefan Agner	default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
603f417d40fSStefan Agner	help
604f417d40fSStefan Agner	  Enable booting of an image already loaded in RAM. The image has to
605f417d40fSStefan Agner	  be already in memory when SPL takes over, e.g. loaded by the boot
606f417d40fSStefan Agner	  ROM.
607f417d40fSStefan Agner
60830bf8a0dSSimon Glassconfig SPL_RTC_SUPPORT
60930bf8a0dSSimon Glass	bool "Support RTC drivers"
61030bf8a0dSSimon Glass	help
61130bf8a0dSSimon Glass	  Enable RTC (Real-time Clock) support in SPL. This includes support
61230bf8a0dSSimon Glass	  for reading and setting the time. Some RTC devices also have some
61330bf8a0dSSimon Glass	  non-volatile (battery-backed) memory which is accessible if
61430bf8a0dSSimon Glass	  needed. This enables the drivers in drivers/rtc as part of an SPL
61530bf8a0dSSimon Glass	  build.
61630bf8a0dSSimon Glass
61711bde1cdSSimon Glassconfig SPL_SATA_SUPPORT
61811bde1cdSSimon Glass	bool "Support loading from SATA"
61911bde1cdSSimon Glass	help
62011bde1cdSSimon Glass	  Enable support for SATA (Serial AT attachment) in SPL. This allows
62111bde1cdSSimon Glass	  use of SATA devices such as hard drives and flash drivers for
62211bde1cdSSimon Glass	  loading U-Boot. SATA is used in higher-end embedded systems and
62311bde1cdSSimon Glass	  can provide higher performance than MMC , at somewhat higher
62411bde1cdSSimon Glass	  expense and power consumption. This enables loading from SATA
62511bde1cdSSimon Glass	  using a configured device.
62611bde1cdSSimon Glass
62711bde1cdSSimon Glassconfig SPL_SERIAL_SUPPORT
62811bde1cdSSimon Glass	bool "Support serial"
629*14ad44abSAlex Kiernan	select SPL_PRINTF
630*14ad44abSAlex Kiernan	select SPL_STRTO
63111bde1cdSSimon Glass	help
63211bde1cdSSimon Glass	  Enable support for serial in SPL. This allows use of a serial UART
63311bde1cdSSimon Glass	  for displaying messages while SPL is running. It also brings in
63411bde1cdSSimon Glass	  printf() and panic() functions. This should normally be enabled
63511bde1cdSSimon Glass	  unless there are space reasons not to. Even then, consider
63611bde1cdSSimon Glass	  enabling USE_TINY_PRINTF which is a small printf() version.
63711bde1cdSSimon Glass
63811bde1cdSSimon Glassconfig SPL_SPI_FLASH_SUPPORT
63911bde1cdSSimon Glass	bool "Support SPI flash drivers"
64011bde1cdSSimon Glass	help
64111bde1cdSSimon Glass	  Enable support for using SPI flash in SPL, and loading U-Boot from
64211bde1cdSSimon Glass	  SPI flash. SPI flash (Serial Peripheral Bus flash) is named after
64311bde1cdSSimon Glass	  the SPI bus that is used to connect it to a system. It is a simple
64411bde1cdSSimon Glass	  but fast bidirectional 4-wire bus (clock, chip select and two data
64511bde1cdSSimon Glass	  lines). This enables the drivers in drivers/mtd/spi as part of an
64611bde1cdSSimon Glass	  SPL build. This normally requires SPL_SPI_SUPPORT.
64711bde1cdSSimon Glass
64855500438SMarek Vasutconfig SPL_SPI_LOAD
64955500438SMarek Vasut	bool "Support loading from SPI flash"
65055500438SMarek Vasut	depends on SPL_SPI_FLASH_SUPPORT
65155500438SMarek Vasut	help
65255500438SMarek Vasut	  Enable support for loading next stage, U-Boot or otherwise, from
65355500438SMarek Vasut	  SPI NOR in U-Boot SPL.
65455500438SMarek Vasut
65511bde1cdSSimon Glassconfig SPL_SPI_SUPPORT
65611bde1cdSSimon Glass	bool "Support SPI drivers"
65711bde1cdSSimon Glass	help
65811bde1cdSSimon Glass	  Enable support for using SPI in SPL. This is used for connecting
65911bde1cdSSimon Glass	  to SPI flash for loading U-Boot. See SPL_SPI_FLASH_SUPPORT for
66011bde1cdSSimon Glass	  more details on that. The SPI driver provides the transport for
66111bde1cdSSimon Glass	  data between the SPI flash and the CPU. This option can be used to
66211bde1cdSSimon Glass	  enable SPI drivers that are needed for other purposes also, such
66311bde1cdSSimon Glass	  as a SPI PMIC.
66411bde1cdSSimon Glass
6658502f9f6SFaiz Abbasconfig SPL_THERMAL
6668502f9f6SFaiz Abbas	bool "Driver support for thermal devices"
6678502f9f6SFaiz Abbas	help
6688502f9f6SFaiz Abbas	  Enable support for temperature-sensing devices. Some SoCs have on-chip
6698502f9f6SFaiz Abbas	  temperature sensors to permit warnings, speed throttling or even
6708502f9f6SFaiz Abbas	  automatic power-off when the temperature gets too high or low. Other
6718502f9f6SFaiz Abbas	  devices may be discrete but connected on a suitable bus.
6728502f9f6SFaiz Abbas
67311bde1cdSSimon Glassconfig SPL_USB_HOST_SUPPORT
67411bde1cdSSimon Glass	bool "Support USB host drivers"
67511bde1cdSSimon Glass	help
67611bde1cdSSimon Glass	  Enable access to USB (Universal Serial Bus) host devices so that
67711bde1cdSSimon Glass	  SPL can load U-Boot from a connected USB peripheral, such as a USB
67811bde1cdSSimon Glass	  flash stick. While USB takes a little longer to start up than most
67911bde1cdSSimon Glass	  buses, it is very flexible since many different types of storage
68011bde1cdSSimon Glass	  device can be attached. This option enables the drivers in
68111bde1cdSSimon Glass	  drivers/usb/host as part of an SPL build.
68211bde1cdSSimon Glass
68311bde1cdSSimon Glassconfig SPL_USB_SUPPORT
68411bde1cdSSimon Glass	bool "Support loading from USB"
68511bde1cdSSimon Glass	depends on SPL_USB_HOST_SUPPORT
68611bde1cdSSimon Glass	help
68711bde1cdSSimon Glass	  Enable support for USB devices in SPL. This allows use of USB
68811bde1cdSSimon Glass	  devices such as hard drives and flash drivers for loading U-Boot.
68911bde1cdSSimon Glass	  The actual drivers are enabled separately using the normal U-Boot
69011bde1cdSSimon Glass	  config options. This enables loading from USB using a configured
69111bde1cdSSimon Glass	  device.
69211bde1cdSSimon Glass
693e94793c8SStefan Agnerconfig SPL_USB_GADGET_SUPPORT
694e94793c8SStefan Agner	bool "Suppport USB Gadget drivers"
695e94793c8SStefan Agner	help
696e94793c8SStefan Agner	  Enable USB Gadget API which allows to enable USB device functions
697e94793c8SStefan Agner	  in SPL.
698e94793c8SStefan Agner
699e94793c8SStefan Agnerif SPL_USB_GADGET_SUPPORT
700e94793c8SStefan Agner
701b432b1ebSFaiz Abbasconfig SPL_USB_ETHER
702e94793c8SStefan Agner	bool "Support USB Ethernet drivers"
703e94793c8SStefan Agner	help
704e94793c8SStefan Agner	  Enable access to the USB network subsystem and associated
705e94793c8SStefan Agner	  drivers in SPL. This permits SPL to load U-Boot over a
706e94793c8SStefan Agner	  USB-connected Ethernet link (such as a USB Ethernet dongle) rather
707e94793c8SStefan Agner	  than from an onboard peripheral. Environment support is required
708e94793c8SStefan Agner	  since the network stack uses a number of environment variables.
709e94793c8SStefan Agner	  See also SPL_NET_SUPPORT and SPL_ETH_SUPPORT.
710e94793c8SStefan Agner
7115991703eSStefan Agnerconfig SPL_DFU_SUPPORT
7125991703eSStefan Agner	bool "Support DFU (Device Firmware Upgarde)"
7135991703eSStefan Agner	select SPL_HASH_SUPPORT
71466928afbSB, Ravi	select SPL_DFU_NO_RESET
7151b19cbdbSB, Ravi	depends on SPL_RAM_SUPPORT
7165991703eSStefan Agner	help
7175991703eSStefan Agner	  This feature enables the DFU (Device Firmware Upgarde) in SPL with
7185991703eSStefan Agner	  RAM memory device support. The ROM code will load and execute
7195991703eSStefan Agner	  the SPL built with dfu. The user can load binaries (u-boot/kernel) to
7205991703eSStefan Agner	  selected device partition from host-pc using dfu-utils.
7215991703eSStefan Agner	  This feature is useful to flash the binaries to factory or bare-metal
7225991703eSStefan Agner	  boards using USB interface.
7235991703eSStefan Agner
7245991703eSStefan Agnerchoice
7255991703eSStefan Agner	bool "DFU device selection"
7265991703eSStefan Agner	depends on SPL_DFU_SUPPORT
7275991703eSStefan Agner
7285991703eSStefan Agnerconfig SPL_DFU_RAM
7295991703eSStefan Agner	bool "RAM device"
73022802f4eSStefan Agner	depends on SPL_DFU_SUPPORT && SPL_RAM_SUPPORT
7315991703eSStefan Agner	help
7325991703eSStefan Agner	 select RAM/DDR memory device for loading binary images
7335991703eSStefan Agner	 (u-boot/kernel) to the selected device partition using
7345991703eSStefan Agner	 DFU and execute the u-boot/kernel from RAM.
7355991703eSStefan Agner
7365991703eSStefan Agnerendchoice
7375991703eSStefan Agner
738a3774c1cSStefan Agnerconfig SPL_USB_SDP_SUPPORT
739a3774c1cSStefan Agner	bool "Support SDP (Serial Download Protocol)"
740a3774c1cSStefan Agner	help
741a3774c1cSStefan Agner	  Enable Serial Download Protocol (SDP) device support in SPL. This
742a3774c1cSStefan Agner	  allows to download images into memory and execute (jump to) them
743a3774c1cSStefan Agner	  using the same protocol as implemented by the i.MX family's boot ROM.
744e94793c8SStefan Agnerendif
745e94793c8SStefan Agner
74611bde1cdSSimon Glassconfig SPL_WATCHDOG_SUPPORT
74711bde1cdSSimon Glass	bool "Support watchdog drivers"
74811bde1cdSSimon Glass	help
74911bde1cdSSimon Glass	  Enable support for watchdog drivers in SPL. A watchdog is
75011bde1cdSSimon Glass	  typically a hardware peripheral which can reset the system when it
75111bde1cdSSimon Glass	  detects no activity for a while (such as a software crash). This
75211bde1cdSSimon Glass	  enables the drivers in drivers/watchdog as part of an SPL build.
75311bde1cdSSimon Glass
75411bde1cdSSimon Glassconfig SPL_YMODEM_SUPPORT
75511bde1cdSSimon Glass	bool "Support loading using Ymodem"
7563bac19ceSAlex Kiernan	depends on SPL_SERIAL_SUPPORT
75711bde1cdSSimon Glass	help
75811bde1cdSSimon Glass	  While loading from serial is slow it can be a useful backup when
75911bde1cdSSimon Glass	  there is no other option. The Ymodem protocol provides a reliable
76011bde1cdSSimon Glass	  means of transmitting U-Boot over a serial line for using in SPL,
76111bde1cdSSimon Glass	  with a checksum to ensure correctness.
76211bde1cdSSimon Glass
763aa122f6bSPhilipp Tomsichconfig SPL_ATF
764bcc1726aSKever Yang	bool "Support ARM Trusted Firmware"
765226498b8STom Rini	depends on ARM64
766bcc1726aSKever Yang	help
767d21fb63dSPhilipp Tomsich	  ATF(ARM Trusted Firmware) is a component for ARM AArch64 which
768bcc1726aSKever Yang	  is loaded by SPL (which is considered as BL2 in ATF terminology).
769bcc1726aSKever Yang	  More detail at: https://github.com/ARM-software/arm-trusted-firmware
770bcc1726aSKever Yang
771d21fb63dSPhilipp Tomsichconfig SPL_ATF_NO_PLATFORM_PARAM
772d21fb63dSPhilipp Tomsich        bool "Pass no platform parameter"
773d21fb63dSPhilipp Tomsich	depends on SPL_ATF
774d21fb63dSPhilipp Tomsich	help
775d21fb63dSPhilipp Tomsich	  While we expect to call a pointer to a valid FDT (or NULL)
776d21fb63dSPhilipp Tomsich	  as the platform parameter to an ATF, some ATF versions are
777d21fb63dSPhilipp Tomsich	  not U-Boot aware and have an insufficiently robust parameter
778d21fb63dSPhilipp Tomsich	  validation to gracefully reject a FDT being passed.
779d21fb63dSPhilipp Tomsich
780d21fb63dSPhilipp Tomsich	  If this option is enabled, the spl_atf os-type handler will
781d21fb63dSPhilipp Tomsich	  always pass NULL for the platform parameter.
782d21fb63dSPhilipp Tomsich
783d21fb63dSPhilipp Tomsich	  If your ATF is affected, say Y.
784d21fb63dSPhilipp Tomsich
7853bf5f13cSAlex Kiernanconfig SPL_AM33XX_ENABLE_RTC32K_OSC
7863bf5f13cSAlex Kiernan	bool "Enable the RTC32K OSC on AM33xx based platforms"
7873bf5f13cSAlex Kiernan	default y if AM33XX
7883bf5f13cSAlex Kiernan	help
7893bf5f13cSAlex Kiernan	  Enable access to the AM33xx RTC and select the external 32kHz clock
7903bf5f13cSAlex Kiernan	  source.
7913bf5f13cSAlex Kiernan
792226498b8STom Riniconfig TPL
793226498b8STom Rini	bool
794226498b8STom Rini	depends on SUPPORT_TPL
795226498b8STom Rini	prompt "Enable TPL"
796226498b8STom Rini	help
797226498b8STom Rini	  If you want to build TPL as well as the normal image and SPL, say Y.
798226498b8STom Rini
799226498b8STom Riniif TPL
800226498b8STom Rini
801af2f4426SKever Yangconfig TPL_BOARD_INIT
802af2f4426SKever Yang	bool "Call board-specific initialization in TPL"
803af2f4426SKever Yang	help
804af2f4426SKever Yang	  If this option is enabled, U-Boot will call the function
805af2f4426SKever Yang	  spl_board_init() from board_init_r(). This function should be
806af2f4426SKever Yang	  provided by the board.
807af2f4426SKever Yang
808dd6fbcb9SPhilipp Tomsichconfig TPL_LDSCRIPT
809dd6fbcb9SPhilipp Tomsich        string "Linker script for the TPL stage"
810dd6fbcb9SPhilipp Tomsich	depends on TPL
811dd6fbcb9SPhilipp Tomsich	help
812dd6fbcb9SPhilipp Tomsich	  The TPL stage will usually require a different linker-script
813dd6fbcb9SPhilipp Tomsich	  (as it runs from a different memory region) than the regular
814dd6fbcb9SPhilipp Tomsich	  U-Boot stage.  Set this to the path of the linker-script to
815dd6fbcb9SPhilipp Tomsich	  be used for TPL.
816dd6fbcb9SPhilipp Tomsich
817b3ed6ce7SPhilipp Tomsich	  May be left empty to trigger the Makefile infrastructure to
818b3ed6ce7SPhilipp Tomsich	  fall back to the linker-script used for the SPL stage.
819b3ed6ce7SPhilipp Tomsich
820b3ed6ce7SPhilipp Tomsichconfig TPL_NEEDS_SEPARATE_TEXT_BASE
821b3ed6ce7SPhilipp Tomsich        bool "TPL needs a separate text-base"
822b3ed6ce7SPhilipp Tomsich	default n
823b3ed6ce7SPhilipp Tomsich	depends on TPL
824b3ed6ce7SPhilipp Tomsich	help
825b3ed6ce7SPhilipp Tomsich	  Enable, if the TPL stage should not inherit its text-base
826b3ed6ce7SPhilipp Tomsich	  from the SPL stage.  When enabled, a base address for the
827b3ed6ce7SPhilipp Tomsich	  .text sections of the TPL stage has to be set below.
828b3ed6ce7SPhilipp Tomsich
829b3ed6ce7SPhilipp Tomsichconfig TPL_NEEDS_SEPARATE_STACK
830b3ed6ce7SPhilipp Tomsich        bool "TPL needs a separate initial stack-pointer"
831b3ed6ce7SPhilipp Tomsich	default n
832b3ed6ce7SPhilipp Tomsich	depends on TPL
833b3ed6ce7SPhilipp Tomsich	help
834b3ed6ce7SPhilipp Tomsich	  Enable, if the TPL stage should not inherit its initial
835b3ed6ce7SPhilipp Tomsich	  stack-pointer from the settings for the SPL stage.
836b3ed6ce7SPhilipp Tomsich
837b3ed6ce7SPhilipp Tomsichconfig TPL_TEXT_BASE
838b3ed6ce7SPhilipp Tomsich        hex "Base address for the .text section of the TPL stage"
839b3ed6ce7SPhilipp Tomsich	depends on TPL_NEEDS_SEPARATE_TEXT_BASE
840b3ed6ce7SPhilipp Tomsich	help
841b3ed6ce7SPhilipp Tomsich	  The base address for the .text section of the TPL stage.
842b3ed6ce7SPhilipp Tomsich
843b3ed6ce7SPhilipp Tomsichconfig TPL_MAX_SIZE
844b3ed6ce7SPhilipp Tomsich        int "Maximum size (in bytes) for the TPL stage"
8455aa49af3SPhilipp Tomsich	default 0
846b3ed6ce7SPhilipp Tomsich	depends on TPL
847b3ed6ce7SPhilipp Tomsich	help
848b3ed6ce7SPhilipp Tomsich	  The maximum size (in bytes) of the TPL stage.
849b3ed6ce7SPhilipp Tomsich
850b3ed6ce7SPhilipp Tomsichconfig TPL_STACK
851b3ed6ce7SPhilipp Tomsich        hex "Address of the initial stack-pointer for the TPL stage"
852b3ed6ce7SPhilipp Tomsich	depends on TPL_NEEDS_SEPARATE_STACK
853b3ed6ce7SPhilipp Tomsich	help
854b3ed6ce7SPhilipp Tomsich	  The address of the initial stack-pointer for the TPL stage.
855b3ed6ce7SPhilipp Tomsich	  Usually this will be the (aligned) top-of-stack.
856b3ed6ce7SPhilipp Tomsich
857a954fa32SPhilipp Tomsichconfig TPL_BOOTROM_SUPPORT
858a954fa32SPhilipp Tomsich        bool "Support returning to the BOOTROM (from TPL)"
859a954fa32SPhilipp Tomsich	help
860a954fa32SPhilipp Tomsich	  Some platforms (e.g. the Rockchip RK3368) provide support in their
861a954fa32SPhilipp Tomsich	  ROM for loading the next boot-stage after performing basic setup
862a954fa32SPhilipp Tomsich	  from the TPL stage.
863a954fa32SPhilipp Tomsich
864a954fa32SPhilipp Tomsich	  Enable this option, to return to the BOOTROM through the
865a954fa32SPhilipp Tomsich	  BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
866a954fa32SPhilipp Tomsich	  boot device list, if not implemented for a given board)
867a954fa32SPhilipp Tomsich
868c3916e7bSPhilipp Tomsichconfig TPL_DRIVERS_MISC_SUPPORT
869c3916e7bSPhilipp Tomsich	bool "Support misc drivers in TPL"
870c3916e7bSPhilipp Tomsich	help
871c3916e7bSPhilipp Tomsich	  Enable miscellaneous drivers in TPL. These drivers perform various
872c3916e7bSPhilipp Tomsich	  tasks that don't fall nicely into other categories, Enable this
873c3916e7bSPhilipp Tomsich	  option to build the drivers in drivers/misc as part of an TPL
874c3916e7bSPhilipp Tomsich	  build, for those that support building in TPL (not all drivers do).
875c3916e7bSPhilipp Tomsich
876f73329eeSSimon Glassconfig TPL_ENV_SUPPORT
877f73329eeSSimon Glass	bool "Support an environment"
878f73329eeSSimon Glass	help
879f73329eeSSimon Glass	  Enable environment support in TPL. See SPL_ENV_SUPPORT for details.
880f73329eeSSimon Glass
881f73329eeSSimon Glassconfig TPL_I2C_SUPPORT
882f73329eeSSimon Glass	bool "Support I2C"
883f73329eeSSimon Glass	help
884616bd09eSPhilipp Tomsich	  Enable support for the I2C bus in TPL. See SPL_I2C_SUPPORT for
885f73329eeSSimon Glass	  details.
886f73329eeSSimon Glass
887f73329eeSSimon Glassconfig TPL_LIBCOMMON_SUPPORT
888f73329eeSSimon Glass	bool "Support common libraries"
889f73329eeSSimon Glass	help
890f73329eeSSimon Glass	  Enable support for common U-Boot libraries within TPL. See
891f73329eeSSimon Glass	  SPL_LIBCOMMON_SUPPORT for details.
892f73329eeSSimon Glass
893f73329eeSSimon Glassconfig TPL_LIBGENERIC_SUPPORT
894f73329eeSSimon Glass	bool "Support generic libraries"
895f73329eeSSimon Glass	help
896f73329eeSSimon Glass	  Enable support for generic U-Boot libraries within TPL. See
897f73329eeSSimon Glass	  SPL_LIBGENERIC_SUPPORT for details.
898f73329eeSSimon Glass
899f73329eeSSimon Glassconfig TPL_MPC8XXX_INIT_DDR_SUPPORT
900f73329eeSSimon Glass	bool "Support MPC8XXX DDR init"
901f73329eeSSimon Glass	help
902f73329eeSSimon Glass	  Enable support for DDR-SDRAM on the MPC8XXX family within TPL. See
903f73329eeSSimon Glass	  SPL_MPC8XXX_INIT_DDR_SUPPORT for details.
904f73329eeSSimon Glass
905f73329eeSSimon Glassconfig TPL_MMC_SUPPORT
906f73329eeSSimon Glass	bool "Support MMC"
907226498b8STom Rini	depends on MMC
908f73329eeSSimon Glass	help
909f73329eeSSimon Glass	  Enable support for MMC within TPL. See SPL_MMC_SUPPORT for details.
910f73329eeSSimon Glass
911f73329eeSSimon Glassconfig TPL_NAND_SUPPORT
912f73329eeSSimon Glass	bool "Support NAND flash"
913f73329eeSSimon Glass	help
914616bd09eSPhilipp Tomsich	  Enable support for NAND in TPL. See SPL_NAND_SUPPORT for details.
915f73329eeSSimon Glass
916d79dfd45SMarek Vasutconfig TPL_RAM_SUPPORT
917d79dfd45SMarek Vasut	bool "Support booting from RAM"
918d79dfd45SMarek Vasut	help
919d79dfd45SMarek Vasut	  Enable booting of an image in RAM. The image can be preloaded or
920d79dfd45SMarek Vasut	  it can be loaded by TPL directly into RAM (e.g. using USB).
921d79dfd45SMarek Vasut
922d79dfd45SMarek Vasutconfig TPL_RAM_DEVICE
923d79dfd45SMarek Vasut	bool "Support booting from preloaded image in RAM"
924d79dfd45SMarek Vasut	depends on TPL_RAM_SUPPORT
925d79dfd45SMarek Vasut	help
926d79dfd45SMarek Vasut	  Enable booting of an image already loaded in RAM. The image has to
927d79dfd45SMarek Vasut	  be already in memory when TPL takes over, e.g. loaded by the boot
928d79dfd45SMarek Vasut	  ROM.
929d79dfd45SMarek Vasut
930f73329eeSSimon Glassconfig TPL_SERIAL_SUPPORT
931f73329eeSSimon Glass	bool "Support serial"
932*14ad44abSAlex Kiernan	select TPL_PRINTF
933*14ad44abSAlex Kiernan	select TPL_STRTO
934f73329eeSSimon Glass	help
935616bd09eSPhilipp Tomsich	  Enable support for serial in TPL. See SPL_SERIAL_SUPPORT for
936f73329eeSSimon Glass	  details.
937f73329eeSSimon Glass
938f73329eeSSimon Glassconfig TPL_SPI_FLASH_SUPPORT
939f73329eeSSimon Glass	bool "Support SPI flash drivers"
940f73329eeSSimon Glass	help
941616bd09eSPhilipp Tomsich	  Enable support for using SPI flash in TPL. See SPL_SPI_FLASH_SUPPORT
942f73329eeSSimon Glass	  for details.
943f73329eeSSimon Glass
9441e725e27SMarek Vasutconfig TPL_SPI_LOAD
9451e725e27SMarek Vasut	bool "Support loading from SPI flash"
9461e725e27SMarek Vasut	depends on TPL_SPI_FLASH_SUPPORT
9471e725e27SMarek Vasut	help
9481e725e27SMarek Vasut	  Enable support for loading next stage, U-Boot or otherwise, from
9491e725e27SMarek Vasut	  SPI NOR in U-Boot TPL.
9501e725e27SMarek Vasut
951f73329eeSSimon Glassconfig TPL_SPI_SUPPORT
952f73329eeSSimon Glass	bool "Support SPI drivers"
953f73329eeSSimon Glass	help
954616bd09eSPhilipp Tomsich	  Enable support for using SPI in TPL. See SPL_SPI_SUPPORT for
955f73329eeSSimon Glass	  details.
956f73329eeSSimon Glass
9576ce3d67cSMarek Vasutconfig TPL_YMODEM_SUPPORT
9586ce3d67cSMarek Vasut	bool "Support loading using Ymodem"
9593bac19ceSAlex Kiernan	depends on TPL_SERIAL_SUPPORT
9606ce3d67cSMarek Vasut	help
9616ce3d67cSMarek Vasut	  While loading from serial is slow it can be a useful backup when
9626ce3d67cSMarek Vasut	  there is no other option. The Ymodem protocol provides a reliable
9636ce3d67cSMarek Vasut	  means of transmitting U-Boot over a serial line for using in TPL,
9646ce3d67cSMarek Vasut	  with a checksum to ensure correctness.
9656ce3d67cSMarek Vasut
966226498b8STom Riniendif # TPL
967226498b8STom Rini
968226498b8STom Riniendif # SPL
96911bde1cdSSimon Glassendmenu
970