I have two physical chips on my board, 1 and 3 is their physical address respectively. I try to detect them through mac0 and mac1.
When I use the MAC0's io base: 0x800F_0000, I can successfully detect both the physical chips on address 1 and 3. The MMFR register's data field returns the physical id correctly. And all network function goes well.
But when I use the MAC1's io base: 0x800F_4000, the MMFR register's data field returns all zero on address 0 and 1.
Same configurations set to MAC0 and MAC1.
Why is the difference? Anyone knows or ever thought about this?
In the i.Mx28 EVK we had some difficulties to see both Ethernet Ports because of the way the Enet Swith was connected, are you using an EVK board, or do you have some schematics that can help to see if something it is wrong connected?
Yes, it is the evk board.
Does that mean I can only manipulate the MDIO through ENET-MAC0, no matter which the ethernet port is physically connected, while network package transmission is controlled separately.