From: Zubair Lutfullah Kakakhel Date: Wed, 27 Jul 2016 11:25:07 +0000 (+0100) Subject: net: emaclite: Use ioremap_nocache X-Git-Tag: v2016.11-rc1~120^2~32 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=39e020ef163d7ca6e73294a3ae4ded2867c9bc75;p=u-boot net: emaclite: Use ioremap_nocache Virtual to physical mapping isn't necessarily 1:1 for all architectures Using ioremap_nocache allows for the arch code to translate the physical address to a virtual address. Signed-off-by: Zubair Lutfullah Kakakhel Reviewed-by: Paul Burton Reviewed-by: Daniel Schwierzeck Acked-by: Joe Hershberger --- diff --git a/drivers/net/xilinx_emaclite.c b/drivers/net/xilinx_emaclite.c index 7b85aa0463..6df222bf74 100644 --- a/drivers/net/xilinx_emaclite.c +++ b/drivers/net/xilinx_emaclite.c @@ -19,6 +19,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -595,7 +596,8 @@ static int emaclite_ofdata_to_platdata(struct udevice *dev) int offset = 0; pdata->iobase = (phys_addr_t)dev_get_addr(dev); - emaclite->regs = (struct emaclite_regs *)pdata->iobase; + emaclite->regs = (struct emaclite_regs *)ioremap_nocache(pdata->iobase, + 0x10000); emaclite->phyaddr = -1;