Suman Anna | 900349b | 2022-05-25 13:38:47 +0530 | [diff] [blame] | 1 | // 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 | |
| 17 | DECLARE_GLOBAL_DATA_PTR; |
| 18 | |
| 19 | int board_init(void) |
| 20 | { |
| 21 | return 0; |
| 22 | } |
| 23 | |
| 24 | int dram_init(void) |
| 25 | { |
Georgi Vlaev | 249e9f3 | 2022-06-14 17:45:32 +0300 | [diff] [blame^] | 26 | return fdtdec_setup_mem_size_base(); |
Suman Anna | 900349b | 2022-05-25 13:38:47 +0530 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | int dram_init_banksize(void) |
| 30 | { |
Georgi Vlaev | 249e9f3 | 2022-06-14 17:45:32 +0300 | [diff] [blame^] | 31 | return fdtdec_setup_memory_banksize(); |
Suman Anna | 900349b | 2022-05-25 13:38:47 +0530 | [diff] [blame] | 32 | } |