Mihai Sain | 7ef4a64 | 2024-02-27 15:44:02 +0200 | [diff] [blame] | 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 | |
Mihai Sain | 7ef4a64 | 2024-02-27 15:44:02 +0200 | [diff] [blame] | 9 | #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 | |
| 17 | DECLARE_GLOBAL_DATA_PTR; |
| 18 | |
| 19 | int 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 | |
| 27 | int dram_init_banksize(void) |
| 28 | { |
| 29 | return fdtdec_setup_memory_banksize(); |
| 30 | } |
| 31 | |
| 32 | int dram_init(void) |
| 33 | { |
| 34 | return fdtdec_setup_mem_size_base(); |
| 35 | } |