aboutsummaryrefslogtreecommitdiff
path: root/hw/net/imx_fec.c
diff options
context:
space:
mode:
authorJean-Christophe Dubois <jcd@tribudubois.net>2016-05-30 19:25:56 +0200
committerJason Wang <jasowang@redhat.com>2016-06-02 10:42:46 +0800
commitccdb81d3274d281d770703417257bd40bcdf4c0e (patch)
tree917156a6c93945ab850f119a17c3fbfea43e76c9 /hw/net/imx_fec.c
parentb413643a5cdac809a1374481c990387b732f9e60 (diff)
i.MX: Fix FEC code for ECR register reset value.
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> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/net/imx_fec.c')
-rw-r--r--hw/net/imx_fec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/imx_fec.c b/hw/net/imx_fec.c
index bf68ce66cf..768181e3c1 100644
--- a/hw/net/imx_fec.c
+++ b/hw/net/imx_fec.c
@@ -339,7 +339,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;