This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]