]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/avr32/lib/dram_init.c
stm32: Correct positioning of declaration
[people/ms/u-boot.git] / arch / avr32 / lib / dram_init.c
CommitLineData
18667860 1/*
09c2b8f3 2 * Copyright (C) 2015 Andreas Bießmann <andreas@biessmann.org>
18667860
AB
3 *
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}