]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
MIPS: qemu-malta: bring up ethernet
authorGabor Juhos <juhosg@openwrt.org>
Wed, 22 May 2013 03:57:44 +0000 (03:57 +0000)
committerTom Rini <trini@ti.com>
Wed, 24 Jul 2013 13:51:04 +0000 (09:51 -0400)
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 <juhosg@openwrt.org>
Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
board/qemu-malta/qemu-malta.c
include/configs/qemu-malta.h

index e3a733f42f486acdcff1c6a97aef4e7bb348b887..4cbd7368fecee214850f716db4324b029534e875 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <netdev.h>
 
 #include <asm/addrspace.h>
 #include <asm/io.h>
@@ -24,6 +25,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;
index ef44d3da7231c5703fe70a63c6605765fc4e0711..c79c911abaefe3355d673d847a7d38a4a31262da 100644 (file)
@@ -20,6 +20,7 @@
 #define CONFIG_PCI
 #define CONFIG_PCI_GT64120
 #define CONFIG_PCI_PNP
+#define CONFIG_PCNET
 
 /*
  * CPU Configuration
 #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 */