提交 46c9b595 编写于 作者: B Bin Meng 提交者: Priyanka Jain

ppc: qemu: Enable VirtIO NET support

By default the QEMU ppce500 machine connects a VirtIO NET to the
PCI controller, although it can be replaced to an e1000 NIC via
additional command line options.

Now that we have switched over to DM PCI, VirtIO support becomes
possible. This commit enables the support.
Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
Reviewed-by: NPriyanka Jain <priyanka.jain@nxp.com>
上级 05173eca
......@@ -24,6 +24,8 @@
#include <fdtdec.h>
#include <errno.h>
#include <malloc.h>
#include <virtio_types.h>
#include <virtio.h>
DECLARE_GLOBAL_DATA_PTR;
......@@ -130,6 +132,12 @@ int misc_init_r(void)
if (ret)
return ret;
/*
* Make sure virtio bus is enumerated so that peripherals
* on the virtio bus can be discovered by their drivers.
*/
virtio_init();
return 0;
}
......
......@@ -33,5 +33,7 @@ CONFIG_DM_PCI=y
CONFIG_PCI_MPC85XX=y
CONFIG_DM_SERIAL=y
CONFIG_SYS_NS16550=y
CONFIG_VIRTIO_PCI=y
CONFIG_VIRTIO_NET=y
CONFIG_ADDR_MAP=y
CONFIG_PANIC_HANG=y
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册