~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: 5c5a2e93863f2c687ab895de764fd08c4e19f78a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: GPL-2.0
/*
 * (C) Copyright 2018 Xilinx, Inc. (Michal Simek)
 */

#include <common.h>
#include <fdtdec.h>
#include <init.h>

int board_init(void)
{
	return 0;
}

int dram_init_banksize(void)
{
	return fdtdec_setup_memory_banksize();
}

int dram_init(void)
{
	if (fdtdec_setup_mem_size_base() != 0)
		return -EINVAL;

	return 0;
}