1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
8 #include <linux/sizes.h>
10 DECLARE_GLOBAL_DATA_PTR;
14 return fdtdec_setup_mem_size_base();
17 int dram_init_banksize(void)
19 return fdtdec_setup_memory_banksize();
22 ulong board_get_usable_ram_top(ulong total_size)
26 * Ensure that we run from first 4GB so that all
27 * addresses used by U-Boot are 32bit addresses.
29 * This in-turn ensures that 32bit DMA capable
30 * devices work fine because DMA mapping APIs will
31 * provide 32bit DMA addresses only.
33 if (gd->ram_top > SZ_4G)