AT91RM9200 ETH Bug (unofficial)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

AT91RM9200 ETH Bug (unofficial)

Wolfgang Köbler-3
Hi,

In the unofficial AT91RM9200 ethernet driver from
http://asky.homeip.net/COREBlog/186 there is a bug.
In at91rm9200_ether.c function at91rm9200_eth_isr the line
> HAL_READ_UINT32((BASE_PMC+EMAC_ISR), int_status);
should be replaced by
> HAL_READ_UINT32((BASE_EMAC+EMAC_ISR), int_status);

The lines
>      /* Receive Buffer Not Available, Reset "Receive Enabl" */
>      HAL_READ_UINT32((BASE_PMC+EMAC_CTL), val);
>      val &= ~C_EMAC_RE;
>      HAL_WRITE_UINT32((BASE_PMC+EMAC_CTL), val);
>      val |= C_EMAC_RE;
>      HAL_WRITE_UINT32((BASE_PMC+EMAC_CTL), val);
should be replaced by
>      /* Receive Buffer Not Available, Reset "Receive Enabl" */
>      HAL_READ_UINT32((BASE_EMAC+EMAC_CTL), val);
>      val &= ~C_EMAC_RE;
>      HAL_WRITE_UINT32((BASE_EMAC+EMAC_CTL), val);
>      val |= C_EMAC_RE;
>      HAL_WRITE_UINT32((BASE_EMAC+EMAC_CTL), val);


Bye,
Wolfgang


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss