Commit 9043c4e0 authored by Ramon Fried's avatar Ramon Fried Committed by Joe Hershberger

net: macb: fix mapping of registers

Some architectures (MIPS) needs mapping to access IOMEM.
Fix that.

Fixes: f1dcc19b ("net: macb: Convert to driver model")
Signed-off-by: default avatarRamon Fried <>
Acked-by: Joe Hershberger's avatarJoe Hershberger <>
parent 18bfc8fa
......@@ -1151,7 +1151,9 @@ static int macb_eth_ofdata_to_platdata(struct udevice *dev)
struct eth_pdata *pdata = dev_get_platdata(dev);
pdata->iobase = devfdt_get_addr(dev);
pdata->iobase = (phys_addr_t)dev_remap_addr(dev);
if (!pdata->iobase)
return -EINVAL;
return macb_late_eth_ofdata_to_platdata(dev);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment