Philippe Reynes | 0fb541d | 2022-02-11 19:18:38 +0100 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2022 Philippe Reynes <philippe.reynes@softathome.com> |
| 4 | */ |
| 5 | |
| 6 | #include <common.h> |
| 7 | #include <fdtdec.h> |
| 8 | #include <linux/io.h> |
| 9 | #include <cpu_func.h> |
| 10 | |
| 11 | int board_init(void) |
| 12 | { |
| 13 | return 0; |
| 14 | } |
| 15 | |
| 16 | int dram_init(void) |
| 17 | { |
| 18 | if (fdtdec_setup_mem_size_base() != 0) |
| 19 | printf("fdtdec_setup_mem_size_base() has failed\n"); |
| 20 | |
| 21 | return 0; |
| 22 | } |
| 23 | |
| 24 | int dram_init_banksize(void) |
| 25 | { |
| 26 | fdtdec_setup_memory_banksize(); |
| 27 | |
| 28 | return 0; |
| 29 | } |
| 30 | |
| 31 | int print_cpuinfo(void) |
| 32 | { |
| 33 | return 0; |
| 34 | } |
| 35 | |
| 36 | void enable_caches(void) |
| 37 | { |
| 38 | icache_enable(); |
| 39 | dcache_enable(); |
| 40 | } |