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 | |
Michal Simek | b513bcd | 2018-04-12 17:39:46 +0200 | [diff] [blame] | 6 | #include <fdtdec.h> |
Simon Glass | 9758973 | 2020-05-10 11:40:02 -0600 | [diff] [blame] | 7 | #include <init.h> |
Tom Rini | dec7ea0 | 2024-05-20 13:35:03 -0600 | [diff] [blame^] | 8 | #include <linux/errno.h> |
Michal Simek | b513bcd | 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 | b3d55ea | 2018-07-16 15:56:11 +0530 | [diff] [blame] | 22 | if (fdtdec_setup_mem_size_base() != 0) |
Michal Simek | b513bcd | 2018-04-12 17:39:46 +0200 | [diff] [blame] | 23 | return -EINVAL; |
| 24 | |
| 25 | return 0; |
| 26 | } |