From: Bin Meng <bmeng.cn@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 5/8] x86: qemu: Convert to use driver model eth
Date: Fri, 6 Nov 2015 02:04:52 -0800 [thread overview]
Message-ID: <1446804295-6465-5-git-send-email-bmeng.cn@gmail.com> (raw)
In-Reply-To: <1446804295-6465-1-git-send-email-bmeng.cn@gmail.com>
Move to driver model for ETH (e1000) on QEMU.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---
Changes in v2:
- Rebase on top of u-boot/master
- New patch to convert to use driver model eth
board/emulation/qemu-x86/Makefile | 2 +-
board/emulation/qemu-x86/qemu-x86.c | 13 -------------
configs/qemu-x86_defconfig | 2 +-
3 files changed, 2 insertions(+), 15 deletions(-)
delete mode 100644 board/emulation/qemu-x86/qemu-x86.c
diff --git a/board/emulation/qemu-x86/Makefile b/board/emulation/qemu-x86/Makefile
index ad2bbb9..a855255 100644
--- a/board/emulation/qemu-x86/Makefile
+++ b/board/emulation/qemu-x86/Makefile
@@ -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
index fedea81..0000000
--- a/board/emulation/qemu-x86/qemu-x86.c
+++ /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);
-}
diff --git a/configs/qemu-x86_defconfig b/configs/qemu-x86_defconfig
index 7d814d8..366ccc4 100644
--- a/configs/qemu-x86_defconfig
+++ b/configs/qemu-x86_defconfig
@@ -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
--
1.8.2.1
next prev parent reply other threads:[~2015-11-06 10:04 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-06 10:04 [U-Boot] [PATCH v2 1/8] x86: qemu: Remove call to vgabios execution Bin Meng
2015-11-06 10:04 ` [U-Boot] [PATCH v2 2/8] x86: qemu: Move chipset-specific codes from pci.c to qemu.c Bin Meng
2015-11-06 23:57 ` Simon Glass
2015-11-11 4:42 ` Bin Meng
2015-11-06 10:04 ` [U-Boot] [PATCH v2 3/8] x86: qemu: Convert to use driver model pci Bin Meng
2015-11-06 23:57 ` Simon Glass
2015-11-11 4:42 ` Bin Meng
2015-11-06 10:04 ` [U-Boot] [PATCH v2 4/8] x86: qemu: Convert to use driver model usb Bin Meng
2015-11-06 23:58 ` Simon Glass
2015-11-11 4:42 ` Bin Meng
2015-11-06 10:04 ` Bin Meng [this message]
2015-11-06 23:58 ` [U-Boot] [PATCH v2 5/8] x86: qemu: Convert to use driver model eth Simon Glass
2015-11-11 4:42 ` Bin Meng
2015-11-06 10:04 ` [U-Boot] [PATCH v2 6/8] x86: crownbay: Remove unused PCI region address macros Bin Meng
2015-11-06 23:58 ` Simon Glass
2015-11-11 4:42 ` Bin Meng
2015-11-06 10:04 ` [U-Boot] [PATCH v2 7/8] x86: Remove legacy pci codes Bin Meng
2015-11-06 23:58 ` Simon Glass
2015-11-11 4:42 ` Bin Meng
2015-11-06 10:04 ` [U-Boot] [PATCH v2 8/8] x86: Remove CONFIG_SYS_EARLY_PCI_INIT Bin Meng
2015-11-06 23:58 ` Simon Glass
2015-11-11 4:42 ` Bin Meng
2015-11-06 12:08 ` [U-Boot] [PATCH v2 1/8] x86: qemu: Remove call to vgabios execution Simon Glass
2015-11-11 4:42 ` Bin Meng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1446804295-6465-5-git-send-email-bmeng.cn@gmail.com \
--to=bmeng.cn@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox