blob: daf17e016934b4656a689d9c1b07ffe6d1470cec [file] [log] [blame]
Vabhav Sharma51641912019-06-06 12:35:28 +00001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright 2019 NXP
4 */
5
6#include <common.h>
7#include <fsl_ddr_sdram.h>
8
9DECLARE_GLOBAL_DATA_PTR;
10
11int fsl_initdram(void)
12{
13 gd->ram_size = tfa_get_dram_size();
14
15 if (!gd->ram_size)
16 gd->ram_size = fsl_ddr_sdram_size();
17
18 return 0;
19}