- /*
- * Hardware drivers
- */
- #if 0 /*屏蔽掉u-boot默认对CS8900网卡的支持*/
- #define CONFIG_NET_MULTI
- #define CONFIG_CS8900 /* we have a CS8900 on-board */
- #define CONFIG_CS8900_BASE 0x19000300
- #define CONFIG_CS8900_BUS16 /* the Linux driver does accesses as shorts */
- #endif
- #define CONFIG_NET_MULTI 1
- #define CONFIG_DRIVER_DM9000 1
- #define CONFIG_DM9000_BASE 0x20000300
- #define DM9000_IO CONFIG_DM9000_BASE
- #define DM9000_DATA (CONFIG_DM9000_BASE 4)
- #define CONFIG_DM9000_NO_SROM 1
- #define CONFIG_CMD_PING
- #define CONFIG_ETHADDR 1a:2b:3c:4d:5e:6f //开发板MAC地址
- #define CONFIG_NETMASK 255.255.255.0
- #define CONFIG_IPADDR 172.16.175.8 //开发板IP地址
- #define CONFIG_SERVERIP 172.16.175.6 //Linux主机IP地址
注意:
u-boot-2010.03 可以自动检测DM9000网卡的位数,根据开发板原理图可知网卡的数据位为16位,并且网卡位于CPU的BANK4上,所以只需在 board/samsung/smdk2440/lowlevel_init.S中设置 #define B4_BWSCON (DW16) 即可,不需要此处的 #define CONFIG_DM9000_USE_16BIT 1