mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-20 17:08:52 +09:00
20 lines
277 B
C
20 lines
277 B
C
![]() |
// SPDX-License-Identifier: GPL-2.0+
|
||
|
/*
|
||
|
* Copyright 2019 NXP
|
||
|
*/
|
||
|
|
||
|
#include <common.h>
|
||
|
#include <fsl_ddr_sdram.h>
|
||
|
|
||
|
DECLARE_GLOBAL_DATA_PTR;
|
||
|
|
||
|
int fsl_initdram(void)
|
||
|
{
|
||
|
gd->ram_size = tfa_get_dram_size();
|
||
|
|
||
|
if (!gd->ram_size)
|
||
|
gd->ram_size = fsl_ddr_sdram_size();
|
||
|
|
||
|
return 0;
|
||
|
}
|