aboutsummaryrefslogtreecommitdiff
path: root/board/emulation/qemu-riscv/qemu-riscv.c
blob: 041e716c9bf1bdb78cfd7c181a7c96f3e7e10863 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
 */

#include <common.h>
#include <fdtdec.h>

#define MROM_FDT_ADDR	0x1020

int board_init(void)
{
	return 0;
}

void *board_fdt_blob_setup(void)
{
	/*
	 * QEMU loads a generated DTB for us immediately
	 * after the reset vectors in the MROM
	 */
	return (void *)MROM_FDT_ADDR;
}