x86: qemu: Convert to use driver model eth
authorBin Meng <bmeng.cn@gmail.com>
Fri, 6 Nov 2015 10:04:52 +0000 (02:04 -0800)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 13 Nov 2015 14:46:24 +0000 (06:46 -0800)
Move to driver model for ETH (e1000) on QEMU.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
board/emulation/qemu-x86/Makefile
board/emulation/qemu-x86/qemu-x86.c [deleted file]
configs/qemu-x86_defconfig

index ad2bbb94a2a0e4e9871ad277aa9b3eee752f14ab..a855255be3ef1670debc6a6f04a8a110e8ab3c19 100644 (file)
@@ -4,4 +4,4 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-obj-y  += qemu-x86.o start.o
+obj-y  += start.o
diff --git a/board/emulation/qemu-x86/qemu-x86.c b/board/emulation/qemu-x86/qemu-x86.c
deleted file mode 100644 (file)
index fedea81..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-/*
- * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
- */
-
-#include <common.h>
-#include <netdev.h>
-
-int board_eth_init(bd_t *bis)
-{
-       return pci_eth_init(bis);
-}
index 7d814d86a9232490c0907b18f36024bbb9792d08..366ccc4c577b407e167eb9bbc1591b074831a499 100644 (file)
@@ -15,7 +15,7 @@ CONFIG_CMD_BOOTSTAGE=y
 CONFIG_OF_CONTROL=y
 CONFIG_CPU=y
 CONFIG_SPI_FLASH=y
-CONFIG_NETDEVICES=y
+CONFIG_DM_ETH=y
 CONFIG_E1000=y
 CONFIG_DM_PCI=y
 CONFIG_DM_RTC=y