blob: b05c9754c96421e2a010e080a108c2910facd5c4 [file] [log] [blame]
Mihai Sain7ef4a642024-02-27 15:44:02 +02001// 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
Mihai Sain7ef4a642024-02-27 15:44:02 +02009#include <init.h>
10#include <asm/global_data.h>
11#include <asm/io.h>
12#include <asm/arch/at91_common.h>
13#include <asm/arch/atmel_pio4.h>
14#include <asm/arch/gpio.h>
15#include <asm/arch/sama7g5.h>
16
17DECLARE_GLOBAL_DATA_PTR;
18
19int board_init(void)
20{
21 // Address of boot parameters
22 gd->bd->bi_boot_params = gd->bd->bi_dram[0].start + 0x100;
23
24 return 0;
25}
26
27int dram_init_banksize(void)
28{
29 return fdtdec_setup_memory_banksize();
30}
31
32int dram_init(void)
33{
34 return fdtdec_setup_mem_size_base();
35}