Bryan Brattlof | a0659a5 | 2022-11-03 19:13:57 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Board specific initialization for AM62Ax platforms |
| 4 | * |
| 5 | * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ |
| 6 | * |
| 7 | */ |
| 8 | |
| 9 | #include <asm/arch/hardware.h> |
Bryan Brattlof | a0659a5 | 2022-11-03 19:13:57 -0500 | [diff] [blame] | 10 | #include <asm/io.h> |
Bryan Brattlof | a0659a5 | 2022-11-03 19:13:57 -0500 | [diff] [blame] | 11 | #include <dm/uclass.h> |
| 12 | #include <env.h> |
| 13 | #include <fdt_support.h> |
| 14 | #include <spl.h> |
| 15 | |
Nishanth Menon | 3713cc7 | 2024-02-12 13:47:18 -0600 | [diff] [blame] | 16 | #include "../common/fdt_ops.h" |
| 17 | |
Bryan Brattlof | a0659a5 | 2022-11-03 19:13:57 -0500 | [diff] [blame] | 18 | int board_init(void) |
| 19 | { |
| 20 | return 0; |
| 21 | } |
| 22 | |
| 23 | int dram_init(void) |
| 24 | { |
| 25 | return fdtdec_setup_mem_size_base(); |
| 26 | } |
| 27 | |
| 28 | int dram_init_banksize(void) |
| 29 | { |
| 30 | return fdtdec_setup_memory_banksize(); |
| 31 | } |
Nishanth Menon | 3713cc7 | 2024-02-12 13:47:18 -0600 | [diff] [blame] | 32 | |
| 33 | #ifdef CONFIG_BOARD_LATE_INIT |
| 34 | int board_late_init(void) |
| 35 | { |
| 36 | ti_set_fdt_env(NULL, NULL); |
| 37 | return 0; |
| 38 | } |
| 39 | #endif |