]> git.sur5r.net Git - u-boot/commitdiff
altera_uart: change ioremap to map_physmem
authorThomas Chou <thomas@wytron.com.tw>
Sat, 14 Nov 2015 02:38:09 +0000 (10:38 +0800)
committerThomas 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/serial/altera_uart.c

index 5d76c3359ba91d8eca52564424ee27759d2f71b9..eff9c592d65159f451800aff05b2c33ca07c0b66 100644 (file)
@@ -89,8 +89,9 @@ static int altera_uart_ofdata_to_platdata(struct udevice *dev)
 {
        struct altera_uart_platdata *plat = dev_get_platdata(dev);
 
-       plat->regs = ioremap(dev_get_addr(dev),
-               sizeof(struct altera_uart_regs));
+       plat->regs = map_physmem(dev_get_addr(dev),
+                                sizeof(struct altera_uart_regs),
+                                MAP_NOCACHE);
        plat->uartclk = fdtdec_get_int(gd->fdt_blob, dev->of_offset,
                "clock-frequency", 0);