mirror of
https://github.com/u-boot/u-boot.git
synced 2024-12-20 10:13:25 +08:00
net: fsl_mdio: Change to use virtual address
Use virtual address to access the MII block registers instead of physical address. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
This commit is contained in:
parent
01ffe18f14
commit
c54f6139ed
@ -213,7 +213,7 @@ static int tsec_mdio_probe(struct udevice *dev)
|
||||
printf("dev_get_priv(dev %p) = NULL\n", dev);
|
||||
return -1;
|
||||
}
|
||||
priv->regs = (void *)(uintptr_t)dev_read_addr(dev);
|
||||
priv->regs = dev_remap_addr(dev);
|
||||
debug("%s priv %p @ regs %p, pdata %p\n", __func__,
|
||||
priv, priv->regs, pdata);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user