blob: 2ce093e19a92f353d9e25a789a0b6aae63787b30 [file] [log] [blame]
Bin Meng8a8694d2018-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
6#include <common.h>
Bin Meng184eadb2018-10-15 02:21:13 -07007#include <dm.h>
Bin Meng8a8694d2018-09-26 06:55:21 -07008#include <fdtdec.h>
Bin Meng184eadb2018-10-15 02:21:13 -07009#include <virtio_types.h>
10#include <virtio.h>
Bin Meng8a8694d2018-09-26 06:55:21 -070011
Bin Meng8a8694d2018-09-26 06:55:21 -070012int board_init(void)
13{
Bin Meng184eadb2018-10-15 02:21:13 -070014 /*
15 * Make sure virtio bus is enumerated so that peripherals
16 * on the virtio bus can be discovered by their drivers
17 */
18 virtio_init();
19
Bin Meng8a8694d2018-09-26 06:55:21 -070020 return 0;
21}