projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c26ec1
)
altera_spi: change ioremap to map_physmem
author
Thomas Chou
<thomas@wytron.com.tw>
Sat, 14 Nov 2015 03:17:25 +0000
(11:17 +0800)
committer
Thomas Chou
<thomas@wytron.com.tw>
Wed, 18 Nov 2015 13:18:30 +0000
(21:18 +0800)
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>
drivers/spi/altera_spi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/altera_spi.c
b/drivers/spi/altera_spi.c
index 3e09592ac6f0bd92ae30583c6eb968db60b19189..eb1ba27accfc25ef4f7678917c2b7071654dd722 100644
(file)
--- 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;
}