1 // SPDX-License-Identifier: GPL-2.0+
3 * Board specific initialization for J721E EVM
5 * Copyright (C) 2018-2019 Texas Instruments Incorporated - http://www.ti.com/
6 * Lokesh Vutla <lokeshvutla@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;
49 gd->ram_size = 0x80000000;
51 #ifdef CONFIG_PHYS_64BIT
52 /* Bank 1 declares the memory available in the DDR high region */
53 gd->bd->bi_dram[1].start = CONFIG_SYS_SDRAM_BASE1;
54 gd->bd->bi_dram[1].size = 0x80000000;
55 gd->ram_size = 0x100000000;
61 #ifdef CONFIG_SPL_LOAD_FIT
62 int board_fit_config_name_match(const char *name)
64 if (!strcmp(name, "k3-j721e-common-proc-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);