summaryrefslogtreecommitdiffstats
path: root/drivers/net/ne2000.c
diff options
context:
space:
mode:
authorgoda.yusuke <goda.yusuke@renesas.com>2008-03-05 17:08:33 +0900
committerWolfgang Denk <wd@denx.de>2008-03-25 22:55:15 +0100
commit6a8a5dc4759867c45aa95580deb8bf26669a5d97 (patch)
treedec0cea88587310c960a7b626a2ea90a104063ea /drivers/net/ne2000.c
parente0a6140dd381e1eed1ada2291166ef2616d8822b (diff)
downloadtalos-obmc-uboot-6a8a5dc4759867c45aa95580deb8bf26669a5d97.tar.gz
talos-obmc-uboot-6a8a5dc4759867c45aa95580deb8bf26669a5d97.zip
net: Add support AX88796L ethernet device
AX88796L is device of NE2000 compatible. This patch support AX88796L ethernet device. Signed-off-by: Yusuke Goda <goda.yusuke@renesas.com> Acked-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'drivers/net/ne2000.c')
-rw-r--r--drivers/net/ne2000.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ne2000.c b/drivers/net/ne2000.c
index 36ea35b2c2..abf910c54f 100644
--- a/drivers/net/ne2000.c
+++ b/drivers/net/ne2000.c
@@ -112,8 +112,13 @@ void uboot_push_tx_done(int key, int val);
/* NE2000 base header file */
#include "ne2000_base.h"
+#if defined(CONFIG_DRIVER_AX88796L)
+/* AX88796L support */
+#include "ax88796.h"
+#else
/* Basic NE2000 chip support */
#include "ne2000.h"
+#endif
static dp83902a_priv_data_t nic; /* just one instance of the card supported */
@@ -131,6 +136,7 @@ dp83902a_init(void)
DEBUG_LINE();
#if defined(NE2000_BASIC_INIT)
+ /* AX88796L doesn't need */
/* Prepare ESA */
DP_OUT(base, DP_CR, DP_CR_NODMA | DP_CR_PAGE1); /* Select page 1 */
/* Use the address from the serial EEPROM */
OpenPOWER on IntegriCloud