summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2015-11-14 11:22:50 +0800
committerThomas Chou <thomas@wytron.com.tw>2015-11-18 21:18:30 +0800
commit8ed38fa50c2a40851f6201bd795666a850617eb9 (patch)
tree98cfda9f6ac348bf6628075f2354bb83a830958c /drivers/mtd
parente2b259f70e6fef9dbd0c421045afaae5d455b2c4 (diff)
downloadu-boot-imx-8ed38fa50c2a40851f6201bd795666a850617eb9.zip
u-boot-imx-8ed38fa50c2a40851f6201bd795666a850617eb9.tar.gz
u-boot-imx-8ed38fa50c2a40851f6201bd795666a850617eb9.tar.bz2
altera_qspi: 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/mtd')
-rw-r--r--drivers/mtd/altera_qspi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/altera_qspi.c b/drivers/mtd/altera_qspi.c
index 1826dc8..50c6e0e 100644
--- a/drivers/mtd/altera_qspi.c
+++ b/drivers/mtd/altera_qspi.c
@@ -243,7 +243,7 @@ static int altera_qspi_ofdata_to_platdata(struct udevice *dev)
addr = fdt_translate_address((void *)blob,
node, cell + idx);
size = fdt_addr_to_cpu(cell[idx + addrc]);
- base = ioremap(addr, size);
+ base = map_physmem(addr, size, MAP_NOCACHE);
len = strlen(list);
if (strcmp(list, "avl_csr") == 0) {
pdata->regs = base;