blob: 0c62b0013c46360e5247589f212ea01a5e25d4ad [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
Michal Simekb513bcd2018-04-12 17:39:46 +02006#include <fdtdec.h>
Simon Glass97589732020-05-10 11:40:02 -06007#include <init.h>
Tom Rinifa95ef62024-04-30 20:43:15 -06008#include <linux/errno.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}