]> git.ipfire.org Git - people/ms/u-boot.git/blob - board/emulation/qemu-arm/qemu-arm.c
ARM: Add a new arch + board for QEMU's 'virt' machine
[people/ms/u-boot.git] / board / emulation / qemu-arm / qemu-arm.c
1 /*
2 * Copyright (c) 2017 Tuomas Tynkkynen
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6 #include <common.h>
7 #include <fdtdec.h>
8
9 int board_init(void)
10 {
11 return 0;
12 }
13
14 int dram_init(void)
15 {
16 if (fdtdec_setup_memory_size() != 0)
17 return -EINVAL;
18
19 return 0;
20 }
21
22 int dram_init_banksize(void)
23 {
24 fdtdec_setup_memory_banksize();
25
26 return 0;
27 }
28
29 void *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 }