Michal Simek | 1d6c54e | 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> |
Simon Glass | 691d719 | 2020-05-10 11:40:02 -0600 | [diff] [blame] | 8 | #include <init.h> |
Michal Simek | 1d6c54e | 2018-04-12 17:39:46 +0200 | [diff] [blame] | 9 | |
| 10 | int board_init(void) |
| 11 | { |
| 12 | return 0; |
| 13 | } |
| 14 | |
| 15 | int dram_init_banksize(void) |
| 16 | { |
| 17 | return fdtdec_setup_memory_banksize(); |
| 18 | } |
| 19 | |
| 20 | int dram_init(void) |
| 21 | { |
Siva Durga Prasad Paladugu | 12308b1 | 2018-07-16 15:56:11 +0530 | [diff] [blame] | 22 | if (fdtdec_setup_mem_size_base() != 0) |
Michal Simek | 1d6c54e | 2018-04-12 17:39:46 +0200 | [diff] [blame] | 23 | return -EINVAL; |
| 24 | |
| 25 | return 0; |
| 26 | } |