| // 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) |
| { |
| gd->ram_size = 0x80000000; |
| |
| return 0; |
| } |
| |
| int dram_init_banksize(void) |
| { |
| /* Bank 0 declares the memory available in the DDR low region */ |
| gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE; |
| gd->bd->bi_dram[0].size = 0x80000000; |
| gd->ram_size = 0x80000000; |
| |
| return 0; |
| } |