有谁做过TI的430以太网,就是easyweb那个解决方案,我的cs8900A始终不能初始化,在这个循环里跳不出来:
do
Write8900(ADD_PORT, PP_SelfST); // set register
while (!(Read8900(DATA_PORT) & INIT_DONE)); // wait until chip-reset is done
你好!
请问后来是怎么处理的,我也碰到了与你类似的问题?
cs8900A始终不能初始化,在这个循环里跳不出来:
do
Write8900(ADD_PORT, PP_SelfST); // set register
while (!(Read8900(DATA_PORT) & INIT_DONE)); // wait until chip-reset is done
static int __init net_olddevs_init(void)
{
int num;
#ifdef CONFIG_SBNI
for (num = 0; num < 8; ++num)
sbni_probe(num);
#endif
#ifdef CONFIG_TR
for (num = 0; num < 8; ++num)
if (!trif_probe(num))
trif_probe2(num);
#endif
for (num = 0; num < 8; ++num)
ethif_probe2(num);
static int __init probe_list2(int unit, struct devprobe2 *p, int autoprobe)
{
struct net_device *dev;
for (; p->probe; p++) {
if (autoprobe && p->status)
continue;
dev = p->probe(unit);//该部分就实际调用cs89x0_probe
if (!IS_ERR(dev))
return 0;
if (autoprobe)
p->status = PTR_ERR(dev);
}
return -ENODEV;
}