1 // SPDX-License-Identifier: GPL-2.0+
3 * Board specific initialization for AM654 EVM
5 * Copyright (C) 2017-2018 Texas Instruments Incorporated - http://www.ti.com/
14 DECLARE_GLOBAL_DATA_PTR;
23 #ifdef CONFIG_PHYS_64BIT
24 gd->ram_size = 0x100000000;
26 gd->ram_size = 0x80000000;
32 ulong board_get_usable_ram_top(ulong total_size)
34 #ifdef CONFIG_PHYS_64BIT
35 /* Limit RAM used by U-Boot to the DDR low region */
36 if (gd->ram_top > 0x100000000)
43 int dram_init_banksize(void)
45 /* Bank 0 declares the memory available in the DDR low region */
46 gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
47 gd->bd->bi_dram[0].size = 0x80000000;
49 #ifdef CONFIG_PHYS_64BIT
50 /* Bank 1 declares the memory available in the DDR high region */
51 gd->bd->bi_dram[1].start = CONFIG_SYS_SDRAM_BASE1;
52 gd->bd->bi_dram[1].size = 0x80000000;