blob: 29e06a5442fe1f73ad394cb642067652a8a66f03 [file] [log] [blame]
Jayesh Choudhary68fa6742024-06-12 14:41:19 +05301// 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 Chawdhrya8787192024-07-02 10:50:01 +053015#include "../common/fdt_ops.h"
Jayesh Choudhary68fa6742024-06-12 14:41:19 +053016
17int board_init(void)
18{
19 return 0;
20}
21
22int dram_init(void)
23{
24 return fdtdec_setup_mem_size_base();
25}
26
27int dram_init_banksize(void)
28{
29 return fdtdec_setup_memory_banksize();
30}
Manorit Chawdhrya8787192024-07-02 10:50:01 +053031
32#if IS_ENABLED(CONFIG_BOARD_LATE_INIT)
33int board_late_init(void)
34{
35 ti_set_fdt_env(NULL, NULL);
36 return 0;
37}
38#endif