blob: e29ba4630fc55ba4dd9b214b51514224dcb0be76 [file] [log] [blame]
Tuomas Tynkkynen28cac522017-09-19 23:18:07 +03001/*
2 * Copyright (c) 2017 Tuomas Tynkkynen
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6#include <common.h>
7#include <fdtdec.h>
8
9int board_init(void)
10{
11 return 0;
12}
13
14int dram_init(void)
15{
16 if (fdtdec_setup_memory_size() != 0)
17 return -EINVAL;
18
19 return 0;
20}
21
22int dram_init_banksize(void)
23{
24 fdtdec_setup_memory_banksize();
25
26 return 0;
27}
28
29void *board_fdt_blob_setup(void)
30{
31 /* QEMU loads a generated DTB for us at the start of RAM. */
32 return (void *)CONFIG_SYS_SDRAM_BASE;
33}