arm: mach-k3: common: Use ddr_init in spl_enable_dcache
The spl_enable_dcache() function calls dram_init_banksize() to get the total memory size. Normally the dram_init_banksize() setups the memory banks, while the total size is reported by ddr_init(). This worked so far for K3 since we set the gd->ram_size in dram_init_banksize() as well. Signed-off-by: Georgi Vlaev <g-vlaev@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
		
							parent
							
								
									7e27ce16c5
								
							
						
					
					
						commit
						a04bbb83b4
					
				| 
						 | 
					@ -516,7 +516,7 @@ void spl_enable_dcache(void)
 | 
				
			||||||
#if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))
 | 
					#if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))
 | 
				
			||||||
	phys_addr_t ram_top = CONFIG_SYS_SDRAM_BASE;
 | 
						phys_addr_t ram_top = CONFIG_SYS_SDRAM_BASE;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	dram_init_banksize();
 | 
						dram_init();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* reserve TLB table */
 | 
						/* reserve TLB table */
 | 
				
			||||||
	gd->arch.tlb_size = PGTABLE_SIZE;
 | 
						gd->arch.tlb_size = PGTABLE_SIZE;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue