summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2016-05-09 16:53:32 +0800
committerPeng Fan <peng.fan@nxp.com>2016-05-09 16:57:06 +0800
commit5fb09cab9bb3cc4cef02239299d02cec666396ab (patch)
tree2ba1459b0208a5e67f4d3ee8bca14118ea0586ad
parent3c5628ccf4459bef29471889b9af255a388244fa (diff)
downloadu-boot-imx-5fb09cab9bb3cc4cef02239299d02cec666396ab.zip
u-boot-imx-5fb09cab9bb3cc4cef02239299d02cec666396ab.tar.gz
u-boot-imx-5fb09cab9bb3cc4cef02239299d02cec666396ab.tar.bz2
MLK-12766 net: fec: do not access reserved register for i.MX6ULL
The MIB RAM and FIFO receive start register does not exist on i.MX6ULL. Accessing these register will cause enet not work well or cause system report fault. Reported-by: Bai Ping <ping.bai@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
-rw-r--r--drivers/net/fec_mxc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c
index 778243a..2d12c0b 100644
--- a/drivers/net/fec_mxc.c
+++ b/drivers/net/fec_mxc.c
@@ -568,7 +568,7 @@ static int fec_init(struct eth_device *dev, bd_t* bd)
/* Do not access reserved register for i.MX6UL */
- if (!is_cpu_type(MXC_CPU_MX6UL)) {
+ if (!is_cpu_type(MXC_CPU_MX6UL) && !is_cpu_type(MXC_CPU_MX6ULL)) {
/* clear MIB RAM */
for (i = mib_ptr; i <= mib_ptr + 0xfc; i += 4)
writel(0, i);