1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2024 Microchip Technology Inc. and its subsidiaries
4 *
5 * Author: Mihai Sain <mihai.sain@microchip.com>
6 *
7 */
8
9#include <common.h>
10#include <init.h>
11#include <asm/global_data.h>
12#include <asm/io.h>
13#include <asm/arch/at91_common.h>
14#include <asm/arch/atmel_pio4.h>
15#include <asm/arch/gpio.h>
16#include <asm/arch/sama7g5.h>
17
18DECLARE_GLOBAL_DATA_PTR;
19
20int board_init(void)
21{
22	// Address of boot parameters
23	gd->bd->bi_boot_params = gd->bd->bi_dram[0].start + 0x100;
24
25	return 0;
26}
27
28int dram_init_banksize(void)
29{
30	return fdtdec_setup_memory_banksize();
31}
32
33int dram_init(void)
34{
35	return fdtdec_setup_mem_size_base();
36}
37