blob: 5c5a2e93863f2c687ab895de764fd08c4e19f78a [file] [log] [blame]
Michal Simekb513bcd2018-04-12 17:39:46 +02001// SPDX-License-Identifier: GPL-2.0
2/*
3 * (C) Copyright 2018 Xilinx, Inc. (Michal Simek)
4 */
5
6#include <common.h>
7#include <fdtdec.h>
Simon Glass97589732020-05-10 11:40:02 -06008#include <init.h>
Michal Simekb513bcd2018-04-12 17:39:46 +02009
10int board_init(void)
11{
12 return 0;
13}
14
15int dram_init_banksize(void)
16{
17 return fdtdec_setup_memory_banksize();
18}
19
20int dram_init(void)
21{
Siva Durga Prasad Paladugub3d55ea2018-07-16 15:56:11 +053022 if (fdtdec_setup_mem_size_base() != 0)
Michal Simekb513bcd2018-04-12 17:39:46 +020023 return -EINVAL;
24
25 return 0;
26}