xref: /rk3399_rockchip-uboot/common/spl/Kconfig (revision 426736b6bf990212cf6db1013ac375975d9bc803)
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
212d7c904fSJason Zhuconfig SPL_ADC_SUPPORT
222d7c904fSJason Zhu	bool "Support ADC driver in SPL"
232d7c904fSJason Zhu	depends on SPL
242d7c904fSJason Zhu	help
252d7c904fSJason Zhu	  The adc drive can be used to measure voltage in spl if need.
262d7c904fSJason Zhu
2753138e05SJoseph Chenconfig SPL_DECOMP_HEADER
2853138e05SJoseph Chen        bool "Support SPL DECOMP header"
2953138e05SJoseph Chen        default n
3053138e05SJoseph Chen        help
3153138e05SJoseph Chen          Support to build SPL as decomp header.
3253138e05SJoseph Chen
33dd6fbcb9SPhilipp Tomsichconfig SPL_LDSCRIPT
34dd6fbcb9SPhilipp Tomsich	string "Linker script for the SPL stage"
35dd6fbcb9SPhilipp Tomsich	default "arch/$(ARCH)/cpu/u-boot-spl.lds"
36dd6fbcb9SPhilipp Tomsich	depends on SPL
37dd6fbcb9SPhilipp Tomsich	help
38dd6fbcb9SPhilipp Tomsich	  The SPL stage will usually require a different linker-script
39dd6fbcb9SPhilipp Tomsich	  (as it runs from a different memory region) than the regular
40dd6fbcb9SPhilipp Tomsich	  U-Boot stage.	 Set this to the path of the linker-script to
41dd6fbcb9SPhilipp Tomsich	  be used for SPL.
42dd6fbcb9SPhilipp Tomsich
430680f1b1SLey Foon Tanconfig SPL_BOARD_INIT
440680f1b1SLey Foon Tan	bool "Call board-specific initialization in SPL"
450680f1b1SLey Foon Tan	help
460680f1b1SLey Foon Tan	  If this option is enabled, U-Boot will call the function
470680f1b1SLey Foon Tan	  spl_board_init() from board_init_r(). This function should be
480680f1b1SLey Foon Tan	  provided by the board.
490680f1b1SLey Foon Tan
50225d30b7SPhilipp Tomsichconfig SPL_BOOTROM_SUPPORT
51225d30b7SPhilipp Tomsich        bool "Support returning to the BOOTROM"
52225d30b7SPhilipp Tomsich	help
53225d30b7SPhilipp Tomsich	  Some platforms (e.g. the Rockchip RK3368) provide support in their
54225d30b7SPhilipp Tomsich	  ROM for loading the next boot-stage after performing basic setup
55225d30b7SPhilipp Tomsich	  from the SPL stage.
56225d30b7SPhilipp Tomsich
57225d30b7SPhilipp Tomsich	  Enable this option, to return to the BOOTROM through the
58225d30b7SPhilipp Tomsich	  BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
59225d30b7SPhilipp Tomsich	  boot device list, if not implemented for a given board)
60225d30b7SPhilipp Tomsich
6124eb39b5SAndrew F. Davisconfig SPL_RAW_IMAGE_SUPPORT
6224eb39b5SAndrew F. Davis	bool "Support SPL loading and booting of RAW images"
6324eb39b5SAndrew F. Davis	default n if (ARCH_MX6 && (SPL_MMC_SUPPORT || SPL_SATA_SUPPORT))
64ae9b57b5SAndrew F. Davis	default y if !TI_SECURE_DEVICE
6524eb39b5SAndrew F. Davis	help
6624eb39b5SAndrew F. Davis	  SPL will support loading and booting a RAW image when this option
6724eb39b5SAndrew F. Davis	  is y. If this is not set, SPL will move on to other available
6824eb39b5SAndrew F. Davis	  boot media to find a suitable image.
6924eb39b5SAndrew F. Davis
70722a6b17SAndrew F. Davisconfig SPL_LEGACY_IMAGE_SUPPORT
71722a6b17SAndrew F. Davis	bool "Support SPL loading and booting of Legacy images"
72ae9b57b5SAndrew F. Davis	default y if !TI_SECURE_DEVICE
73722a6b17SAndrew F. Davis	help
74722a6b17SAndrew F. Davis	  SPL will support loading and booting Legacy images when this option
75722a6b17SAndrew F. Davis	  is y. If this is not set, SPL will move on to other available
76722a6b17SAndrew F. Davis	  boot media to find a suitable image.
77722a6b17SAndrew F. Davis
78c2ae7d82SSimon Glassconfig SPL_SYS_MALLOC_SIMPLE
79c2ae7d82SSimon Glass	bool
80c2ae7d82SSimon Glass	prompt "Only use malloc_simple functions in the SPL"
81c2ae7d82SSimon Glass	help
82c2ae7d82SSimon Glass	  Say Y here to only use the *_simple malloc functions from
83c2ae7d82SSimon Glass	  malloc_simple.c, rather then using the versions from dlmalloc.c;
84c2ae7d82SSimon Glass	  this will make the SPL binary smaller at the cost of more heap
85c2ae7d82SSimon Glass	  usage as the *_simple malloc functions do not re-use free-ed mem.
86c2ae7d82SSimon Glass
87d60b5f74SPhilipp Tomsichconfig TPL_SYS_MALLOC_SIMPLE
88d60b5f74SPhilipp Tomsich	bool
89d60b5f74SPhilipp Tomsich	prompt "Only use malloc_simple functions in the TPL"
90d60b5f74SPhilipp Tomsich	help
91d60b5f74SPhilipp Tomsich	  Say Y here to only use the *_simple malloc functions from
92d60b5f74SPhilipp Tomsich	  malloc_simple.c, rather then using the versions from dlmalloc.c;
93d60b5f74SPhilipp Tomsich	  this will make the TPL binary smaller at the cost of more heap
94d60b5f74SPhilipp Tomsich	  usage as the *_simple malloc functions do not re-use free-ed mem.
95d60b5f74SPhilipp Tomsich
96c2ae7d82SSimon Glassconfig SPL_STACK_R
97c2ae7d82SSimon Glass	bool "Enable SDRAM location for SPL stack"
98c2ae7d82SSimon Glass	help
99c2ae7d82SSimon Glass	  SPL starts off execution in SRAM and thus typically has only a small
100c2ae7d82SSimon Glass	  stack available. Since SPL sets up DRAM while in its board_init_f()
101c2ae7d82SSimon Glass	  function, it is possible for the stack to move there before
102c2ae7d82SSimon Glass	  board_init_r() is reached. This option enables a special SDRAM
103c2ae7d82SSimon Glass	  location for the SPL stack. U-Boot SPL switches to this after
104c2ae7d82SSimon Glass	  board_init_f() completes, and before board_init_r() starts.
105c2ae7d82SSimon Glass
106c2ae7d82SSimon Glassconfig SPL_STACK_R_ADDR
107c2ae7d82SSimon Glass	depends on SPL_STACK_R
108c2ae7d82SSimon Glass	hex "SDRAM location for SPL stack"
109c2ae7d82SSimon Glass	help
110c2ae7d82SSimon Glass	  Specify the address in SDRAM for the SPL stack. This will be set up
111c2ae7d82SSimon Glass	  before board_init_r() is called.
112c2ae7d82SSimon Glass
113c2ae7d82SSimon Glassconfig SPL_STACK_R_MALLOC_SIMPLE_LEN
114c2ae7d82SSimon Glass	depends on SPL_STACK_R && SPL_SYS_MALLOC_SIMPLE
115c2ae7d82SSimon Glass	hex "Size of malloc_simple heap after switching to DRAM SPL stack"
116c2ae7d82SSimon Glass	default 0x100000
117c2ae7d82SSimon Glass	help
118c2ae7d82SSimon Glass	  Specify the amount of the stack to use as memory pool for
119c2ae7d82SSimon Glass	  malloc_simple after switching the stack to DRAM. This may be set
120c2ae7d82SSimon Glass	  to give board_init_r() a larger heap then the initial heap in
121c2ae7d82SSimon Glass	  SRAM which is limited to SYS_MALLOC_F_LEN bytes.
122c2ae7d82SSimon Glass
123c2ae7d82SSimon Glassconfig SPL_SEPARATE_BSS
124c2ae7d82SSimon Glass	bool "BSS section is in a different memory region from text"
125c2ae7d82SSimon Glass	help
126c2ae7d82SSimon Glass	  Some platforms need a large BSS region in SPL and can provide this
127c2ae7d82SSimon Glass	  because RAM is already set up. In this case BSS can be moved to RAM.
128c2ae7d82SSimon Glass	  This option should then be enabled so that the correct device tree
129c2ae7d82SSimon Glass	  location is used. Normally we put the device tree at the end of BSS
130c2ae7d82SSimon Glass	  but with this option enabled, it goes at _image_binary_end.
131c2ae7d82SSimon Glass
132a807ab33SSimon Glassconfig SPL_DISPLAY_PRINT
133a807ab33SSimon Glass	bool "Display a board-specific message in SPL"
134a807ab33SSimon Glass	help
135a807ab33SSimon Glass	  If this option is enabled, U-Boot will call the function
136a807ab33SSimon Glass	  spl_display_print() immediately after displaying the SPL console
137a807ab33SSimon Glass	  banner ("U-Boot SPL ..."). This function should be provided by
138a807ab33SSimon Glass	  the board.
139a807ab33SSimon Glass
140dced428bSAndy Yanconfig SPL_SKIP_RELOCATE
141dced428bSAndy Yan	bool "Skip code relocation in SPL"
142dced428bSAndy Yan	default y
143dced428bSAndy Yan	help
144dced428bSAndy Yan	  The SPL code will be relocated to a high memory if you say no here.
145dced428bSAndy Yan	  Only ARM64 and PowerPC SPL support relocate now.
146dced428bSAndy Yan
14736c449feSJoseph Chenconfig SPL_BOOT_IMAGE
14836c449feSJoseph Chen	bool "SPL boot image load support"
14936c449feSJoseph Chen	default n
15036c449feSJoseph Chen	help
15136c449feSJoseph Chen	  This enable SPL boot image load support
15236c449feSJoseph Chen
15336c449feSJoseph Chenconfig SPL_BOOT_IMAGE_BUF
15436c449feSJoseph Chen	hex "SPL boot image memory buffer"
15536c449feSJoseph Chen	depends on SPL_BOOT_IMAGE
15636c449feSJoseph Chen	default 0x10000000
15736c449feSJoseph Chen
158dced428bSAndy Yanconfig SPL_RELOC_TEXT_BASE
159dced428bSAndy Yan	hex "Address the SPL relocate to"
160dced428bSAndy Yan	depends on !SPL_SKIP_RELOCATE
161dced428bSAndy Yan	help
162dced428bSAndy Yan	  The address on the ram where the SPL relocate to.
163dced428bSAndy Yan
16438fed8abSSemen Protsenkoconfig SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
16538fed8abSSemen Protsenko	bool "MMC raw mode: by sector"
16638fed8abSSemen Protsenko	default y if ARCH_SUNXI || ARCH_DAVINCI || ARCH_UNIPHIER ||ARCH_MX6 || \
16738fed8abSSemen Protsenko		     ARCH_ROCKCHIP || ARCH_MVEBU ||  ARCH_SOCFPGA || \
16838fed8abSSemen Protsenko		     ARCH_AT91 || ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || \
16938fed8abSSemen Protsenko		     OMAP44XX || OMAP54XX || AM33XX || AM43XX
17038fed8abSSemen Protsenko	help
17138fed8abSSemen Protsenko	  Use sector number for specifying U-Boot location on MMC/SD in
17238fed8abSSemen Protsenko	  raw mode.
17338fed8abSSemen Protsenko
17438fed8abSSemen Protsenkoconfig SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
17538fed8abSSemen Protsenko	hex "Address on the MMC to load U-Boot from"
176226498b8STom Rini	depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
17738fed8abSSemen Protsenko	default 0x50 if ARCH_SUNXI
17838fed8abSSemen Protsenko	default 0x75 if ARCH_DAVINCI
17938fed8abSSemen Protsenko	default 0x8a if ARCH_MX6
180b24d32f4SKever Yang	default 0x100 if ARCH_UNIPHIER
18138fed8abSSemen Protsenko	default 0x140 if ARCH_MVEBU
18238fed8abSSemen Protsenko	default 0x200 if ARCH_SOCFPGA || ARCH_AT91
18338fed8abSSemen Protsenko	default 0x300 if ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || OMAP44XX || \
18438fed8abSSemen Protsenko		         OMAP54XX || AM33XX || AM43XX
185b24d32f4SKever Yang	default 0x4000 if ARCH_ROCKCHIP
18638fed8abSSemen Protsenko	help
18738fed8abSSemen Protsenko	  Address on the MMC to load U-Boot from, when the MMC is being used
18838fed8abSSemen Protsenko	  in raw mode. Units: MMC sectors (1 sector = 512 bytes).
18938fed8abSSemen Protsenko
190949123e3SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
191949123e3SDalon Westergreen	bool "MMC Raw mode: by partition"
19285f134f5SJoseph Chen	depends on SPL_LIBDISK_SUPPORT
193949123e3SDalon Westergreen	help
194949123e3SDalon Westergreen	  Use a partition for loading U-Boot when using MMC/SD in raw mode.
195949123e3SDalon Westergreen
196949123e3SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION
197949123e3SDalon Westergreen	hex "Partition to use to load U-Boot from"
198226498b8STom Rini	depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
199949123e3SDalon Westergreen	default 1
200949123e3SDalon Westergreen	help
201949123e3SDalon Westergreen	  Partition on the MMC to load U-Boot from when the MMC is being
202949123e3SDalon Westergreen	  used in raw mode
203949123e3SDalon Westergreen
204f0fb4fa7SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
205f0fb4fa7SDalon Westergreen	bool "MMC raw mode: by partition type"
206226498b8STom Rini	depends on DOS_PARTITION && SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
207f0fb4fa7SDalon Westergreen	help
208f0fb4fa7SDalon Westergreen	  Use partition type for specifying U-Boot partition on MMC/SD in
209f0fb4fa7SDalon Westergreen	  raw mode. U-Boot will be loaded from the first partition of this
210f0fb4fa7SDalon Westergreen	  type to be found.
211f0fb4fa7SDalon Westergreen
21285f134f5SJoseph Chenconfig SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_NAME
21385f134f5SJoseph Chen	string "Partition Name on the MMC to load U-Boot from"
21485f134f5SJoseph Chen	depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
21585f134f5SJoseph Chen	default "uboot"
21685f134f5SJoseph Chen	help
21785f134f5SJoseph Chen          Partition Name on the MMC to load U-Boot from, when the MMC is being
21885f134f5SJoseph Chen          used in raw mode.
21985f134f5SJoseph Chen
220f0fb4fa7SDalon Westergreenconfig SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE
221f0fb4fa7SDalon Westergreen	hex "Partition Type on the MMC to load U-Boot from"
222226498b8STom Rini	depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
223f0fb4fa7SDalon Westergreen	help
224f0fb4fa7SDalon Westergreen	  Partition Type on the MMC to load U-Boot from, when the MMC is being
225f0fb4fa7SDalon Westergreen	  used in raw mode.
226f0fb4fa7SDalon Westergreen
2273d94fb28SJoseph Chenconfig SPL_MISC_SECTOR
2283d94fb28SJoseph Chen	hex "Sector address to load misc in SPL"
229a00b516fSJoseph Chen	depends on !SPL_LIBDISK_SUPPORT && SPL_KERNEL_BOOT
2303d94fb28SJoseph Chen	default 0x8000
2313d94fb28SJoseph Chen
23211bde1cdSSimon Glassconfig SPL_CRC32_SUPPORT
23311bde1cdSSimon Glass	bool "Support CRC32"
23411bde1cdSSimon Glass	depends on SPL_FIT
23511bde1cdSSimon Glass	help
23611bde1cdSSimon Glass	  Enable this to support CRC32 in FIT images within SPL. This is a
23711bde1cdSSimon Glass	  32-bit checksum value that can be used to verify images. This is
23811bde1cdSSimon Glass	  the least secure type of checksum, suitable for detected
23911bde1cdSSimon Glass	  accidental image corruption. For secure applications you should
24011bde1cdSSimon Glass	  consider SHA1 or SHA256.
24111bde1cdSSimon Glass
24211bde1cdSSimon Glassconfig SPL_MD5_SUPPORT
24311bde1cdSSimon Glass	bool "Support MD5"
24411bde1cdSSimon Glass	depends on SPL_FIT
24511bde1cdSSimon Glass	help
24611bde1cdSSimon Glass	  Enable this to support MD5 in FIT images within SPL. An MD5
24711bde1cdSSimon Glass	  checksum is a 128-bit hash value used to check that the image
24811bde1cdSSimon Glass	  contents have not been corrupted. Note that MD5 is not considered
24911bde1cdSSimon Glass	  secure as it is possible (with a brute-force attack) to adjust the
25011bde1cdSSimon Glass	  image while still retaining the same MD5 hash value. For secure
25111bde1cdSSimon Glass	  applications where images may be changed maliciously, you should
25211bde1cdSSimon Glass	  consider SHA1 or SHA256.
25311bde1cdSSimon Glass
25411bde1cdSSimon Glassconfig SPL_SHA1_SUPPORT
25511bde1cdSSimon Glass	bool "Support SHA1"
25611bde1cdSSimon Glass	depends on SPL_FIT
257089df18bSTom Rini	select SHA1
25811bde1cdSSimon Glass	help
25911bde1cdSSimon Glass	  Enable this to support SHA1 in FIT images within SPL. A SHA1
26011bde1cdSSimon Glass	  checksum is a 160-bit (20-byte) hash value used to check that the
26111bde1cdSSimon Glass	  image contents have not been corrupted or maliciously altered.
26211bde1cdSSimon Glass	  While SHA1 is fairly secure it is coming to the end of its life
26311bde1cdSSimon Glass	  due to the expanding computing power avaiable to brute-force
26411bde1cdSSimon Glass	  attacks. For more security, consider SHA256.
26511bde1cdSSimon Glass
26611bde1cdSSimon Glassconfig SPL_SHA256_SUPPORT
26711bde1cdSSimon Glass	bool "Support SHA256"
26811bde1cdSSimon Glass	depends on SPL_FIT
269089df18bSTom Rini	select SHA256
27011bde1cdSSimon Glass	help
27111bde1cdSSimon Glass	  Enable this to support SHA256 in FIT images within SPL. A SHA256
27211bde1cdSSimon Glass	  checksum is a 256-bit (32-byte) hash value used to check that the
27311bde1cdSSimon Glass	  image contents have not been corrupted. SHA256 is recommended for
27411bde1cdSSimon Glass	  use in secure applications since (as at 2016) there is no known
27511bde1cdSSimon Glass	  feasible attack that could produce a 'collision' with differing
27611bde1cdSSimon Glass	  input data. Use this for the highest security. Note that only the
27711bde1cdSSimon Glass	  SHA256 variant is supported: SHA512 and others are not currently
27811bde1cdSSimon Glass	  supported in U-Boot.
27911bde1cdSSimon Glass
2808118cce3SPhilipp Tomsichconfig SPL_FIT_IMAGE_TINY
2818118cce3SPhilipp Tomsich	bool "Remove functionality from SPL FIT loading to reduce size"
2828118cce3SPhilipp Tomsich	depends on SPL_FIT
2838118cce3SPhilipp Tomsich	default y if MACH_SUN50I || MACH_SUN50I_H5
2848118cce3SPhilipp Tomsich	default y if ARCH_OMAP2PLUS
2858118cce3SPhilipp Tomsich	help
2868118cce3SPhilipp Tomsich	  Enable this to reduce the size of the FIT image loading code
2878118cce3SPhilipp Tomsich	  in SPL, if space for the SPL binary is very tight.
2888118cce3SPhilipp Tomsich
2898118cce3SPhilipp Tomsich	  This removes the detection of image types (which forces the
2908118cce3SPhilipp Tomsich	  first image to be treated as having a U-Boot style calling
2918118cce3SPhilipp Tomsich	  convention) and skips the recording of each loaded payload
2928118cce3SPhilipp Tomsich	  (i.e. loadable) into the FDT (modifying the loaded FDT to
2938118cce3SPhilipp Tomsich	  ensure this information is available to the next image
2948118cce3SPhilipp Tomsich	  invoked).
2958118cce3SPhilipp Tomsich
2965e148df9SSimon Glassconfig SPL_CPU_SUPPORT
2975e148df9SSimon Glass	bool "Support CPU drivers"
2985e148df9SSimon Glass	help
2995e148df9SSimon Glass	  Enable this to support CPU drivers in SPL. These drivers can set
3005e148df9SSimon Glass	  up CPUs and provide information about them such as the model and
3015e148df9SSimon Glass	  name. This can be useful in SPL since setting up the CPUs earlier
3025e148df9SSimon Glass	  may improve boot performance. Enable this option to build the
3035e148df9SSimon Glass	  drivers in drivers/cpu as part of an SPL build.
3045e148df9SSimon Glass
30511bde1cdSSimon Glassconfig SPL_CRYPTO_SUPPORT
30611bde1cdSSimon Glass	bool "Support crypto drivers"
30711bde1cdSSimon Glass	help
30811bde1cdSSimon Glass	  Enable crypto drivers in SPL. These drivers can be used to
30911bde1cdSSimon Glass	  accelerate secure boot processing in secure applications. Enable
31011bde1cdSSimon Glass	  this option to build the drivers in drivers/crypto as part of an
31111bde1cdSSimon Glass	  SPL build.
31211bde1cdSSimon Glass
313*426736b6STroy Linconfig SPL_KEYLAD_SUPPORT
314*426736b6STroy Lin	bool "Support keylad drivers"
315*426736b6STroy Lin	help
316*426736b6STroy Lin	  Enable keylad drivers in SPL. These drivers can be used to pass
317*426736b6STroy Lin	  otp keys to other IP addresses. (e.g. CRYPTO module). Enable
318*426736b6STroy Lin	  this option to build the drivers in drivers/keylad as part of an
319*426736b6STroy Lin	  SPL build.
320*426736b6STroy Lin
32111bde1cdSSimon Glassconfig SPL_HASH_SUPPORT
32211bde1cdSSimon Glass	bool "Support hashing drivers"
323089df18bSTom Rini	select SHA1
324089df18bSTom Rini	select SHA256
32511bde1cdSSimon Glass	help
32611bde1cdSSimon Glass	  Enable hashing drivers in SPL. These drivers can be used to
32711bde1cdSSimon Glass	  accelerate secure boot processing in secure applications. Enable
32811bde1cdSSimon Glass	  this option to build system-specific drivers for hash acceleration
32911bde1cdSSimon Glass	  as part of an SPL build.
33011bde1cdSSimon Glass
33111bde1cdSSimon Glassconfig SPL_DMA_SUPPORT
33211bde1cdSSimon Glass	bool "Support DMA drivers"
33311bde1cdSSimon Glass	help
33411bde1cdSSimon Glass	  Enable DMA (direct-memory-access) drivers in SPL. These drivers
33511bde1cdSSimon Glass	  can be used to handle memory-to-peripheral data transfer without
33611bde1cdSSimon Glass	  the CPU moving the data. Enable this option to build the drivers
33711bde1cdSSimon Glass	  in drivers/dma as part of an SPL build.
33811bde1cdSSimon Glass
33911bde1cdSSimon Glassconfig SPL_DRIVERS_MISC_SUPPORT
34011bde1cdSSimon Glass	bool "Support misc drivers"
34111bde1cdSSimon Glass	help
34211bde1cdSSimon Glass	  Enable miscellaneous drivers in SPL. These drivers perform various
34311bde1cdSSimon Glass	  tasks that don't fall nicely into other categories, Enable this
34411bde1cdSSimon Glass	  option to build the drivers in drivers/misc as part of an SPL
34511bde1cdSSimon Glass	  build, for those that support building in SPL (not all drivers do).
34611bde1cdSSimon Glass
34711bde1cdSSimon Glassconfig SPL_ENV_SUPPORT
34811bde1cdSSimon Glass	bool "Support an environment"
34911bde1cdSSimon Glass	help
35011bde1cdSSimon Glass	  Enable environment support in SPL. The U-Boot environment provides
35111bde1cdSSimon Glass	  a number of settings (essentially name/value pairs) which can
35211bde1cdSSimon Glass	  control many aspects of U-Boot's operation. Normally this is not
35311bde1cdSSimon Glass	  needed in SPL as it has a much simpler task with less
35411bde1cdSSimon Glass	  configuration. But some boards use this to support 'Falcon' boot
35511bde1cdSSimon Glass	  on EXT2 and FAT, where SPL boots directly into Linux without
35600caae6dSSimon Glass	  starting U-Boot first. Enabling this option will make env_get()
357382bee57SSimon Glass	  and env_set() available in SPL.
35811bde1cdSSimon Glass
359d2d9bdfcSB, Raviconfig SPL_SAVEENV
360d2d9bdfcSB, Ravi	bool "Support save environment"
361226498b8STom Rini	depends on SPL_ENV_SUPPORT
3629127fbf4SJean-Jacques Hiblot	select SPL_MMC_WRITE if ENV_IS_IN_MMC
363d2d9bdfcSB, Ravi	help
364d2d9bdfcSB, Ravi	  Enable save environment support in SPL after setenv. By default
365d2d9bdfcSB, Ravi	  the saveenv option is not provided in SPL, but some boards need
366d2d9bdfcSB, Ravi	  this support in 'Falcon' boot, where SPL need to boot from
367d2d9bdfcSB, Ravi	  different images based on environment variable set by OS. For
368d2d9bdfcSB, Ravi	  example OS may set "reboot_image" environment variable to
369d2d9bdfcSB, Ravi	  "recovery" inorder to boot recovery image by SPL. The SPL read
370d2d9bdfcSB, Ravi	  "reboot_image" and act accordingly and change the reboot_image
371d2d9bdfcSB, Ravi	  to default mode using setenv and save the environemnt.
372d2d9bdfcSB, Ravi
37311bde1cdSSimon Glassconfig SPL_ETH_SUPPORT
37411bde1cdSSimon Glass	bool "Support Ethernet"
37511bde1cdSSimon Glass	depends on SPL_ENV_SUPPORT
37611bde1cdSSimon Glass	help
37711bde1cdSSimon Glass	  Enable access to the network subsystem and associated Ethernet
37811bde1cdSSimon Glass	  drivers in SPL. This permits SPL to load U-Boot over an Ethernet
37911bde1cdSSimon Glass	  link rather than from an on-board peripheral. Environment support
38011bde1cdSSimon Glass	  is required since the network stack uses a number of environment
38111bde1cdSSimon Glass	  variables. See also SPL_NET_SUPPORT.
38211bde1cdSSimon Glass
38311bde1cdSSimon Glassconfig SPL_EXT_SUPPORT
38411bde1cdSSimon Glass	bool "Support EXT filesystems"
38511bde1cdSSimon Glass	help
38611bde1cdSSimon Glass	  Enable support for EXT2/3/4 filesystems with SPL. This permits
38711bde1cdSSimon Glass	  U-Boot (or Linux in Falcon mode) to be loaded from an EXT
38811bde1cdSSimon Glass	  filesystem from within SPL. Support for the underlying block
38911bde1cdSSimon Glass	  device (e.g. MMC or USB) must be enabled separately.
39011bde1cdSSimon Glass
39111bde1cdSSimon Glassconfig SPL_FAT_SUPPORT
39211bde1cdSSimon Glass	bool "Support FAT filesystems"
393eedfb89eSSekhar Nori	select FS_FAT
39411bde1cdSSimon Glass	help
39511bde1cdSSimon Glass	  Enable support for FAT and VFAT filesystems with SPL. This
39611bde1cdSSimon Glass	  permits U-Boot (or Linux in Falcon mode) to be loaded from a FAT
39711bde1cdSSimon Glass	  filesystem from within SPL. Support for the underlying block
39811bde1cdSSimon Glass	  device (e.g. MMC or USB) must be enabled separately.
39911bde1cdSSimon Glass
40011bde1cdSSimon Glassconfig SPL_FPGA_SUPPORT
40111bde1cdSSimon Glass	bool "Support FPGAs"
40211bde1cdSSimon Glass	help
40311bde1cdSSimon Glass	  Enable support for FPGAs in SPL. Field-programmable Gate Arrays
40411bde1cdSSimon Glass	  provide software-configurable hardware which is typically used to
40511bde1cdSSimon Glass	  implement peripherals (such as UARTs, LCD displays, MMC) or
40611bde1cdSSimon Glass	  accelerate custom processing functions, such as image processing
40711bde1cdSSimon Glass	  or machine learning. Sometimes it is useful to program the FPGA
40811bde1cdSSimon Glass	  as early as possible during boot, and this option can enable that
40911bde1cdSSimon Glass	  within SPL.
41011bde1cdSSimon Glass
41111bde1cdSSimon Glassconfig SPL_GPIO_SUPPORT
41211bde1cdSSimon Glass	bool "Support GPIO"
41311bde1cdSSimon Glass	help
41411bde1cdSSimon Glass	  Enable support for GPIOs (General-purpose Input/Output) in SPL.
41511bde1cdSSimon Glass	  GPIOs allow U-Boot to read the state of an input line (high or
41611bde1cdSSimon Glass	  low) and set the state of an output line. This can be used to
41711bde1cdSSimon Glass	  drive LEDs, control power to various system parts and read user
41811bde1cdSSimon Glass	  input. GPIOs can be useful in SPL to enable a 'sign-of-life' LED,
41911bde1cdSSimon Glass	  for example. Enable this option to build the drivers in
42011bde1cdSSimon Glass	  drivers/gpio as part of an SPL build.
42111bde1cdSSimon Glass
42211bde1cdSSimon Glassconfig SPL_I2C_SUPPORT
42311bde1cdSSimon Glass	bool "Support I2C"
42411bde1cdSSimon Glass	help
42511bde1cdSSimon Glass	  Enable support for the I2C (Inter-Integrated Circuit) bus in SPL.
42611bde1cdSSimon Glass	  I2C works with a clock and data line which can be driven by a
42711bde1cdSSimon Glass	  one or more masters or slaves. It is a fairly complex bus but is
42811bde1cdSSimon Glass	  widely used as it only needs two lines for communication. Speeds of
42911bde1cdSSimon Glass	  400kbps are typical but up to 3.4Mbps is supported by some
43011bde1cdSSimon Glass	  hardware. I2C can be useful in SPL to configure power management
43111bde1cdSSimon Glass	  ICs (PMICs) before raising the CPU clock speed, for example.
43211bde1cdSSimon Glass	  Enable this option to build the drivers in drivers/i2c as part of
43311bde1cdSSimon Glass	  an SPL build.
43411bde1cdSSimon Glass
43511bde1cdSSimon Glassconfig SPL_LIBCOMMON_SUPPORT
43611bde1cdSSimon Glass	bool "Support common libraries"
43711bde1cdSSimon Glass	help
43811bde1cdSSimon Glass	  Enable support for common U-Boot libraries within SPL. These
43911bde1cdSSimon Glass	  libraries include common code to deal with U-Boot images,
44011bde1cdSSimon Glass	  environment and USB, for example. This option is enabled on many
44111bde1cdSSimon Glass	  boards. Enable this option to build the code in common/ as part of
44211bde1cdSSimon Glass	  an SPL build.
44311bde1cdSSimon Glass
44411bde1cdSSimon Glassconfig SPL_LIBDISK_SUPPORT
44511bde1cdSSimon Glass	bool "Support disk paritions"
44611bde1cdSSimon Glass	help
44711bde1cdSSimon Glass	  Enable support for disk partitions within SPL. 'Disk' is something
44811bde1cdSSimon Glass	  of a misnomer as it includes non-spinning media such as flash (as
44911bde1cdSSimon Glass	  used in MMC and USB sticks). Partitions provide a way for a disk
45011bde1cdSSimon Glass	  to be split up into separate regions, with a partition table placed
45111bde1cdSSimon Glass	  at the start or end which describes the location and size of each
45211bde1cdSSimon Glass	  'partition'. These partitions are typically uses as individual block
45311bde1cdSSimon Glass	  devices, typically with an EXT2 or FAT filesystem in each. This
45411bde1cdSSimon Glass	  option enables whatever partition support has been enabled in
45511bde1cdSSimon Glass	  U-Boot to also be used in SPL. It brings in the code in disk/.
45611bde1cdSSimon Glass
45711bde1cdSSimon Glassconfig SPL_LIBGENERIC_SUPPORT
45811bde1cdSSimon Glass	bool "Support generic libraries"
45911bde1cdSSimon Glass	help
46011bde1cdSSimon Glass	  Enable support for generic U-Boot libraries within SPL. These
46111bde1cdSSimon Glass	  libraries include generic code to deal with device tree, hashing,
46211bde1cdSSimon Glass	  printf(), compression and the like. This option is enabled on many
46311bde1cdSSimon Glass	  boards. Enable this option to build the code in lib/ as part of an
46411bde1cdSSimon Glass	  SPL build.
46511bde1cdSSimon Glass
46611bde1cdSSimon Glassconfig SPL_MMC_SUPPORT
46711bde1cdSSimon Glass	bool "Support MMC"
468226498b8STom Rini	depends on MMC
46911bde1cdSSimon Glass	help
47011bde1cdSSimon Glass	  Enable support for MMC (Multimedia Card) within SPL. This enables
47111bde1cdSSimon Glass	  the MMC protocol implementation and allows any enabled drivers to
47211bde1cdSSimon Glass	  be used within SPL. MMC can be used with or without disk partition
47311bde1cdSSimon Glass	  support depending on the application (SPL_LIBDISK_SUPPORT). Enable
47411bde1cdSSimon Glass	  this option to build the drivers in drivers/mmc as part of an SPL
47511bde1cdSSimon Glass	  build.
47611bde1cdSSimon Glass
4779127fbf4SJean-Jacques Hiblotconfig SPL_MMC_WRITE
4789127fbf4SJean-Jacques Hiblot	bool "MMC/SD/SDIO card support for write operations in SPL"
4799127fbf4SJean-Jacques Hiblot	depends on SPL_MMC_SUPPORT
4809127fbf4SJean-Jacques Hiblot	default n
4819127fbf4SJean-Jacques Hiblot	help
4829127fbf4SJean-Jacques Hiblot	  Enable write access to MMC and SD Cards in SPL
4839127fbf4SJean-Jacques Hiblot
4849127fbf4SJean-Jacques Hiblot
48511bde1cdSSimon Glassconfig SPL_MPC8XXX_INIT_DDR_SUPPORT
48611bde1cdSSimon Glass	bool "Support MPC8XXX DDR init"
48711bde1cdSSimon Glass	help
48811bde1cdSSimon Glass	  Enable support for DDR-SDRAM (double-data-rate synchronous dynamic
48911bde1cdSSimon Glass	  random-access memory) on the MPC8XXX family within SPL. This
49011bde1cdSSimon Glass	  allows DRAM to be set up before loading U-Boot into that DRAM,
49111bde1cdSSimon Glass	  where it can run.
49211bde1cdSSimon Glass
49311bde1cdSSimon Glassconfig SPL_MTD_SUPPORT
49411bde1cdSSimon Glass	bool "Support MTD drivers"
49511bde1cdSSimon Glass	help
49611bde1cdSSimon Glass	  Enable support for MTD (Memory Technology Device) within SPL. MTD
49711bde1cdSSimon Glass	  provides a block interface over raw NAND and can also be used with
49811bde1cdSSimon Glass	  SPI flash. This allows SPL to load U-Boot from supported MTD
49911bde1cdSSimon Glass	  devices. See SPL_NAND_SUPPORT and SPL_ONENAND_SUPPORT for how
50011bde1cdSSimon Glass	  to enable specific MTD drivers.
50111bde1cdSSimon Glass
5023b1ddd14SJason Zhuconfig MTD_BLK_U_BOOT_OFFS
5033b1ddd14SJason Zhu	hex "Location in MTD block to read U-Boot from"
5043b1ddd14SJason Zhu	default 0x4000
5053b1ddd14SJason Zhu	depends on SPL_MTD_SUPPORT
5063b1ddd14SJason Zhu	help
5073b1ddd14SJason Zhu	  Set the offset from the start of the nand,spi nand and nor flash where
5083b1ddd14SJason Zhu	  u-boot should be loaded from.
5093b1ddd14SJason Zhu
510a0166cc6SJason Zhuconfig SPL_MTD_WRITE
511a0166cc6SJason Zhu	bool "nand & spi nand & spi nor support for write operations in SPL"
512a0166cc6SJason Zhu	depends on SPL_MTD_SUPPORT
513a0166cc6SJason Zhu	default n
514a0166cc6SJason Zhu	help
515a0166cc6SJason Zhu	  Enable write access to nand & spi nand & spi nor in SPL
516a0166cc6SJason Zhu
51711bde1cdSSimon Glassconfig SPL_MUSB_NEW_SUPPORT
51811bde1cdSSimon Glass	bool "Support new Mentor Graphics USB"
51911bde1cdSSimon Glass	help
52011bde1cdSSimon Glass	  Enable support for Mentor Graphics USB in SPL. This is a new
52111bde1cdSSimon Glass	  driver used by some boards. Enable this option to build
52211bde1cdSSimon Glass	  the drivers in drivers/usb/musb-new as part of an SPL build. The
52311bde1cdSSimon Glass	  old drivers are in drivers/usb/musb.
52411bde1cdSSimon Glass
52511bde1cdSSimon Glassconfig SPL_NAND_SUPPORT
52611bde1cdSSimon Glass	bool "Support NAND flash"
52711bde1cdSSimon Glass	help
52811bde1cdSSimon Glass	  Enable support for NAND (Negative AND) flash in SPL. NAND flash
52911bde1cdSSimon Glass	  can be used to allow SPL to load U-Boot from supported devices.
530cfcc706cSMiquel Raynal	  This enables the drivers in drivers/mtd/nand/raw as part of an SPL
53111bde1cdSSimon Glass	  build.
53211bde1cdSSimon Glass
53311bde1cdSSimon Glassconfig SPL_NET_SUPPORT
53411bde1cdSSimon Glass	bool "Support networking"
53511bde1cdSSimon Glass	help
53611bde1cdSSimon Glass	  Enable support for network devices (such as Ethernet) in SPL.
53711bde1cdSSimon Glass	  This permits SPL to load U-Boot over a network link rather than
53811bde1cdSSimon Glass	  from an on-board peripheral. Environment support is required since
53911bde1cdSSimon Glass	  the network stack uses a number of environment variables. See also
54011bde1cdSSimon Glass	  SPL_ETH_SUPPORT.
54111bde1cdSSimon Glass
54211bde1cdSSimon Glassif SPL_NET_SUPPORT
54311bde1cdSSimon Glassconfig SPL_NET_VCI_STRING
54411bde1cdSSimon Glass	string "BOOTP Vendor Class Identifier string sent by SPL"
54511bde1cdSSimon Glass	help
54611bde1cdSSimon Glass	  As defined by RFC 2132 the vendor class identifier field can be
54711bde1cdSSimon Glass	  sent by the client to identify the vendor type and configuration
54811bde1cdSSimon Glass	  of a client.  This is often used in practice to allow for the DHCP
54911bde1cdSSimon Glass	  server to specify different files to load depending on if the ROM,
55011bde1cdSSimon Glass	  SPL or U-Boot itself makes the request
55111bde1cdSSimon Glassendif   # if SPL_NET_SUPPORT
55211bde1cdSSimon Glass
55311bde1cdSSimon Glassconfig SPL_NO_CPU_SUPPORT
55411bde1cdSSimon Glass	bool "Drop CPU code in SPL"
55511bde1cdSSimon Glass	help
55611bde1cdSSimon Glass	  This is specific to the ARM926EJ-S CPU. It disables the standard
55711bde1cdSSimon Glass	  start.S start-up code, presumably so that a replacement can be
55811bde1cdSSimon Glass	  used on that CPU. You should not enable it unless you know what
55911bde1cdSSimon Glass	  you are doing.
56011bde1cdSSimon Glass
56111bde1cdSSimon Glassconfig SPL_NOR_SUPPORT
56211bde1cdSSimon Glass	bool "Support NOR flash"
56311bde1cdSSimon Glass	help
56411bde1cdSSimon Glass	  Enable support for loading U-Boot from memory-mapped NOR (Negative
56511bde1cdSSimon Glass	  OR) flash in SPL. NOR flash is slow to write but fast to read, and
56611bde1cdSSimon Glass	  a memory-mapped device makes it very easy to access. Loading from
56711bde1cdSSimon Glass	  NOR is typically achieved with just a memcpy().
56811bde1cdSSimon Glass
569c6d9e9dbSVikas Manochaconfig SPL_XIP_SUPPORT
570c6d9e9dbSVikas Manocha	bool "Support XIP"
571c6d9e9dbSVikas Manocha	depends on SPL
572c6d9e9dbSVikas Manocha	help
573c6d9e9dbSVikas Manocha	  Enable support for execute in place of U-Boot or kernel image. There
574c6d9e9dbSVikas Manocha	  is no need to copy image from flash to ram if flash supports execute
575c6d9e9dbSVikas Manocha	  in place. Its very useful in systems having enough flash but not
576c6d9e9dbSVikas Manocha	  enough ram to load the image.
577c6d9e9dbSVikas Manocha
57811bde1cdSSimon Glassconfig SPL_ONENAND_SUPPORT
57911bde1cdSSimon Glass	bool "Support OneNAND flash"
58011bde1cdSSimon Glass	help
58111bde1cdSSimon Glass	  Enable support for OneNAND (Negative AND) flash in SPL. OneNAND is
58211bde1cdSSimon Glass	  a type of NAND flash and therefore can be used to allow SPL to
58311bde1cdSSimon Glass	  load U-Boot from supported devices. This enables the drivers in
58411bde1cdSSimon Glass	  drivers/mtd/onenand as part of an SPL build.
58511bde1cdSSimon Glass
586c20ae2ffSHeiko Schocherconfig SPL_OS_BOOT
587c20ae2ffSHeiko Schocher	bool "Activate Falcon Mode"
588226498b8STom Rini	depends on !TI_SECURE_DEVICE
589c20ae2ffSHeiko Schocher	default n
590c20ae2ffSHeiko Schocher	help
591c20ae2ffSHeiko Schocher	  Enable booting directly to an OS from SPL.
592c20ae2ffSHeiko Schocher	  for more info read doc/README.falcon
593c20ae2ffSHeiko Schocher
59429d3bc79SHeiko Schocherif SPL_OS_BOOT
59529d3bc79SHeiko Schocherconfig SYS_OS_BASE
59629d3bc79SHeiko Schocher	hex "addr, where OS is found"
597226498b8STom Rini	depends on SPL_NOR_SUPPORT
59829d3bc79SHeiko Schocher	help
59929d3bc79SHeiko Schocher	  Specify the address, where the OS image is found, which
60029d3bc79SHeiko Schocher	  gets booted.
60129d3bc79SHeiko Schocher
60229d3bc79SHeiko Schocherendif # SPL_OS_BOOT
60329d3bc79SHeiko Schocher
6042446b6b8SSimon Glassconfig SPL_PCI_SUPPORT
6052446b6b8SSimon Glass	bool "Support PCI drivers"
6062446b6b8SSimon Glass	help
6072446b6b8SSimon Glass	  Enable support for PCI in SPL. For platforms that need PCI to boot,
6082446b6b8SSimon Glass	  or must perform some init using PCI in SPL, this provides the
6092446b6b8SSimon Glass	  necessary driver support. This enables the drivers in drivers/pci
6102446b6b8SSimon Glass	  as part of an SPL build.
6112446b6b8SSimon Glass
612bbe41abfSSimon Glassconfig SPL_PCH_SUPPORT
613bbe41abfSSimon Glass	bool "Support PCH drivers"
614bbe41abfSSimon Glass	help
615bbe41abfSSimon Glass	  Enable support for PCH (Platform Controller Hub) devices in SPL.
616bbe41abfSSimon Glass	  These are used to set up GPIOs and the SPI peripheral early in
617bbe41abfSSimon Glass	  boot. This enables the drivers in drivers/pch as part of an SPL
618bbe41abfSSimon Glass	  build.
619bbe41abfSSimon Glass
6204c8e468bSKever Yangconfig SPL_PCIE_EP_SUPPORT
6214c8e468bSKever Yang	bool "Support loading from PCIE EP"
6224c8e468bSKever Yang	help
6234c8e468bSKever Yang	  Enable support for PCIE EP driver in SPL. The RC will download the
6244c8e468bSKever Yang	  image as a RAM partition for firmware.
6254c8e468bSKever Yang
62611bde1cdSSimon Glassconfig SPL_POST_MEM_SUPPORT
62711bde1cdSSimon Glass	bool "Support POST drivers"
62811bde1cdSSimon Glass	help
62911bde1cdSSimon Glass	  Enable support for POST (Power-on Self Test) in SPL. POST is a
63011bde1cdSSimon Glass	  procedure that checks that the hardware (CPU or board) appears to
63111bde1cdSSimon Glass	  be functionally correctly. It is a sanity check that can be
63211bde1cdSSimon Glass	  performed before booting. This enables the drivers in post/drivers
63311bde1cdSSimon Glass	  as part of an SPL build.
63411bde1cdSSimon Glass
63511bde1cdSSimon Glassconfig SPL_POWER_SUPPORT
63611bde1cdSSimon Glass	bool "Support power drivers"
63711bde1cdSSimon Glass	help
63811bde1cdSSimon Glass	  Enable support for power control in SPL. This includes support
63911bde1cdSSimon Glass	  for PMICs (Power-management Integrated Circuits) and some of the
64011bde1cdSSimon Glass	  features provided by PMICs. In particular, voltage regulators can
64111bde1cdSSimon Glass	  be used to enable/disable power and vary its voltage. That can be
64211bde1cdSSimon Glass	  useful in SPL to turn on boot peripherals and adjust CPU voltage
64311bde1cdSSimon Glass	  so that the clock speed can be increased. This enables the drivers
64411bde1cdSSimon Glass	  in drivers/power, drivers/power/pmic and drivers/power/regulator
64511bde1cdSSimon Glass	  as part of an SPL build.
64611bde1cdSSimon Glass
647cc668fbcSJason Zhuconfig SPL_PWM_SUPPORT
648cc668fbcSJason Zhu	bool "Support PWM driver"
649cc668fbcSJason Zhu	depends on SPL
650cc668fbcSJason Zhu	help
651cc668fbcSJason Zhu	  Enable support for pwm in SPL. This allows use pwm to control
652cc668fbcSJason Zhu	  somethings, for example control voltage.
653cc668fbcSJason Zhu
65422802f4eSStefan Agnerconfig SPL_RAM_SUPPORT
65522802f4eSStefan Agner	bool "Support booting from RAM"
65622802f4eSStefan Agner	default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
65722802f4eSStefan Agner	help
65822802f4eSStefan Agner	  Enable booting of an image in RAM. The image can be preloaded or
65922802f4eSStefan Agner	  it can be loaded by SPL directly into RAM (e.g. using USB).
66022802f4eSStefan Agner
661f417d40fSStefan Agnerconfig SPL_RAM_DEVICE
662f417d40fSStefan Agner	bool "Support booting from preloaded image in RAM"
66322802f4eSStefan Agner	depends on SPL_RAM_SUPPORT
664c4bf7455SJoseph Chen	default y if ARCH_ROCKCHIP || MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
665f417d40fSStefan Agner	help
666f417d40fSStefan Agner	  Enable booting of an image already loaded in RAM. The image has to
667f417d40fSStefan Agner	  be already in memory when SPL takes over, e.g. loaded by the boot
668f417d40fSStefan Agner	  ROM.
669f417d40fSStefan Agner
67030bf8a0dSSimon Glassconfig SPL_RTC_SUPPORT
67130bf8a0dSSimon Glass	bool "Support RTC drivers"
67230bf8a0dSSimon Glass	help
67330bf8a0dSSimon Glass	  Enable RTC (Real-time Clock) support in SPL. This includes support
67430bf8a0dSSimon Glass	  for reading and setting the time. Some RTC devices also have some
67530bf8a0dSSimon Glass	  non-volatile (battery-backed) memory which is accessible if
67630bf8a0dSSimon Glass	  needed. This enables the drivers in drivers/rtc as part of an SPL
67730bf8a0dSSimon Glass	  build.
67830bf8a0dSSimon Glass
67911bde1cdSSimon Glassconfig SPL_SATA_SUPPORT
68011bde1cdSSimon Glass	bool "Support loading from SATA"
68111bde1cdSSimon Glass	help
68211bde1cdSSimon Glass	  Enable support for SATA (Serial AT attachment) in SPL. This allows
68311bde1cdSSimon Glass	  use of SATA devices such as hard drives and flash drivers for
68411bde1cdSSimon Glass	  loading U-Boot. SATA is used in higher-end embedded systems and
68511bde1cdSSimon Glass	  can provide higher performance than MMC , at somewhat higher
68611bde1cdSSimon Glass	  expense and power consumption. This enables loading from SATA
68711bde1cdSSimon Glass	  using a configured device.
68811bde1cdSSimon Glass
689f749a034SYifeng Zhaoconfig SPL_UFS_SUPPORT
690f749a034SYifeng Zhao	bool "Support loading from UFS"
691f749a034SYifeng Zhao	help
692f749a034SYifeng Zhao	  Enable support for UFS in SPL. This allows
693f749a034SYifeng Zhao	  use of UFS devices such as hard drives and flash drivers for
694f749a034SYifeng Zhao	  loading U-Boot.
695f749a034SYifeng Zhao
696f749a034SYifeng Zhaoconfig SYS_UFS_RAW_MODE_U_BOOT_SECTOR
697f749a034SYifeng Zhao	hex "Address on the UFS to load U-Boot from"
698f749a034SYifeng Zhao	depends on SPL_UFS_SUPPORT
699f749a034SYifeng Zhao	default 0x4000
700f749a034SYifeng Zhao	help
701f749a034SYifeng Zhao	  Address on the block device to load U-Boot from,
702f749a034SYifeng Zhao	  Units: UFS sectors (1 sector = 512 bytes).
703f749a034SYifeng Zhao
70411bde1cdSSimon Glassconfig SPL_SERIAL_SUPPORT
70511bde1cdSSimon Glass	bool "Support serial"
70611bde1cdSSimon Glass	help
70711bde1cdSSimon Glass	  Enable support for serial in SPL. This allows use of a serial UART
70811bde1cdSSimon Glass	  for displaying messages while SPL is running. It also brings in
70911bde1cdSSimon Glass	  printf() and panic() functions. This should normally be enabled
71011bde1cdSSimon Glass	  unless there are space reasons not to. Even then, consider
71111bde1cdSSimon Glass	  enabling USE_TINY_PRINTF which is a small printf() version.
71211bde1cdSSimon Glass
71311bde1cdSSimon Glassconfig SPL_SPI_FLASH_SUPPORT
71411bde1cdSSimon Glass	bool "Support SPI flash drivers"
71511bde1cdSSimon Glass	help
71611bde1cdSSimon Glass	  Enable support for using SPI flash in SPL, and loading U-Boot from
71711bde1cdSSimon Glass	  SPI flash. SPI flash (Serial Peripheral Bus flash) is named after
71811bde1cdSSimon Glass	  the SPI bus that is used to connect it to a system. It is a simple
71911bde1cdSSimon Glass	  but fast bidirectional 4-wire bus (clock, chip select and two data
72011bde1cdSSimon Glass	  lines). This enables the drivers in drivers/mtd/spi as part of an
72111bde1cdSSimon Glass	  SPL build. This normally requires SPL_SPI_SUPPORT.
72211bde1cdSSimon Glass
723ffc35703SYifeng Zhaoconfig SPL_RKNAND_SUPPORT
724ffc35703SYifeng Zhao	bool "Rockchip NAND FLASH device support"
725ffc35703SYifeng Zhao	depends on BLK
726ffc35703SYifeng Zhao	select RKNAND
727ffc35703SYifeng Zhao	select ZFTL if (ROCKCHIP_PX30 || ROCKCHIP_RK3568)
728ffc35703SYifeng Zhao	help
729ffc35703SYifeng Zhao	  This option enables support for Rockchip NAND FLASH devices.
730ffc35703SYifeng Zhao	  It supports block interface(with rk ftl) to read and write NAND FLASH.
731ffc35703SYifeng Zhao
732ffc35703SYifeng Zhaoconfig RKNAND_BLK_U_BOOT_OFFS
733ffc35703SYifeng Zhao	hex "Location in RKNAND block to read U-Boot from"
734ffc35703SYifeng Zhao	default 0x4000
735ffc35703SYifeng Zhao	depends on SPL_RKNAND_SUPPORT
736ffc35703SYifeng Zhao	help
737ffc35703SYifeng Zhao	  Set the offset from the start of the rknand device where
738ffc35703SYifeng Zhao	  u-boot should be loaded from.
739ffc35703SYifeng Zhao
7402359fc6fSVignesh Rif SPL_SPI_FLASH_SUPPORT
7412359fc6fSVignesh R
742da748245SVignesh Rconfig SPL_SPI_FLASH_TINY
743da748245SVignesh R	bool "Enable low footprint SPL SPI Flash support"
744da748245SVignesh R	depends on !SPI_FLASH_BAR
745da748245SVignesh R	help
746da748245SVignesh R	 Enable lightweight SPL SPI Flash support that supports just reading
747da748245SVignesh R	 data/images from flash. No support to write/erase flash. Enable
748da748245SVignesh R	 this if you have SPL size limitations and don't need full
749da748245SVignesh R	 fledged SPI flash support.
750da748245SVignesh R
7512359fc6fSVignesh Rconfig SPL_SPI_FLASH_SFDP_SUPPORT
7522359fc6fSVignesh R	bool "SFDP table parsing support for SPI NOR flashes"
753da748245SVignesh R	depends on !SPI_FLASH_BAR && !SPL_SPI_FLASH_TINY
7542359fc6fSVignesh R	help
7552359fc6fSVignesh R	 Enable support for parsing and auto discovery of parameters for
7562359fc6fSVignesh R	 SPI NOR flashes using Serial Flash Discoverable Parameters (SFDP)
7572359fc6fSVignesh R	 tables as per JESD216 standard in SPL.
7582359fc6fSVignesh R
7592359fc6fSVignesh Rconfig SPL_SPI_LOAD
7602359fc6fSVignesh R	bool "Support loading from SPI flash"
7612359fc6fSVignesh R	help
7622359fc6fSVignesh R	  Enable support for loading next stage, U-Boot or otherwise, from
7632359fc6fSVignesh R	  SPI NOR in U-Boot SPL.
7642359fc6fSVignesh R
7652359fc6fSVignesh Rendif # SPL_SPI_FLASH_SUPPORT
7662359fc6fSVignesh R
76711bde1cdSSimon Glassconfig SPL_SPI_SUPPORT
76811bde1cdSSimon Glass	bool "Support SPI drivers"
76911bde1cdSSimon Glass	help
77011bde1cdSSimon Glass	  Enable support for using SPI in SPL. This is used for connecting
77111bde1cdSSimon Glass	  to SPI flash for loading U-Boot. See SPL_SPI_FLASH_SUPPORT for
77211bde1cdSSimon Glass	  more details on that. The SPI driver provides the transport for
77311bde1cdSSimon Glass	  data between the SPI flash and the CPU. This option can be used to
77411bde1cdSSimon Glass	  enable SPI drivers that are needed for other purposes also, such
77511bde1cdSSimon Glass	  as a SPI PMIC.
77611bde1cdSSimon Glass
77711bde1cdSSimon Glassconfig SPL_USB_HOST_SUPPORT
77811bde1cdSSimon Glass	bool "Support USB host drivers"
77911bde1cdSSimon Glass	help
78011bde1cdSSimon Glass	  Enable access to USB (Universal Serial Bus) host devices so that
78111bde1cdSSimon Glass	  SPL can load U-Boot from a connected USB peripheral, such as a USB
78211bde1cdSSimon Glass	  flash stick. While USB takes a little longer to start up than most
78311bde1cdSSimon Glass	  buses, it is very flexible since many different types of storage
78411bde1cdSSimon Glass	  device can be attached. This option enables the drivers in
78511bde1cdSSimon Glass	  drivers/usb/host as part of an SPL build.
78611bde1cdSSimon Glass
78711bde1cdSSimon Glassconfig SPL_USB_SUPPORT
78811bde1cdSSimon Glass	bool "Support loading from USB"
78911bde1cdSSimon Glass	depends on SPL_USB_HOST_SUPPORT
79011bde1cdSSimon Glass	help
79111bde1cdSSimon Glass	  Enable support for USB devices in SPL. This allows use of USB
79211bde1cdSSimon Glass	  devices such as hard drives and flash drivers for loading U-Boot.
79311bde1cdSSimon Glass	  The actual drivers are enabled separately using the normal U-Boot
79411bde1cdSSimon Glass	  config options. This enables loading from USB using a configured
79511bde1cdSSimon Glass	  device.
79611bde1cdSSimon Glass
797eccca8a3SJean-Jacques Hiblotconfig SPL_USB_GADGET
798e94793c8SStefan Agner	bool "Suppport USB Gadget drivers"
799e94793c8SStefan Agner	help
800e94793c8SStefan Agner	  Enable USB Gadget API which allows to enable USB device functions
801e94793c8SStefan Agner	  in SPL.
802e94793c8SStefan Agner
803eccca8a3SJean-Jacques Hiblotif SPL_USB_GADGET
804e94793c8SStefan Agner
805e94793c8SStefan Agnerconfig SPL_USBETH_SUPPORT
806e94793c8SStefan Agner	bool "Support USB Ethernet drivers"
807e94793c8SStefan Agner	help
808e94793c8SStefan Agner	  Enable access to the USB network subsystem and associated
809e94793c8SStefan Agner	  drivers in SPL. This permits SPL to load U-Boot over a
810e94793c8SStefan Agner	  USB-connected Ethernet link (such as a USB Ethernet dongle) rather
811e94793c8SStefan Agner	  than from an onboard peripheral. Environment support is required
812e94793c8SStefan Agner	  since the network stack uses a number of environment variables.
813e94793c8SStefan Agner	  See also SPL_NET_SUPPORT and SPL_ETH_SUPPORT.
814e94793c8SStefan Agner
81509b32b41SAndrew F. Davisconfig SPL_DFU
81609b32b41SAndrew F. Davis	bool "Support DFU (Device Firmware Upgrade)"
8175991703eSStefan Agner	select SPL_HASH_SUPPORT
81866928afbSB, Ravi	select SPL_DFU_NO_RESET
8191b19cbdbSB, Ravi	depends on SPL_RAM_SUPPORT
8205991703eSStefan Agner	help
8215991703eSStefan Agner	  This feature enables the DFU (Device Firmware Upgarde) in SPL with
8225991703eSStefan Agner	  RAM memory device support. The ROM code will load and execute
8235991703eSStefan Agner	  the SPL built with dfu. The user can load binaries (u-boot/kernel) to
8245991703eSStefan Agner	  selected device partition from host-pc using dfu-utils.
8255991703eSStefan Agner	  This feature is useful to flash the binaries to factory or bare-metal
8265991703eSStefan Agner	  boards using USB interface.
8275991703eSStefan Agner
8285991703eSStefan Agnerchoice
8295991703eSStefan Agner	bool "DFU device selection"
83009b32b41SAndrew F. Davis	depends on SPL_DFU
8315991703eSStefan Agner
8325991703eSStefan Agnerconfig SPL_DFU_RAM
8335991703eSStefan Agner	bool "RAM device"
83409b32b41SAndrew F. Davis	depends on SPL_DFU && SPL_RAM_SUPPORT
8355991703eSStefan Agner	help
8365991703eSStefan Agner	 select RAM/DDR memory device for loading binary images
8375991703eSStefan Agner	 (u-boot/kernel) to the selected device partition using
8385991703eSStefan Agner	 DFU and execute the u-boot/kernel from RAM.
8395991703eSStefan Agner
8405991703eSStefan Agnerendchoice
8415991703eSStefan Agner
842a3774c1cSStefan Agnerconfig SPL_USB_SDP_SUPPORT
843a3774c1cSStefan Agner	bool "Support SDP (Serial Download Protocol)"
844a3774c1cSStefan Agner	help
845a3774c1cSStefan Agner	  Enable Serial Download Protocol (SDP) device support in SPL. This
846a3774c1cSStefan Agner	  allows to download images into memory and execute (jump to) them
847a3774c1cSStefan Agner	  using the same protocol as implemented by the i.MX family's boot ROM.
848e94793c8SStefan Agnerendif
849e94793c8SStefan Agner
85011bde1cdSSimon Glassconfig SPL_WATCHDOG_SUPPORT
85111bde1cdSSimon Glass	bool "Support watchdog drivers"
85211bde1cdSSimon Glass	help
85311bde1cdSSimon Glass	  Enable support for watchdog drivers in SPL. A watchdog is
85411bde1cdSSimon Glass	  typically a hardware peripheral which can reset the system when it
85511bde1cdSSimon Glass	  detects no activity for a while (such as a software crash). This
85611bde1cdSSimon Glass	  enables the drivers in drivers/watchdog as part of an SPL build.
85711bde1cdSSimon Glass
85811bde1cdSSimon Glassconfig SPL_YMODEM_SUPPORT
85911bde1cdSSimon Glass	bool "Support loading using Ymodem"
86011bde1cdSSimon Glass	help
86111bde1cdSSimon Glass	  While loading from serial is slow it can be a useful backup when
86211bde1cdSSimon Glass	  there is no other option. The Ymodem protocol provides a reliable
86311bde1cdSSimon Glass	  means of transmitting U-Boot over a serial line for using in SPL,
86411bde1cdSSimon Glass	  with a checksum to ensure correctness.
86511bde1cdSSimon Glass
8669f8888bcSPhilipp Tomsichconfig SPL_ATF
867bcc1726aSKever Yang	bool "Support ARM Trusted Firmware"
868226498b8STom Rini	depends on ARM64
869bcc1726aSKever Yang	help
8704bba5ee7SPhilipp Tomsich	  ATF(ARM Trusted Firmware) is a component for ARM AArch64 which
871bcc1726aSKever Yang	  is loaded by SPL (which is considered as BL2 in ATF terminology).
872bcc1726aSKever Yang	  More detail at: https://github.com/ARM-software/arm-trusted-firmware
873bcc1726aSKever Yang
8741bd2b131SKever Yangconfig SPL_OPTEE_SUPPORT
8751bd2b131SKever Yang	bool "Support OP-TEE Trusted OS"
8761bd2b131SKever Yang	depends on ARM
8771bd2b131SKever Yang	help
8781bd2b131SKever Yang	  OP-TEE is an open source Trusted OS  which is loaded by SPL.
8791bd2b131SKever Yang	  More detail at: https://github.com/OP-TEE/optee_os
8801bd2b131SKever Yang
8814bba5ee7SPhilipp Tomsichconfig SPL_ATF_NO_PLATFORM_PARAM
8824bba5ee7SPhilipp Tomsich        bool "Pass no platform parameter"
8834bba5ee7SPhilipp Tomsich	depends on SPL_ATF
8844bba5ee7SPhilipp Tomsich	help
8854bba5ee7SPhilipp Tomsich	  While we expect to call a pointer to a valid FDT (or NULL)
8864bba5ee7SPhilipp Tomsich	  as the platform parameter to an ATF, some ATF versions are
8874bba5ee7SPhilipp Tomsich	  not U-Boot aware and have an insufficiently robust parameter
8884bba5ee7SPhilipp Tomsich	  validation to gracefully reject a FDT being passed.
8894bba5ee7SPhilipp Tomsich
8904bba5ee7SPhilipp Tomsich	  If this option is enabled, the spl_atf os-type handler will
8914bba5ee7SPhilipp Tomsich	  always pass NULL for the platform parameter.
8924bba5ee7SPhilipp Tomsich
8934bba5ee7SPhilipp Tomsich	  If your ATF is affected, say Y.
8944bba5ee7SPhilipp Tomsich
895099855e2SKever Yangconfig SPL_OPTEE
896099855e2SKever Yang	bool "Support OP-TEE Trusted OS"
897099855e2SKever Yang	depends on ARM
898099855e2SKever Yang	help
899099855e2SKever Yang	  OP-TEE is an open source Trusted OS  which is loaded by SPL.
900099855e2SKever Yang	  More detail at: https://github.com/OP-TEE/optee_os
901099855e2SKever Yang
9020cc16201SJason Zhuconfig SPL_AB
9030cc16201SJason Zhu	bool "Support AB system boot"
904a226b2d4SXuhui Lin	depends on SPL && SPL_LIBDISK_SUPPORT
9050fc24c5cSXuhui Lin	select SPL_MTD_WRITE if SPL_MTD_SUPPORT
9060fc24c5cSXuhui Lin	select SPL_MMC_WRITE if SPL_MMC_SUPPORT
9070cc16201SJason Zhu	help
9080cc16201SJason Zhu	  Enable this config to support AB system boot.
9090cc16201SJason Zhu
91013c5d8ecSJoseph Chenconfig SPL_LOAD_RKFW
91113c5d8ecSJoseph Chen	bool "SPL support load rockchip firmware images"
91213c5d8ecSJoseph Chen	depends on SPL
91313c5d8ecSJoseph Chen	help
91413c5d8ecSJoseph Chen	  This enables SPL support load rockchip firmware images.
91513c5d8ecSJoseph Chen	  Please define both RKFW_TRUST_SECTOR and RKFW_U_BOOT_SECTOR
91613c5d8ecSJoseph Chen	  for trust and U-Boot images.
91713c5d8ecSJoseph Chen
91813c5d8ecSJoseph Chenconfig RKFW_TRUST_SECTOR
91913c5d8ecSJoseph Chen	hex "rockchip trust image load sector"
92013c5d8ecSJoseph Chen	depends on SPL_LOAD_RKFW
92113c5d8ecSJoseph Chen	default 0x6000
92213c5d8ecSJoseph Chen
92313c5d8ecSJoseph Chenconfig RKFW_U_BOOT_SECTOR
92413c5d8ecSJoseph Chen	hex "rockchip uboot image load sector"
92513c5d8ecSJoseph Chen	depends on SPL_LOAD_RKFW
92613c5d8ecSJoseph Chen	default 0x4000
92713c5d8ecSJoseph Chen
928440eb126SJason Zhuconfig RKFW_BOOT_SECTOR
929440eb126SJason Zhu        hex "rockchip boot image load sector"
930440eb126SJason Zhu        depends on SPL_LOAD_RKFW
931440eb126SJason Zhu        default 0xa000
932440eb126SJason Zhu
933a2b9279dSJoseph Chenconfig SPL_KERNEL_BOOT
934a2b9279dSJoseph Chen	bool "Enable boot kernel in SPL"
935a2b9279dSJoseph Chen	depends on SPL
936a2b9279dSJoseph Chen	help
937a2b9279dSJoseph Chen	  Enable boot kernel in SPL.
938a2b9279dSJoseph Chen
939c8d86363SJoseph Chenconfig SPL_KERNEL_BOOT_PREBUILT
940c8d86363SJoseph Chen	bool "Enable boot kernel in SPL with prebuilt program"
941c8d86363SJoseph Chen	depends on SPL_KERNEL_BOOT
942c8d86363SJoseph Chen	default y
943c8d86363SJoseph Chen	help
944c8d86363SJoseph Chen	  Enable boot kernel in SPL with prebuilt program.
945c8d86363SJoseph Chen
946a00b516fSJoseph Chenconfig SPL_KERNEL_BOOT_SECTOR
947a00b516fSJoseph Chen	hex "Sector address to load kernel in SPL"
948a00b516fSJoseph Chen	depends on SPL_KERNEL_BOOT
9494623d13dSWeiwen Chen	depends on !SPL_LIBDISK_SUPPORT
950a00b516fSJoseph Chen	default 0xa000
951a00b516fSJoseph Chen
952f39aacfaSXuhui Linconfig SPL_KERNEL_RAMDISK_SECTOR
953f39aacfaSXuhui Lin	hex "Sector address to load ramdisk in SPL"
954f39aacfaSXuhui Lin	depends on SPL_KERNEL_BOOT
955f39aacfaSXuhui Lin	depends on !SPL_LIBDISK_SUPPORT
956f39aacfaSXuhui Lin	default 0xf000
957f39aacfaSXuhui Lin
958a00b516fSJoseph Chenif SPL_LOAD_RKFW
95949f617a9SJason Zhuconfig SPL_KERNEL_ADDR
96049f617a9SJason Zhu	hex "Kernel load address in spl"
96149f617a9SJason Zhu	depends on SPL
96249f617a9SJason Zhu	default 0x280000
96349f617a9SJason Zhu	help
96449f617a9SJason Zhu	  Define the kernel address where load kernel image to.
96549f617a9SJason Zhu	  This is used to boot kernel in spl.
96649f617a9SJason Zhu
967fcf012f8SJason Zhuconfig SPL_KERNEL_COMPRESS_ADDR
968fcf012f8SJason Zhu	hex "The compressed kernel in spl"
969fcf012f8SJason Zhu	depends on SPL && SPL_ROCKCHIP_HW_DECOMPRESS
970fcf012f8SJason Zhu	help
971fcf012f8SJason Zhu	  Load compressed kernel in this address, then call the
972fcf012f8SJason Zhu	  decompress process to decompress the firmware.
973fcf012f8SJason Zhu
974a6f23aeaSJason Zhuconfig SPL_KERNEL_DECOM_LIMIT_SIZE
975a6f23aeaSJason Zhu        hex "The decompress limit size"
976a6f23aeaSJason Zhu        depends on SPL && SPL_ROCKCHIP_HW_DECOMPRESS
977a6f23aeaSJason Zhu	default 0x1ff8000
978a6f23aeaSJason Zhu        help
979a6f23aeaSJason Zhu          Define kernel maximum decompressible size that prevent
980a6f23aeaSJason Zhu          memory overrun.
981a6f23aeaSJason Zhu
98249f617a9SJason Zhuconfig SPL_FDT_ADDR
98349f617a9SJason Zhu	hex "Device tree blob load address in spl"
98449f617a9SJason Zhu	depends on SPL
98549f617a9SJason Zhu	default 0x01f00000
98649f617a9SJason Zhu	help
98749f617a9SJason Zhu	  Define the fdt address where load dtb image to.
98849f617a9SJason Zhu	  This is used to boot kernel in spl.
98949f617a9SJason Zhu
99049f617a9SJason Zhuconfig SPL_RAMDISK_ADDR
99149f617a9SJason Zhu	hex "Ramdisk load address in spl"
99249f617a9SJason Zhu	depends on SPL
99349f617a9SJason Zhu	default 0x0a200000
99449f617a9SJason Zhu	help
99549f617a9SJason Zhu	  Define the ramdisk address where load ramdisk image to.
99649f617a9SJason Zhu	  This is used to boot kernel in spl.
99749f617a9SJason Zhu
998fcf012f8SJason Zhuconfig SPL_RAMDISK_COMPRESS_ADDR
999fcf012f8SJason Zhu	hex "The compressed ramdisk in spl"
1000fcf012f8SJason Zhu	depends on SPL && SPL_ROCKCHIP_HW_DECOMPRESS
1001fcf012f8SJason Zhu	help
1002fcf012f8SJason Zhu	  Load compressed ramdisk in this address, then call the
1003fcf012f8SJason Zhu	  decompress process to decompress the firmware.
1004fcf012f8SJason Zhu
1005a6f23aeaSJason Zhuconfig SPL_RAMDISK_DECOM_LIMIT_SIZE
1006a6f23aeaSJason Zhu	hex "The decompress limit size"
1007a6f23aeaSJason Zhu	depends on SPL && SPL_ROCKCHIP_HW_DECOMPRESS
1008a6f23aeaSJason Zhu	default 0x3000000
1009a6f23aeaSJason Zhu	help
1010a6f23aeaSJason Zhu	  Define ramdisk maximum decompressible size that prevent
1011a6f23aeaSJason Zhu	  memory overrun.
1012a2b9279dSJoseph Chenendif
1013dd04b7cbSJason Zhu
1014226498b8STom Riniconfig TPL
1015226498b8STom Rini	bool
1016226498b8STom Rini	depends on SUPPORT_TPL
1017226498b8STom Rini	prompt "Enable TPL"
1018226498b8STom Rini	help
1019226498b8STom Rini	  If you want to build TPL as well as the normal image and SPL, say Y.
1020226498b8STom Rini
1021226498b8STom Riniif TPL
1022226498b8STom Rini
102389c73a9cSKever Yangconfig TPL_BOARD_INIT
102489c73a9cSKever Yang	bool "Call board-specific initialization in TPL"
102589c73a9cSKever Yang	help
102689c73a9cSKever Yang	  If this option is enabled, U-Boot will call the function
102789c73a9cSKever Yang	  spl_board_init() from board_init_r(). This function should be
102889c73a9cSKever Yang	  provided by the board.
102989c73a9cSKever Yang
1030dd6fbcb9SPhilipp Tomsichconfig TPL_LDSCRIPT
1031dd6fbcb9SPhilipp Tomsich        string "Linker script for the TPL stage"
1032dd6fbcb9SPhilipp Tomsich	depends on TPL
1033dd6fbcb9SPhilipp Tomsich	help
1034dd6fbcb9SPhilipp Tomsich	  The TPL stage will usually require a different linker-script
1035dd6fbcb9SPhilipp Tomsich	  (as it runs from a different memory region) than the regular
1036dd6fbcb9SPhilipp Tomsich	  U-Boot stage.  Set this to the path of the linker-script to
1037dd6fbcb9SPhilipp Tomsich	  be used for TPL.
1038dd6fbcb9SPhilipp Tomsich
1039b3ed6ce7SPhilipp Tomsich	  May be left empty to trigger the Makefile infrastructure to
1040b3ed6ce7SPhilipp Tomsich	  fall back to the linker-script used for the SPL stage.
1041b3ed6ce7SPhilipp Tomsich
1042b3ed6ce7SPhilipp Tomsichconfig TPL_NEEDS_SEPARATE_TEXT_BASE
1043b3ed6ce7SPhilipp Tomsich        bool "TPL needs a separate text-base"
1044b3ed6ce7SPhilipp Tomsich	default n
1045b3ed6ce7SPhilipp Tomsich	depends on TPL
1046b3ed6ce7SPhilipp Tomsich	help
1047b3ed6ce7SPhilipp Tomsich	  Enable, if the TPL stage should not inherit its text-base
1048b3ed6ce7SPhilipp Tomsich	  from the SPL stage.  When enabled, a base address for the
1049b3ed6ce7SPhilipp Tomsich	  .text sections of the TPL stage has to be set below.
1050b3ed6ce7SPhilipp Tomsich
1051b3ed6ce7SPhilipp Tomsichconfig TPL_NEEDS_SEPARATE_STACK
1052b3ed6ce7SPhilipp Tomsich        bool "TPL needs a separate initial stack-pointer"
1053b3ed6ce7SPhilipp Tomsich	default n
1054b3ed6ce7SPhilipp Tomsich	depends on TPL
1055b3ed6ce7SPhilipp Tomsich	help
1056b3ed6ce7SPhilipp Tomsich	  Enable, if the TPL stage should not inherit its initial
1057b3ed6ce7SPhilipp Tomsich	  stack-pointer from the settings for the SPL stage.
1058b3ed6ce7SPhilipp Tomsich
1059b3ed6ce7SPhilipp Tomsichconfig TPL_TEXT_BASE
1060b3ed6ce7SPhilipp Tomsich        hex "Base address for the .text section of the TPL stage"
1061b3ed6ce7SPhilipp Tomsich	depends on TPL_NEEDS_SEPARATE_TEXT_BASE
1062b3ed6ce7SPhilipp Tomsich	help
1063b3ed6ce7SPhilipp Tomsich	  The base address for the .text section of the TPL stage.
1064b3ed6ce7SPhilipp Tomsich
1065b3ed6ce7SPhilipp Tomsichconfig TPL_MAX_SIZE
1066b3ed6ce7SPhilipp Tomsich        int "Maximum size (in bytes) for the TPL stage"
10675aa49af3SPhilipp Tomsich	default 0
1068b3ed6ce7SPhilipp Tomsich	depends on TPL
1069b3ed6ce7SPhilipp Tomsich	help
1070b3ed6ce7SPhilipp Tomsich	  The maximum size (in bytes) of the TPL stage.
1071b3ed6ce7SPhilipp Tomsich
1072b3ed6ce7SPhilipp Tomsichconfig TPL_STACK
1073b3ed6ce7SPhilipp Tomsich        hex "Address of the initial stack-pointer for the TPL stage"
1074b3ed6ce7SPhilipp Tomsich	depends on TPL_NEEDS_SEPARATE_STACK
1075b3ed6ce7SPhilipp Tomsich	help
1076b3ed6ce7SPhilipp Tomsich	  The address of the initial stack-pointer for the TPL stage.
1077b3ed6ce7SPhilipp Tomsich	  Usually this will be the (aligned) top-of-stack.
1078b3ed6ce7SPhilipp Tomsich
1079a954fa32SPhilipp Tomsichconfig TPL_BOOTROM_SUPPORT
1080a954fa32SPhilipp Tomsich        bool "Support returning to the BOOTROM (from TPL)"
1081a954fa32SPhilipp Tomsich	help
1082a954fa32SPhilipp Tomsich	  Some platforms (e.g. the Rockchip RK3368) provide support in their
1083a954fa32SPhilipp Tomsich	  ROM for loading the next boot-stage after performing basic setup
1084a954fa32SPhilipp Tomsich	  from the TPL stage.
1085a954fa32SPhilipp Tomsich
1086a954fa32SPhilipp Tomsich	  Enable this option, to return to the BOOTROM through the
1087a954fa32SPhilipp Tomsich	  BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
1088a954fa32SPhilipp Tomsich	  boot device list, if not implemented for a given board)
1089a954fa32SPhilipp Tomsich
1090c3916e7bSPhilipp Tomsichconfig TPL_DRIVERS_MISC_SUPPORT
1091c3916e7bSPhilipp Tomsich	bool "Support misc drivers in TPL"
1092c3916e7bSPhilipp Tomsich	help
1093c3916e7bSPhilipp Tomsich	  Enable miscellaneous drivers in TPL. These drivers perform various
1094c3916e7bSPhilipp Tomsich	  tasks that don't fall nicely into other categories, Enable this
1095c3916e7bSPhilipp Tomsich	  option to build the drivers in drivers/misc as part of an TPL
1096c3916e7bSPhilipp Tomsich	  build, for those that support building in TPL (not all drivers do).
1097c3916e7bSPhilipp Tomsich
1098f73329eeSSimon Glassconfig TPL_ENV_SUPPORT
1099f73329eeSSimon Glass	bool "Support an environment"
1100f73329eeSSimon Glass	help
1101f73329eeSSimon Glass	  Enable environment support in TPL. See SPL_ENV_SUPPORT for details.
1102f73329eeSSimon Glass
1103f73329eeSSimon Glassconfig TPL_I2C_SUPPORT
1104f73329eeSSimon Glass	bool "Support I2C"
1105f73329eeSSimon Glass	help
1106616bd09eSPhilipp Tomsich	  Enable support for the I2C bus in TPL. See SPL_I2C_SUPPORT for
1107f73329eeSSimon Glass	  details.
1108f73329eeSSimon Glass
1109f73329eeSSimon Glassconfig TPL_LIBCOMMON_SUPPORT
1110f73329eeSSimon Glass	bool "Support common libraries"
1111f73329eeSSimon Glass	help
1112f73329eeSSimon Glass	  Enable support for common U-Boot libraries within TPL. See
1113f73329eeSSimon Glass	  SPL_LIBCOMMON_SUPPORT for details.
1114f73329eeSSimon Glass
1115f73329eeSSimon Glassconfig TPL_LIBGENERIC_SUPPORT
1116f73329eeSSimon Glass	bool "Support generic libraries"
1117f73329eeSSimon Glass	help
1118f73329eeSSimon Glass	  Enable support for generic U-Boot libraries within TPL. See
1119f73329eeSSimon Glass	  SPL_LIBGENERIC_SUPPORT for details.
1120f73329eeSSimon Glass
1121ba5fd738SYouMin Chenconfig TPL_TINY_FRAMEWORK
112230129f2fSDavid Wu	bool "Support not to use spl framework in TPL"
112330129f2fSDavid Wu	help
112430129f2fSDavid Wu	  Enable support for not using spl framework in TPL, to reduce the TPL size.
112530129f2fSDavid Wu
1126f73329eeSSimon Glassconfig TPL_MPC8XXX_INIT_DDR_SUPPORT
1127f73329eeSSimon Glass	bool "Support MPC8XXX DDR init"
1128f73329eeSSimon Glass	help
1129f73329eeSSimon Glass	  Enable support for DDR-SDRAM on the MPC8XXX family within TPL. See
1130f73329eeSSimon Glass	  SPL_MPC8XXX_INIT_DDR_SUPPORT for details.
1131f73329eeSSimon Glass
1132f73329eeSSimon Glassconfig TPL_MMC_SUPPORT
1133f73329eeSSimon Glass	bool "Support MMC"
1134226498b8STom Rini	depends on MMC
1135f73329eeSSimon Glass	help
1136f73329eeSSimon Glass	  Enable support for MMC within TPL. See SPL_MMC_SUPPORT for details.
1137f73329eeSSimon Glass
1138f73329eeSSimon Glassconfig TPL_NAND_SUPPORT
1139f73329eeSSimon Glass	bool "Support NAND flash"
1140f73329eeSSimon Glass	help
1141616bd09eSPhilipp Tomsich	  Enable support for NAND in TPL. See SPL_NAND_SUPPORT for details.
1142f73329eeSSimon Glass
1143f73329eeSSimon Glassconfig TPL_SERIAL_SUPPORT
1144f73329eeSSimon Glass	bool "Support serial"
1145f73329eeSSimon Glass	help
1146616bd09eSPhilipp Tomsich	  Enable support for serial in TPL. See SPL_SERIAL_SUPPORT for
1147f73329eeSSimon Glass	  details.
1148f73329eeSSimon Glass
1149f73329eeSSimon Glassconfig TPL_SPI_FLASH_SUPPORT
1150f73329eeSSimon Glass	bool "Support SPI flash drivers"
1151f73329eeSSimon Glass	help
1152616bd09eSPhilipp Tomsich	  Enable support for using SPI flash in TPL. See SPL_SPI_FLASH_SUPPORT
1153f73329eeSSimon Glass	  for details.
1154f73329eeSSimon Glass
1155f73329eeSSimon Glassconfig TPL_SPI_SUPPORT
1156f73329eeSSimon Glass	bool "Support SPI drivers"
1157f73329eeSSimon Glass	help
1158616bd09eSPhilipp Tomsich	  Enable support for using SPI in TPL. See SPL_SPI_SUPPORT for
1159f73329eeSSimon Glass	  details.
1160f73329eeSSimon Glass
1161226498b8STom Riniendif # TPL
1162226498b8STom Rini
1163226498b8STom Riniendif # SPL
116411bde1cdSSimon Glassendmenu
1165