From patchwork Wed Jan 23 17:05:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabor Juhos X-Patchwork-Id: 215003 X-Patchwork-Delegate: daniel.schwierzeck@googlemail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 7AC9F2C00D0 for ; Thu, 24 Jan 2013 04:06:25 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6F2904A162; Wed, 23 Jan 2013 18:05:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ShtvG-dZximR; Wed, 23 Jan 2013 18:05:57 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EB8854A183; Wed, 23 Jan 2013 18:05:26 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C4F8C4A150 for ; Wed, 23 Jan 2013 18:05:14 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u3pR2BoEggv6 for ; Wed, 23 Jan 2013 18:05:13 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) by theia.denx.de (Postfix) with ESMTPS id D8AA04A125 for ; Wed, 23 Jan 2013 18:05:06 +0100 (CET) Received: from arrakis.dune.hu ([127.0.0.1]) by localhost (arrakis.dune.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tNgnOdX4lZYZ; Wed, 23 Jan 2013 18:03:54 +0100 (CET) Received: from localhost.localdomain (catvpool-576570d8.szarvasnet.hu [87.101.112.216]) by arrakis.dune.hu (Postfix) with ESMTPSA id 16EA228433B; Wed, 23 Jan 2013 18:03:54 +0100 (CET) From: Gabor Juhos To: u-boot@lists.denx.de Date: Wed, 23 Jan 2013 18:05:03 +0100 Message-Id: <1358960705-25559-9-git-send-email-juhosg@openwrt.org> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1358960705-25559-1-git-send-email-juhosg@openwrt.org> References: <1358960705-25559-1-git-send-email-juhosg@openwrt.org> Subject: [U-Boot] [PATCH 08/10] MIPS: qemu-malta: bring up ethernet X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Qemu emulates a PCNET PCI card for the Malta CoreLV board. Enable the pcnet driver and add board specific ethernet initialization function to bring it up. Also enable the CONFIG_CMD_NET and CONFIG_CMD_PING options. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since RFC: --- --- board/qemu-malta/qemu-malta.c | 6 ++++++ include/configs/qemu-malta.h | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/board/qemu-malta/qemu-malta.c b/board/qemu-malta/qemu-malta.c index 9333242..10b624d 100644 --- a/board/qemu-malta/qemu-malta.c +++ b/board/qemu-malta/qemu-malta.c @@ -7,6 +7,7 @@ */ #include +#include #include #include @@ -22,6 +23,11 @@ int checkboard(void) return 0; } +int board_eth_init(bd_t *bis) +{ + return pci_eth_init(bis); +} + void _machine_restart(void) { void __iomem *reset_base; diff --git a/include/configs/qemu-malta.h b/include/configs/qemu-malta.h index 36b584a..3e37224 100644 --- a/include/configs/qemu-malta.h +++ b/include/configs/qemu-malta.h @@ -19,6 +19,7 @@ #define CONFIG_PCI #define CONFIG_PCI_PNP +#define CONFIG_PCNET /* * CPU Configuration @@ -33,7 +34,6 @@ #define CONFIG_SWAP_IO_SPACE - /* * Memory map */ @@ -109,10 +109,10 @@ #undef CONFIG_CMD_FPGA #undef CONFIG_CMD_LOADB #undef CONFIG_CMD_LOADS -#undef CONFIG_CMD_NET #undef CONFIG_CMD_NFS #define CONFIG_CMD_PCI +#define CONFIG_CMD_PING #define CONFIG_SYS_LONGHELP /* verbose help, undef to save memory */