mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 09:54:35 +00:00
board: verdin-am62: add dram_init_banksize
Add the dram_init_banksize function to the board file to properly set DRAM memory sizes during boot. The commitbc07851897
("board: ti: Pull redundant DDR functions to a common location and Fixup DDR size when ECC is enabled") relocated the dram_init_banksize function from architecture specific initialization to the TI board initialization code. As a result, boards relying on the previous setup now require this function to be defined within their board file to handle DRAM sizing correctly. Without this function defined the following error appears during boot: ERROR: Failed to allocate 0x1000 bytes below 0x0. Fixes:bc07851897
("board: ti: Pull redundant DDR functions to a common location and Fixup DDR size when ECC is enabled") Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com> Acked-by: Francesco Dolcini <francesco.dolcini@toradex.com>
This commit is contained in:
parent
7a45cb4ffe
commit
3f866c47b5
1 changed files with 11 additions and 0 deletions
|
@ -35,6 +35,17 @@ int dram_init(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int dram_init_banksize(void)
|
||||
{
|
||||
s32 ret;
|
||||
|
||||
ret = fdtdec_setup_memory_banksize();
|
||||
if (ret)
|
||||
printf("Error setting up memory banksize. %d\n", ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*
|
||||
* Avoid relocated U-Boot clash with Linux reserved-memory on 512 MB SoM
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue