blob: 62d3664936e765f93cb2ddc69ae268aa06e62528 [file] [log] [blame]
Bryan Brattlofa0659a52022-11-03 19:13:57 -05001// 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 Brattlofa0659a52022-11-03 19:13:57 -050010#include <asm/io.h>
Bryan Brattlofa0659a52022-11-03 19:13:57 -050011#include <dm/uclass.h>
12#include <env.h>
13#include <fdt_support.h>
14#include <spl.h>
15
Nishanth Menon3713cc72024-02-12 13:47:18 -060016#include "../common/fdt_ops.h"
17
Bryan Brattlofa0659a52022-11-03 19:13:57 -050018int board_init(void)
19{
20 return 0;
21}
22
23int dram_init(void)
24{
25 return fdtdec_setup_mem_size_base();
26}
27
28int dram_init_banksize(void)
29{
30 return fdtdec_setup_memory_banksize();
31}
Nishanth Menon3713cc72024-02-12 13:47:18 -060032
33#ifdef CONFIG_BOARD_LATE_INIT
34int board_late_init(void)
35{
36 ti_set_fdt_env(NULL, NULL);
37 return 0;
38}
39#endif