mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 05:43:33 +08:00
ffec: Avoid AXI bus issues due to a MAC reset
This commit is contained in:
@@ -1656,6 +1656,13 @@ ffec_attach(device_t dev)
|
|||||||
ffec_get_hwaddr(sc, eaddr);
|
ffec_get_hwaddr(sc, eaddr);
|
||||||
|
|
||||||
/* Reset the hardware. Disables all interrupts. */
|
/* Reset the hardware. Disables all interrupts. */
|
||||||
|
if (sc->fectype & FECFLAG_AVB)
|
||||||
|
/*
|
||||||
|
* Avoid AXI bus issues due to a MAC reset, see Linux for more
|
||||||
|
* details.
|
||||||
|
*/
|
||||||
|
WR4(sc, FEC_ECR_REG, 0);
|
||||||
|
else
|
||||||
WR4(sc, FEC_ECR_REG, FEC_ECR_RESET);
|
WR4(sc, FEC_ECR_REG, FEC_ECR_RESET);
|
||||||
|
|
||||||
/* Setup interrupt handler. */
|
/* Setup interrupt handler. */
|
||||||
|
Reference in New Issue
Block a user