xref: /openbmc/u-boot/env/Kconfig (revision 8c3b850920c8edc79aaad2780cd391645beba816)
10649cd0dSSimon Glassmenu "Environment"
20649cd0dSSimon Glass
3c1c3fe23SSimon Glassconfig ENV_IS_NOWHERE
4c1c3fe23SSimon Glass	bool "Environment is not stored"
5fb69464eSMaxime Ripard	depends on !ENV_IS_IN_EEPROM
68df430d0SAlex Kiernan	depends on !ENV_IS_IN_EXT4
7fb69464eSMaxime Ripard	depends on !ENV_IS_IN_FAT
8fb69464eSMaxime Ripard	depends on !ENV_IS_IN_FLASH
9fb69464eSMaxime Ripard	depends on !ENV_IS_IN_MMC
10fb69464eSMaxime Ripard	depends on !ENV_IS_IN_NAND
11fb69464eSMaxime Ripard	depends on !ENV_IS_IN_NVRAM
12fb69464eSMaxime Ripard	depends on !ENV_IS_IN_ONENAND
13fb69464eSMaxime Ripard	depends on !ENV_IS_IN_REMOTE
14fb69464eSMaxime Ripard	depends on !ENV_IS_IN_SPI_FLASH
15fb69464eSMaxime Ripard	depends on !ENV_IS_IN_UBI
16fb69464eSMaxime Ripard	default y
17c1c3fe23SSimon Glass	help
18c1c3fe23SSimon Glass	  Define this if you don't want to or can't have an environment stored
19919d25c9SShyam Saini	  on a storage medium. In this case the environment will still exist
20c1c3fe23SSimon Glass	  while U-Boot is running, but once U-Boot exits it will not be
21c1c3fe23SSimon Glass	  stored. U-Boot will therefore always start up with a default
22c1c3fe23SSimon Glass	  environment.
23c1c3fe23SSimon Glass
240649cd0dSSimon Glassconfig ENV_IS_IN_EEPROM
250649cd0dSSimon Glass	bool "Environment in EEPROM"
260649cd0dSSimon Glass	depends on !CHAIN_OF_TRUST
270649cd0dSSimon Glass	help
280649cd0dSSimon Glass	  Use this if you have an EEPROM or similar serial access
290649cd0dSSimon Glass	  device and a driver for it.
300649cd0dSSimon Glass
310649cd0dSSimon Glass	  - CONFIG_ENV_OFFSET:
320649cd0dSSimon Glass	  - CONFIG_ENV_SIZE:
330649cd0dSSimon Glass
340649cd0dSSimon Glass	  These two #defines specify the offset and size of the
350649cd0dSSimon Glass	  environment area within the total memory of your EEPROM.
360649cd0dSSimon Glass
370649cd0dSSimon Glass	  Note that we consider the length of the address field to
380649cd0dSSimon Glass	  still be one byte because the extra address bits are hidden
390649cd0dSSimon Glass	  in the chip address.
400649cd0dSSimon Glass
410649cd0dSSimon Glass	  - CONFIG_ENV_EEPROM_IS_ON_I2C
420649cd0dSSimon Glass	  define this, if you have I2C and SPI activated, and your
430649cd0dSSimon Glass	  EEPROM, which holds the environment, is on the I2C bus.
440649cd0dSSimon Glass
450649cd0dSSimon Glass	  - CONFIG_I2C_ENV_EEPROM_BUS
460649cd0dSSimon Glass	  if you have an Environment on an EEPROM reached over
470649cd0dSSimon Glass	  I2C muxes, you can define here, how to reach this
480649cd0dSSimon Glass	  EEPROM. For example:
490649cd0dSSimon Glass
500649cd0dSSimon Glass	  #define CONFIG_I2C_ENV_EEPROM_BUS	  1
510649cd0dSSimon Glass
520649cd0dSSimon Glass	  EEPROM which holds the environment, is reached over
530649cd0dSSimon Glass	  a pca9547 i2c mux with address 0x70, channel 3.
540649cd0dSSimon Glass
550649cd0dSSimon Glassconfig ENV_IS_IN_FAT
560649cd0dSSimon Glass	bool "Environment is in a FAT filesystem"
570649cd0dSSimon Glass	depends on !CHAIN_OF_TRUST
58fb69464eSMaxime Ripard	default y if ARCH_BCM283X
590163c918SMaxime Ripard	default y if ARCH_SUNXI && MMC
60fb69464eSMaxime Ripard	default y if MMC_OMAP_HS && TI_COMMON_CMD_OPTIONS
613cd084d3STuomas Tynkkynen	select FS_FAT
620649cd0dSSimon Glass	select FAT_WRITE
630649cd0dSSimon Glass	help
640649cd0dSSimon Glass	  Define this if you want to use the FAT file system for the environment.
650649cd0dSSimon Glass
661087a794SJorge Ramirez-Ortizconfig ENV_IS_IN_EXT4
671087a794SJorge Ramirez-Ortiz	bool "Environment is in a EXT4 filesystem"
681087a794SJorge Ramirez-Ortiz	depends on !CHAIN_OF_TRUST
691087a794SJorge Ramirez-Ortiz	select EXT4_WRITE
701087a794SJorge Ramirez-Ortiz	help
711087a794SJorge Ramirez-Ortiz	  Define this if you want to use the EXT4 file system for the environment.
721087a794SJorge Ramirez-Ortiz
730649cd0dSSimon Glassconfig ENV_IS_IN_FLASH
740649cd0dSSimon Glass	bool "Environment in flash memory"
750649cd0dSSimon Glass	depends on !CHAIN_OF_TRUST
76fb69464eSMaxime Ripard	default y if ARCH_CINTEGRATOR
77fb69464eSMaxime Ripard	default y if ARCH_INTEGRATOR_CP
78fb69464eSMaxime Ripard	default y if M548x || M547x || M5282 || MCF547x_8x
79fb69464eSMaxime Ripard	default y if MCF532x || MCF52x2
80fb69464eSMaxime Ripard	default y if MPC86xx || MPC83xx
81fb69464eSMaxime Ripard	default y if ARCH_MPC8572 || ARCH_MPC8548 || ARCH_MPC8641
82fb69464eSMaxime Ripard	default y if SH && !CPU_SH4
830649cd0dSSimon Glass	help
840649cd0dSSimon Glass	  Define this if you have a flash device which you want to use for the
850649cd0dSSimon Glass	  environment.
860649cd0dSSimon Glass
870649cd0dSSimon Glass	  a) The environment occupies one whole flash sector, which is
880649cd0dSSimon Glass	   "embedded" in the text segment with the U-Boot code. This
890649cd0dSSimon Glass	   happens usually with "bottom boot sector" or "top boot
900649cd0dSSimon Glass	   sector" type flash chips, which have several smaller
910649cd0dSSimon Glass	   sectors at the start or the end. For instance, such a
920649cd0dSSimon Glass	   layout can have sector sizes of 8, 2x4, 16, Nx32 kB. In
930649cd0dSSimon Glass	   such a case you would place the environment in one of the
940649cd0dSSimon Glass	   4 kB sectors - with U-Boot code before and after it. With
950649cd0dSSimon Glass	   "top boot sector" type flash chips, you would put the
960649cd0dSSimon Glass	   environment in one of the last sectors, leaving a gap
970649cd0dSSimon Glass	   between U-Boot and the environment.
980649cd0dSSimon Glass
990649cd0dSSimon Glass	  CONFIG_ENV_OFFSET:
1000649cd0dSSimon Glass
1010649cd0dSSimon Glass	   Offset of environment data (variable area) to the
1020649cd0dSSimon Glass	   beginning of flash memory; for instance, with bottom boot
1030649cd0dSSimon Glass	   type flash chips the second sector can be used: the offset
1040649cd0dSSimon Glass	   for this sector is given here.
1050649cd0dSSimon Glass
1060649cd0dSSimon Glass	   CONFIG_ENV_OFFSET is used relative to CONFIG_SYS_FLASH_BASE.
1070649cd0dSSimon Glass
1080649cd0dSSimon Glass	  CONFIG_ENV_ADDR:
1090649cd0dSSimon Glass
1100649cd0dSSimon Glass	   This is just another way to specify the start address of
1110649cd0dSSimon Glass	   the flash sector containing the environment (instead of
1120649cd0dSSimon Glass	   CONFIG_ENV_OFFSET).
1130649cd0dSSimon Glass
1140649cd0dSSimon Glass	  CONFIG_ENV_SECT_SIZE:
1150649cd0dSSimon Glass
1160649cd0dSSimon Glass	   Size of the sector containing the environment.
1170649cd0dSSimon Glass
1180649cd0dSSimon Glass
1190649cd0dSSimon Glass	  b) Sometimes flash chips have few, equal sized, BIG sectors.
1200649cd0dSSimon Glass	   In such a case you don't want to spend a whole sector for
1210649cd0dSSimon Glass	   the environment.
1220649cd0dSSimon Glass
1230649cd0dSSimon Glass	  CONFIG_ENV_SIZE:
1240649cd0dSSimon Glass
1250649cd0dSSimon Glass	   If you use this in combination with CONFIG_ENV_IS_IN_FLASH
1260649cd0dSSimon Glass	   and CONFIG_ENV_SECT_SIZE, you can specify to use only a part
1270649cd0dSSimon Glass	   of this flash sector for the environment. This saves
1280649cd0dSSimon Glass	   memory for the RAM copy of the environment.
1290649cd0dSSimon Glass
1300649cd0dSSimon Glass	   It may also save flash memory if you decide to use this
1310649cd0dSSimon Glass	   when your environment is "embedded" within U-Boot code,
1320649cd0dSSimon Glass	   since then the remainder of the flash sector could be used
1330649cd0dSSimon Glass	   for U-Boot code. It should be pointed out that this is
1340649cd0dSSimon Glass	   STRONGLY DISCOURAGED from a robustness point of view:
1350649cd0dSSimon Glass	   updating the environment in flash makes it always
1360649cd0dSSimon Glass	   necessary to erase the WHOLE sector. If something goes
1370649cd0dSSimon Glass	   wrong before the contents has been restored from a copy in
1380649cd0dSSimon Glass	   RAM, your target system will be dead.
1390649cd0dSSimon Glass
1400649cd0dSSimon Glass	  CONFIG_ENV_ADDR_REDUND
1410649cd0dSSimon Glass	  CONFIG_ENV_SIZE_REDUND
1420649cd0dSSimon Glass
1430649cd0dSSimon Glass	   These settings describe a second storage area used to hold
1440649cd0dSSimon Glass	   a redundant copy of the environment data, so that there is
1450649cd0dSSimon Glass	   a valid backup copy in case there is a power failure during
1460649cd0dSSimon Glass	   a "saveenv" operation.
1470649cd0dSSimon Glass
1480649cd0dSSimon Glass	  BE CAREFUL! Any changes to the flash layout, and some changes to the
1490649cd0dSSimon Glass	  source code will make it necessary to adapt <board>/u-boot.lds*
1500649cd0dSSimon Glass	  accordingly!
1510649cd0dSSimon Glass
1520649cd0dSSimon Glassconfig ENV_IS_IN_MMC
1530649cd0dSSimon Glass	bool "Environment in an MMC device"
1540649cd0dSSimon Glass	depends on !CHAIN_OF_TRUST
155d282a1dbSMaxime Ripard	depends on MMC
156fb69464eSMaxime Ripard	default y if ARCH_EXYNOS4
157fb69464eSMaxime Ripard	default y if MX6SX || MX7D
158fb69464eSMaxime Ripard	default y if TEGRA30 || TEGRA124
159fb69464eSMaxime Ripard	default y if TEGRA_ARMV8_COMMON
1600649cd0dSSimon Glass	help
1610649cd0dSSimon Glass	  Define this if you have an MMC device which you want to use for the
1620649cd0dSSimon Glass	  environment.
1630649cd0dSSimon Glass
1640649cd0dSSimon Glass	  CONFIG_SYS_MMC_ENV_DEV:
1650649cd0dSSimon Glass
1660649cd0dSSimon Glass	  Specifies which MMC device the environment is stored in.
1670649cd0dSSimon Glass
1680649cd0dSSimon Glass	  CONFIG_SYS_MMC_ENV_PART (optional):
1690649cd0dSSimon Glass
1700649cd0dSSimon Glass	  Specifies which MMC partition the environment is stored in. If not
1710649cd0dSSimon Glass	  set, defaults to partition 0, the user area. Common values might be
1720649cd0dSSimon Glass	  1 (first MMC boot partition), 2 (second MMC boot partition).
1730649cd0dSSimon Glass
1740649cd0dSSimon Glass	  CONFIG_ENV_OFFSET:
1750649cd0dSSimon Glass	  CONFIG_ENV_SIZE:
1760649cd0dSSimon Glass
1770649cd0dSSimon Glass	  These two #defines specify the offset and size of the environment
1780649cd0dSSimon Glass	  area within the specified MMC device.
1790649cd0dSSimon Glass
1800649cd0dSSimon Glass	  If offset is positive (the usual case), it is treated as relative to
1810649cd0dSSimon Glass	  the start of the MMC partition. If offset is negative, it is treated
1820649cd0dSSimon Glass	  as relative to the end of the MMC partition. This can be useful if
1830649cd0dSSimon Glass	  your board may be fitted with different MMC devices, which have
1840649cd0dSSimon Glass	  different sizes for the MMC partitions, and you always want the
1850649cd0dSSimon Glass	  environment placed at the very end of the partition, to leave the
1860649cd0dSSimon Glass	  maximum possible space before it, to store other data.
1870649cd0dSSimon Glass
1880649cd0dSSimon Glass	  These two values are in units of bytes, but must be aligned to an
1890649cd0dSSimon Glass	  MMC sector boundary.
1900649cd0dSSimon Glass
1910649cd0dSSimon Glass	  CONFIG_ENV_OFFSET_REDUND (optional):
1920649cd0dSSimon Glass
1930649cd0dSSimon Glass	  Specifies a second storage area, of CONFIG_ENV_SIZE size, used to
1940649cd0dSSimon Glass	  hold a redundant copy of the environment data. This provides a
1950649cd0dSSimon Glass	  valid backup copy in case the other copy is corrupted, e.g. due
1960649cd0dSSimon Glass	  to a power failure during a "saveenv" operation.
1970649cd0dSSimon Glass
1980649cd0dSSimon Glass	  This value may also be positive or negative; this is handled in the
1990649cd0dSSimon Glass	  same way as CONFIG_ENV_OFFSET.
2000649cd0dSSimon Glass
2010649cd0dSSimon Glass	  This value is also in units of bytes, but must also be aligned to
2020649cd0dSSimon Glass	  an MMC sector boundary.
2030649cd0dSSimon Glass
2040649cd0dSSimon Glass	  CONFIG_ENV_SIZE_REDUND (optional):
2050649cd0dSSimon Glass
2060649cd0dSSimon Glass	  This value need not be set, even when CONFIG_ENV_OFFSET_REDUND is
2070649cd0dSSimon Glass	  set. If this value is set, it must be set to the same value as
2080649cd0dSSimon Glass	  CONFIG_ENV_SIZE.
2090649cd0dSSimon Glass
2100649cd0dSSimon Glassconfig ENV_IS_IN_NAND
2110649cd0dSSimon Glass	bool "Environment in a NAND device"
2120649cd0dSSimon Glass	depends on !CHAIN_OF_TRUST
2130649cd0dSSimon Glass	help
2140649cd0dSSimon Glass	  Define this if you have a NAND device which you want to use for the
2150649cd0dSSimon Glass	  environment.
2160649cd0dSSimon Glass
2170649cd0dSSimon Glass	  - CONFIG_ENV_OFFSET:
2180649cd0dSSimon Glass	  - CONFIG_ENV_SIZE:
2190649cd0dSSimon Glass
2200649cd0dSSimon Glass	  These two #defines specify the offset and size of the environment
2210649cd0dSSimon Glass	  area within the first NAND device.  CONFIG_ENV_OFFSET must be
2220649cd0dSSimon Glass	  aligned to an erase block boundary.
2230649cd0dSSimon Glass
2240649cd0dSSimon Glass	  - CONFIG_ENV_OFFSET_REDUND (optional):
2250649cd0dSSimon Glass
2260649cd0dSSimon Glass	  This setting describes a second storage area of CONFIG_ENV_SIZE
2270649cd0dSSimon Glass	  size used to hold a redundant copy of the environment data, so
2280649cd0dSSimon Glass	  that there is a valid backup copy in case there is a power failure
2290649cd0dSSimon Glass	  during a "saveenv" operation.	 CONFIG_ENV_OFFSET_REDUND must be
2300649cd0dSSimon Glass	  aligned to an erase block boundary.
2310649cd0dSSimon Glass
2320649cd0dSSimon Glass	  - CONFIG_ENV_RANGE (optional):
2330649cd0dSSimon Glass
2340649cd0dSSimon Glass	  Specifies the length of the region in which the environment
2350649cd0dSSimon Glass	  can be written.  This should be a multiple of the NAND device's
2360649cd0dSSimon Glass	  block size.  Specifying a range with more erase blocks than
2370649cd0dSSimon Glass	  are needed to hold CONFIG_ENV_SIZE allows bad blocks within
2380649cd0dSSimon Glass	  the range to be avoided.
2390649cd0dSSimon Glass
2400649cd0dSSimon Glass	  - CONFIG_ENV_OFFSET_OOB (optional):
2410649cd0dSSimon Glass
2420649cd0dSSimon Glass	  Enables support for dynamically retrieving the offset of the
2430649cd0dSSimon Glass	  environment from block zero's out-of-band data.  The
2440649cd0dSSimon Glass	  "nand env.oob" command can be used to record this offset.
2450649cd0dSSimon Glass	  Currently, CONFIG_ENV_OFFSET_REDUND is not supported when
2460649cd0dSSimon Glass	  using CONFIG_ENV_OFFSET_OOB.
2470649cd0dSSimon Glass
2480649cd0dSSimon Glassconfig ENV_IS_IN_NVRAM
2490649cd0dSSimon Glass	bool "Environment in a non-volatile RAM"
2500649cd0dSSimon Glass	depends on !CHAIN_OF_TRUST
2510649cd0dSSimon Glass	help
2520649cd0dSSimon Glass	  Define this if you have some non-volatile memory device
2530649cd0dSSimon Glass	  (NVRAM, battery buffered SRAM) which you want to use for the
2540649cd0dSSimon Glass	  environment.
2550649cd0dSSimon Glass
2560649cd0dSSimon Glass	  - CONFIG_ENV_ADDR:
2570649cd0dSSimon Glass	  - CONFIG_ENV_SIZE:
2580649cd0dSSimon Glass
2590649cd0dSSimon Glass	  These two #defines are used to determine the memory area you
2600649cd0dSSimon Glass	  want to use for environment. It is assumed that this memory
2610649cd0dSSimon Glass	  can just be read and written to, without any special
2620649cd0dSSimon Glass	  provision.
2630649cd0dSSimon Glass
2640649cd0dSSimon Glassconfig ENV_IS_IN_ONENAND
2650649cd0dSSimon Glass	bool "Environment is in OneNAND"
2660649cd0dSSimon Glass	depends on !CHAIN_OF_TRUST
2670649cd0dSSimon Glass	help
2680649cd0dSSimon Glass	  Define this if you want to put your local device's environment in
2690649cd0dSSimon Glass	  OneNAND.
2700649cd0dSSimon Glass
2710649cd0dSSimon Glass	  - CONFIG_ENV_ADDR:
2720649cd0dSSimon Glass	  - CONFIG_ENV_SIZE:
2730649cd0dSSimon Glass
2740649cd0dSSimon Glass	  These two #defines are used to determine the device range you
2750649cd0dSSimon Glass	  want to use for environment. It is assumed that this memory
2760649cd0dSSimon Glass	  can just be read and written to, without any special
2770649cd0dSSimon Glass	  provision.
2780649cd0dSSimon Glass
2790649cd0dSSimon Glassconfig ENV_IS_IN_REMOTE
280646f1ab4SHeinrich Schuchardt	bool "Environment is in remote memory space"
2810649cd0dSSimon Glass	depends on !CHAIN_OF_TRUST
2820649cd0dSSimon Glass	help
2830649cd0dSSimon Glass	  Define this if you have a remote memory space which you
2840649cd0dSSimon Glass	  want to use for the local device's environment.
2850649cd0dSSimon Glass
2860649cd0dSSimon Glass	  - CONFIG_ENV_ADDR:
2870649cd0dSSimon Glass	  - CONFIG_ENV_SIZE:
2880649cd0dSSimon Glass
2890649cd0dSSimon Glass	  These two #defines specify the address and size of the
2900649cd0dSSimon Glass	  environment area within the remote memory space. The
2910649cd0dSSimon Glass	  local device can get the environment from remote memory
2920649cd0dSSimon Glass	  space by SRIO or PCIE links.
2930649cd0dSSimon Glass
2940649cd0dSSimon Glassconfig ENV_IS_IN_SPI_FLASH
2950649cd0dSSimon Glass	bool "Environment is in SPI flash"
2960649cd0dSSimon Glass	depends on !CHAIN_OF_TRUST
297fb69464eSMaxime Ripard	default y if ARMADA_XP
298fb69464eSMaxime Ripard	default y if INTEL_BAYTRAIL
299fb69464eSMaxime Ripard	default y if INTEL_BRASWELL
300fb69464eSMaxime Ripard	default y if INTEL_BROADWELL
301fb69464eSMaxime Ripard	default y if NORTHBRIDGE_INTEL_IVYBRIDGE
302fb69464eSMaxime Ripard	default y if INTEL_QUARK
303fb69464eSMaxime Ripard	default y if INTEL_QUEENSBAY
3040649cd0dSSimon Glass	help
3050649cd0dSSimon Glass	  Define this if you have a SPI Flash memory device which you
3060649cd0dSSimon Glass	  want to use for the environment.
3070649cd0dSSimon Glass
3080649cd0dSSimon Glass	  - CONFIG_ENV_OFFSET:
3090649cd0dSSimon Glass	  - CONFIG_ENV_SIZE:
3100649cd0dSSimon Glass
3110649cd0dSSimon Glass	  These two #defines specify the offset and size of the
3120649cd0dSSimon Glass	  environment area within the SPI Flash. CONFIG_ENV_OFFSET must be
3130649cd0dSSimon Glass	  aligned to an erase sector boundary.
3140649cd0dSSimon Glass
3150649cd0dSSimon Glass	  - CONFIG_ENV_SECT_SIZE:
3160649cd0dSSimon Glass
3170649cd0dSSimon Glass	  Define the SPI flash's sector size.
3180649cd0dSSimon Glass
3190649cd0dSSimon Glass	  - CONFIG_ENV_OFFSET_REDUND (optional):
3200649cd0dSSimon Glass
3210649cd0dSSimon Glass	  This setting describes a second storage area of CONFIG_ENV_SIZE
3220649cd0dSSimon Glass	  size used to hold a redundant copy of the environment data, so
3230649cd0dSSimon Glass	  that there is a valid backup copy in case there is a power failure
3240649cd0dSSimon Glass	  during a "saveenv" operation. CONFIG_ENV_OFFSET_REDUND must be
3250649cd0dSSimon Glass	  aligned to an erase sector boundary.
3260649cd0dSSimon Glass
327abe66b1bSPatrick Delaunayconfig USE_ENV_SPI_BUS
328abe66b1bSPatrick Delaunay	bool "SPI flash bus for environment"
329abe66b1bSPatrick Delaunay	depends on ENV_IS_IN_SPI_FLASH
330abe66b1bSPatrick Delaunay	help
331abe66b1bSPatrick Delaunay	  Force the SPI bus for environment.
332abe66b1bSPatrick Delaunay	  If not defined, use CONFIG_SF_DEFAULT_BUS.
3330649cd0dSSimon Glass
334abe66b1bSPatrick Delaunayconfig ENV_SPI_BUS
335abe66b1bSPatrick Delaunay	int "Value of SPI flash bus for environment"
336abe66b1bSPatrick Delaunay	depends on USE_ENV_SPI_BUS
337abe66b1bSPatrick Delaunay	help
338abe66b1bSPatrick Delaunay	  Value the SPI bus and chip select for environment.
3390649cd0dSSimon Glass
340abe66b1bSPatrick Delaunayconfig USE_ENV_SPI_CS
341abe66b1bSPatrick Delaunay	bool "SPI flash chip select for environment"
342abe66b1bSPatrick Delaunay	depends on ENV_IS_IN_SPI_FLASH
343abe66b1bSPatrick Delaunay	help
344abe66b1bSPatrick Delaunay	  Force the SPI chip select for environment.
345abe66b1bSPatrick Delaunay	  If not defined, use CONFIG_SF_DEFAULT_CS.
3460649cd0dSSimon Glass
347abe66b1bSPatrick Delaunayconfig ENV_SPI_CS
348abe66b1bSPatrick Delaunay	int "Value of SPI flash chip select for environment"
349abe66b1bSPatrick Delaunay	depends on USE_ENV_SPI_CS
350abe66b1bSPatrick Delaunay	help
351abe66b1bSPatrick Delaunay	  Value of the SPI chip select for environment.
3520649cd0dSSimon Glass
353abe66b1bSPatrick Delaunayconfig USE_ENV_SPI_MAX_HZ
354abe66b1bSPatrick Delaunay	bool "SPI flash bus for environment"
355abe66b1bSPatrick Delaunay	depends on ENV_IS_IN_SPI_FLASH
356abe66b1bSPatrick Delaunay	help
357abe66b1bSPatrick Delaunay	  Force the SPI max work clock for environment.
358abe66b1bSPatrick Delaunay	  If not defined, use CONFIG_SF_DEFAULT_SPEED.
3590649cd0dSSimon Glass
360abe66b1bSPatrick Delaunayconfig ENV_SPI_MAX_HZ
361abe66b1bSPatrick Delaunay	int "Value of SPI flash max work for environment"
362abe66b1bSPatrick Delaunay	depends on USE_ENV_SPI_MAX_HZ
363abe66b1bSPatrick Delaunay	help
364abe66b1bSPatrick Delaunay	  Value of the SPI max work clock for environment.
365abe66b1bSPatrick Delaunay
366abe66b1bSPatrick Delaunayconfig USE_ENV_SPI_MODE
367abe66b1bSPatrick Delaunay	bool "SPI flash mode for environment"
368abe66b1bSPatrick Delaunay	depends on ENV_IS_IN_SPI_FLASH
369abe66b1bSPatrick Delaunay	help
370abe66b1bSPatrick Delaunay	  Force the SPI work mode for environment.
371abe66b1bSPatrick Delaunay
372abe66b1bSPatrick Delaunayconfig ENV_SPI_MODE
373abe66b1bSPatrick Delaunay	hex "Value of SPI flash work mode for environment"
374abe66b1bSPatrick Delaunay	depends on USE_ENV_SPI_MODE
375abe66b1bSPatrick Delaunay	help
376abe66b1bSPatrick Delaunay	  Value of the SPI work mode for environment.
377abe66b1bSPatrick Delaunay	  See include/spi.h for value.
3780649cd0dSSimon Glass
3790649cd0dSSimon Glassconfig ENV_IS_IN_UBI
3800649cd0dSSimon Glass	bool "Environment in a UBI volume"
3810649cd0dSSimon Glass	depends on !CHAIN_OF_TRUST
3820649cd0dSSimon Glass	help
3830649cd0dSSimon Glass	  Define this if you have an UBI volume that you want to use for the
3840649cd0dSSimon Glass	  environment.  This has the benefit of wear-leveling the environment
3850649cd0dSSimon Glass	  accesses, which is important on NAND.
3860649cd0dSSimon Glass
3870649cd0dSSimon Glass	  - CONFIG_ENV_UBI_PART:
3880649cd0dSSimon Glass
3890649cd0dSSimon Glass	  Define this to a string that is the mtd partition containing the UBI.
3900649cd0dSSimon Glass
3910649cd0dSSimon Glass	  - CONFIG_ENV_UBI_VOLUME:
3920649cd0dSSimon Glass
3930649cd0dSSimon Glass	  Define this to the name of the volume that you want to store the
3940649cd0dSSimon Glass	  environment in.
3950649cd0dSSimon Glass
3960649cd0dSSimon Glass	  - CONFIG_ENV_UBI_VOLUME_REDUND:
3970649cd0dSSimon Glass
3980649cd0dSSimon Glass	  Define this to the name of another volume to store a second copy of
3990649cd0dSSimon Glass	  the environment in.  This will enable redundant environments in UBI.
4000649cd0dSSimon Glass	  It is assumed that both volumes are in the same MTD partition.
4010649cd0dSSimon Glass
4020649cd0dSSimon Glassconfig ENV_FAT_INTERFACE
4030649cd0dSSimon Glass	string "Name of the block device for the environment"
4040649cd0dSSimon Glass	depends on ENV_IS_IN_FAT
4050163c918SMaxime Ripard	default "mmc" if ARCH_SUNXI
4060649cd0dSSimon Glass	default "mmc" if TI_COMMON_CMD_OPTIONS || ARCH_ZYNQMP || ARCH_AT91
4070649cd0dSSimon Glass	help
4080649cd0dSSimon Glass	  Define this to a string that is the name of the block device.
4090649cd0dSSimon Glass
4100649cd0dSSimon Glassconfig ENV_FAT_DEVICE_AND_PART
4110649cd0dSSimon Glass	string "Device and partition for where to store the environemt in FAT"
4120649cd0dSSimon Glass	depends on ENV_IS_IN_FAT
4130649cd0dSSimon Glass	default "0:1" if TI_COMMON_CMD_OPTIONS
4140649cd0dSSimon Glass	default "0:auto" if ARCH_ZYNQMP
4150163c918SMaxime Ripard	default "0:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1
4160163c918SMaxime Ripard	default "1:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1
4170649cd0dSSimon Glass	default "0" if ARCH_AT91
4180649cd0dSSimon Glass	help
4190649cd0dSSimon Glass	  Define this to a string to specify the partition of the device. It can
4200649cd0dSSimon Glass	  be as following:
4210649cd0dSSimon Glass
4220649cd0dSSimon Glass	    "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1)
4230649cd0dSSimon Glass	       - "D:P": device D partition P. Error occurs if device D has no
4240649cd0dSSimon Glass	                partition table.
4250649cd0dSSimon Glass	       - "D:0": device D.
4260649cd0dSSimon Glass	       - "D" or "D:": device D partition 1 if device D has partition
4270649cd0dSSimon Glass	                      table, or the whole device D if has no partition
4280649cd0dSSimon Glass	                      table.
4290649cd0dSSimon Glass	       - "D:auto": first partition in device D with bootable flag set.
4300649cd0dSSimon Glass	                   If none, first valid partition in device D. If no
4310649cd0dSSimon Glass	                   partition table then means device D.
4320649cd0dSSimon Glass
4330649cd0dSSimon Glassconfig ENV_FAT_FILE
434919d25c9SShyam Saini	string "Name of the FAT file to use for the environment"
4350649cd0dSSimon Glass	depends on ENV_IS_IN_FAT
4360649cd0dSSimon Glass	default "uboot.env"
4370649cd0dSSimon Glass	help
4380649cd0dSSimon Glass	  It's a string of the FAT file name. This file use to store the
4390649cd0dSSimon Glass	  environment.
4400649cd0dSSimon Glass
4411087a794SJorge Ramirez-Ortizconfig ENV_EXT4_INTERFACE
4421087a794SJorge Ramirez-Ortiz	string "Name of the block device for the environment"
4431087a794SJorge Ramirez-Ortiz	depends on ENV_IS_IN_EXT4
4441087a794SJorge Ramirez-Ortiz	help
4451087a794SJorge Ramirez-Ortiz	  Define this to a string that is the name of the block device.
4461087a794SJorge Ramirez-Ortiz
4471087a794SJorge Ramirez-Ortizconfig ENV_EXT4_DEVICE_AND_PART
4481087a794SJorge Ramirez-Ortiz	string "Device and partition for where to store the environemt in EXT4"
4491087a794SJorge Ramirez-Ortiz	depends on ENV_IS_IN_EXT4
4501087a794SJorge Ramirez-Ortiz	help
4511087a794SJorge Ramirez-Ortiz	  Define this to a string to specify the partition of the device. It can
4521087a794SJorge Ramirez-Ortiz	  be as following:
4531087a794SJorge Ramirez-Ortiz
4541087a794SJorge Ramirez-Ortiz	    "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1)
4551087a794SJorge Ramirez-Ortiz	       - "D:P": device D partition P. Error occurs if device D has no
4561087a794SJorge Ramirez-Ortiz	                partition table.
4571087a794SJorge Ramirez-Ortiz	       - "D:0": device D.
4581087a794SJorge Ramirez-Ortiz	       - "D" or "D:": device D partition 1 if device D has partition
4591087a794SJorge Ramirez-Ortiz	                      table, or the whole device D if has no partition
4601087a794SJorge Ramirez-Ortiz	                      table.
4611087a794SJorge Ramirez-Ortiz	       - "D:auto": first partition in device D with bootable flag set.
4621087a794SJorge Ramirez-Ortiz	                   If none, first valid partition in device D. If no
4631087a794SJorge Ramirez-Ortiz	                   partition table then means device D.
4641087a794SJorge Ramirez-Ortiz
4651087a794SJorge Ramirez-Ortizconfig ENV_EXT4_FILE
466919d25c9SShyam Saini	string "Name of the EXT4 file to use for the environment"
4671087a794SJorge Ramirez-Ortiz	depends on ENV_IS_IN_EXT4
4681087a794SJorge Ramirez-Ortiz	default "uboot.env"
4691087a794SJorge Ramirez-Ortiz	help
4701087a794SJorge Ramirez-Ortiz	  It's a string of the EXT4 file name. This file use to store the
4711087a794SJorge Ramirez-Ortiz	  environment (explicit path to the file)
4721087a794SJorge Ramirez-Ortiz
47370b5ea74SAlexey Brodkinif ARCH_ROCKCHIP || ARCH_SUNXI || ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL || ARC
4740649cd0dSSimon Glass
4750649cd0dSSimon Glassconfig ENV_OFFSET
4760649cd0dSSimon Glass	hex "Environment Offset"
4770649cd0dSSimon Glass	depends on !ENV_IS_IN_UBI
4780649cd0dSSimon Glass	depends on !ENV_IS_NOWHERE
4794aee624cSMichal Simek	default 0x3f8000 if ARCH_ROCKCHIP
4800649cd0dSSimon Glass	default 0x88000 if ARCH_SUNXI
4814aee624cSMichal Simek	default 0xE0000 if ARCH_ZYNQ
4824aee624cSMichal Simek	default 0x1E00000 if ARCH_ZYNQMP
48370b5ea74SAlexey Brodkin	default 0 if ARC
4840649cd0dSSimon Glass	help
4850649cd0dSSimon Glass	  Offset from the start of the device (or partition)
4860649cd0dSSimon Glass
4870649cd0dSSimon Glassconfig ENV_SIZE
4880649cd0dSSimon Glass	hex "Environment Size"
4894aee624cSMichal Simek	default 0x40000 if ENV_IS_IN_SPI_FLASH && ARCH_ZYNQMP
4904aee624cSMichal Simek	default 0x20000 if ARCH_SUNXI || ARCH_ZYNQ
491ec48b6c9SMichal Simek	default 0x8000 if ARCH_ROCKCHIP || ARCH_ZYNQMP || ARCH_VERSAL
49270b5ea74SAlexey Brodkin	default 0x4000 if ARC
4930649cd0dSSimon Glass	help
4940649cd0dSSimon Glass	  Size of the environment storage area
4950649cd0dSSimon Glass
4964aee624cSMichal Simekconfig ENV_SECT_SIZE
4974aee624cSMichal Simek	hex "Environment Sector-Size"
4984aee624cSMichal Simek	depends on !ENV_IS_NOWHERE && (ARCH_ZYNQ || ARCH_ZYNQMP)
4994aee624cSMichal Simek	default 0x40000 if ARCH_ZYNQMP
5004aee624cSMichal Simek	default 0x20000 if ARCH_ZYNQ
5014aee624cSMichal Simek	help
5024aee624cSMichal Simek	  Size of the sector containing the environment.
5034aee624cSMichal Simek
5040649cd0dSSimon Glassconfig ENV_UBI_PART
5050649cd0dSSimon Glass	string "UBI partition name"
5060649cd0dSSimon Glass	depends on ENV_IS_IN_UBI
5070649cd0dSSimon Glass	help
5080649cd0dSSimon Glass	  MTD partition containing the UBI device
5090649cd0dSSimon Glass
5100649cd0dSSimon Glassconfig ENV_UBI_VOLUME
5110649cd0dSSimon Glass	string "UBI volume name"
5120649cd0dSSimon Glass	depends on ENV_IS_IN_UBI
5130649cd0dSSimon Glass	help
5140649cd0dSSimon Glass	  Name of the volume that you want to store the environment in.
5150649cd0dSSimon Glass
5160649cd0dSSimon Glassendif
5170649cd0dSSimon Glass
518f3d8f7ddSRasmus Villemoesconfig USE_DEFAULT_ENV_FILE
519f3d8f7ddSRasmus Villemoes	bool "Create default environment from file"
520f3d8f7ddSRasmus Villemoes	help
521f3d8f7ddSRasmus Villemoes	  Normally, the default environment is automatically generated
522f3d8f7ddSRasmus Villemoes	  based on the settings of various CONFIG_* options, as well
523f3d8f7ddSRasmus Villemoes	  as the CONFIG_EXTRA_ENV_SETTINGS. By selecting this option,
524f3d8f7ddSRasmus Villemoes	  you can instead define the entire default environment in an
525f3d8f7ddSRasmus Villemoes	  external file.
526f3d8f7ddSRasmus Villemoes
527f3d8f7ddSRasmus Villemoesconfig DEFAULT_ENV_FILE
528f3d8f7ddSRasmus Villemoes	string "Path to default environment file"
529f3d8f7ddSRasmus Villemoes	depends on USE_DEFAULT_ENV_FILE
530f3d8f7ddSRasmus Villemoes	help
531f3d8f7ddSRasmus Villemoes	  The path containing the default environment. The format is
532f3d8f7ddSRasmus Villemoes	  the same as accepted by the mkenvimage tool: lines
533f3d8f7ddSRasmus Villemoes	  containing key=value pairs, blank lines and lines beginning
534f3d8f7ddSRasmus Villemoes	  with # are ignored.
535f3d8f7ddSRasmus Villemoes
536d9101303SAlex Kiernanconfig ENV_VARS_UBOOT_RUNTIME_CONFIG
537d9101303SAlex Kiernan	bool "Add run-time information to the environment"
538d9101303SAlex Kiernan	help
539d9101303SAlex Kiernan	  Enable this in order to add variables describing certain
540d9101303SAlex Kiernan	  run-time determined information about the hardware to the
541d9101303SAlex Kiernan	  environment.  These will be named board_name, board_rev.
542d9101303SAlex Kiernan
543474ecd2cSYork Sunif SPL_ENV_SUPPORT
544474ecd2cSYork Sunconfig SPL_ENV_IS_NOWHERE
545474ecd2cSYork Sun	bool "SPL Environment is not stored"
546474ecd2cSYork Sun	default y if ENV_IS_NOWHERE
547474ecd2cSYork Sun	help
548474ecd2cSYork Sun	  Similar to ENV_IS_NOWHERE, used for SPL environment.
549474ecd2cSYork Sun
550474ecd2cSYork Sunconfig SPL_ENV_IS_IN_MMC
551474ecd2cSYork Sun	bool "SPL Environment in an MMC device"
552474ecd2cSYork Sun	depends on !SPL_ENV_IS_NOWHERE
553474ecd2cSYork Sun	depends on ENV_IS_IN_MMC
554474ecd2cSYork Sun	default y
555474ecd2cSYork Sun	help
556474ecd2cSYork Sun	  Similar to ENV_IS_IN_MMC, used for SPL environment.
557474ecd2cSYork Sun
558474ecd2cSYork Sunconfig SPL_ENV_IS_IN_FAT
559474ecd2cSYork Sun	bool "SPL Environment is in a FAT filesystem"
560474ecd2cSYork Sun	depends on !SPL_ENV_IS_NOWHERE
561474ecd2cSYork Sun	depends on ENV_IS_IN_FAT
562474ecd2cSYork Sun	default y
563474ecd2cSYork Sun	help
564474ecd2cSYork Sun	  Similar to ENV_IS_IN_FAT, used for SPL environment.
565474ecd2cSYork Sun
566474ecd2cSYork Sunconfig SPL_ENV_IS_IN_EXT4
567474ecd2cSYork Sun	bool "SPL Environment is in a EXT4 filesystem"
568474ecd2cSYork Sun	depends on !SPL_ENV_IS_NOWHERE
569474ecd2cSYork Sun	depends on ENV_IS_IN_EXT4
570474ecd2cSYork Sun	default y
571474ecd2cSYork Sun	help
572474ecd2cSYork Sun	  Similar to ENV_IS_IN_EXT4, used for SPL environment.
573474ecd2cSYork Sun
574474ecd2cSYork Sunconfig SPL_ENV_IS_IN_NAND
575474ecd2cSYork Sun	bool "SPL Environment in a NAND device"
576474ecd2cSYork Sun	depends on !SPL_ENV_IS_NOWHERE
577474ecd2cSYork Sun	depends on ENV_IS_IN_NAND
578474ecd2cSYork Sun	default y
579474ecd2cSYork Sun	help
580474ecd2cSYork Sun	  Similar to ENV_IS_IN_NAND, used for SPL environment.
581474ecd2cSYork Sun
582474ecd2cSYork Sunconfig SPL_ENV_IS_IN_SPI_FLASH
583474ecd2cSYork Sun	bool "SPL Environment is in SPI flash"
584474ecd2cSYork Sun	depends on !SPL_ENV_IS_NOWHERE
585474ecd2cSYork Sun	depends on ENV_IS_IN_SPI_FLASH
586474ecd2cSYork Sun	default y
587474ecd2cSYork Sun	help
588474ecd2cSYork Sun	  Similar to ENV_IS_IN_SPI_FLASH, used for SPL environment.
589474ecd2cSYork Sun
590474ecd2cSYork Sunconfig SPL_ENV_IS_IN_FLASH
591474ecd2cSYork Sun	bool "SPL Environment in flash memory"
592474ecd2cSYork Sun	depends on !SPL_ENV_IS_NOWHERE
593474ecd2cSYork Sun	depends on ENV_IS_IN_FLASH
594474ecd2cSYork Sun	default y
595474ecd2cSYork Sun	help
596474ecd2cSYork Sun	  Similar to ENV_IS_IN_FLASH, used for SPL environment.
597474ecd2cSYork Sun
598474ecd2cSYork Sunendif
599474ecd2cSYork Sun
600474ecd2cSYork Sunif TPL_ENV_SUPPORT
601474ecd2cSYork Sun
602474ecd2cSYork Sunconfig TPL_ENV_IS_NOWHERE
603474ecd2cSYork Sun	bool "TPL Environment is not stored"
604474ecd2cSYork Sun	default y if ENV_IS_NOWHERE
605474ecd2cSYork Sun	help
606474ecd2cSYork Sun	  Similar to ENV_IS_NOWHERE, used for TPL environment.
607474ecd2cSYork Sun
608474ecd2cSYork Sunconfig TPL_ENV_IS_IN_MMC
609474ecd2cSYork Sun	bool "TPL Environment in an MMC device"
610474ecd2cSYork Sun	depends on !TPL_ENV_IS_NOWHERE
611474ecd2cSYork Sun	depends on ENV_IS_IN_MMC
612474ecd2cSYork Sun	default y
613474ecd2cSYork Sun	help
614474ecd2cSYork Sun	  Similar to ENV_IS_IN_MMC, used for TPL environment.
615474ecd2cSYork Sun
616474ecd2cSYork Sunconfig TPL_ENV_IS_IN_FAT
617474ecd2cSYork Sun	bool "TPL Environment is in a FAT filesystem"
618474ecd2cSYork Sun	depends on !TPL_ENV_IS_NOWHERE
619474ecd2cSYork Sun	depends on ENV_IS_IN_FAT
620474ecd2cSYork Sun	default y
621474ecd2cSYork Sun	help
622474ecd2cSYork Sun	  Similar to ENV_IS_IN_FAT, used for TPL environment.
623474ecd2cSYork Sun
624474ecd2cSYork Sunconfig TPL_ENV_IS_IN_EXT4
625474ecd2cSYork Sun	bool "TPL Environment is in a EXT4 filesystem"
626474ecd2cSYork Sun	depends on !TPL_ENV_IS_NOWHERE
627474ecd2cSYork Sun	depends on ENV_IS_IN_EXT4
628474ecd2cSYork Sun	default y
629474ecd2cSYork Sun	help
630474ecd2cSYork Sun	  Similar to ENV_IS_IN_EXT4, used for TPL environment.
631474ecd2cSYork Sun
632474ecd2cSYork Sunconfig TPL_ENV_IS_IN_NAND
633474ecd2cSYork Sun	bool "TPL Environment in a NAND device"
634474ecd2cSYork Sun	depends on !TPL_ENV_IS_NOWHERE
635474ecd2cSYork Sun	depends on ENV_IS_IN_NAND
636474ecd2cSYork Sun	default y
637474ecd2cSYork Sun	help
638474ecd2cSYork Sun	  Similar to ENV_IS_IN_NAND, used for TPL environment.
639474ecd2cSYork Sun
640474ecd2cSYork Sunconfig TPL_ENV_IS_IN_SPI_FLASH
641474ecd2cSYork Sun	bool "TPL Environment is in SPI flash"
642474ecd2cSYork Sun	depends on !TPL_ENV_IS_NOWHERE
643474ecd2cSYork Sun	depends on ENV_IS_IN_SPI_FLASH
644474ecd2cSYork Sun	default y
645474ecd2cSYork Sun	help
646474ecd2cSYork Sun	  Similar to ENV_IS_IN_SPI_FLASH, used for TPL environment.
647474ecd2cSYork Sun
648474ecd2cSYork Sunconfig TPL_ENV_IS_IN_FLASH
649474ecd2cSYork Sun	bool "TPL Environment in flash memory"
650474ecd2cSYork Sun	depends on !TPL_ENV_IS_NOWHERE
651474ecd2cSYork Sun	depends on ENV_IS_IN_FLASH
652474ecd2cSYork Sun	default y
653474ecd2cSYork Sun	help
654474ecd2cSYork Sun	  Similar to ENV_IS_IN_FLASH, used for TPL environment.
655474ecd2cSYork Sun
656474ecd2cSYork Sunendif
657474ecd2cSYork Sun
658*4e0b57fbSryan_chenconfig ENV_OFFSET
659*4e0b57fbSryan_chen        hex "Environment offset"
660*4e0b57fbSryan_chen        depends on ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \
661*4e0b57fbSryan_chen                    ENV_IS_IN_SPI_FLASH
662*4e0b57fbSryan_chen        help
663*4e0b57fbSryan_chen          Offset from the start of the device (or partition)
664*4e0b57fbSryan_chen
665*4e0b57fbSryan_chenconfig ENV_SIZE
666*4e0b57fbSryan_chen        hex "Environment Size"
667*4e0b57fbSryan_chen        help
668*4e0b57fbSryan_chen          Size of the environment storage area
669*4e0b57fbSryan_chen
6700649cd0dSSimon Glassendmenu
671