MLK-14938-16 net: fec: do not access reserved register for i.MX8
The MIB RAM and FIFO receive start register does not exist on i.MX8. Accessing these register will cause SERROR in kernel. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 2a47ebbccb95e8482360813d6dff5288429f1248)
This commit is contained in:
parent
8cae207d03
commit
fd99a9f057
|
|
@ -564,8 +564,8 @@ static int fec_init(struct eth_device *dev, bd_t *bd)
|
|||
writel(0x00000000, &fec->eth->gaddr1);
|
||||
writel(0x00000000, &fec->eth->gaddr2);
|
||||
|
||||
/* Do not access reserved register */
|
||||
if (!is_mx6ul() && !is_mx6ull() && !is_imx8m()) {
|
||||
/* Do not access reserved register for i.MX6UL/6ULL/i.MX8/i.MX8M */
|
||||
if (!is_mx6ul() && !is_mx6ull() && !is_imx8() && !is_imx8m()) {
|
||||
/* clear MIB RAM */
|
||||
for (i = mib_ptr; i <= mib_ptr + 0xfc; i += 4)
|
||||
writel(0, i);
|
||||
|
|
|
|||
Loading…
Reference in New Issue