]> git.ipfire.org Git - people/ms/u-boot.git/blob - arch/sh/lib/board.c
sh: add common dram_init() function for all boards
[people/ms/u-boot.git] / arch / sh / lib / board.c
1 /*
2 * Copyright (C) 2016 Vladimir Zapolskiy <vz@mleia.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7 #include <common.h>
8
9 DECLARE_GLOBAL_DATA_PTR;
10
11 int dram_init(void)
12 {
13 gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
14 CONFIG_SYS_SDRAM_SIZE);
15
16 return 0;
17 }