]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/video/geode/lxfb_core.c
lxfb: create GP/DC/VP/FP-specific handlers rather than using readl/writel
[karo-tx-linux.git] / drivers / video / geode / lxfb_core.c
index eb6b881715387bbdbc4226ff801d4f5cc3f193ac..a1d14e0c3aa95d546598b9d54d0a83e56a67ae20 100644 (file)
@@ -366,12 +366,9 @@ static int __init lxfb_map_video_memory(struct fb_info *info,
        if (par->df_regs == NULL)
                return ret;
 
-       writel(DC_UNLOCK_CODE, par->dc_regs + DC_UNLOCK);
-
-       writel(info->fix.smem_start & 0xFF000000,
-              par->dc_regs + DC_PHY_MEM_OFFSET);
-
-       writel(0, par->dc_regs + DC_UNLOCK);
+       write_dc(par, DC_UNLOCK, DC_UNLOCK_CODE);
+       write_dc(par, DC_PHY_MEM_OFFSET, info->fix.smem_start & 0xFF000000);
+       write_dc(par, DC_UNLOCK, 0);
 
        dev_info(&dev->dev, "%d KB of video memory at 0x%lx\n",
                 info->fix.smem_len / 1024, info->fix.smem_start);