Apurva Nandan | de5ef5d | 2024-02-24 01:51:46 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | /* |
| 3 | * Board specific initialization for J784S4 EVM |
| 4 | * |
| 5 | * Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/ |
| 6 | * Hari Nagalla <hnagalla@ti.com> |
| 7 | * |
| 8 | */ |
| 9 | |
| 10 | #include <init.h> |
| 11 | #include <spl.h> |
| 12 | #include "../common/fdt_ops.h" |
| 13 | |
| 14 | DECLARE_GLOBAL_DATA_PTR; |
| 15 | |
| 16 | int board_init(void) |
| 17 | { |
| 18 | return 0; |
| 19 | } |
| 20 | |
| 21 | int dram_init(void) |
| 22 | { |
| 23 | return fdtdec_setup_mem_size_base(); |
| 24 | } |
| 25 | |
| 26 | int dram_init_banksize(void) |
| 27 | { |
| 28 | return fdtdec_setup_memory_banksize(); |
| 29 | } |
| 30 | |
| 31 | #ifdef CONFIG_BOARD_LATE_INIT |
| 32 | int board_late_init(void) |
| 33 | { |
| 34 | ti_set_fdt_env(NULL, NULL); |
| 35 | return 0; |
| 36 | } |
| 37 | #endif |
| 38 | |
| 39 | void spl_board_init(void) |
| 40 | { |
| 41 | } |