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