2022-05-25 08:08:47 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
/*
|
|
|
|
* Board specific initialization for AM62x platforms
|
|
|
|
*
|
|
|
|
* Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/
|
|
|
|
* Suman Anna <s-anna@ti.com>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <asm/io.h>
|
|
|
|
#include <spl.h>
|
|
|
|
#include <fdt_support.h>
|
|
|
|
#include <asm/arch/hardware.h>
|
|
|
|
#include <asm/arch/sys_proto.h>
|
|
|
|
#include <env.h>
|
|
|
|
|
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
|
|
|
|
|
|
int board_init(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int dram_init(void)
|
|
|
|
{
|
2022-06-14 14:45:32 +00:00
|
|
|
return fdtdec_setup_mem_size_base();
|
2022-05-25 08:08:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int dram_init_banksize(void)
|
|
|
|
{
|
2022-06-14 14:45:32 +00:00
|
|
|
return fdtdec_setup_memory_banksize();
|
2022-05-25 08:08:47 +00:00
|
|
|
}
|