projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SPDX: Convert all of our single license tags to Linux Kernel style
[platform/kernel/u-boot.git]
/
board
/
freescale
/
ls1046aqds
/
ddr.c
diff --git
a/board/freescale/ls1046aqds/ddr.c
b/board/freescale/ls1046aqds/ddr.c
index
dc4d689
..
08f7610
100644
(file)
--- a/
board/freescale/ls1046aqds/ddr.c
+++ b/
board/freescale/ls1046aqds/ddr.c
@@
-1,7
+1,6
@@
+// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright 2016 Freescale Semiconductor, Inc.
/*
* Copyright 2016 Freescale Semiconductor, Inc.
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
*/
#include <common.h>
@@
-10,6
+9,7
@@
#ifdef CONFIG_FSL_DEEP_SLEEP
#include <fsl_sleep.h>
#endif
#ifdef CONFIG_FSL_DEEP_SLEEP
#include <fsl_sleep.h>
#endif
+#include <asm/arch/clock.h>
#include "ddr.h"
DECLARE_GLOBAL_DATA_PTR;
#include "ddr.h"
DECLARE_GLOBAL_DATA_PTR;
@@
-92,12
+92,14
@@
found:
popts->cpo_sample = 0x70;
}
popts->cpo_sample = 0x70;
}
-
phys_size_t initdram(int board_type
)
+
int fsl_initdram(void
)
{
phys_size_t dram_size;
#if defined(CONFIG_SPL) && !defined(CONFIG_SPL_BUILD)
{
phys_size_t dram_size;
#if defined(CONFIG_SPL) && !defined(CONFIG_SPL_BUILD)
- return fsl_ddr_sdram_size();
+ gd->ram_size = fsl_ddr_sdram_size();
+
+ return 0;
#else
puts("Initializing DDR....using SPD\n");
#else
puts("Initializing DDR....using SPD\n");
@@
-110,5
+112,7
@@
phys_size_t initdram(int board_type)
erratum_a008850_post();
erratum_a008850_post();
- return dram_size;
+ gd->ram_size = dram_size;
+
+ return 0;
}
}