diff mbox

[v5,05/10] i.MX: Fix FEC code for ECR register reset value.

Message ID 89f71f6406b78449a411535e24cb3decb34fbaf1.1463816701.git.jcd@tribudubois.net
State New
Headers show

Commit Message

Jean-Christophe DUBOIS May 21, 2016, 8:01 a.m. UTC
According to the FEC chapter of i.MX25 reference manual ECR register is
initialized at 0xf0000000 at reset time.

We fix the value.

Signed-off-by: Jean-Christophe Dubois <jcd@tribudubois.net>
---

Changes since v1:
 * Not present on v1

Changes since v2:
 * Not present on v2
 
Changes since v3:
 * Not present on v3

Changes since v4:
 * None

 hw/net/imx_fec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/hw/net/imx_fec.c b/hw/net/imx_fec.c
index a649027..87e3c87 100644
--- a/hw/net/imx_fec.c
+++ b/hw/net/imx_fec.c
@@ -338,7 +338,7 @@  static void imx_fec_reset(DeviceState *d)
     s->eir = 0;
     s->eimr = 0;
     s->rx_enabled = 0;
-    s->ecr = 0;
+    s->ecr = 0xf0000000;
     s->mscr = 0;
     s->mibc = 0xc0000000;
     s->rcr = 0x05ee0001;