• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1menu "Environment"
2
3config ENV_IS_NOWHERE
4	bool "Environment is not stored"
5	default y if !ENV_IS_IN_EEPROM && !ENV_IS_IN_EXT4 && \
6		     !ENV_IS_IN_FAT && !ENV_IS_IN_FLASH && \
7		     !ENV_IS_IN_MMC && !ENV_IS_IN_NAND && \
8		     !ENV_IS_IN_NVRAM && !ENV_IS_IN_ONENAND && \
9		     !ENV_IS_IN_RAW_DISK && !ENV_IS_IN_REMOTE && \
10		     !ENV_IS_IN_SPI_FLASH && !ENV_IS_IN_UBI
11	help
12	  Define this if you don't want to or can't have an environment stored
13	  on a storage medium. In this case the environment will still exist
14	  while U-Boot is running, but once U-Boot exits it will not be
15	  stored. U-Boot will therefore always start up with a default
16	  environment.
17
18config ENV_IS_IN_EEPROM
19	bool "Environment in EEPROM"
20	depends on !CHAIN_OF_TRUST
21	help
22	  Use this if you have an EEPROM or similar serial access
23	  device and a driver for it.
24
25	  - CONFIG_ENV_OFFSET:
26	  - CONFIG_ENV_SIZE:
27
28	  These two #defines specify the offset and size of the
29	  environment area within the total memory of your EEPROM.
30
31	  Note that we consider the length of the address field to
32	  still be one byte because the extra address bits are hidden
33	  in the chip address.
34
35	  - CONFIG_ENV_EEPROM_IS_ON_I2C
36	  define this, if you have I2C and SPI activated, and your
37	  EEPROM, which holds the environment, is on the I2C bus.
38
39	  - CONFIG_I2C_ENV_EEPROM_BUS
40	  if you have an Environment on an EEPROM reached over
41	  I2C muxes, you can define here, how to reach this
42	  EEPROM. For example:
43
44	  #define CONFIG_I2C_ENV_EEPROM_BUS	  1
45
46	  EEPROM which holds the environment, is reached over
47	  a pca9547 i2c mux with address 0x70, channel 3.
48
49config ENV_IS_IN_FAT
50	bool "Environment is in a FAT filesystem"
51	depends on !CHAIN_OF_TRUST
52	default y if ARCH_BCM283X
53	default y if ARCH_SUNXI && MMC
54	default y if MMC_OMAP_HS && TI_COMMON_CMD_OPTIONS
55	select FS_FAT
56	select FAT_WRITE
57	help
58	  Define this if you want to use the FAT file system for the environment.
59
60config ENV_IS_IN_EXT4
61	bool "Environment is in a EXT4 filesystem"
62	depends on !CHAIN_OF_TRUST
63	select EXT4_WRITE
64	help
65	  Define this if you want to use the EXT4 file system for the environment.
66
67config ENV_IS_IN_RAW_DISK
68	bool "Environment is in a raw partition on a hard disk"
69	depends on !CHAIN_OF_TRUST
70	help
71	  Define this if you want to use a raw disk or partition for the
72	  environment.
73
74config ENV_IS_IN_FLASH
75	bool "Environment in flash memory"
76	depends on !CHAIN_OF_TRUST
77	default y if ARCH_CINTEGRATOR
78	default y if ARCH_INTEGRATOR_CP
79	default y if M548x || M547x || M5282 || MCF547x_8x
80	default y if MCF532x || MCF52x2
81	default y if MPC86xx || MPC83xx
82	default y if ARCH_MPC8572 || ARCH_MPC8548 || ARCH_MPC8641
83	default y if SH && !CPU_SH4
84	help
85	  Define this if you have a flash device which you want to use for the
86	  environment.
87
88	  a) The environment occupies one whole flash sector, which is
89	   "embedded" in the text segment with the U-Boot code. This
90	   happens usually with "bottom boot sector" or "top boot
91	   sector" type flash chips, which have several smaller
92	   sectors at the start or the end. For instance, such a
93	   layout can have sector sizes of 8, 2x4, 16, Nx32 kB. In
94	   such a case you would place the environment in one of the
95	   4 kB sectors - with U-Boot code before and after it. With
96	   "top boot sector" type flash chips, you would put the
97	   environment in one of the last sectors, leaving a gap
98	   between U-Boot and the environment.
99
100	  CONFIG_ENV_OFFSET:
101
102	   Offset of environment data (variable area) to the
103	   beginning of flash memory; for instance, with bottom boot
104	   type flash chips the second sector can be used: the offset
105	   for this sector is given here.
106
107	   CONFIG_ENV_OFFSET is used relative to CONFIG_SYS_FLASH_BASE.
108
109	  CONFIG_ENV_ADDR:
110
111	   This is just another way to specify the start address of
112	   the flash sector containing the environment (instead of
113	   CONFIG_ENV_OFFSET).
114
115	  CONFIG_ENV_SECT_SIZE:
116
117	   Size of the sector containing the environment.
118
119
120	  b) Sometimes flash chips have few, equal sized, BIG sectors.
121	   In such a case you don't want to spend a whole sector for
122	   the environment.
123
124	  CONFIG_ENV_SIZE:
125
126	   If you use this in combination with CONFIG_ENV_IS_IN_FLASH
127	   and CONFIG_ENV_SECT_SIZE, you can specify to use only a part
128	   of this flash sector for the environment. This saves
129	   memory for the RAM copy of the environment.
130
131	   It may also save flash memory if you decide to use this
132	   when your environment is "embedded" within U-Boot code,
133	   since then the remainder of the flash sector could be used
134	   for U-Boot code. It should be pointed out that this is
135	   STRONGLY DISCOURAGED from a robustness point of view:
136	   updating the environment in flash makes it always
137	   necessary to erase the WHOLE sector. If something goes
138	   wrong before the contents has been restored from a copy in
139	   RAM, your target system will be dead.
140
141	  CONFIG_ENV_ADDR_REDUND
142
143	   These settings describe a second storage area used to hold
144	   a redundant copy of the environment data, so that there is
145	   a valid backup copy in case there is a power failure during
146	   a "saveenv" operation.
147
148	  BE CAREFUL! Any changes to the flash layout, and some changes to the
149	  source code will make it necessary to adapt <board>/u-boot.lds*
150	  accordingly!
151
152config ENV_IS_IN_MMC
153	bool "Environment in an MMC device"
154	depends on !CHAIN_OF_TRUST
155	depends on MMC
156	default y if ARCH_EXYNOS4
157	default y if MX6SX || MX7D
158	default y if TEGRA30 || TEGRA124
159	default y if TEGRA_ARMV8_COMMON
160	help
161	  Define this if you have an MMC device which you want to use for the
162	  environment.
163
164	  CONFIG_SYS_MMC_ENV_DEV:
165
166	  Specifies which MMC device the environment is stored in.
167
168	  CONFIG_SYS_MMC_ENV_PART (optional):
169
170	  Specifies which MMC partition the environment is stored in. If not
171	  set, defaults to partition 0, the user area. Common values might be
172	  1 (first MMC boot partition), 2 (second MMC boot partition).
173
174	  CONFIG_ENV_OFFSET:
175	  CONFIG_ENV_SIZE:
176
177	  These two #defines specify the offset and size of the environment
178	  area within the specified MMC device.
179
180	  If offset is positive (the usual case), it is treated as relative to
181	  the start of the MMC partition. If offset is negative, it is treated
182	  as relative to the end of the MMC partition. This can be useful if
183	  your board may be fitted with different MMC devices, which have
184	  different sizes for the MMC partitions, and you always want the
185	  environment placed at the very end of the partition, to leave the
186	  maximum possible space before it, to store other data.
187
188	  These two values are in units of bytes, but must be aligned to an
189	  MMC sector boundary.
190
191	  CONFIG_ENV_OFFSET_REDUND (optional):
192
193	  Specifies a second storage area, of CONFIG_ENV_SIZE size, used to
194	  hold a redundant copy of the environment data. This provides a
195	  valid backup copy in case the other copy is corrupted, e.g. due
196	  to a power failure during a "saveenv" operation.
197
198	  This value may also be positive or negative; this is handled in the
199	  same way as CONFIG_ENV_OFFSET.
200
201	  This value is also in units of bytes, but must also be aligned to
202	  an MMC sector boundary.
203
204config ENV_IS_IN_NAND
205	bool "Environment in a NAND device"
206	depends on !CHAIN_OF_TRUST
207	help
208	  Define this if you have a NAND device which you want to use for the
209	  environment.
210
211	  - CONFIG_ENV_OFFSET:
212	  - CONFIG_ENV_SIZE:
213
214	  These two #defines specify the offset and size of the environment
215	  area within the first NAND device.  CONFIG_ENV_OFFSET must be
216	  aligned to an erase block boundary.
217
218	  - CONFIG_ENV_OFFSET_REDUND (optional):
219
220	  This setting describes a second storage area of CONFIG_ENV_SIZE
221	  size used to hold a redundant copy of the environment data, so
222	  that there is a valid backup copy in case there is a power failure
223	  during a "saveenv" operation.	 CONFIG_ENV_OFFSET_REDUND must be
224	  aligned to an erase block boundary.
225
226	  - CONFIG_ENV_RANGE (optional):
227
228	  Specifies the length of the region in which the environment
229	  can be written.  This should be a multiple of the NAND device's
230	  block size.  Specifying a range with more erase blocks than
231	  are needed to hold CONFIG_ENV_SIZE allows bad blocks within
232	  the range to be avoided.
233
234	  - CONFIG_ENV_OFFSET_OOB (optional):
235
236	  Enables support for dynamically retrieving the offset of the
237	  environment from block zero's out-of-band data.  The
238	  "nand env.oob" command can be used to record this offset.
239	  Currently, CONFIG_ENV_OFFSET_REDUND is not supported when
240	  using CONFIG_ENV_OFFSET_OOB.
241
242config ENV_IS_IN_NVRAM
243	bool "Environment in a non-volatile RAM"
244	depends on !CHAIN_OF_TRUST
245	help
246	  Define this if you have some non-volatile memory device
247	  (NVRAM, battery buffered SRAM) which you want to use for the
248	  environment.
249
250	  - CONFIG_ENV_ADDR:
251	  - CONFIG_ENV_SIZE:
252
253	  These two #defines are used to determine the memory area you
254	  want to use for environment. It is assumed that this memory
255	  can just be read and written to, without any special
256	  provision.
257
258config ENV_IS_IN_ONENAND
259	bool "Environment is in OneNAND"
260	depends on !CHAIN_OF_TRUST
261	help
262	  Define this if you want to put your local device's environment in
263	  OneNAND.
264
265	  - CONFIG_ENV_ADDR:
266	  - CONFIG_ENV_SIZE:
267
268	  These two #defines are used to determine the device range you
269	  want to use for environment. It is assumed that this memory
270	  can just be read and written to, without any special
271	  provision.
272
273config ENV_IS_IN_REMOTE
274	bool "Environment is in remote memory space"
275	depends on !CHAIN_OF_TRUST
276	help
277	  Define this if you have a remote memory space which you
278	  want to use for the local device's environment.
279
280	  - CONFIG_ENV_ADDR:
281	  - CONFIG_ENV_SIZE:
282
283	  These two #defines specify the address and size of the
284	  environment area within the remote memory space. The
285	  local device can get the environment from remote memory
286	  space by SRIO or PCIE links.
287
288config ENV_IS_IN_SPI_FLASH
289	bool "Environment is in SPI flash"
290	depends on !CHAIN_OF_TRUST && SPI
291	default y if ARMADA_XP
292	default y if INTEL_BAYTRAIL
293	default y if INTEL_BRASWELL
294	default y if INTEL_BROADWELL
295	default y if NORTHBRIDGE_INTEL_IVYBRIDGE
296	default y if INTEL_QUARK
297	default y if INTEL_QUEENSBAY
298	help
299	  Define this if you have a SPI Flash memory device which you
300	  want to use for the environment.
301
302	  - CONFIG_ENV_OFFSET:
303	  - CONFIG_ENV_SIZE:
304
305	  These two #defines specify the offset and size of the
306	  environment area within the SPI Flash. CONFIG_ENV_OFFSET must be
307	  aligned to an erase sector boundary.
308
309	  - CONFIG_ENV_SECT_SIZE:
310
311	  Define the SPI flash's sector size.
312
313	  - CONFIG_ENV_OFFSET_REDUND (optional):
314
315	  This setting describes a second storage area of CONFIG_ENV_SIZE
316	  size used to hold a redundant copy of the environment data, so
317	  that there is a valid backup copy in case there is a power failure
318	  during a "saveenv" operation. CONFIG_ENV_OFFSET_REDUND must be
319	  aligned to an erase sector boundary.
320
321config USE_ENV_SPI_BUS
322	bool "SPI flash bus for environment"
323	depends on ENV_IS_IN_SPI_FLASH
324	help
325	  Force the SPI bus for environment.
326	  If not defined, use CONFIG_SF_DEFAULT_BUS.
327
328config ENV_SPI_BUS
329	int "Value of SPI flash bus for environment"
330	depends on USE_ENV_SPI_BUS
331	help
332	  Value the SPI bus and chip select for environment.
333
334config USE_ENV_SPI_CS
335	bool "SPI flash chip select for environment"
336	depends on ENV_IS_IN_SPI_FLASH
337	help
338	  Force the SPI chip select for environment.
339	  If not defined, use CONFIG_SF_DEFAULT_CS.
340
341config ENV_SPI_CS
342	int "Value of SPI flash chip select for environment"
343	depends on USE_ENV_SPI_CS
344	help
345	  Value of the SPI chip select for environment.
346
347config USE_ENV_SPI_MAX_HZ
348	bool "SPI flash max frequency for environment"
349	depends on ENV_IS_IN_SPI_FLASH
350	help
351	  Force the SPI max work clock for environment.
352	  If not defined, use CONFIG_SF_DEFAULT_SPEED.
353
354config ENV_SPI_MAX_HZ
355	int "Value of SPI flash max frequency for environment"
356	depends on USE_ENV_SPI_MAX_HZ
357	help
358	  Value of the SPI max work clock for environment.
359
360config USE_ENV_SPI_MODE
361	bool "SPI flash mode for environment"
362	depends on ENV_IS_IN_SPI_FLASH
363	help
364	  Force the SPI work mode for environment.
365
366config ENV_SPI_MODE
367	hex "Value of SPI flash work mode for environment"
368	depends on USE_ENV_SPI_MODE
369	help
370	  Value of the SPI work mode for environment.
371	  See include/spi.h for value.
372
373config ENV_IS_IN_UBI
374	bool "Environment in a UBI volume"
375	depends on !CHAIN_OF_TRUST
376	depends on MTD_UBI
377	depends on CMD_UBI
378	help
379	  Define this if you have an UBI volume that you want to use for the
380	  environment.  This has the benefit of wear-leveling the environment
381	  accesses, which is important on NAND.
382
383	  - CONFIG_ENV_UBI_PART:
384
385	  Define this to a string that is the mtd partition containing the UBI.
386
387	  - CONFIG_ENV_UBI_VOLUME:
388
389	  Define this to the name of the volume that you want to store the
390	  environment in.
391
392	  - CONFIG_ENV_UBI_VOLUME_REDUND:
393
394	  Define this to the name of another volume to store a second copy of
395	  the environment in.  This will enable redundant environments in UBI.
396	  It is assumed that both volumes are in the same MTD partition.
397
398config SYS_REDUNDAND_ENVIRONMENT
399	bool "Enable redundant environment support"
400	depends on ENV_IS_IN_EEPROM || ENV_IS_IN_FLASH || ENV_IS_IN_MMC || \
401		ENV_IS_IN_NAND || ENV_IS_IN_SPI_FLASH || ENV_IS_IN_UBI
402	help
403	  Normally, the environemt is stored in a single location.  By
404	  selecting this option, you can then define where to hold a redundant
405	  copy of the environment data, so that there is a valid backup copy in
406	  case there is a power failure during a "saveenv" operation.
407
408config ENV_FAT_INTERFACE
409	string "Name of the block device for the environment"
410	depends on ENV_IS_IN_FAT
411	default "mmc" if ARCH_SUNXI
412	default "mmc" if TI_COMMON_CMD_OPTIONS || ARCH_ZYNQMP || ARCH_AT91
413	help
414	  Define this to a string that is the name of the block device.
415
416config ENV_FAT_DEVICE_AND_PART
417	string "Device and partition for where to store the environemt in FAT"
418	depends on ENV_IS_IN_FAT
419	default "0:1" if TI_COMMON_CMD_OPTIONS
420	default "0:auto" if ARCH_ZYNQMP
421	default "0:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1
422	default "1:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1
423	default "0" if ARCH_AT91
424	help
425	  Define this to a string to specify the partition of the device. It can
426	  be as following:
427
428	    "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1)
429	       - "D:P": device D partition P. Error occurs if device D has no
430	                partition table.
431	       - "D:0": device D.
432	       - "D" or "D:": device D partition 1 if device D has partition
433	                      table, or the whole device D if has no partition
434	                      table.
435	       - "D:auto": first partition in device D with bootable flag set.
436	                   If none, first valid partition in device D. If no
437	                   partition table then means device D.
438
439config ENV_FAT_FILE
440	string "Name of the FAT file to use for the environment"
441	depends on ENV_IS_IN_FAT
442	default "uboot.env"
443	help
444	  It's a string of the FAT file name. This file use to store the
445	  environment.
446
447config ENV_EXT4_INTERFACE
448	string "Name of the block device for the environment"
449	depends on ENV_IS_IN_EXT4
450	help
451	  Define this to a string that is the name of the block device.
452
453config ENV_EXT4_DEVICE_AND_PART
454	string "Device and partition for where to store the environemt in EXT4"
455	depends on ENV_IS_IN_EXT4
456	help
457	  Define this to a string to specify the partition of the device. It can
458	  be as following:
459
460	    "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1)
461	       - "D:P": device D partition P. Error occurs if device D has no
462	                partition table.
463	       - "D:0": device D.
464	       - "D" or "D:": device D partition 1 if device D has partition
465	                      table, or the whole device D if has no partition
466	                      table.
467	       - "D:auto": first partition in device D with bootable flag set.
468	                   If none, first valid partition in device D. If no
469	                   partition table then means device D.
470
471config ENV_RAW_DISK_INTERFACE
472	string "Name of the block device for the environment"
473	depends on ENV_IS_IN_RAW_DISK
474	help
475	  Define this to a string that is the name of the block device.
476
477config ENV_RAW_DISK_DEVICE_AND_PART
478	string "Device and partition for where to store the environment image"
479	depends on ENV_IS_IN_RAW_DISK
480	help
481	  Define this to a string to specify the partition of the device. It can
482	  be as following:
483
484	    "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1)
485	       - "D:P": device D partition P. Error occurs if device D has no
486	                partition table.
487	       - "D:0": device D.
488	       - "D" or "D:": device D partition 1 if device D has partition
489	                      table, or the whole device D if has no partition
490	                      table.
491	       - "D:auto": first partition in device D with bootable flag set.
492	                   If none, first valid partition in device D. If no
493	                   partition table then means device D.
494
495config ENV_EXT4_FILE
496	string "Name of the EXT4 file to use for the environment"
497	depends on ENV_IS_IN_EXT4
498	default "uboot.env"
499	help
500	  It's a string of the EXT4 file name. This file use to store the
501	  environment (explicit path to the file)
502
503config ENV_ADDR
504	hex "Environment address"
505	depends on ENV_IS_IN_FLASH || ENV_IS_IN_NVRAM || ENV_IS_IN_ONENAND || \
506		     ENV_IS_IN_REMOTE || ENV_IS_IN_SPI_FLASH
507	default 0x0 if ENV_IS_IN_SPI_FLASH
508	help
509	  Offset from the start of the device (or partition)
510
511config ENV_ADDR_REDUND
512	hex "Redundant environment address"
513	depends on ENV_IS_IN_FLASH && SYS_REDUNDAND_ENVIRONMENT
514	help
515	  Offset from the start of the device (or partition) of the redundant
516	  environment location.
517
518config ENV_OFFSET
519	hex "Environment offset"
520	depends on ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \
521		    ENV_IS_IN_SPI_FLASH
522	default 0x3f8000 if ARCH_ROCKCHIP
523	default 0x88000 if ARCH_SUNXI
524	default 0xE0000 if ARCH_ZYNQ
525	default 0x1E00000 if ARCH_ZYNQMP
526	default 0x7F40000 if ARCH_VERSAL
527	default 0 if ARC
528	default 0x140000 if ARCH_AT91
529	default 0x260000 if ARCH_OMAP2PLUS
530	help
531	  Offset from the start of the device (or partition)
532
533config ENV_OFFSET_REDUND
534	hex "Redundant environment offset"
535	depends on (ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \
536		    ENV_IS_IN_SPI_FLASH) && SYS_REDUNDAND_ENVIRONMENT
537	help
538	  Offset from the start of the device (or partition) of the redundant
539	  environment location.
540
541config ENV_SIZE
542	hex "Environment Size"
543	default 0x40000 if ENV_IS_IN_SPI_FLASH && ARCH_ZYNQMP
544	default 0x20000 if ARCH_SUNXI || ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91
545	default 0x8000 if ARCH_ROCKCHIP || ARCH_ZYNQMP || ARCH_VERSAL
546	default 0x4000 if ARC
547	default 0x1f000
548	help
549	  Size of the environment storage area
550
551config ENV_SECT_SIZE
552	hex "Environment Sector-Size"
553	depends on ENV_IS_IN_FLASH || ENV_IS_IN_SPI_FLASH
554	default 0x40000 if ARCH_ZYNQMP || ARCH_VERSAL
555	default 0x20000 if ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91
556	help
557	  Size of the sector containing the environment.
558
559config ENV_UBI_PART
560	string "UBI partition name"
561	depends on ENV_IS_IN_UBI
562	help
563	  MTD partition containing the UBI device
564
565config ENV_UBI_VOLUME
566	string "UBI volume name"
567	depends on ENV_IS_IN_UBI
568	help
569	  Name of the volume that you want to store the environment in.
570
571config ENV_UBI_VOLUME_REDUND
572	string "UBI redundant volume name"
573	depends on ENV_IS_IN_UBI && SYS_REDUNDAND_ENVIRONMENT
574	help
575	  Name of the redundant volume that you want to store the environment in.
576
577config ENV_UBI_VID_OFFSET
578	int "ubi environment VID offset"
579	depends on ENV_IS_IN_UBI
580	default 0
581	help
582	  UBI VID offset for environment. If 0, no custom VID offset is used.
583
584config SYS_RELOC_GD_ENV_ADDR
585	bool "Relocate gd->en_addr"
586	help
587	  Relocate the early env_addr pointer so we know it is not inside
588	  the binary. Some systems need this and for the rest, it doesn't hurt.
589
590config USE_DEFAULT_ENV_FILE
591	bool "Create default environment from file"
592	help
593	  Normally, the default environment is automatically generated
594	  based on the settings of various CONFIG_* options, as well
595	  as the CONFIG_EXTRA_ENV_SETTINGS. By selecting this option,
596	  you can instead define the entire default environment in an
597	  external file.
598
599config DEFAULT_ENV_FILE
600	string "Path to default environment file"
601	depends on USE_DEFAULT_ENV_FILE
602	help
603	  The path containing the default environment. The format is
604	  the same as accepted by the mkenvimage tool: lines
605	  containing key=value pairs, blank lines and lines beginning
606	  with # are ignored.
607
608config ENV_VARS_UBOOT_RUNTIME_CONFIG
609	bool "Add run-time information to the environment"
610	help
611	  Enable this in order to add variables describing certain
612	  run-time determined information about the hardware to the
613	  environment.  These will be named board_name, board_rev.
614
615if SPL_ENV_SUPPORT
616config SPL_ENV_IS_NOWHERE
617	bool "SPL Environment is not stored"
618	default y if ENV_IS_NOWHERE
619	help
620	  Similar to ENV_IS_NOWHERE, used for SPL environment.
621
622config SPL_ENV_IS_IN_MMC
623	bool "SPL Environment in an MMC device"
624	depends on !SPL_ENV_IS_NOWHERE
625	depends on ENV_IS_IN_MMC
626	default y
627	help
628	  Similar to ENV_IS_IN_MMC, used for SPL environment.
629
630config SPL_ENV_IS_IN_FAT
631	bool "SPL Environment is in a FAT filesystem"
632	depends on !SPL_ENV_IS_NOWHERE
633	depends on ENV_IS_IN_FAT
634	default y
635	help
636	  Similar to ENV_IS_IN_FAT, used for SPL environment.
637
638config SPL_ENV_IS_IN_EXT4
639	bool "SPL Environment is in a EXT4 filesystem"
640	depends on !SPL_ENV_IS_NOWHERE
641	depends on ENV_IS_IN_EXT4
642	default y
643	help
644	  Similar to ENV_IS_IN_EXT4, used for SPL environment.
645
646config SPL_ENV_IS_IN_NAND
647	bool "SPL Environment in a NAND device"
648	depends on !SPL_ENV_IS_NOWHERE
649	depends on ENV_IS_IN_NAND
650	default y
651	help
652	  Similar to ENV_IS_IN_NAND, used for SPL environment.
653
654config SPL_ENV_IS_IN_SPI_FLASH
655	bool "SPL Environment is in SPI flash"
656	depends on !SPL_ENV_IS_NOWHERE
657	depends on ENV_IS_IN_SPI_FLASH
658	default y
659	help
660	  Similar to ENV_IS_IN_SPI_FLASH, used for SPL environment.
661
662config SPL_ENV_IS_IN_FLASH
663	bool "SPL Environment in flash memory"
664	depends on !SPL_ENV_IS_NOWHERE
665	depends on ENV_IS_IN_FLASH
666	default y
667	help
668	  Similar to ENV_IS_IN_FLASH, used for SPL environment.
669
670endif
671
672if TPL_ENV_SUPPORT
673
674config TPL_ENV_IS_NOWHERE
675	bool "TPL Environment is not stored"
676	default y if ENV_IS_NOWHERE
677	help
678	  Similar to ENV_IS_NOWHERE, used for TPL environment.
679
680config TPL_ENV_IS_IN_MMC
681	bool "TPL Environment in an MMC device"
682	depends on !TPL_ENV_IS_NOWHERE
683	depends on ENV_IS_IN_MMC
684	default y
685	help
686	  Similar to ENV_IS_IN_MMC, used for TPL environment.
687
688config TPL_ENV_IS_IN_FAT
689	bool "TPL Environment is in a FAT filesystem"
690	depends on !TPL_ENV_IS_NOWHERE
691	depends on ENV_IS_IN_FAT
692	default y
693	help
694	  Similar to ENV_IS_IN_FAT, used for TPL environment.
695
696config TPL_ENV_IS_IN_EXT4
697	bool "TPL Environment is in a EXT4 filesystem"
698	depends on !TPL_ENV_IS_NOWHERE
699	depends on ENV_IS_IN_EXT4
700	default y
701	help
702	  Similar to ENV_IS_IN_EXT4, used for TPL environment.
703
704config TPL_ENV_IS_IN_NAND
705	bool "TPL Environment in a NAND device"
706	depends on !TPL_ENV_IS_NOWHERE
707	depends on ENV_IS_IN_NAND
708	default y
709	help
710	  Similar to ENV_IS_IN_NAND, used for TPL environment.
711
712config TPL_ENV_IS_IN_SPI_FLASH
713	bool "TPL Environment is in SPI flash"
714	depends on !TPL_ENV_IS_NOWHERE
715	depends on ENV_IS_IN_SPI_FLASH
716	default y
717	help
718	  Similar to ENV_IS_IN_SPI_FLASH, used for TPL environment.
719
720config TPL_ENV_IS_IN_FLASH
721	bool "TPL Environment in flash memory"
722	depends on !TPL_ENV_IS_NOWHERE
723	depends on ENV_IS_IN_FLASH
724	default y
725	help
726	  Similar to ENV_IS_IN_FLASH, used for TPL environment.
727
728endif
729
730endmenu
731