]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
altera_timer: change ioremap to map_physmem
authorThomas Chou <thomas@wytron.com.tw>
Sat, 14 Nov 2015 03:15:31 +0000 (11:15 +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/timer/altera_timer.c

index 46a598ae9fcf01c95e8f6914630f773b5056321e..971ed38b6b4f84683e0062df20f7bc7734ff7b9d 100644 (file)
@@ -75,8 +75,9 @@ static int altera_timer_ofdata_to_platdata(struct udevice *dev)
 {
        struct altera_timer_platdata *plat = dev_get_platdata(dev);
 
-       plat->regs = ioremap(dev_get_addr(dev),
-               sizeof(struct altera_timer_regs));
+       plat->regs = map_physmem(dev_get_addr(dev),
+                                sizeof(struct altera_timer_regs),
+                                MAP_NOCACHE);
        plat->clock_rate = fdtdec_get_int(gd->fdt_blob, dev->of_offset,
                "clock-frequency", 0);