blob: fb5106d1f3c8f88d08ee1e202caa37b6173e2599 [file] [log] [blame]
Suman Anna900349b2022-05-25 13:38:47 +05301// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Board specific initialization for AM62x platforms
4 *
5 * Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/
6 * Suman Anna <s-anna@ti.com>
7 *
8 */
9
10#include <asm/io.h>
11#include <spl.h>
12#include <fdt_support.h>
13#include <asm/arch/hardware.h>
14#include <asm/arch/sys_proto.h>
15#include <env.h>
16
17DECLARE_GLOBAL_DATA_PTR;
18
19int board_init(void)
20{
21 return 0;
22}
23
24int dram_init(void)
25{
Georgi Vlaev249e9f32022-06-14 17:45:32 +030026 return fdtdec_setup_mem_size_base();
Suman Anna900349b2022-05-25 13:38:47 +053027}
28
29int dram_init_banksize(void)
30{
Georgi Vlaev249e9f32022-06-14 17:45:32 +030031 return fdtdec_setup_memory_banksize();
Suman Anna900349b2022-05-25 13:38:47 +053032}