From mboxrd@z Thu Jan 1 00:00:00 1970 From: Udo Jakobza Date: Thu, 27 Apr 2006 13:12:50 +0200 Subject: [U-Boot-Users] quit unclear code in cpu/arm920t/at91rm9200/ether.c Line:220 Message-ID: <4450C352.5642.1365223@localhost> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, inside of arm_init() in the part: /* MII management start from here */ if (!(p_mac->EMAC_SR & AT91C_EMAC_LINK)) { if (!(ret = PhyOps.Init (p_mac))) { printf ("MAC: error during MII initialization\n"); return 0; } } the software checks the status of a LINK-Bit. I thing the EMAC_SR register is wrong, because the EMAC_ISR has this valid LINK bit (AT91C_EMAC_LINK on bit 9). Did anybody find this problem? If not, so I will check it with our hardware and then I will prepare a patch. Thanks and Regards Udo Forschungs- und Transferzentrum Leipzig e. V. an der HTWK Leipzig Udo Jakobza W?chterstr. 13 04107 Leipzig Tel: +49(0)341 3076 1136 Fax: +49(0)341 3076 1220