projects
/
platform
/
kernel
/
u-boot.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-fsl-qoriq
[platform/kernel/u-boot.git]
/
board
/
freescale
/
ls1046afrwy
/
ddr.c
1
// SPDX-License-Identifier: GPL-2.0+
2
/*
3
* Copyright 2019 NXP
4
*/
5
6
#include <common.h>
7
#include <fsl_ddr_sdram.h>
8
9
DECLARE_GLOBAL_DATA_PTR;
10
11
int 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
}