File: README.ne2000

package info (click to toggle)
u-boot 2016.11%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 104,408 kB
  • ctags: 428,706
  • sloc: ansic: 1,260,674; asm: 33,807; python: 10,106; perl: 8,014; makefile: 7,111; sh: 1,975; cpp: 1,829; yacc: 604; lex: 363; tcl: 28; sed: 24; awk: 6
file content (38 lines) | stat: -rw-r--r-- 1,252 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
This driver supports NE2000 compatible cards (those based on DP8390,
DP83902 and similar). It can be used with PCMCIA/CF cards provided
that the CCR is correctly initialized.

The code is based on sources from the Linux kernel (pcnet_cs.c,
8390.h) and eCOS(if_dp83902a.c, if_dp83902a.h). Both of these 2
wonderful world are GPL, so this is, of course, GPL.

I developed and tested this driver on a custom PXA255 based system and
with a billionton CF network card connected to the PCMCIA interface of
the micro (have a look at README.PXA_CF for the support of this port).

The options you have to specify in the config file are (with the
value for my board as an example):

#define CONFIG_DRIVER_NE2000

- Enables the driver

#define CONFIG_DRIVER_NE2000_BASE (0x20000000+0x300)

- Address where the board is mapped

#define CONFIG_DRIVER_NE2000_CCR (0x28000000+0x3f8)

- Address of the CCR (card configuration register). It could be found
by enabling DEBUG in cmd_pcmcia.c. If this is not defined nothing is
done as far as PCMCIA support is concerned.

#define CONFIG_DRIVER_NE2000_VAL (0x20)

- The value to be written in the CCR. It selects among different I/O
spaces that could be used by the card.


Enjoy!

Christian Pellegrin <chri@ascensit.com>