]> git.ipfire.org Git - people/ms/u-boot.git/blob - arch/mips/mach-ath79/dram.c
board_f: Drop return value from initdram()
[people/ms/u-boot.git] / arch / mips / mach-ath79 / dram.c
1 /*
2 * Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7 #include <common.h>
8 #include <linux/sizes.h>
9 #include <asm/addrspace.h>
10 #include <mach/ddr.h>
11
12 DECLARE_GLOBAL_DATA_PTR;
13
14 int initdram(void)
15 {
16 ddr_tap_tuning();
17 gd->ram_size = get_ram_size((void *)KSEG1, SZ_256M);
18
19 return 0;
20 }