mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-30 23:03:45 +09:00
arm: socfpga: spl: printout sdram size
Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com> Reviewed-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
37ef0c70d3
commit
89ba82479e
@ -54,6 +54,7 @@ u32 spl_boot_device(void)
|
|||||||
*/
|
*/
|
||||||
void spl_board_init(void)
|
void spl_board_init(void)
|
||||||
{
|
{
|
||||||
|
unsigned long sdram_size;
|
||||||
#ifndef CONFIG_SOCFPGA_VIRTUAL_TARGET
|
#ifndef CONFIG_SOCFPGA_VIRTUAL_TARGET
|
||||||
cm_config_t cm_default_cfg = {
|
cm_config_t cm_default_cfg = {
|
||||||
/* main group */
|
/* main group */
|
||||||
@ -187,4 +188,7 @@ void spl_board_init(void)
|
|||||||
puts("SDRAM calibration failed.\n");
|
puts("SDRAM calibration failed.\n");
|
||||||
hang();
|
hang();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sdram_size = sdram_calculate_size();
|
||||||
|
debug("SDRAM: %ld MiB\n", sdram_size >> 20);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user