Forum Discussion
Hi,
thanks for your support to move forward,
As per your provided input information i have made the changes as i mention below
Step:1
i have create the structure for my phy chip in alter_avalon_tse.c as show below
alt_u32 ADIN1200_link_status_read(np_tse_mac *pmac) {
alt_u32 link_status = 0;
alt_u32 reg_status = IORD(&pmac->mdio2.reg1a, 0);
/* If speed == 100 Mbps */
if(reg_status & 0x0100) {
link_status |= 0x4;
}
/* Else speed = 100 Mbps */
else {
link_status |= 0x8;
}
/* If duplex == Full */
if(reg_status & 0x0080) {
link_status |= 0x1;
}
return link_status;
}
step 3:i have add a structure for reg mapping in altera_eth_tse_regs.h as mentioned above with my phy chip
i hope i have done all modification done properly to my make my phy to work for ping application. If anything missing or anything need to correct let me known