summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2015-11-14 11:17:25 +0800
committerThomas Chou <thomas@wytron.com.tw>2015-11-18 21:18:30 +0800
commit7313e21a1e226daac277fcd8a19c29fb46bed74d (patch)
tree09dcdc62c7e82d92772a1529bc1c3a7233d608a0 /drivers/spi
parent4c26ec17cf00f56cbfe6b8d3c1d9540bc2dc9d60 (diff)
downloadu-boot-imx-7313e21a1e226daac277fcd8a19c29fb46bed74d.zip
u-boot-imx-7313e21a1e226daac277fcd8a19c29fb46bed74d.tar.gz
u-boot-imx-7313e21a1e226daac277fcd8a19c29fb46bed74d.tar.bz2
altera_spi: change ioremap to map_physmem
Change ioremap() to map_physmem(), as it is more used in u-boot. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/altera_spi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/spi/altera_spi.c b/drivers/spi/altera_spi.c
index 3e09592..eb1ba27 100644
--- a/drivers/spi/altera_spi.c
+++ b/drivers/spi/altera_spi.c
@@ -174,8 +174,9 @@ static int altera_spi_ofdata_to_platdata(struct udevice *bus)
{
struct altera_spi_platdata *plat = dev_get_platdata(bus);
- plat->regs = ioremap(dev_get_addr(bus),
- sizeof(struct altera_spi_regs));
+ plat->regs = map_physmem(dev_get_addr(bus),
+ sizeof(struct altera_spi_regs),
+ MAP_NOCACHE);
return 0;
}