Michal Simek | b513bcd | 2018-04-12 17:39:46 +0200 | [diff] [blame] | 1 | // 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> |
| 8 | |
| 9 | int board_init(void) |
| 10 | { |
| 11 | return 0; |
| 12 | } |
| 13 | |
| 14 | int dram_init_banksize(void) |
| 15 | { |
| 16 | return fdtdec_setup_memory_banksize(); |
| 17 | } |
| 18 | |
| 19 | int dram_init(void) |
| 20 | { |
Siva Durga Prasad Paladugu | b3d55ea | 2018-07-16 15:56:11 +0530 | [diff] [blame] | 21 | if (fdtdec_setup_mem_size_base() != 0) |
Michal Simek | b513bcd | 2018-04-12 17:39:46 +0200 | [diff] [blame] | 22 | return -EINVAL; |
| 23 | |
| 24 | return 0; |
| 25 | } |