[ECOS] AT91RM9200 ETH Bug (unofficial)
Wolfgang Köbler
wk-list@koebler.com
Fri Dec 16 17:59:00 GMT 2005
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
More information about the Ecos-discuss
mailing list