summaryrefslogtreecommitdiff
path: root/drivers/tsec.c
diff options
context:
space:
mode:
authorDan Wilson <dwilson@fulcrummicro.com>2007-10-19 11:33:48 -0500
committerAndrew Fleming-AFLEMING <afleming@freescale.com>2007-10-19 11:33:48 -0500
commit5c7ea64bb74a850a2b2303f853a8270695ad8602 (patch)
tree99739f61c1aab739e00ebb4d5e15210a0abbd22a /drivers/tsec.c
parent7600d47b8f6a10019e537dc9a62aa1498df58d25 (diff)
downloadu-boot-imx-5c7ea64bb74a850a2b2303f853a8270695ad8602.zip
u-boot-imx-5c7ea64bb74a850a2b2303f853a8270695ad8602.tar.gz
u-boot-imx-5c7ea64bb74a850a2b2303f853a8270695ad8602.tar.bz2
tsec driver should clear RHALT on startup
This was causing problems for some people. Signed-off-by: Alain Gravel <agravel@fulcrummicro.com> Signed-off-by: Dan Wilson <dwilson@fulcrummicro.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'drivers/tsec.c')
-rw-r--r--drivers/tsec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tsec.c b/drivers/tsec.c
index 4ff3339..7ba8f0c 100644
--- a/drivers/tsec.c
+++ b/drivers/tsec.c
@@ -803,6 +803,7 @@ static void startup_tsec(struct eth_device *dev)
/* Tell the DMA it is clear to go */
regs->dmactrl |= DMACTRL_INIT_SETTINGS;
regs->tstat = TSTAT_CLEAR_THALT;
+ regs->rstat = RSTAT_CLEAR_RHALT;
regs->dmactrl &= ~(DMACTRL_GRS | DMACTRL_GTS);
}