blob: 91007c0a3d341bfd7927e73525ec6c6c5983b17d [file] [log] [blame]
Bin Meng510e3792018-09-26 06:55:21 -07001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
4 */
5
Bin Meng510e3792018-09-26 06:55:21 -07006#include <fdtdec.h>
Simon Glass67c4e9f2019-11-14 12:57:45 -07007#include <init.h>
Simon Glass401d1c42020-10-30 21:38:53 -06008#include <asm/global_data.h>
Anup Patel26f4fd12019-02-25 08:14:30 +00009#include <linux/sizes.h>
10
11DECLARE_GLOBAL_DATA_PTR;
Bin Meng510e3792018-09-26 06:55:21 -070012
13int dram_init(void)
14{
15 return fdtdec_setup_mem_size_base();
16}
17
18int dram_init_banksize(void)
19{
20 return fdtdec_setup_memory_banksize();
21}