[U-Boot] [PATCH 04/10] altera_spi: change ioremap to map_physmem

Thomas Chou thomas at wytron.com.tw
Sat Nov 14 06:59:25 CET 2015


Change ioremap() to map_physmem(), as it is more used in u-boot.

Signed-off-by: Thomas Chou <thomas at wytron.com.tw>
---
 drivers/spi/altera_spi.c | 5 +++--
 1 file 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;
 }
-- 
2.5.0



More information about the U-Boot mailing list