blob: 79c2455bd613759f097f3fdc2d2c85ff46203da1 [file] [log] [blame]
Andreas Bießmann662a4f22015-02-06 23:06:43 +01001/*
Andreas Bießmann07dafdb2016-05-01 03:46:16 +02002 * Copyright (C) 2015 Andreas Bießmann <andreas@biessmann.org>
Andreas Bießmann662a4f22015-02-06 23:06:43 +01003 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6#include <common.h>
7
8DECLARE_GLOBAL_DATA_PTR;
9
10int dram_init(void)
11{
12 /* check for the maximum amount of memory possible on AP7000 devices */
13 gd->ram_size = get_ram_size(
14 (void *)CONFIG_SYS_SDRAM_BASE,
15 (256<<20));
16 return 0;
17}