Jayesh Choudhary | 68fa674 | 2024-06-12 14:41:19 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Board specific initialization for J722S platforms |
| 4 | * |
| 5 | * Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/ |
| 6 | * |
| 7 | */ |
| 8 | |
| 9 | #include <asm/arch/hardware.h> |
| 10 | #include <asm/io.h> |
| 11 | #include <dm/uclass.h> |
| 12 | #include <env.h> |
| 13 | #include <fdt_support.h> |
| 14 | #include <spl.h> |
Manorit Chawdhry | a878719 | 2024-07-02 10:50:01 +0530 | [diff] [blame] | 15 | #include "../common/fdt_ops.h" |
Jayesh Choudhary | 68fa674 | 2024-06-12 14:41:19 +0530 | [diff] [blame] | 16 | |
| 17 | int board_init(void) |
| 18 | { |
| 19 | return 0; |
| 20 | } |
| 21 | |
| 22 | int dram_init(void) |
| 23 | { |
| 24 | return fdtdec_setup_mem_size_base(); |
| 25 | } |
| 26 | |
| 27 | int dram_init_banksize(void) |
| 28 | { |
| 29 | return fdtdec_setup_memory_banksize(); |
| 30 | } |
Manorit Chawdhry | a878719 | 2024-07-02 10:50:01 +0530 | [diff] [blame] | 31 | |
| 32 | #if IS_ENABLED(CONFIG_BOARD_LATE_INIT) |
| 33 | int board_late_init(void) |
| 34 | { |
| 35 | ti_set_fdt_env(NULL, NULL); |
| 36 | return 0; |
| 37 | } |
| 38 | #endif |