Kconfig: Move config SYS_MALLOC_LEN to Kconfig for zynq
This patch moves the the config SYS_MALLOC_LEN to Kconfig. It will be just for Zynq arch and to do will be for all other archs. Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
		
							parent
							
								
									d9961fa2a2
								
							
						
					
					
						commit
						01aa5b8f05
					
				
							
								
								
									
										7
									
								
								Kconfig
								
								
								
								
							
							
						
						
									
										7
									
								
								Kconfig
								
								
								
								
							|  | @ -136,6 +136,13 @@ config SYS_MALLOC_F_LEN | ||||||
| 	  particular needs this to operate, so that it can allocate the | 	  particular needs this to operate, so that it can allocate the | ||||||
| 	  initial serial device and any others that are needed. | 	  initial serial device and any others that are needed. | ||||||
| 
 | 
 | ||||||
|  | config SYS_MALLOC_LEN | ||||||
|  | 	hex "Define memory for Dynamic allocation" | ||||||
|  | 	depends on ARCH_ZYNQ | ||||||
|  | 	help | ||||||
|  | 	  This defines memory to be allocated for Dynamic allocation | ||||||
|  | 	  TODO: Use for other architectures | ||||||
|  | 
 | ||||||
| config SPL_SYS_MALLOC_F_LEN | config SPL_SYS_MALLOC_F_LEN | ||||||
| 	hex "Size of malloc() pool in SPL before relocation" | 	hex "Size of malloc() pool in SPL before relocation" | ||||||
| 	depends on SYS_MALLOC_F | 	depends on SYS_MALLOC_F | ||||||
|  |  | ||||||
|  | @ -57,6 +57,9 @@ config SYS_CONFIG_NAME | ||||||
| config SYS_MALLOC_F_LEN | config SYS_MALLOC_F_LEN | ||||||
| 	default 0x600 | 	default 0x600 | ||||||
| 
 | 
 | ||||||
|  | config SYS_MALLOC_LEN | ||||||
|  | 	default 0x1400000 | ||||||
|  | 
 | ||||||
| config BOOT_INIT_FILE | config BOOT_INIT_FILE | ||||||
| 	string "boot.bin init register filename" | 	string "boot.bin init register filename" | ||||||
| 	default "" | 	default "" | ||||||
|  |  | ||||||
|  | @ -5,6 +5,7 @@ CONFIG_SYS_TEXT_BASE=0x100000 | ||||||
| CONFIG_ENV_SIZE=0x190 | CONFIG_ENV_SIZE=0x190 | ||||||
| CONFIG_SPL=y | CONFIG_SPL=y | ||||||
| CONFIG_SPL_STACK_R_ADDR=0x200000 | CONFIG_SPL_STACK_R_ADDR=0x200000 | ||||||
|  | CONFIG_SYS_MALLOC_LEN=0x1000 | ||||||
| CONFIG_DEFAULT_DEVICE_TREE="zynq-cse-nand" | CONFIG_DEFAULT_DEVICE_TREE="zynq-cse-nand" | ||||||
| # CONFIG_DISPLAY_CPUINFO is not set | # CONFIG_DISPLAY_CPUINFO is not set | ||||||
| CONFIG_SPL_STACK_R=y | CONFIG_SPL_STACK_R=y | ||||||
|  |  | ||||||
|  | @ -5,6 +5,7 @@ CONFIG_SYS_TEXT_BASE=0xFFFC0000 | ||||||
| CONFIG_ENV_SIZE=0x190 | CONFIG_ENV_SIZE=0x190 | ||||||
| CONFIG_SPL=y | CONFIG_SPL=y | ||||||
| CONFIG_SPL_STACK_R_ADDR=0x200000 | CONFIG_SPL_STACK_R_ADDR=0x200000 | ||||||
|  | CONFIG_SYS_MALLOC_LEN=0x1000 | ||||||
| CONFIG_DEFAULT_DEVICE_TREE="zynq-cse-nor" | CONFIG_DEFAULT_DEVICE_TREE="zynq-cse-nor" | ||||||
| CONFIG_BOOTDELAY=-1 | CONFIG_BOOTDELAY=-1 | ||||||
| # CONFIG_DISPLAY_CPUINFO is not set | # CONFIG_DISPLAY_CPUINFO is not set | ||||||
|  |  | ||||||
|  | @ -8,6 +8,7 @@ CONFIG_DEBUG_UART_BASE=0x0 | ||||||
| CONFIG_DEBUG_UART_CLOCK=0 | CONFIG_DEBUG_UART_CLOCK=0 | ||||||
| CONFIG_SPL_STACK_R_ADDR=0x200000 | CONFIG_SPL_STACK_R_ADDR=0x200000 | ||||||
| # CONFIG_ZYNQ_DDRC_INIT is not set | # CONFIG_ZYNQ_DDRC_INIT is not set | ||||||
|  | CONFIG_SYS_MALLOC_LEN=0x1000 | ||||||
| # CONFIG_CMD_ZYNQ is not set | # CONFIG_CMD_ZYNQ is not set | ||||||
| CONFIG_DEFAULT_DEVICE_TREE="zynq-cse-qspi-single" | CONFIG_DEFAULT_DEVICE_TREE="zynq-cse-qspi-single" | ||||||
| CONFIG_DEBUG_UART=y | CONFIG_DEBUG_UART=y | ||||||
|  |  | ||||||
|  | @ -234,8 +234,6 @@ | ||||||
| #define CONFIG_SYS_MEMTEST_START	0 | #define CONFIG_SYS_MEMTEST_START	0 | ||||||
| #define CONFIG_SYS_MEMTEST_END		0x1000 | #define CONFIG_SYS_MEMTEST_END		0x1000 | ||||||
| 
 | 
 | ||||||
| #define CONFIG_SYS_MALLOC_LEN		0x1400000 |  | ||||||
| 
 |  | ||||||
| #define CONFIG_SYS_INIT_RAM_ADDR	0xFFFF0000 | #define CONFIG_SYS_INIT_RAM_ADDR	0xFFFF0000 | ||||||
| #define CONFIG_SYS_INIT_RAM_SIZE	0x1000 | #define CONFIG_SYS_INIT_RAM_SIZE	0x1000 | ||||||
| #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_INIT_RAM_ADDR + \ | #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_INIT_RAM_ADDR + \ | ||||||
|  |  | ||||||
|  | @ -36,7 +36,4 @@ | ||||||
| #define CONFIG_SPL_BSS_START_ADDR	0x20000 | #define CONFIG_SPL_BSS_START_ADDR	0x20000 | ||||||
| #define CONFIG_SPL_BSS_MAX_SIZE		0x8000 | #define CONFIG_SPL_BSS_MAX_SIZE		0x8000 | ||||||
| 
 | 
 | ||||||
| #undef CONFIG_SYS_MALLOC_LEN |  | ||||||
| #define CONFIG_SYS_MALLOC_LEN	0x1000 |  | ||||||
| 
 |  | ||||||
| #endif /* __CONFIG_ZYNQ_CSE_H */ | #endif /* __CONFIG_ZYNQ_CSE_H */ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue