Sam Protsenko | 29c8027 | 2024-01-10 21:09:08 -0600 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
Sam Protsenko | 850f144 | 2024-07-23 13:14:36 -0500 | [diff] [blame] | 3 | * Copyright (c) 2024, Linaro Ltd. |
| 4 | * Author: Sam Protsenko <semen.protsenko@linaro.org> |
Sam Protsenko | 29c8027 | 2024-01-10 21:09:08 -0600 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <init.h> |
Sam Protsenko | 850f144 | 2024-07-23 13:14:36 -0500 | [diff] [blame] | 8 | #include "fw.h" |
Sam Protsenko | 29c8027 | 2024-01-10 21:09:08 -0600 | [diff] [blame] | 9 | |
| 10 | int dram_init(void) |
| 11 | { |
| 12 | return fdtdec_setup_mem_size_base(); |
| 13 | } |
| 14 | |
| 15 | int dram_init_banksize(void) |
| 16 | { |
| 17 | return fdtdec_setup_memory_banksize(); |
| 18 | } |
| 19 | |
| 20 | int board_init(void) |
| 21 | { |
Sam Protsenko | 850f144 | 2024-07-23 13:14:36 -0500 | [diff] [blame] | 22 | load_ldfw(); |
Sam Protsenko | 29c8027 | 2024-01-10 21:09:08 -0600 | [diff] [blame] | 23 | return 0; |
| 24 | } |