This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
AT91RM9200 ETH Bug (unofficial)
- From: Wolfgang Köbler <wk-list at koebler dot com>
- To: ecos-discuss at ecos dot sourceware dot org, Jiun-Shian Ho <asky at syncom dot com dot tw>
- Date: Fri, 16 Dec 2005 18:12:29 +0100 (CET)
- Subject: [ECOS] AT91RM9200 ETH Bug (unofficial)
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