xref: /rk3399_rockchip-uboot/common/spl/Kconfig (revision 2d7c904f271ffd19086cafe7cd6548ec5b1a5a83)
111bde1cdSSimon Glassmenu "SPL / TPL"
211bde1cdSSimon Glass
3c2ae7d82SSimon Glassconfig SUPPORT_SPL
4c2ae7d82SSimon Glass	bool
5c2ae7d82SSimon Glass
6c2ae7d82SSimon Glassconfig SUPPORT_TPL
7c2ae7d82SSimon Glass	bool
8c2ae7d82SSimon Glass
966928afbSB, Raviconfig SPL_DFU_NO_RESET
1066928afbSB, Ravi	bool
1166928afbSB, Ravi
12c2ae7d82SSimon Glassconfig SPL
13c2ae7d82SSimon Glass	bool
14c2ae7d82SSimon Glass	depends on SUPPORT_SPL
15c2ae7d82SSimon Glass	prompt "Enable SPL"
16c2ae7d82SSimon Glass	help
17c2ae7d82SSimon Glass	  If you want to build SPL as well as the normal image, say Y.
18c2ae7d82SSimon Glass
19226498b8STom Riniif SPL
20226498b8STom Rini
21*2d7c904fSJason Zhuconfig SPL_ADC_SUPPORT
22*2d7c904fSJason Zhu	bool "Support ADC driver in SPL"
23*2d7c904fSJason Zhu	depends on SPL
24*2d7c904fSJason Zhu	help
25*2d7c904fSJason Zhu	  The adc drive can be used to measure voltage in spl if need.
26*2d7c904fSJason Zhu
27dd6fbcb9SPhilipp Tomsichconfig SPL_LDSCRIPT
28dd6fbcb9SPhilipp Tomsich	string "Linker script for the SPL stage"
29dd6fbcb9SPhilipp Tomsich	default "arch/$(ARCH)/cpu/u-boot-spl.lds"
30dd6fbcb9SPhilipp Tomsich	depends on SPL
31dd6fbcb9SPhilipp Tomsich	help
32dd6fbcb9SPhilipp Tomsich	  The SPL stage will usually require a different linker-script
33dd6fbcb9SPhilipp Tomsich	  (as it runs from a different memory region) than the regular
34dd6fbcb9SPhilipp Tomsich	  U-Boot stage.	 Set this to the path of the linker-script to
35dd6fbcb9SPhilipp Tomsich	  be used for SPL.
36dd6fbcb9SPhilipp Tomsich
370680f1b1SLey Foon Tanconfig SPL_BOARD_INIT
380680f1b1SLey Foon Tan	bool "Call board-specific initialization in SPL"
390680f1b1SLey Foon Tan	help
400680f1b1SLey Foon Tan	  If this option is enabled, U-Boot will call the function
410680f1b1SLey Foon Tan	  spl_board_init() from board_init_r(). This function should be
420680f1b1SLey Foon Tan	  provided by the board.
430680f1b1SLey Foon Tan
44225d30b7SPhilipp Tomsichconfig SPL_BOOTROM_SUPPORT
45225d30b7SPhilipp Tomsich        bool "Support returning to the BOOTROM"
46225d30b7SPhilipp Tomsich	help
47225d30b7SPhilipp Tomsich	  Some platforms (e.g. the Rockchip RK3368) provide support in their
48225d30b7SPhilipp Tomsich	  ROM for loading the next boot-stage after performing basic setup
49225d30b7SPhilipp Tomsich	  from the SPL stage.
50225d30b7SPhilipp Tomsich
51225d30b7SPhilipp Tomsich	  Enable this option, to return to the BOOTROM through the
52225d30b7SPhilipp Tomsich	  BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
53225d30b7SPhilipp Tomsich	  boot device list, if not implemented for a given board)
54225d30b7SPhilipp Tomsich
5524eb39b5SAndrew F. Davisconfig SPL_RAW_IMAGE_SUPPORT
5624eb39b5SAndrew F. Davis	bool "Support SPL loading and booting of RAW images"
5724eb39b5SAndrew F. Davis	default n if (ARCH_MX6 && (SPL_MMC_SUPPORT || SPL_SATA_SUPPORT))
58ae9b57b5SAndrew F. Davis	default y if !TI_SECURE_DEVICE
5924eb39b5SAndrew F. Davis	help
6024eb39b5SAndrew F. Davis	  SPL will support loading and booting a RAW image when this option
6124eb39b5SAndrew F. Davis	  is y. If this is not set, SPL will move on to other available
6224eb39b5SAndrew F. Davis	  boot media to find a suitable image.
6324eb39b5SAndrew F. Davis
64722a6b17SAndrew F. Davisconfig SPL_LEGACY_IMAGE_SUPPORT
65722a6b17SAndrew F. Davis	bool "Support SPL loading and booting of Legacy images"
66ae9b57b5SAndrew F. Davis	default y if !TI_SECURE_DEVICE
67722a6b17SAndrew F. Davis	help
68722a6b17SAndrew F. Davis	  SPL will support loading and booting Legacy images when this option
69722a6b17SAndrew F. Davis	  is y. If this is not set, SPL will move on to other available
70722a6b17SAndrew F. Davis	  boot media to find a suitable image.
71722a6b17SAndrew F. Davis
72c2ae7d82SSimon Glassconfig SPL_SYS_MALLOC_SIMPLE
73c2ae7d82SSimon Glass	bool
74c2ae7d82SSimon Glass	prompt "Only use malloc_simple functions in the SPL"
75c2ae7d82SSimon Glass	help
76c2ae7d82SSimon Glass	  Say Y here to only use the *_simple malloc functions from
77c2ae7d82SSimon Glass	  malloc_simple.c, rather then using the versions from dlmalloc.c;
78c2ae7d82SSimon Glass	  this will make the SPL binary smaller at the cost of more heap
79c2ae7d82SSimon Glass	  usage as the *_simple malloc functions do not re-use free-ed mem.
80c2ae7d82SSimon Glass
81d60b5f74SPhilipp Tomsichconfig TPL_SYS_MALLOC_SIMPLE
82d60b5f74SPhilipp Tomsich	bool
83d60b5f74SPhilipp Tomsich	prompt "Only use malloc_simple functions in the TPL"
84d60b5f74SPhilipp Tomsich	help
85d60b5f74SPhilipp Tomsich	  Say Y here to only use the *_simple malloc functions from
86d60b5f74SPhilipp Tomsich	  malloc_simple.c, rather then using the versions from dlmalloc.c;
87d60b5f74SPhilipp Tomsich	  this will make the TPL binary smaller at the cost of more heap
88d60b5f74SPhilipp Tomsich	  usage as the *_simple malloc functions do not re-use free-ed mem.
89d60b5f74SPhilipp Tomsich
90c2ae7d82SSimon Glassconfig SPL_STACK_R
91c2ae7d82SSimon Glass	bool "Enable SDRAM location for SPL stack"
92c2ae7d82SSimon Glass	help
93c2ae7d82SSimon Glass	  SPL starts off execution in SRAM and thus typically has only a small
94c2ae7d82SSimon Glass	  stack available. Since SPL sets up DRAM while in its board_init_f()
95c2ae7d82SSimon Glass	  function, it is possible for the stack to move there before
96c2ae7d82SSimon Glass	  board_init_r() is reached. This option enables a special SDRAM
97c2ae7d82SSimon Glass	  location for the SPL stack. U-Boot SPL switches to this after
98c2ae7d82SSimon Glass	  board_init_f() completes, and before board_init_r() starts.
99c2ae7d82SSimon Glass
100c2ae7d82SSimon Glassconfig SPL_STACK_R_ADDR
101c2ae7d82SSimon Glass	depends on SPL_STACK_R
102c2ae7d82SSimon Glass	hex "SDRAM location for SPL stack"
103c2ae7d82SSimon Glass	help
104c2ae7d82SSimon Glass	  Specify the address in SDRAM for the SPL stack. This will be set up
105c2ae7d82SSimon Glass	  before board_init_r() is called.
106c2ae7d82SSimon Glass
107c2ae7d82SSimon Glassconfig SPL_STACK_R_MALLOC_SIMPLE_LEN
108c2ae7d82SSimon Glass	depends on SPL_STACK_R && SPL_SYS_MALLOC_SIMPLE
109c2ae7d82SSimon Glass	hex "Size of malloc_simple heap after switching to DRAM SPL stack"
110c2ae7d82SSimon Glass	default 0x100000
111c2ae7d82SSimon Glass	help
112c2ae7d82SSimon Glass	  Specify the amount of the stack to use as memory pool for
113c2ae7d82SSimon Glass	  malloc_simple after switching the stack to DRAM. This may be set
114c2ae7d82SSimon Glass	  to give board_init_r() a larger heap then the initial heap in
115c2ae7d82SSimon Glass	  SRAM which is limited to SYS_MALLOC_F_LEN bytes.
116c2ae7d82SSimon Glass
117c2ae7d82SSimon Glassconfig SPL_SEPARATE_BSS
118c2ae7d82SSimon Glass	bool "BSS section is in a different memory region from text"
119c2ae7d82SSimon Glass	help
120c2ae7d82SSimon Glass	  Some platforms need a large BSS region in SPL and can provide this
121c2ae7d82SSimon Glass	  because RAM is already set up. In this case BSS can be moved to RAM.
122c2ae7d82SSimon Glass	  This option should then be enabled so that the correct device tree
123c2ae7d82SSimon Glass	  location is used. Normally we put the device tree at the end of BSS
124c2ae7d82SSimon Glass	  but with this option enabled, it goes at _image_binary_end.
125c2ae7d82SSimon Glass
126a807ab33SSimon Glassconfig SPL_DISPLAY_PRINT
127a807ab33SSimon Glass	bool "Display a board-specific message in SPL"
128a807ab33SSimon Glass	help
129a807ab33SSimon Glass	  If this option is enabled, U-Boot will call the function
130a807ab33SSimon Glass	  spl_display_print() immediately after displaying the SPL console
131a807ab33SSimon Glass	  banner ("U-Boot SPL ..."). This function should be provided by
132a807ab33SSimon Glass	  the board.
133a807ab33SSimon Glass
134dced428bSAndy Yanconfig SPL_SKIP_RELOCATE
135dced428bSAndy Yan	bool "Skip code relocation in SPL"
136dced428bSAndy Yan	default y
137dced428bSAndy Yan	help
138dced428bSAndy Yan	  The SPL code will be relocated to a high memory if you say no here.
139dced428bSAndy Yan	  Only ARM64 and PowerPC SPL support relocate now.
140dced428bSAndy Yan
141dced428bSAndy Yanconfig SPL_RELOC_TEXT_BASE
142dced428bSAndy Yan	hex "Address the SPL relocate to"
143dced428bSAndy Yan	depends on !SPL_SKIP_RELOCATE
144dced428bSAndy Yan	help
145dced428bSAndy Yan	  The address on the ram where the SPL relocate to.
146dced428bSAndy Yan
14738fed8abSSemen Protsenkoconfig SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
14838fed8abSSemen Protsenko	bool "MMC raw mode: by sector"
14938fed8abSSemen Protsenko	default y if ARCH_SUNXI || ARCH_DAVINCI || ARCH_UNIPHIER ||ARCH_MX6 || \
15038fed8abSSemen Protsenko		     ARCH_ROCKCHIP || ARCH_MVEBU ||  ARCH_SOCFPGA || \
15138fed8abSSemen Protsenko		     ARCH_AT91 || ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || \
15238fed8abSSemen Protsenko		     OMAP44XX || OMAP54XX || AM33XX || AM43XX
15338fed8abSSemen Protsenko	help
15438fed8abSSemen Protsenko	  Use sector number for specifying U-Boot location on MMC/SD in
15538fed8abSSemen Protsenko	  raw mode.
15638fed8abSSemen Protsenko
15738fed8abSSemen Protsenkoconfig SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
15838fed8abSSemen Protsenko	hex "Address on the MMC to load U-Boot from"
159226498b8STom Rini	depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
16038fed8abSSemen Protsenko	default 0x50 if ARCH_SUNXI
16138fed8abSSemen Protsenko	default 0x75 if ARCH_DAVINCI
16238fed8abSSemen Protsenko	default 0x8a if ARCH_MX6
163b24d32f4SKever Yang	default 0x100 if ARCH_UNIPHIER
16438fed8abSSemen Protsenko	default 0x140 if ARCH_MVEBU
16538fed8abSSemen Protsenko	default 0x200 if ARCH_SOCFPGA || ARCH_AT91
16638fed8abSSemen Protsenko	default 0x300 if ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || OMAP44XX || \
16738fed8abSSemen Protsenko		         OMAP54XX || AM33XX || AM43XX
168b24d32f4SKever Yang	default 0x4000 if ARCH_ROCKCHIP
16938fed8abSSemen Protsenko	help
17038fed8abSSemen Protsenko	  Address on the MMC to load U-Boot from, when the MMC is being used
17138fed8abSSemen Protsenko	  in raw mode. Units: MMC sectors (1 sector = 512 bytes).
17238fed8abSSemen Protsenko
173949123e3SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
174949123e3SDalon Westergreen	bool "MMC Raw mode: by partition"
175949123e3SDalon Westergreen	help
176949123e3SDalon Westergreen	  Use a partition for loading U-Boot when using MMC/SD in raw mode.
177949123e3SDalon Westergreen
178949123e3SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION
179949123e3SDalon Westergreen	hex "Partition to use to load U-Boot from"
180226498b8STom Rini	depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
181949123e3SDalon Westergreen	default 1
182949123e3SDalon Westergreen	help
183949123e3SDalon Westergreen	  Partition on the MMC to load U-Boot from when the MMC is being
184949123e3SDalon Westergreen	  used in raw mode
185949123e3SDalon Westergreen
186f0fb4fa7SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
187f0fb4fa7SDalon Westergreen	bool "MMC raw mode: by partition type"
188226498b8STom Rini	depends on DOS_PARTITION && SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
189f0fb4fa7SDalon Westergreen	help
190f0fb4fa7SDalon Westergreen	  Use partition type for specifying U-Boot partition on MMC/SD in
191f0fb4fa7SDalon Westergreen	  raw mode. U-Boot will be loaded from the first partition of this
192f0fb4fa7SDalon Westergreen	  type to be found.
193f0fb4fa7SDalon Westergreen
194f0fb4fa7SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE
195f0fb4fa7SDalon Westergreen	hex "Partition Type on the MMC to load U-Boot from"
196226498b8STom Rini	depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
197f0fb4fa7SDalon Westergreen	help
198f0fb4fa7SDalon Westergreen	  Partition Type on the MMC to load U-Boot from, when the MMC is being
199f0fb4fa7SDalon Westergreen	  used in raw mode.
200f0fb4fa7SDalon Westergreen
20111bde1cdSSimon Glassconfig SPL_CRC32_SUPPORT
20211bde1cdSSimon Glass	bool "Support CRC32"
20311bde1cdSSimon Glass	depends on SPL_FIT
20411bde1cdSSimon Glass	help
20511bde1cdSSimon Glass	  Enable this to support CRC32 in FIT images within SPL. This is a
20611bde1cdSSimon Glass	  32-bit checksum value that can be used to verify images. This is
20711bde1cdSSimon Glass	  the least secure type of checksum, suitable for detected
20811bde1cdSSimon Glass	  accidental image corruption. For secure applications you should
20911bde1cdSSimon Glass	  consider SHA1 or SHA256.
21011bde1cdSSimon Glass
21111bde1cdSSimon Glassconfig SPL_MD5_SUPPORT
21211bde1cdSSimon Glass	bool "Support MD5"
21311bde1cdSSimon Glass	depends on SPL_FIT
21411bde1cdSSimon Glass	help
21511bde1cdSSimon Glass	  Enable this to support MD5 in FIT images within SPL. An MD5
21611bde1cdSSimon Glass	  checksum is a 128-bit hash value used to check that the image
21711bde1cdSSimon Glass	  contents have not been corrupted. Note that MD5 is not considered
21811bde1cdSSimon Glass	  secure as it is possible (with a brute-force attack) to adjust the
21911bde1cdSSimon Glass	  image while still retaining the same MD5 hash value. For secure
22011bde1cdSSimon Glass	  applications where images may be changed maliciously, you should
22111bde1cdSSimon Glass	  consider SHA1 or SHA256.
22211bde1cdSSimon Glass
22311bde1cdSSimon Glassconfig SPL_SHA1_SUPPORT
22411bde1cdSSimon Glass	bool "Support SHA1"
22511bde1cdSSimon Glass	depends on SPL_FIT
226089df18bSTom Rini	select SHA1
22711bde1cdSSimon Glass	help
22811bde1cdSSimon Glass	  Enable this to support SHA1 in FIT images within SPL. A SHA1
22911bde1cdSSimon Glass	  checksum is a 160-bit (20-byte) hash value used to check that the
23011bde1cdSSimon Glass	  image contents have not been corrupted or maliciously altered.
23111bde1cdSSimon Glass	  While SHA1 is fairly secure it is coming to the end of its life
23211bde1cdSSimon Glass	  due to the expanding computing power avaiable to brute-force
23311bde1cdSSimon Glass	  attacks. For more security, consider SHA256.
23411bde1cdSSimon Glass
23511bde1cdSSimon Glassconfig SPL_SHA256_SUPPORT
23611bde1cdSSimon Glass	bool "Support SHA256"
23711bde1cdSSimon Glass	depends on SPL_FIT
238089df18bSTom Rini	select SHA256
23911bde1cdSSimon Glass	help
24011bde1cdSSimon Glass	  Enable this to support SHA256 in FIT images within SPL. A SHA256
24111bde1cdSSimon Glass	  checksum is a 256-bit (32-byte) hash value used to check that the
24211bde1cdSSimon Glass	  image contents have not been corrupted. SHA256 is recommended for
24311bde1cdSSimon Glass	  use in secure applications since (as at 2016) there is no known
24411bde1cdSSimon Glass	  feasible attack that could produce a 'collision' with differing
24511bde1cdSSimon Glass	  input data. Use this for the highest security. Note that only the
24611bde1cdSSimon Glass	  SHA256 variant is supported: SHA512 and others are not currently
24711bde1cdSSimon Glass	  supported in U-Boot.
24811bde1cdSSimon Glass
2498118cce3SPhilipp Tomsichconfig SPL_FIT_IMAGE_TINY
2508118cce3SPhilipp Tomsich	bool "Remove functionality from SPL FIT loading to reduce size"
2518118cce3SPhilipp Tomsich	depends on SPL_FIT
2528118cce3SPhilipp Tomsich	default y if MACH_SUN50I || MACH_SUN50I_H5
2538118cce3SPhilipp Tomsich	default y if ARCH_OMAP2PLUS
2548118cce3SPhilipp Tomsich	help
2558118cce3SPhilipp Tomsich	  Enable this to reduce the size of the FIT image loading code
2568118cce3SPhilipp Tomsich	  in SPL, if space for the SPL binary is very tight.
2578118cce3SPhilipp Tomsich
2588118cce3SPhilipp Tomsich	  This removes the detection of image types (which forces the
2598118cce3SPhilipp Tomsich	  first image to be treated as having a U-Boot style calling
2608118cce3SPhilipp Tomsich	  convention) and skips the recording of each loaded payload
2618118cce3SPhilipp Tomsich	  (i.e. loadable) into the FDT (modifying the loaded FDT to
2628118cce3SPhilipp Tomsich	  ensure this information is available to the next image
2638118cce3SPhilipp Tomsich	  invoked).
2648118cce3SPhilipp Tomsich
2655e148df9SSimon Glassconfig SPL_CPU_SUPPORT
2665e148df9SSimon Glass	bool "Support CPU drivers"
2675e148df9SSimon Glass	help
2685e148df9SSimon Glass	  Enable this to support CPU drivers in SPL. These drivers can set
2695e148df9SSimon Glass	  up CPUs and provide information about them such as the model and
2705e148df9SSimon Glass	  name. This can be useful in SPL since setting up the CPUs earlier
2715e148df9SSimon Glass	  may improve boot performance. Enable this option to build the
2725e148df9SSimon Glass	  drivers in drivers/cpu as part of an SPL build.
2735e148df9SSimon Glass
27411bde1cdSSimon Glassconfig SPL_CRYPTO_SUPPORT
27511bde1cdSSimon Glass	bool "Support crypto drivers"
27611bde1cdSSimon Glass	help
27711bde1cdSSimon Glass	  Enable crypto drivers in SPL. These drivers can be used to
27811bde1cdSSimon Glass	  accelerate secure boot processing in secure applications. Enable
27911bde1cdSSimon Glass	  this option to build the drivers in drivers/crypto as part of an
28011bde1cdSSimon Glass	  SPL build.
28111bde1cdSSimon Glass
28211bde1cdSSimon Glassconfig SPL_HASH_SUPPORT
28311bde1cdSSimon Glass	bool "Support hashing drivers"
284089df18bSTom Rini	select SHA1
285089df18bSTom Rini	select SHA256
28611bde1cdSSimon Glass	help
28711bde1cdSSimon Glass	  Enable hashing drivers in SPL. These drivers can be used to
28811bde1cdSSimon Glass	  accelerate secure boot processing in secure applications. Enable
28911bde1cdSSimon Glass	  this option to build system-specific drivers for hash acceleration
29011bde1cdSSimon Glass	  as part of an SPL build.
29111bde1cdSSimon Glass
29211bde1cdSSimon Glassconfig SPL_DMA_SUPPORT
29311bde1cdSSimon Glass	bool "Support DMA drivers"
29411bde1cdSSimon Glass	help
29511bde1cdSSimon Glass	  Enable DMA (direct-memory-access) drivers in SPL. These drivers
29611bde1cdSSimon Glass	  can be used to handle memory-to-peripheral data transfer without
29711bde1cdSSimon Glass	  the CPU moving the data. Enable this option to build the drivers
29811bde1cdSSimon Glass	  in drivers/dma as part of an SPL build.
29911bde1cdSSimon Glass
30011bde1cdSSimon Glassconfig SPL_DRIVERS_MISC_SUPPORT
30111bde1cdSSimon Glass	bool "Support misc drivers"
30211bde1cdSSimon Glass	help
30311bde1cdSSimon Glass	  Enable miscellaneous drivers in SPL. These drivers perform various
30411bde1cdSSimon Glass	  tasks that don't fall nicely into other categories, Enable this
30511bde1cdSSimon Glass	  option to build the drivers in drivers/misc as part of an SPL
30611bde1cdSSimon Glass	  build, for those that support building in SPL (not all drivers do).
30711bde1cdSSimon Glass
30811bde1cdSSimon Glassconfig SPL_ENV_SUPPORT
30911bde1cdSSimon Glass	bool "Support an environment"
31011bde1cdSSimon Glass	help
31111bde1cdSSimon Glass	  Enable environment support in SPL. The U-Boot environment provides
31211bde1cdSSimon Glass	  a number of settings (essentially name/value pairs) which can
31311bde1cdSSimon Glass	  control many aspects of U-Boot's operation. Normally this is not
31411bde1cdSSimon Glass	  needed in SPL as it has a much simpler task with less
31511bde1cdSSimon Glass	  configuration. But some boards use this to support 'Falcon' boot
31611bde1cdSSimon Glass	  on EXT2 and FAT, where SPL boots directly into Linux without
31700caae6dSSimon Glass	  starting U-Boot first. Enabling this option will make env_get()
318382bee57SSimon Glass	  and env_set() available in SPL.
31911bde1cdSSimon Glass
320d2d9bdfcSB, Raviconfig SPL_SAVEENV
321d2d9bdfcSB, Ravi	bool "Support save environment"
322226498b8STom Rini	depends on SPL_ENV_SUPPORT
323d2d9bdfcSB, Ravi	help
324d2d9bdfcSB, Ravi	  Enable save environment support in SPL after setenv. By default
325d2d9bdfcSB, Ravi	  the saveenv option is not provided in SPL, but some boards need
326d2d9bdfcSB, Ravi	  this support in 'Falcon' boot, where SPL need to boot from
327d2d9bdfcSB, Ravi	  different images based on environment variable set by OS. For
328d2d9bdfcSB, Ravi	  example OS may set "reboot_image" environment variable to
329d2d9bdfcSB, Ravi	  "recovery" inorder to boot recovery image by SPL. The SPL read
330d2d9bdfcSB, Ravi	  "reboot_image" and act accordingly and change the reboot_image
331d2d9bdfcSB, Ravi	  to default mode using setenv and save the environemnt.
332d2d9bdfcSB, Ravi
33311bde1cdSSimon Glassconfig SPL_ETH_SUPPORT
33411bde1cdSSimon Glass	bool "Support Ethernet"
33511bde1cdSSimon Glass	depends on SPL_ENV_SUPPORT
33611bde1cdSSimon Glass	help
33711bde1cdSSimon Glass	  Enable access to the network subsystem and associated Ethernet
33811bde1cdSSimon Glass	  drivers in SPL. This permits SPL to load U-Boot over an Ethernet
33911bde1cdSSimon Glass	  link rather than from an on-board peripheral. Environment support
34011bde1cdSSimon Glass	  is required since the network stack uses a number of environment
34111bde1cdSSimon Glass	  variables. See also SPL_NET_SUPPORT.
34211bde1cdSSimon Glass
34311bde1cdSSimon Glassconfig SPL_EXT_SUPPORT
34411bde1cdSSimon Glass	bool "Support EXT filesystems"
34511bde1cdSSimon Glass	help
34611bde1cdSSimon Glass	  Enable support for EXT2/3/4 filesystems with SPL. This permits
34711bde1cdSSimon Glass	  U-Boot (or Linux in Falcon mode) to be loaded from an EXT
34811bde1cdSSimon Glass	  filesystem from within SPL. Support for the underlying block
34911bde1cdSSimon Glass	  device (e.g. MMC or USB) must be enabled separately.
35011bde1cdSSimon Glass
35111bde1cdSSimon Glassconfig SPL_FAT_SUPPORT
35211bde1cdSSimon Glass	bool "Support FAT filesystems"
353eedfb89eSSekhar Nori	select FS_FAT
35411bde1cdSSimon Glass	help
35511bde1cdSSimon Glass	  Enable support for FAT and VFAT filesystems with SPL. This
35611bde1cdSSimon Glass	  permits U-Boot (or Linux in Falcon mode) to be loaded from a FAT
35711bde1cdSSimon Glass	  filesystem from within SPL. Support for the underlying block
35811bde1cdSSimon Glass	  device (e.g. MMC or USB) must be enabled separately.
35911bde1cdSSimon Glass
36011bde1cdSSimon Glassconfig SPL_FPGA_SUPPORT
36111bde1cdSSimon Glass	bool "Support FPGAs"
36211bde1cdSSimon Glass	help
36311bde1cdSSimon Glass	  Enable support for FPGAs in SPL. Field-programmable Gate Arrays
36411bde1cdSSimon Glass	  provide software-configurable hardware which is typically used to
36511bde1cdSSimon Glass	  implement peripherals (such as UARTs, LCD displays, MMC) or
36611bde1cdSSimon Glass	  accelerate custom processing functions, such as image processing
36711bde1cdSSimon Glass	  or machine learning. Sometimes it is useful to program the FPGA
36811bde1cdSSimon Glass	  as early as possible during boot, and this option can enable that
36911bde1cdSSimon Glass	  within SPL.
37011bde1cdSSimon Glass
37111bde1cdSSimon Glassconfig SPL_GPIO_SUPPORT
37211bde1cdSSimon Glass	bool "Support GPIO"
37311bde1cdSSimon Glass	help
37411bde1cdSSimon Glass	  Enable support for GPIOs (General-purpose Input/Output) in SPL.
37511bde1cdSSimon Glass	  GPIOs allow U-Boot to read the state of an input line (high or
37611bde1cdSSimon Glass	  low) and set the state of an output line. This can be used to
37711bde1cdSSimon Glass	  drive LEDs, control power to various system parts and read user
37811bde1cdSSimon Glass	  input. GPIOs can be useful in SPL to enable a 'sign-of-life' LED,
37911bde1cdSSimon Glass	  for example. Enable this option to build the drivers in
38011bde1cdSSimon Glass	  drivers/gpio as part of an SPL build.
38111bde1cdSSimon Glass
38211bde1cdSSimon Glassconfig SPL_I2C_SUPPORT
38311bde1cdSSimon Glass	bool "Support I2C"
38411bde1cdSSimon Glass	help
38511bde1cdSSimon Glass	  Enable support for the I2C (Inter-Integrated Circuit) bus in SPL.
38611bde1cdSSimon Glass	  I2C works with a clock and data line which can be driven by a
38711bde1cdSSimon Glass	  one or more masters or slaves. It is a fairly complex bus but is
38811bde1cdSSimon Glass	  widely used as it only needs two lines for communication. Speeds of
38911bde1cdSSimon Glass	  400kbps are typical but up to 3.4Mbps is supported by some
39011bde1cdSSimon Glass	  hardware. I2C can be useful in SPL to configure power management
39111bde1cdSSimon Glass	  ICs (PMICs) before raising the CPU clock speed, for example.
39211bde1cdSSimon Glass	  Enable this option to build the drivers in drivers/i2c as part of
39311bde1cdSSimon Glass	  an SPL build.
39411bde1cdSSimon Glass
39511bde1cdSSimon Glassconfig SPL_LIBCOMMON_SUPPORT
39611bde1cdSSimon Glass	bool "Support common libraries"
39711bde1cdSSimon Glass	help
39811bde1cdSSimon Glass	  Enable support for common U-Boot libraries within SPL. These
39911bde1cdSSimon Glass	  libraries include common code to deal with U-Boot images,
40011bde1cdSSimon Glass	  environment and USB, for example. This option is enabled on many
40111bde1cdSSimon Glass	  boards. Enable this option to build the code in common/ as part of
40211bde1cdSSimon Glass	  an SPL build.
40311bde1cdSSimon Glass
40411bde1cdSSimon Glassconfig SPL_LIBDISK_SUPPORT
40511bde1cdSSimon Glass	bool "Support disk paritions"
40611bde1cdSSimon Glass	help
40711bde1cdSSimon Glass	  Enable support for disk partitions within SPL. 'Disk' is something
40811bde1cdSSimon Glass	  of a misnomer as it includes non-spinning media such as flash (as
40911bde1cdSSimon Glass	  used in MMC and USB sticks). Partitions provide a way for a disk
41011bde1cdSSimon Glass	  to be split up into separate regions, with a partition table placed
41111bde1cdSSimon Glass	  at the start or end which describes the location and size of each
41211bde1cdSSimon Glass	  'partition'. These partitions are typically uses as individual block
41311bde1cdSSimon Glass	  devices, typically with an EXT2 or FAT filesystem in each. This
41411bde1cdSSimon Glass	  option enables whatever partition support has been enabled in
41511bde1cdSSimon Glass	  U-Boot to also be used in SPL. It brings in the code in disk/.
41611bde1cdSSimon Glass
41711bde1cdSSimon Glassconfig SPL_LIBGENERIC_SUPPORT
41811bde1cdSSimon Glass	bool "Support generic libraries"
41911bde1cdSSimon Glass	help
42011bde1cdSSimon Glass	  Enable support for generic U-Boot libraries within SPL. These
42111bde1cdSSimon Glass	  libraries include generic code to deal with device tree, hashing,
42211bde1cdSSimon Glass	  printf(), compression and the like. This option is enabled on many
42311bde1cdSSimon Glass	  boards. Enable this option to build the code in lib/ as part of an
42411bde1cdSSimon Glass	  SPL build.
42511bde1cdSSimon Glass
42611bde1cdSSimon Glassconfig SPL_MMC_SUPPORT
42711bde1cdSSimon Glass	bool "Support MMC"
428226498b8STom Rini	depends on MMC
42911bde1cdSSimon Glass	help
43011bde1cdSSimon Glass	  Enable support for MMC (Multimedia Card) within SPL. This enables
43111bde1cdSSimon Glass	  the MMC protocol implementation and allows any enabled drivers to
43211bde1cdSSimon Glass	  be used within SPL. MMC can be used with or without disk partition
43311bde1cdSSimon Glass	  support depending on the application (SPL_LIBDISK_SUPPORT). Enable
43411bde1cdSSimon Glass	  this option to build the drivers in drivers/mmc as part of an SPL
43511bde1cdSSimon Glass	  build.
43611bde1cdSSimon Glass
43711bde1cdSSimon Glassconfig SPL_MPC8XXX_INIT_DDR_SUPPORT
43811bde1cdSSimon Glass	bool "Support MPC8XXX DDR init"
43911bde1cdSSimon Glass	help
44011bde1cdSSimon Glass	  Enable support for DDR-SDRAM (double-data-rate synchronous dynamic
44111bde1cdSSimon Glass	  random-access memory) on the MPC8XXX family within SPL. This
44211bde1cdSSimon Glass	  allows DRAM to be set up before loading U-Boot into that DRAM,
44311bde1cdSSimon Glass	  where it can run.
44411bde1cdSSimon Glass
44511bde1cdSSimon Glassconfig SPL_MTD_SUPPORT
44611bde1cdSSimon Glass	bool "Support MTD drivers"
44711bde1cdSSimon Glass	help
44811bde1cdSSimon Glass	  Enable support for MTD (Memory Technology Device) within SPL. MTD
44911bde1cdSSimon Glass	  provides a block interface over raw NAND and can also be used with
45011bde1cdSSimon Glass	  SPI flash. This allows SPL to load U-Boot from supported MTD
45111bde1cdSSimon Glass	  devices. See SPL_NAND_SUPPORT and SPL_ONENAND_SUPPORT for how
45211bde1cdSSimon Glass	  to enable specific MTD drivers.
45311bde1cdSSimon Glass
45411bde1cdSSimon Glassconfig SPL_MUSB_NEW_SUPPORT
45511bde1cdSSimon Glass	bool "Support new Mentor Graphics USB"
45611bde1cdSSimon Glass	help
45711bde1cdSSimon Glass	  Enable support for Mentor Graphics USB in SPL. This is a new
45811bde1cdSSimon Glass	  driver used by some boards. Enable this option to build
45911bde1cdSSimon Glass	  the drivers in drivers/usb/musb-new as part of an SPL build. The
46011bde1cdSSimon Glass	  old drivers are in drivers/usb/musb.
46111bde1cdSSimon Glass
46211bde1cdSSimon Glassconfig SPL_NAND_SUPPORT
46311bde1cdSSimon Glass	bool "Support NAND flash"
46411bde1cdSSimon Glass	help
46511bde1cdSSimon Glass	  Enable support for NAND (Negative AND) flash in SPL. NAND flash
46611bde1cdSSimon Glass	  can be used to allow SPL to load U-Boot from supported devices.
467cfcc706cSMiquel Raynal	  This enables the drivers in drivers/mtd/nand/raw as part of an SPL
46811bde1cdSSimon Glass	  build.
46911bde1cdSSimon Glass
47011bde1cdSSimon Glassconfig SPL_NET_SUPPORT
47111bde1cdSSimon Glass	bool "Support networking"
47211bde1cdSSimon Glass	help
47311bde1cdSSimon Glass	  Enable support for network devices (such as Ethernet) in SPL.
47411bde1cdSSimon Glass	  This permits SPL to load U-Boot over a network link rather than
47511bde1cdSSimon Glass	  from an on-board peripheral. Environment support is required since
47611bde1cdSSimon Glass	  the network stack uses a number of environment variables. See also
47711bde1cdSSimon Glass	  SPL_ETH_SUPPORT.
47811bde1cdSSimon Glass
47911bde1cdSSimon Glassif SPL_NET_SUPPORT
48011bde1cdSSimon Glassconfig SPL_NET_VCI_STRING
48111bde1cdSSimon Glass	string "BOOTP Vendor Class Identifier string sent by SPL"
48211bde1cdSSimon Glass	help
48311bde1cdSSimon Glass	  As defined by RFC 2132 the vendor class identifier field can be
48411bde1cdSSimon Glass	  sent by the client to identify the vendor type and configuration
48511bde1cdSSimon Glass	  of a client.  This is often used in practice to allow for the DHCP
48611bde1cdSSimon Glass	  server to specify different files to load depending on if the ROM,
48711bde1cdSSimon Glass	  SPL or U-Boot itself makes the request
48811bde1cdSSimon Glassendif   # if SPL_NET_SUPPORT
48911bde1cdSSimon Glass
49011bde1cdSSimon Glassconfig SPL_NO_CPU_SUPPORT
49111bde1cdSSimon Glass	bool "Drop CPU code in SPL"
49211bde1cdSSimon Glass	help
49311bde1cdSSimon Glass	  This is specific to the ARM926EJ-S CPU. It disables the standard
49411bde1cdSSimon Glass	  start.S start-up code, presumably so that a replacement can be
49511bde1cdSSimon Glass	  used on that CPU. You should not enable it unless you know what
49611bde1cdSSimon Glass	  you are doing.
49711bde1cdSSimon Glass
49811bde1cdSSimon Glassconfig SPL_NOR_SUPPORT
49911bde1cdSSimon Glass	bool "Support NOR flash"
50011bde1cdSSimon Glass	help
50111bde1cdSSimon Glass	  Enable support for loading U-Boot from memory-mapped NOR (Negative
50211bde1cdSSimon Glass	  OR) flash in SPL. NOR flash is slow to write but fast to read, and
50311bde1cdSSimon Glass	  a memory-mapped device makes it very easy to access. Loading from
50411bde1cdSSimon Glass	  NOR is typically achieved with just a memcpy().
50511bde1cdSSimon Glass
506c6d9e9dbSVikas Manochaconfig SPL_XIP_SUPPORT
507c6d9e9dbSVikas Manocha	bool "Support XIP"
508c6d9e9dbSVikas Manocha	depends on SPL
509c6d9e9dbSVikas Manocha	help
510c6d9e9dbSVikas Manocha	  Enable support for execute in place of U-Boot or kernel image. There
511c6d9e9dbSVikas Manocha	  is no need to copy image from flash to ram if flash supports execute
512c6d9e9dbSVikas Manocha	  in place. Its very useful in systems having enough flash but not
513c6d9e9dbSVikas Manocha	  enough ram to load the image.
514c6d9e9dbSVikas Manocha
51511bde1cdSSimon Glassconfig SPL_ONENAND_SUPPORT
51611bde1cdSSimon Glass	bool "Support OneNAND flash"
51711bde1cdSSimon Glass	help
51811bde1cdSSimon Glass	  Enable support for OneNAND (Negative AND) flash in SPL. OneNAND is
51911bde1cdSSimon Glass	  a type of NAND flash and therefore can be used to allow SPL to
52011bde1cdSSimon Glass	  load U-Boot from supported devices. This enables the drivers in
52111bde1cdSSimon Glass	  drivers/mtd/onenand as part of an SPL build.
52211bde1cdSSimon Glass
523c20ae2ffSHeiko Schocherconfig SPL_OS_BOOT
524c20ae2ffSHeiko Schocher	bool "Activate Falcon Mode"
525226498b8STom Rini	depends on !TI_SECURE_DEVICE
526c20ae2ffSHeiko Schocher	default n
527c20ae2ffSHeiko Schocher	help
528c20ae2ffSHeiko Schocher	  Enable booting directly to an OS from SPL.
529c20ae2ffSHeiko Schocher	  for more info read doc/README.falcon
530c20ae2ffSHeiko Schocher
53129d3bc79SHeiko Schocherif SPL_OS_BOOT
53229d3bc79SHeiko Schocherconfig SYS_OS_BASE
53329d3bc79SHeiko Schocher	hex "addr, where OS is found"
534226498b8STom Rini	depends on SPL_NOR_SUPPORT
53529d3bc79SHeiko Schocher	help
53629d3bc79SHeiko Schocher	  Specify the address, where the OS image is found, which
53729d3bc79SHeiko Schocher	  gets booted.
53829d3bc79SHeiko Schocher
53929d3bc79SHeiko Schocherendif # SPL_OS_BOOT
54029d3bc79SHeiko Schocher
5412446b6b8SSimon Glassconfig SPL_PCI_SUPPORT
5422446b6b8SSimon Glass	bool "Support PCI drivers"
5432446b6b8SSimon Glass	help
5442446b6b8SSimon Glass	  Enable support for PCI in SPL. For platforms that need PCI to boot,
5452446b6b8SSimon Glass	  or must perform some init using PCI in SPL, this provides the
5462446b6b8SSimon Glass	  necessary driver support. This enables the drivers in drivers/pci
5472446b6b8SSimon Glass	  as part of an SPL build.
5482446b6b8SSimon Glass
549bbe41abfSSimon Glassconfig SPL_PCH_SUPPORT
550bbe41abfSSimon Glass	bool "Support PCH drivers"
551bbe41abfSSimon Glass	help
552bbe41abfSSimon Glass	  Enable support for PCH (Platform Controller Hub) devices in SPL.
553bbe41abfSSimon Glass	  These are used to set up GPIOs and the SPI peripheral early in
554bbe41abfSSimon Glass	  boot. This enables the drivers in drivers/pch as part of an SPL
555bbe41abfSSimon Glass	  build.
556bbe41abfSSimon Glass
55711bde1cdSSimon Glassconfig SPL_POST_MEM_SUPPORT
55811bde1cdSSimon Glass	bool "Support POST drivers"
55911bde1cdSSimon Glass	help
56011bde1cdSSimon Glass	  Enable support for POST (Power-on Self Test) in SPL. POST is a
56111bde1cdSSimon Glass	  procedure that checks that the hardware (CPU or board) appears to
56211bde1cdSSimon Glass	  be functionally correctly. It is a sanity check that can be
56311bde1cdSSimon Glass	  performed before booting. This enables the drivers in post/drivers
56411bde1cdSSimon Glass	  as part of an SPL build.
56511bde1cdSSimon Glass
56611bde1cdSSimon Glassconfig SPL_POWER_SUPPORT
56711bde1cdSSimon Glass	bool "Support power drivers"
56811bde1cdSSimon Glass	help
56911bde1cdSSimon Glass	  Enable support for power control in SPL. This includes support
57011bde1cdSSimon Glass	  for PMICs (Power-management Integrated Circuits) and some of the
57111bde1cdSSimon Glass	  features provided by PMICs. In particular, voltage regulators can
57211bde1cdSSimon Glass	  be used to enable/disable power and vary its voltage. That can be
57311bde1cdSSimon Glass	  useful in SPL to turn on boot peripherals and adjust CPU voltage
57411bde1cdSSimon Glass	  so that the clock speed can be increased. This enables the drivers
57511bde1cdSSimon Glass	  in drivers/power, drivers/power/pmic and drivers/power/regulator
57611bde1cdSSimon Glass	  as part of an SPL build.
57711bde1cdSSimon Glass
57822802f4eSStefan Agnerconfig SPL_RAM_SUPPORT
57922802f4eSStefan Agner	bool "Support booting from RAM"
58022802f4eSStefan Agner	default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
58122802f4eSStefan Agner	help
58222802f4eSStefan Agner	  Enable booting of an image in RAM. The image can be preloaded or
58322802f4eSStefan Agner	  it can be loaded by SPL directly into RAM (e.g. using USB).
58422802f4eSStefan Agner
585f417d40fSStefan Agnerconfig SPL_RAM_DEVICE
586f417d40fSStefan Agner	bool "Support booting from preloaded image in RAM"
58722802f4eSStefan Agner	depends on SPL_RAM_SUPPORT
588f417d40fSStefan Agner	default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
589f417d40fSStefan Agner	help
590f417d40fSStefan Agner	  Enable booting of an image already loaded in RAM. The image has to
591f417d40fSStefan Agner	  be already in memory when SPL takes over, e.g. loaded by the boot
592f417d40fSStefan Agner	  ROM.
593f417d40fSStefan Agner
59430bf8a0dSSimon Glassconfig SPL_RTC_SUPPORT
59530bf8a0dSSimon Glass	bool "Support RTC drivers"
59630bf8a0dSSimon Glass	help
59730bf8a0dSSimon Glass	  Enable RTC (Real-time Clock) support in SPL. This includes support
59830bf8a0dSSimon Glass	  for reading and setting the time. Some RTC devices also have some
59930bf8a0dSSimon Glass	  non-volatile (battery-backed) memory which is accessible if
60030bf8a0dSSimon Glass	  needed. This enables the drivers in drivers/rtc as part of an SPL
60130bf8a0dSSimon Glass	  build.
60230bf8a0dSSimon Glass
60311bde1cdSSimon Glassconfig SPL_SATA_SUPPORT
60411bde1cdSSimon Glass	bool "Support loading from SATA"
60511bde1cdSSimon Glass	help
60611bde1cdSSimon Glass	  Enable support for SATA (Serial AT attachment) in SPL. This allows
60711bde1cdSSimon Glass	  use of SATA devices such as hard drives and flash drivers for
60811bde1cdSSimon Glass	  loading U-Boot. SATA is used in higher-end embedded systems and
60911bde1cdSSimon Glass	  can provide higher performance than MMC , at somewhat higher
61011bde1cdSSimon Glass	  expense and power consumption. This enables loading from SATA
61111bde1cdSSimon Glass	  using a configured device.
61211bde1cdSSimon Glass
61311bde1cdSSimon Glassconfig SPL_SERIAL_SUPPORT
61411bde1cdSSimon Glass	bool "Support serial"
61511bde1cdSSimon Glass	help
61611bde1cdSSimon Glass	  Enable support for serial in SPL. This allows use of a serial UART
61711bde1cdSSimon Glass	  for displaying messages while SPL is running. It also brings in
61811bde1cdSSimon Glass	  printf() and panic() functions. This should normally be enabled
61911bde1cdSSimon Glass	  unless there are space reasons not to. Even then, consider
62011bde1cdSSimon Glass	  enabling USE_TINY_PRINTF which is a small printf() version.
62111bde1cdSSimon Glass
62211bde1cdSSimon Glassconfig SPL_SPI_FLASH_SUPPORT
62311bde1cdSSimon Glass	bool "Support SPI flash drivers"
62411bde1cdSSimon Glass	help
62511bde1cdSSimon Glass	  Enable support for using SPI flash in SPL, and loading U-Boot from
62611bde1cdSSimon Glass	  SPI flash. SPI flash (Serial Peripheral Bus flash) is named after
62711bde1cdSSimon Glass	  the SPI bus that is used to connect it to a system. It is a simple
62811bde1cdSSimon Glass	  but fast bidirectional 4-wire bus (clock, chip select and two data
62911bde1cdSSimon Glass	  lines). This enables the drivers in drivers/mtd/spi as part of an
63011bde1cdSSimon Glass	  SPL build. This normally requires SPL_SPI_SUPPORT.
63111bde1cdSSimon Glass
6322359fc6fSVignesh Rif SPL_SPI_FLASH_SUPPORT
6332359fc6fSVignesh R
634da748245SVignesh Rconfig SPL_SPI_FLASH_TINY
635da748245SVignesh R	bool "Enable low footprint SPL SPI Flash support"
636da748245SVignesh R	depends on !SPI_FLASH_BAR
637da748245SVignesh R	help
638da748245SVignesh R	 Enable lightweight SPL SPI Flash support that supports just reading
639da748245SVignesh R	 data/images from flash. No support to write/erase flash. Enable
640da748245SVignesh R	 this if you have SPL size limitations and don't need full
641da748245SVignesh R	 fledged SPI flash support.
642da748245SVignesh R
6432359fc6fSVignesh Rconfig SPL_SPI_FLASH_SFDP_SUPPORT
6442359fc6fSVignesh R	bool "SFDP table parsing support for SPI NOR flashes"
645da748245SVignesh R	depends on !SPI_FLASH_BAR && !SPL_SPI_FLASH_TINY
6462359fc6fSVignesh R	help
6472359fc6fSVignesh R	 Enable support for parsing and auto discovery of parameters for
6482359fc6fSVignesh R	 SPI NOR flashes using Serial Flash Discoverable Parameters (SFDP)
6492359fc6fSVignesh R	 tables as per JESD216 standard in SPL.
6502359fc6fSVignesh R
6512359fc6fSVignesh Rconfig SPL_SPI_LOAD
6522359fc6fSVignesh R	bool "Support loading from SPI flash"
6532359fc6fSVignesh R	help
6542359fc6fSVignesh R	  Enable support for loading next stage, U-Boot or otherwise, from
6552359fc6fSVignesh R	  SPI NOR in U-Boot SPL.
6562359fc6fSVignesh R
6572359fc6fSVignesh Rendif # SPL_SPI_FLASH_SUPPORT
6582359fc6fSVignesh R
65911bde1cdSSimon Glassconfig SPL_SPI_SUPPORT
66011bde1cdSSimon Glass	bool "Support SPI drivers"
66111bde1cdSSimon Glass	help
66211bde1cdSSimon Glass	  Enable support for using SPI in SPL. This is used for connecting
66311bde1cdSSimon Glass	  to SPI flash for loading U-Boot. See SPL_SPI_FLASH_SUPPORT for
66411bde1cdSSimon Glass	  more details on that. The SPI driver provides the transport for
66511bde1cdSSimon Glass	  data between the SPI flash and the CPU. This option can be used to
66611bde1cdSSimon Glass	  enable SPI drivers that are needed for other purposes also, such
66711bde1cdSSimon Glass	  as a SPI PMIC.
66811bde1cdSSimon Glass
66911bde1cdSSimon Glassconfig SPL_USB_HOST_SUPPORT
67011bde1cdSSimon Glass	bool "Support USB host drivers"
67111bde1cdSSimon Glass	help
67211bde1cdSSimon Glass	  Enable access to USB (Universal Serial Bus) host devices so that
67311bde1cdSSimon Glass	  SPL can load U-Boot from a connected USB peripheral, such as a USB
67411bde1cdSSimon Glass	  flash stick. While USB takes a little longer to start up than most
67511bde1cdSSimon Glass	  buses, it is very flexible since many different types of storage
67611bde1cdSSimon Glass	  device can be attached. This option enables the drivers in
67711bde1cdSSimon Glass	  drivers/usb/host as part of an SPL build.
67811bde1cdSSimon Glass
67911bde1cdSSimon Glassconfig SPL_USB_SUPPORT
68011bde1cdSSimon Glass	bool "Support loading from USB"
68111bde1cdSSimon Glass	depends on SPL_USB_HOST_SUPPORT
68211bde1cdSSimon Glass	help
68311bde1cdSSimon Glass	  Enable support for USB devices in SPL. This allows use of USB
68411bde1cdSSimon Glass	  devices such as hard drives and flash drivers for loading U-Boot.
68511bde1cdSSimon Glass	  The actual drivers are enabled separately using the normal U-Boot
68611bde1cdSSimon Glass	  config options. This enables loading from USB using a configured
68711bde1cdSSimon Glass	  device.
68811bde1cdSSimon Glass
689eccca8a3SJean-Jacques Hiblotconfig SPL_USB_GADGET
690e94793c8SStefan Agner	bool "Suppport USB Gadget drivers"
691e94793c8SStefan Agner	help
692e94793c8SStefan Agner	  Enable USB Gadget API which allows to enable USB device functions
693e94793c8SStefan Agner	  in SPL.
694e94793c8SStefan Agner
695eccca8a3SJean-Jacques Hiblotif SPL_USB_GADGET
696e94793c8SStefan Agner
697e94793c8SStefan Agnerconfig SPL_USBETH_SUPPORT
698e94793c8SStefan Agner	bool "Support USB Ethernet drivers"
699e94793c8SStefan Agner	help
700e94793c8SStefan Agner	  Enable access to the USB network subsystem and associated
701e94793c8SStefan Agner	  drivers in SPL. This permits SPL to load U-Boot over a
702e94793c8SStefan Agner	  USB-connected Ethernet link (such as a USB Ethernet dongle) rather
703e94793c8SStefan Agner	  than from an onboard peripheral. Environment support is required
704e94793c8SStefan Agner	  since the network stack uses a number of environment variables.
705e94793c8SStefan Agner	  See also SPL_NET_SUPPORT and SPL_ETH_SUPPORT.
706e94793c8SStefan Agner
70709b32b41SAndrew F. Davisconfig SPL_DFU
70809b32b41SAndrew F. Davis	bool "Support DFU (Device Firmware Upgrade)"
7095991703eSStefan Agner	select SPL_HASH_SUPPORT
71066928afbSB, Ravi	select SPL_DFU_NO_RESET
7111b19cbdbSB, Ravi	depends on SPL_RAM_SUPPORT
7125991703eSStefan Agner	help
7135991703eSStefan Agner	  This feature enables the DFU (Device Firmware Upgarde) in SPL with
7145991703eSStefan Agner	  RAM memory device support. The ROM code will load and execute
7155991703eSStefan Agner	  the SPL built with dfu. The user can load binaries (u-boot/kernel) to
7165991703eSStefan Agner	  selected device partition from host-pc using dfu-utils.
7175991703eSStefan Agner	  This feature is useful to flash the binaries to factory or bare-metal
7185991703eSStefan Agner	  boards using USB interface.
7195991703eSStefan Agner
7205991703eSStefan Agnerchoice
7215991703eSStefan Agner	bool "DFU device selection"
72209b32b41SAndrew F. Davis	depends on SPL_DFU
7235991703eSStefan Agner
7245991703eSStefan Agnerconfig SPL_DFU_RAM
7255991703eSStefan Agner	bool "RAM device"
72609b32b41SAndrew F. Davis	depends on SPL_DFU && SPL_RAM_SUPPORT
7275991703eSStefan Agner	help
7285991703eSStefan Agner	 select RAM/DDR memory device for loading binary images
7295991703eSStefan Agner	 (u-boot/kernel) to the selected device partition using
7305991703eSStefan Agner	 DFU and execute the u-boot/kernel from RAM.
7315991703eSStefan Agner
7325991703eSStefan Agnerendchoice
7335991703eSStefan Agner
734a3774c1cSStefan Agnerconfig SPL_USB_SDP_SUPPORT
735a3774c1cSStefan Agner	bool "Support SDP (Serial Download Protocol)"
736a3774c1cSStefan Agner	help
737a3774c1cSStefan Agner	  Enable Serial Download Protocol (SDP) device support in SPL. This
738a3774c1cSStefan Agner	  allows to download images into memory and execute (jump to) them
739a3774c1cSStefan Agner	  using the same protocol as implemented by the i.MX family's boot ROM.
740e94793c8SStefan Agnerendif
741e94793c8SStefan Agner
74211bde1cdSSimon Glassconfig SPL_WATCHDOG_SUPPORT
74311bde1cdSSimon Glass	bool "Support watchdog drivers"
74411bde1cdSSimon Glass	help
74511bde1cdSSimon Glass	  Enable support for watchdog drivers in SPL. A watchdog is
74611bde1cdSSimon Glass	  typically a hardware peripheral which can reset the system when it
74711bde1cdSSimon Glass	  detects no activity for a while (such as a software crash). This
74811bde1cdSSimon Glass	  enables the drivers in drivers/watchdog as part of an SPL build.
74911bde1cdSSimon Glass
75011bde1cdSSimon Glassconfig SPL_YMODEM_SUPPORT
75111bde1cdSSimon Glass	bool "Support loading using Ymodem"
75211bde1cdSSimon Glass	help
75311bde1cdSSimon Glass	  While loading from serial is slow it can be a useful backup when
75411bde1cdSSimon Glass	  there is no other option. The Ymodem protocol provides a reliable
75511bde1cdSSimon Glass	  means of transmitting U-Boot over a serial line for using in SPL,
75611bde1cdSSimon Glass	  with a checksum to ensure correctness.
75711bde1cdSSimon Glass
7589f8888bcSPhilipp Tomsichconfig SPL_ATF
759bcc1726aSKever Yang	bool "Support ARM Trusted Firmware"
760226498b8STom Rini	depends on ARM64
761bcc1726aSKever Yang	help
7624bba5ee7SPhilipp Tomsich	  ATF(ARM Trusted Firmware) is a component for ARM AArch64 which
763bcc1726aSKever Yang	  is loaded by SPL (which is considered as BL2 in ATF terminology).
764bcc1726aSKever Yang	  More detail at: https://github.com/ARM-software/arm-trusted-firmware
765bcc1726aSKever Yang
7661bd2b131SKever Yangconfig SPL_OPTEE_SUPPORT
7671bd2b131SKever Yang	bool "Support OP-TEE Trusted OS"
7681bd2b131SKever Yang	depends on ARM
7691bd2b131SKever Yang	help
7701bd2b131SKever Yang	  OP-TEE is an open source Trusted OS  which is loaded by SPL.
7711bd2b131SKever Yang	  More detail at: https://github.com/OP-TEE/optee_os
7721bd2b131SKever Yang
7734bba5ee7SPhilipp Tomsichconfig SPL_ATF_NO_PLATFORM_PARAM
7744bba5ee7SPhilipp Tomsich        bool "Pass no platform parameter"
7754bba5ee7SPhilipp Tomsich	depends on SPL_ATF
7764bba5ee7SPhilipp Tomsich	help
7774bba5ee7SPhilipp Tomsich	  While we expect to call a pointer to a valid FDT (or NULL)
7784bba5ee7SPhilipp Tomsich	  as the platform parameter to an ATF, some ATF versions are
7794bba5ee7SPhilipp Tomsich	  not U-Boot aware and have an insufficiently robust parameter
7804bba5ee7SPhilipp Tomsich	  validation to gracefully reject a FDT being passed.
7814bba5ee7SPhilipp Tomsich
7824bba5ee7SPhilipp Tomsich	  If this option is enabled, the spl_atf os-type handler will
7834bba5ee7SPhilipp Tomsich	  always pass NULL for the platform parameter.
7844bba5ee7SPhilipp Tomsich
7854bba5ee7SPhilipp Tomsich	  If your ATF is affected, say Y.
7864bba5ee7SPhilipp Tomsich
787099855e2SKever Yangconfig SPL_OPTEE
788099855e2SKever Yang	bool "Support OP-TEE Trusted OS"
789099855e2SKever Yang	depends on ARM
790099855e2SKever Yang	help
791099855e2SKever Yang	  OP-TEE is an open source Trusted OS  which is loaded by SPL.
792099855e2SKever Yang	  More detail at: https://github.com/OP-TEE/optee_os
793099855e2SKever Yang
7940cc16201SJason Zhuconfig SPL_AB
7950cc16201SJason Zhu	bool "Support AB system boot"
7960cc16201SJason Zhu	depends on SPL
7970cc16201SJason Zhu	help
7980cc16201SJason Zhu	  Enable this config to support AB system boot.
7990cc16201SJason Zhu
80013c5d8ecSJoseph Chenconfig SPL_LOAD_RKFW
80113c5d8ecSJoseph Chen	bool "SPL support load rockchip firmware images"
80213c5d8ecSJoseph Chen	depends on SPL
80313c5d8ecSJoseph Chen	help
80413c5d8ecSJoseph Chen	  This enables SPL support load rockchip firmware images.
80513c5d8ecSJoseph Chen	  Please define both RKFW_TRUST_SECTOR and RKFW_U_BOOT_SECTOR
80613c5d8ecSJoseph Chen	  for trust and U-Boot images.
80713c5d8ecSJoseph Chen
80813c5d8ecSJoseph Chenconfig RKFW_TRUST_SECTOR
80913c5d8ecSJoseph Chen	hex "rockchip trust image load sector"
81013c5d8ecSJoseph Chen	depends on SPL_LOAD_RKFW
81113c5d8ecSJoseph Chen	default 0x6000
81213c5d8ecSJoseph Chen
81313c5d8ecSJoseph Chenconfig RKFW_U_BOOT_SECTOR
81413c5d8ecSJoseph Chen	hex "rockchip uboot image load sector"
81513c5d8ecSJoseph Chen	depends on SPL_LOAD_RKFW
81613c5d8ecSJoseph Chen	default 0x4000
81713c5d8ecSJoseph Chen
81849f617a9SJason Zhuconfig SPL_KERNEL_ADDR
81949f617a9SJason Zhu	hex "Kernel load address in spl"
82049f617a9SJason Zhu	depends on SPL
82149f617a9SJason Zhu	default 0x280000
82249f617a9SJason Zhu	help
82349f617a9SJason Zhu	  Define the kernel address where load kernel image to.
82449f617a9SJason Zhu	  This is used to boot kernel in spl.
82549f617a9SJason Zhu
82649f617a9SJason Zhuconfig SPL_FDT_ADDR
82749f617a9SJason Zhu	hex "Device tree blob load address in spl"
82849f617a9SJason Zhu	depends on SPL
82949f617a9SJason Zhu	default 0x01f00000
83049f617a9SJason Zhu	help
83149f617a9SJason Zhu	  Define the fdt address where load dtb image to.
83249f617a9SJason Zhu	  This is used to boot kernel in spl.
83349f617a9SJason Zhu
83449f617a9SJason Zhuconfig SPL_RAMDISK_ADDR
83549f617a9SJason Zhu	hex "Ramdisk load address in spl"
83649f617a9SJason Zhu	depends on SPL
83749f617a9SJason Zhu	default 0x0a200000
83849f617a9SJason Zhu	help
83949f617a9SJason Zhu	  Define the ramdisk address where load ramdisk image to.
84049f617a9SJason Zhu	  This is used to boot kernel in spl.
84149f617a9SJason Zhu
842dd04b7cbSJason Zhuconfig SPL_KERNEL_BOOT
843dd04b7cbSJason Zhu	bool "Enable boot kernel in SPL"
844dd04b7cbSJason Zhu	depends on SPL
845dd04b7cbSJason Zhu	help
846dd04b7cbSJason Zhu	  Enable boot kernel in SPL.
847dd04b7cbSJason Zhu
848226498b8STom Riniconfig TPL
849226498b8STom Rini	bool
850226498b8STom Rini	depends on SUPPORT_TPL
851226498b8STom Rini	prompt "Enable TPL"
852226498b8STom Rini	help
853226498b8STom Rini	  If you want to build TPL as well as the normal image and SPL, say Y.
854226498b8STom Rini
855226498b8STom Riniif TPL
856226498b8STom Rini
85789c73a9cSKever Yangconfig TPL_BOARD_INIT
85889c73a9cSKever Yang	bool "Call board-specific initialization in TPL"
85989c73a9cSKever Yang	help
86089c73a9cSKever Yang	  If this option is enabled, U-Boot will call the function
86189c73a9cSKever Yang	  spl_board_init() from board_init_r(). This function should be
86289c73a9cSKever Yang	  provided by the board.
86389c73a9cSKever Yang
864dd6fbcb9SPhilipp Tomsichconfig TPL_LDSCRIPT
865dd6fbcb9SPhilipp Tomsich        string "Linker script for the TPL stage"
866dd6fbcb9SPhilipp Tomsich	depends on TPL
867dd6fbcb9SPhilipp Tomsich	help
868dd6fbcb9SPhilipp Tomsich	  The TPL stage will usually require a different linker-script
869dd6fbcb9SPhilipp Tomsich	  (as it runs from a different memory region) than the regular
870dd6fbcb9SPhilipp Tomsich	  U-Boot stage.  Set this to the path of the linker-script to
871dd6fbcb9SPhilipp Tomsich	  be used for TPL.
872dd6fbcb9SPhilipp Tomsich
873b3ed6ce7SPhilipp Tomsich	  May be left empty to trigger the Makefile infrastructure to
874b3ed6ce7SPhilipp Tomsich	  fall back to the linker-script used for the SPL stage.
875b3ed6ce7SPhilipp Tomsich
876b3ed6ce7SPhilipp Tomsichconfig TPL_NEEDS_SEPARATE_TEXT_BASE
877b3ed6ce7SPhilipp Tomsich        bool "TPL needs a separate text-base"
878b3ed6ce7SPhilipp Tomsich	default n
879b3ed6ce7SPhilipp Tomsich	depends on TPL
880b3ed6ce7SPhilipp Tomsich	help
881b3ed6ce7SPhilipp Tomsich	  Enable, if the TPL stage should not inherit its text-base
882b3ed6ce7SPhilipp Tomsich	  from the SPL stage.  When enabled, a base address for the
883b3ed6ce7SPhilipp Tomsich	  .text sections of the TPL stage has to be set below.
884b3ed6ce7SPhilipp Tomsich
885b3ed6ce7SPhilipp Tomsichconfig TPL_NEEDS_SEPARATE_STACK
886b3ed6ce7SPhilipp Tomsich        bool "TPL needs a separate initial stack-pointer"
887b3ed6ce7SPhilipp Tomsich	default n
888b3ed6ce7SPhilipp Tomsich	depends on TPL
889b3ed6ce7SPhilipp Tomsich	help
890b3ed6ce7SPhilipp Tomsich	  Enable, if the TPL stage should not inherit its initial
891b3ed6ce7SPhilipp Tomsich	  stack-pointer from the settings for the SPL stage.
892b3ed6ce7SPhilipp Tomsich
893b3ed6ce7SPhilipp Tomsichconfig TPL_TEXT_BASE
894b3ed6ce7SPhilipp Tomsich        hex "Base address for the .text section of the TPL stage"
895b3ed6ce7SPhilipp Tomsich	depends on TPL_NEEDS_SEPARATE_TEXT_BASE
896b3ed6ce7SPhilipp Tomsich	help
897b3ed6ce7SPhilipp Tomsich	  The base address for the .text section of the TPL stage.
898b3ed6ce7SPhilipp Tomsich
899b3ed6ce7SPhilipp Tomsichconfig TPL_MAX_SIZE
900b3ed6ce7SPhilipp Tomsich        int "Maximum size (in bytes) for the TPL stage"
9015aa49af3SPhilipp Tomsich	default 0
902b3ed6ce7SPhilipp Tomsich	depends on TPL
903b3ed6ce7SPhilipp Tomsich	help
904b3ed6ce7SPhilipp Tomsich	  The maximum size (in bytes) of the TPL stage.
905b3ed6ce7SPhilipp Tomsich
906b3ed6ce7SPhilipp Tomsichconfig TPL_STACK
907b3ed6ce7SPhilipp Tomsich        hex "Address of the initial stack-pointer for the TPL stage"
908b3ed6ce7SPhilipp Tomsich	depends on TPL_NEEDS_SEPARATE_STACK
909b3ed6ce7SPhilipp Tomsich	help
910b3ed6ce7SPhilipp Tomsich	  The address of the initial stack-pointer for the TPL stage.
911b3ed6ce7SPhilipp Tomsich	  Usually this will be the (aligned) top-of-stack.
912b3ed6ce7SPhilipp Tomsich
913a954fa32SPhilipp Tomsichconfig TPL_BOOTROM_SUPPORT
914a954fa32SPhilipp Tomsich        bool "Support returning to the BOOTROM (from TPL)"
915a954fa32SPhilipp Tomsich	help
916a954fa32SPhilipp Tomsich	  Some platforms (e.g. the Rockchip RK3368) provide support in their
917a954fa32SPhilipp Tomsich	  ROM for loading the next boot-stage after performing basic setup
918a954fa32SPhilipp Tomsich	  from the TPL stage.
919a954fa32SPhilipp Tomsich
920a954fa32SPhilipp Tomsich	  Enable this option, to return to the BOOTROM through the
921a954fa32SPhilipp Tomsich	  BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
922a954fa32SPhilipp Tomsich	  boot device list, if not implemented for a given board)
923a954fa32SPhilipp Tomsich
924c3916e7bSPhilipp Tomsichconfig TPL_DRIVERS_MISC_SUPPORT
925c3916e7bSPhilipp Tomsich	bool "Support misc drivers in TPL"
926c3916e7bSPhilipp Tomsich	help
927c3916e7bSPhilipp Tomsich	  Enable miscellaneous drivers in TPL. These drivers perform various
928c3916e7bSPhilipp Tomsich	  tasks that don't fall nicely into other categories, Enable this
929c3916e7bSPhilipp Tomsich	  option to build the drivers in drivers/misc as part of an TPL
930c3916e7bSPhilipp Tomsich	  build, for those that support building in TPL (not all drivers do).
931c3916e7bSPhilipp Tomsich
932f73329eeSSimon Glassconfig TPL_ENV_SUPPORT
933f73329eeSSimon Glass	bool "Support an environment"
934f73329eeSSimon Glass	help
935f73329eeSSimon Glass	  Enable environment support in TPL. See SPL_ENV_SUPPORT for details.
936f73329eeSSimon Glass
937f73329eeSSimon Glassconfig TPL_I2C_SUPPORT
938f73329eeSSimon Glass	bool "Support I2C"
939f73329eeSSimon Glass	help
940616bd09eSPhilipp Tomsich	  Enable support for the I2C bus in TPL. See SPL_I2C_SUPPORT for
941f73329eeSSimon Glass	  details.
942f73329eeSSimon Glass
943f73329eeSSimon Glassconfig TPL_LIBCOMMON_SUPPORT
944f73329eeSSimon Glass	bool "Support common libraries"
945f73329eeSSimon Glass	help
946f73329eeSSimon Glass	  Enable support for common U-Boot libraries within TPL. See
947f73329eeSSimon Glass	  SPL_LIBCOMMON_SUPPORT for details.
948f73329eeSSimon Glass
949f73329eeSSimon Glassconfig TPL_LIBGENERIC_SUPPORT
950f73329eeSSimon Glass	bool "Support generic libraries"
951f73329eeSSimon Glass	help
952f73329eeSSimon Glass	  Enable support for generic U-Boot libraries within TPL. See
953f73329eeSSimon Glass	  SPL_LIBGENERIC_SUPPORT for details.
954f73329eeSSimon Glass
955ba5fd738SYouMin Chenconfig TPL_TINY_FRAMEWORK
95630129f2fSDavid Wu	bool "Support not to use spl framework in TPL"
95730129f2fSDavid Wu	help
95830129f2fSDavid Wu	  Enable support for not using spl framework in TPL, to reduce the TPL size.
95930129f2fSDavid Wu
960f73329eeSSimon Glassconfig TPL_MPC8XXX_INIT_DDR_SUPPORT
961f73329eeSSimon Glass	bool "Support MPC8XXX DDR init"
962f73329eeSSimon Glass	help
963f73329eeSSimon Glass	  Enable support for DDR-SDRAM on the MPC8XXX family within TPL. See
964f73329eeSSimon Glass	  SPL_MPC8XXX_INIT_DDR_SUPPORT for details.
965f73329eeSSimon Glass
966f73329eeSSimon Glassconfig TPL_MMC_SUPPORT
967f73329eeSSimon Glass	bool "Support MMC"
968226498b8STom Rini	depends on MMC
969f73329eeSSimon Glass	help
970f73329eeSSimon Glass	  Enable support for MMC within TPL. See SPL_MMC_SUPPORT for details.
971f73329eeSSimon Glass
972f73329eeSSimon Glassconfig TPL_NAND_SUPPORT
973f73329eeSSimon Glass	bool "Support NAND flash"
974f73329eeSSimon Glass	help
975616bd09eSPhilipp Tomsich	  Enable support for NAND in TPL. See SPL_NAND_SUPPORT for details.
976f73329eeSSimon Glass
977f73329eeSSimon Glassconfig TPL_SERIAL_SUPPORT
978f73329eeSSimon Glass	bool "Support serial"
979f73329eeSSimon Glass	help
980616bd09eSPhilipp Tomsich	  Enable support for serial in TPL. See SPL_SERIAL_SUPPORT for
981f73329eeSSimon Glass	  details.
982f73329eeSSimon Glass
983f73329eeSSimon Glassconfig TPL_SPI_FLASH_SUPPORT
984f73329eeSSimon Glass	bool "Support SPI flash drivers"
985f73329eeSSimon Glass	help
986616bd09eSPhilipp Tomsich	  Enable support for using SPI flash in TPL. See SPL_SPI_FLASH_SUPPORT
987f73329eeSSimon Glass	  for details.
988f73329eeSSimon Glass
989f73329eeSSimon Glassconfig TPL_SPI_SUPPORT
990f73329eeSSimon Glass	bool "Support SPI drivers"
991f73329eeSSimon Glass	help
992616bd09eSPhilipp Tomsich	  Enable support for using SPI in TPL. See SPL_SPI_SUPPORT for
993f73329eeSSimon Glass	  details.
994f73329eeSSimon Glass
995226498b8STom Riniendif # TPL
996226498b8STom Rini
997226498b8STom Riniendif # SPL
99811bde1cdSSimon Glassendmenu
999