Hi ,
I have tried to test internal loopback for freescale fec driver on i.MX6 platform for Sabre–sd HW.For that, I have configure the receive control register (ENET_RCR) by setting 0th bit for loop back as below:
/*loopback debug */
tmp = readl(fep->hwp + FEC_R_CNTRL);
printk("loopback =%x \n",tmp); tmp |= 0x5;
writel(tmp, fep->hwp + FEC_R_CNTRL);
printk("loopback enable =%x \n",tmp);
I have added above code in start of xmit function in fec driver .
After doing the above code modification , fec driver is not generated any receive interrupt , so that internal loop back is not working.
what are the required steps to test internal loopback for freescale fec driver on i.MX6 platform?
Regards
Raj