blob: 1c73addcb3843f0f152905d4cd2c1f5593e29e52 [file] [log] [blame]
Wills Wang1d3d0f12016-03-16 16:59:52 +08001/*
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
Simon Glass088454c2017-03-31 08:40:25 -060012DECLARE_GLOBAL_DATA_PTR;
13
14int initdram(void)
Wills Wang1d3d0f12016-03-16 16:59:52 +080015{
16 ddr_tap_tuning();
Simon Glass088454c2017-03-31 08:40:25 -060017 gd->ram_size = get_ram_size((void *)KSEG1, SZ_256M);
18
19 return 0;
Wills Wang1d3d0f12016-03-16 16:59:52 +080020}