Many readers of 2440 of the board should have a DM9000 network card. Take a look at these documents before porting:
DM9000 Chinese Manual (detail)
This article tells us some hardware knowledge of DM9000.
DM9000 and MINI2440 in-depth understanding
This article tells us that 2440 is how to achieve access to DM9000.
2440 dm9000 exactly how to determine the address
This article tells us how to determine the address of the address port and the address of the data port.
DM9000 Datasheet
Datasheet said that dm9000 has 4 K Dword (is 4K double word, that is 16Kbytes).
The DM9000 network card driver is located in drivers/net/dm9000x.c and can be seen in the Drivers/net/makefile file:
obj-$ (config_driver_dm9000) + = DM9000X.O
config_driver_dm9000 This is a macro definition that compiles the file if it has a definition, so we define the macro in the Include/configs/tq2440.h file:
#define NONE_FLAG 0#if none_flag #define CONFIG_CS8900/ * We have a CS8900 on-board */#define Config_cs8900_base< C2/>0x19000300#define CONFIG_CS8900_BUS16/* The Linux driver does accesses as shorts */#else # define Config_driver_dm9000 #endif
The DM9000 on the tq2440 floor schematic diagram is connected to the nGCS4 on the 2440, on the 2440datasheet 5. In the Memory controller chapter, the base address of nGCS4 is 0x2000 0000.
Continue tomorrow!
u-boot-2014.10 17th Day----Add DM9000 network card support (i)