summaryrefslogtreecommitdiffstats
path: root/arch/mips/mach-ath79/dram.c
blob: c29e98c2f4c2e0009fd843c214490d6d3c1b519e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com>
 *
 * SPDX-License-Identifier: GPL-2.0+
 */

#include <common.h>
#include <linux/sizes.h>
#include <asm/addrspace.h>
#include <mach/ddr.h>

phys_size_t initdram(int board_type)
{
	ddr_tap_tuning();
	return get_ram_size((void *)KSEG1, SZ_256M);
}
OpenPOWER on IntegriCloud