aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7/socfpga/misc.c
blob: 2f1c7160f1ff458bef09c2a3b7078a540d47b5e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 *  Copyright (C) 2012 Altera Corporation <www.altera.com>
 *
 * SPDX-License-Identifier:	GPL-2.0+
 */

#include <common.h>
#include <asm/io.h>

DECLARE_GLOBAL_DATA_PTR;

int dram_init(void)
{
	gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
	return 0;
}