|
@@ -20,6 +20,7 @@
|
|
|
#include <fsl_mdio.h>
|
|
|
#include <asm/errno.h>
|
|
|
#include <asm/processor.h>
|
|
|
+#include <asm/io.h>
|
|
|
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
|
|
|
@@ -270,6 +271,9 @@ void redundant_init(struct eth_device *dev)
|
|
|
out_be32(®s->tstat, TSTAT_CLEAR_THALT);
|
|
|
out_be32(®s->rstat, RSTAT_CLEAR_RHALT);
|
|
|
clrbits_be32(®s->dmactrl, DMACTRL_GRS | DMACTRL_GTS);
|
|
|
+#ifdef CONFIG_LS102XA
|
|
|
+ setbits_be32(®s->dmactrl, DMACTRL_LE);
|
|
|
+#endif
|
|
|
|
|
|
do {
|
|
|
uint16_t status;
|
|
@@ -366,6 +370,9 @@ static void startup_tsec(struct eth_device *dev)
|
|
|
out_be32(®s->tstat, TSTAT_CLEAR_THALT);
|
|
|
out_be32(®s->rstat, RSTAT_CLEAR_RHALT);
|
|
|
clrbits_be32(®s->dmactrl, DMACTRL_GRS | DMACTRL_GTS);
|
|
|
+#ifdef CONFIG_LS102XA
|
|
|
+ setbits_be32(®s->dmactrl, DMACTRL_LE);
|
|
|
+#endif
|
|
|
}
|
|
|
|
|
|
/* This returns the status bits of the device. The return value
|