mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-03 21:48:15 +00:00 
			
		
		
		
	env: Merge Rockchip, Sunxi, Zynq and ZynqMP
There is no reason to have the same Kconfig options for different SoCs separately. The patch is merging them together. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Acked-by: Maxime Ripard <maxime.ripard@bootlin.com> [trini: Fix ENV_SIZE around ENV_IS_NOWHERE] Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
		
							parent
							
								
									9f8cf76be2
								
							
						
					
					
						commit
						4aee624c92
					
				
							
								
								
									
										64
									
								
								env/Kconfig
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										64
									
								
								env/Kconfig
									
									
									
									
										vendored
									
									
								
							@ -431,23 +431,35 @@ config ENV_EXT4_FILE
 | 
				
			|||||||
	  It's a string of the EXT4 file name. This file use to store the
 | 
						  It's a string of the EXT4 file name. This file use to store the
 | 
				
			||||||
	  environment (explicit path to the file)
 | 
						  environment (explicit path to the file)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if ARCH_SUNXI
 | 
					if ARCH_ROCKCHIP || ARCH_SUNXI || ARCH_ZYNQ || ARCH_ZYNQMP
 | 
				
			||||||
 | 
					
 | 
				
			||||||
config ENV_OFFSET
 | 
					config ENV_OFFSET
 | 
				
			||||||
	hex "Environment Offset"
 | 
						hex "Environment Offset"
 | 
				
			||||||
	depends on !ENV_IS_IN_UBI
 | 
						depends on !ENV_IS_IN_UBI
 | 
				
			||||||
	depends on !ENV_IS_NOWHERE
 | 
						depends on !ENV_IS_NOWHERE
 | 
				
			||||||
 | 
						default 0x3f8000 if ARCH_ROCKCHIP
 | 
				
			||||||
	default 0x88000 if ARCH_SUNXI
 | 
						default 0x88000 if ARCH_SUNXI
 | 
				
			||||||
 | 
						default 0xE0000 if ARCH_ZYNQ
 | 
				
			||||||
 | 
						default 0x1E00000 if ARCH_ZYNQMP
 | 
				
			||||||
	help
 | 
						help
 | 
				
			||||||
	  Offset from the start of the device (or partition)
 | 
						  Offset from the start of the device (or partition)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
config ENV_SIZE
 | 
					config ENV_SIZE
 | 
				
			||||||
	hex "Environment Size"
 | 
						hex "Environment Size"
 | 
				
			||||||
	depends on !ENV_IS_NOWHERE
 | 
						default 0x40000 if ENV_IS_IN_SPI_FLASH && ARCH_ZYNQMP
 | 
				
			||||||
	default 0x20000 if ARCH_SUNXI
 | 
						default 0x20000 if ARCH_SUNXI || ARCH_ZYNQ
 | 
				
			||||||
 | 
						default 0x8000 if ARCH_ROCKCHIP || ARCH_ZYNQMP
 | 
				
			||||||
	help
 | 
						help
 | 
				
			||||||
	  Size of the environment storage area
 | 
						  Size of the environment storage area
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					config ENV_SECT_SIZE
 | 
				
			||||||
 | 
						hex "Environment Sector-Size"
 | 
				
			||||||
 | 
						depends on !ENV_IS_NOWHERE && (ARCH_ZYNQ || ARCH_ZYNQMP)
 | 
				
			||||||
 | 
						default 0x40000 if ARCH_ZYNQMP
 | 
				
			||||||
 | 
						default 0x20000 if ARCH_ZYNQ
 | 
				
			||||||
 | 
						help
 | 
				
			||||||
 | 
						  Size of the sector containing the environment.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
config ENV_UBI_PART
 | 
					config ENV_UBI_PART
 | 
				
			||||||
	string "UBI partition name"
 | 
						string "UBI partition name"
 | 
				
			||||||
	depends on ENV_IS_IN_UBI
 | 
						depends on ENV_IS_IN_UBI
 | 
				
			||||||
@ -462,52 +474,6 @@ config ENV_UBI_VOLUME
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if ARCH_ROCKCHIP
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
config ENV_OFFSET
 | 
					 | 
				
			||||||
	hex
 | 
					 | 
				
			||||||
	depends on !ENV_IS_IN_UBI
 | 
					 | 
				
			||||||
	depends on !ENV_IS_NOWHERE
 | 
					 | 
				
			||||||
	default 0x3f8000
 | 
					 | 
				
			||||||
	help
 | 
					 | 
				
			||||||
	  Offset from the start of the device (or partition)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
config ENV_SIZE
 | 
					 | 
				
			||||||
	hex
 | 
					 | 
				
			||||||
	default 0x8000
 | 
					 | 
				
			||||||
	help
 | 
					 | 
				
			||||||
	  Size of the environment storage area
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
if ARCH_ZYNQMP || ARCH_ZYNQ
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
config ENV_OFFSET
 | 
					 | 
				
			||||||
	hex "Environment Offset"
 | 
					 | 
				
			||||||
	depends on !ENV_IS_NOWHERE
 | 
					 | 
				
			||||||
	default 0x1E00000 if ARCH_ZYNQMP
 | 
					 | 
				
			||||||
	default 0xE0000 if ARCH_ZYNQ
 | 
					 | 
				
			||||||
	help
 | 
					 | 
				
			||||||
	  Offset from the start of the device (or partition)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
config ENV_SIZE
 | 
					 | 
				
			||||||
	hex "Environment Size"
 | 
					 | 
				
			||||||
	default 0x40000 if ENV_IS_IN_SPI_FLASH && ARCH_ZYNQMP
 | 
					 | 
				
			||||||
	default 0x8000 if ARCH_ZYNQMP
 | 
					 | 
				
			||||||
	default 0x20000 if ARCH_ZYNQ
 | 
					 | 
				
			||||||
	help
 | 
					 | 
				
			||||||
	  Size of the environment storage area.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
config ENV_SECT_SIZE
 | 
					 | 
				
			||||||
	hex "Environment Sector-Size"
 | 
					 | 
				
			||||||
	depends on !ENV_IS_NOWHERE
 | 
					 | 
				
			||||||
	default 0x40000 if ARCH_ZYNQMP
 | 
					 | 
				
			||||||
	default 0x20000 if ARCH_ZYNQ
 | 
					 | 
				
			||||||
	help
 | 
					 | 
				
			||||||
	  Size of the sector containing the environment.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
config USE_DEFAULT_ENV_FILE
 | 
					config USE_DEFAULT_ENV_FILE
 | 
				
			||||||
	bool "Create default environment from file"
 | 
						bool "Create default environment from file"
 | 
				
			||||||
	help
 | 
						help
 | 
				
			||||||
 | 
				
			|||||||
@ -153,8 +153,6 @@
 | 
				
			|||||||
#define CONFIG_SYS_MMC_ENV_DEV		0
 | 
					#define CONFIG_SYS_MMC_ENV_DEV		0
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
#define CONFIG_SYS_MMC_MAX_DEVICE	4
 | 
					#define CONFIG_SYS_MMC_MAX_DEVICE	4
 | 
				
			||||||
#elif defined(CONFIG_ENV_IS_NOWHERE)
 | 
					 | 
				
			||||||
#define CONFIG_ENV_SIZE			(128 << 10)
 | 
					 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef CONFIG_MACH_SUN8I_V3S
 | 
					#ifndef CONFIG_MACH_SUN8I_V3S
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user