Hi,
I am studying the emac driver (v5) of "pdk_am65xx_1_0_7". I have a query regarding the configuration of Inter Packet Gap during link up.
Suppose I am using ICSSG2 and one of the port is has auto negotiated to 1Gbps and another port has auto negotiated to 100 Mbps. Now for both the cases "emac_icssg_update_link_params" function in "emac_drv_v5.c" will be invoked.
Case 1: 1Gbps
"emac_icssg_update_link_speed_1G" will be invoked from "emac_icssg_update_link_params" and the "MII_RT_TX_IPG1 Register" will be set to EMAC_ICSSG_CONFIG_TX_IPG_104_NS
Case 2: 100Mbps
"emac_icssg_update_link_speed_100MB" will be invoked from "emac_icssg_update_link_params" and the "MII_RT_TX_IPG1 Register" will be set to "EMAC_ICSSG_CONFIG_TX_IPG_960_NS", thus overwriting the value set in Case 1.
Is the above behavior expected?
What is the difference between "MII_RT_TX_IPG0 Register" register and "MII_RT_TX_IPG1 Register " . By any chance should the code set "MII_RT_TX_IPG0 Register" for port 0 and "MII_RT_TX_IPG1 Register" for port 1?
It will be really helpful if the above point is cleared.
Best Regards,
Debarun