xref: /openbmc/u-boot/doc/README.ne2000 (revision 1e52fea3)
1This driver supports NE2000 compatible cards (those based on DP8390,
2DP83902 and similar). It can be used with PCMCIA/CF cards provided
3that the CCR is correctly initialized.
4
5The code is based on sources from the Linux kernel (pcnet_cs.c,
68390.h) and eCOS(if_dp83902a.c, if_dp83902a.h). Both of these 2
7wonderful world are GPL, so this is, of course, GPL.
8
9I developed and tested this driver on a custom PXA255 based system and
10with a billionton CF network card connected to the PCMCIA interface of
11the micro (have a look at README.PXA_CF for the support of this port).
12
13The options you have to specify in the config file are (with the
14value for my board as an example):
15
16#define CONFIG_DRIVER_NE2000
17
18- Enables the driver
19
20#define CONFIG_DRIVER_NE2000_BASE (0x20000000+0x300)
21
22- Address where the board is mapped
23
24#define CONFIG_DRIVER_NE2000_CCR (0x28000000+0x3f8)
25
26- Address of the CCR (card configuration register). It could be found
27by enabling DEBUG in cmd_pcmcia.c. If this is not defined nothing is
28done as far as PCMCIA support is concerned.
29
30#define CONFIG_DRIVER_NE2000_VAL (0x20)
31
32- The value to be written in the CCR. It selects among different I/O
33spaces that could be used by the card.
34
35
36Enjoy!
37
38Christian Pellegrin <chri@ascensit.com>
39