瀏覽代碼

NET: move legacy enc28j60.c to sidetrack as enc28j60_lpc2292.c

This patch is required before the upcoming new enc28j60 driver
using SPI framework patch can be applied:
- Move legacy enc28j60.c to enc28j60_lpc2292.c.
- Change Makefile and the two affected boards' definition files.

Tested with ./MAKEALL ARM7 that both boards still compile.

Signed-off-by: Reinhard Meyer<info@emk-elektronik.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Reinhard Meyer (-VC) 14 年之前
父節點
當前提交
b7081d9197
共有 4 個文件被更改,包括 4 次插入3 次删除
  1. 1 1
      drivers/net/Makefile
  2. 1 0
      drivers/net/enc28j60_lpc2292.c
  3. 1 1
      include/configs/SMN42.h
  4. 1 1
      include/configs/lpc2292sodimm.h

+ 1 - 1
drivers/net/Makefile

@@ -39,7 +39,7 @@ COBJS-$(CONFIG_DRIVER_DM9000) += dm9000x.o
 COBJS-$(CONFIG_DNET) += dnet.o
 COBJS-$(CONFIG_DNET) += dnet.o
 COBJS-$(CONFIG_E1000) += e1000.o
 COBJS-$(CONFIG_E1000) += e1000.o
 COBJS-$(CONFIG_EEPRO100) += eepro100.o
 COBJS-$(CONFIG_EEPRO100) += eepro100.o
-COBJS-$(CONFIG_ENC28J60) += enc28j60.o
+COBJS-$(CONFIG_ENC28J60_LPC2292) += enc28j60_lpc2292.o
 COBJS-$(CONFIG_EP93XX) += ep93xx_eth.o
 COBJS-$(CONFIG_EP93XX) += ep93xx_eth.o
 COBJS-$(CONFIG_ETHOC) += ethoc.o
 COBJS-$(CONFIG_ETHOC) += ethoc.o
 COBJS-$(CONFIG_FEC_MXC) += fec_mxc.o
 COBJS-$(CONFIG_FEC_MXC) += fec_mxc.o

+ 1 - 0
drivers/net/enc28j60.c → drivers/net/enc28j60_lpc2292.c

@@ -15,6 +15,7 @@
  * MA 02111-1307 USA
  * MA 02111-1307 USA
  */
  */
 
 
+#warning This driver is depreciated. Please update to new SPI framework enc28j60 driver
 #include <config.h>
 #include <config.h>
 #include <common.h>
 #include <common.h>
 #include <net.h>
 #include <net.h>

+ 1 - 1
include/configs/SMN42.h

@@ -198,6 +198,6 @@
 #define CONFIG_INITRD_TAG
 #define CONFIG_INITRD_TAG
 #define CONFIG_MMC			1
 #define CONFIG_MMC			1
 /* we use this ethernet chip */
 /* we use this ethernet chip */
-#define CONFIG_ENC28J60
+#define CONFIG_ENC28J60_LPC2292
 
 
 #endif	/* __CONFIG_H */
 #endif	/* __CONFIG_H */

+ 1 - 1
include/configs/lpc2292sodimm.h

@@ -156,6 +156,6 @@
 #define CONFIG_INITRD_TAG
 #define CONFIG_INITRD_TAG
 #define CONFIG_MMC 1
 #define CONFIG_MMC 1
 /* we use this ethernet chip */
 /* we use this ethernet chip */
-#define CONFIG_ENC28J60
+#define CONFIG_ENC28J60_LPC2292
 
 
 #endif	/* __CONFIG_H */
 #endif	/* __CONFIG_H */