warp: Use imx_ddr_size() for calculating the DDR size
imx_ddr_size() can be used to calculate the DDR size in runtime. By using this function we no longer need to define PHYS_SDRAM_SIZE. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
This commit is contained in:
		
							parent
							
								
									71813dcb56
								
							
						
					
					
						commit
						a13d3757f7
					
				|  | @ -46,7 +46,7 @@ DECLARE_GLOBAL_DATA_PTR; | ||||||
| 
 | 
 | ||||||
| int dram_init(void) | int dram_init(void) | ||||||
| { | { | ||||||
| 	gd->ram_size = get_ram_size((void *)PHYS_SDRAM, PHYS_SDRAM_SIZE); | 	gd->ram_size = imx_ddr_size(); | ||||||
| 
 | 
 | ||||||
| 	return 0; | 	return 0; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -43,7 +43,6 @@ | ||||||
| /* Physical Memory Map */ | /* Physical Memory Map */ | ||||||
| #define CONFIG_NR_DRAM_BANKS		1 | #define CONFIG_NR_DRAM_BANKS		1 | ||||||
| #define PHYS_SDRAM			MMDC0_ARB_BASE_ADDR | #define PHYS_SDRAM			MMDC0_ARB_BASE_ADDR | ||||||
| #define PHYS_SDRAM_SIZE			SZ_512M |  | ||||||
| 
 | 
 | ||||||
| #define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM | #define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM | ||||||
| #define CONFIG_SYS_INIT_RAM_ADDR	IRAM_BASE_ADDR | #define CONFIG_SYS_INIT_RAM_ADDR	IRAM_BASE_ADDR | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue