diff options
author | Tom Rini <trini@konsulko.com> | 2019-02-20 12:26:05 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-02-20 12:26:05 -0500 |
commit | 176b32cd4fec52307dd8234ec1c86d2f340e7a36 (patch) | |
tree | a0cb5ffc2543573d1e5af1ddb7500d97e15b3a00 /board/freescale/lx2160a/ddr.c | |
parent | 97f9830849c64d60d0cf2fd69e87dfe4557d02a4 (diff) | |
parent | b0d4a854751b1bee75fc04fac58561212f6b9c64 (diff) |
Merge git://git.denx.de/u-boot-fsl-qoriq
- Support of NXP's LX2160RDB and LX2160QDS platform
- Enable SATA DM model for NXP's ARM SoCs
Diffstat (limited to 'board/freescale/lx2160a/ddr.c')
-rw-r--r-- | board/freescale/lx2160a/ddr.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/board/freescale/lx2160a/ddr.c b/board/freescale/lx2160a/ddr.c new file mode 100644 index 00000000000..cd422bf2bc5 --- /dev/null +++ b/board/freescale/lx2160a/ddr.c @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2018 NXP + */ + +#include <common.h> +#include <fsl_ddr_sdram.h> +#include <fsl_ddr_dimm_params.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; +} |