hfrk2410_a1.1開發板移植linux-2.6.32.27--網絡卡篇(cs8900)
阿新 • • 發佈:2018-12-15
硬體:恆豐銳科開發板hfrk2410_A1.1
軟體:linux-2.6.32.27
cs8900網絡卡移植:
將cs8900驅動原始碼檔案拷貝至drivers/net/,修改drivers/net/Kconfig檔案
config ARM_CS8900 tristate "CS8900 support" depends on NET_ETHERNET && ARM && ARCH_SMDK2410 help Support for CS8900A chipset based Ethernet cards. If you have a network (Ethernet) card of this type, say Y and read the Ethernet-HOWTO, availablefrom <http://www.tldp.org/docs.html#howto> as well as <file:Documentation/networking/cs89x0.txt>. To compile this driver as a module, choose M here and read <file:Documentation/networking/net-modules.txt>. The module will be called cs8900.o.
修改drivers/net/Makefile
obj-$(CONFIG_ARM_CS8900) += cs8900.o
make menuconfig,選中該驅動
Device Drivers --> Network device support --> Ethernet(10 or 100Mbit) --> <*>CS8900 support
修改arch/arm/mach-s3c2410/mach-smdk2410.c
/*zws: hfrk*/
#define pSMDK2410_ETH_IO 0x19000000
#define vSMDK2410_ETH_IO 0xE0000000
#define SMDK2410_ETH_IRQ IRQ_EINT8
static struct map_desc smdk2410_iodesc[] __initdata = {
{vSMDK2410_ETH_IO, __phys_to_pfn(pSMDK2410_ETH_IO), SZ_1M, MT_DEVICE},/*zws*/
/* nothing here yet */
};