1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) Stefan Roese <sr@denx.de>
8 #include <asm/global_data.h>
9 #include <linux/compat.h>
11 DECLARE_GLOBAL_DATA_PTR;
16 * No DDR init yet -> run in L2 cache
18 gd->ram_size = (4 << 20);
19 gd->bd->bi_dram[0].size = gd->ram_size;
20 gd->bd->bi_dram[1].size = 0;
25 ulong board_get_usable_ram_top(ulong total_size)