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/
13 #include <asm/arch/sys_proto.h>
15 DECLARE_GLOBAL_DATA_PTR;
24 #ifdef CONFIG_PHYS_64BIT
25 gd->ram_size = 0x100000000;
27 gd->ram_size = 0x80000000;
33 ulong board_get_usable_ram_top(ulong total_size)
35 #ifdef CONFIG_PHYS_64BIT
36 /* Limit RAM used by U-Boot to the DDR low region */
37 if (gd->ram_top > 0x100000000)
44 int dram_init_banksize(void)
46 /* Bank 0 declares the memory available in the DDR low region */
47 gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
48 gd->bd->bi_dram[0].size = 0x80000000;
50 #ifdef CONFIG_PHYS_64BIT
51 /* Bank 1 declares the memory available in the DDR high region */
52 gd->bd->bi_dram[1].start = CONFIG_SYS_SDRAM_BASE1;
53 gd->bd->bi_dram[1].size = 0x80000000;
59 #ifdef CONFIG_SPL_LOAD_FIT
60 int board_fit_config_name_match(const char *name)
62 #ifdef CONFIG_TARGET_AM654_A53_EVM
63 if (!strcmp(name, "k3-am654-base-board"))
71 #if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
72 int ft_board_setup(void *blob, bd_t *bd)
76 ret = fdt_fixup_msmc_ram(blob, "/interconnect@100000", "sram@70000000");
78 printf("%s: fixing up msmc ram failed %d\n", __func__, ret);