diff options
author | Andres Salomon <dilinger@queued.net> | 2008-04-28 13:14:58 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 19:58:36 +0400 |
commit | ab06aaf6a6d5de896e4c52e158be2881036cbee9 (patch) | |
tree | 3d79964d83d71f2e77955e5b4dada8bec5912c40 /drivers/video/geode/gxfb_core.c | |
parent | fa20c8a6e520d9ccd68c8101155ffdbc19c977c3 (diff) | |
download | linux-ab06aaf6a6d5de896e4c52e158be2881036cbee9.tar.xz |
gxfb: create DC/VP/FP-specific handlers rather than using readl/writel
This creates read_dc/write_dc, read_vp/write_vp, and read_fp/write_fp for
reading and updating those registers. It creates gxfb.h to house these.
We also drop a no-op readl() from gx_set_mode. Other than that, there should
be no functionality change.
Signed-off-by: Andres Salomon <dilinger@debian.org>
Cc: Jordan Crouse <jordan.crouse@amd.com>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/geode/gxfb_core.c')
-rw-r--r-- | drivers/video/geode/gxfb_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/geode/gxfb_core.c b/drivers/video/geode/gxfb_core.c index 8021bcb9ab6a..fd58dcc44670 100644 --- a/drivers/video/geode/gxfb_core.c +++ b/drivers/video/geode/gxfb_core.c @@ -35,6 +35,7 @@ #include "geodefb.h" #include "display_gx.h" #include "video_gx.h" +#include "gxfb.h" static char *mode_option; static int vram; @@ -243,8 +244,7 @@ static int __init gxfb_map_video_memory(struct fb_info *info, struct pci_dev *de /* Set the 16MiB aligned base address of the graphics memory region * in the display controller */ - writel(info->fix.smem_start & 0xFF000000, - par->dc_regs + DC_GLIU0_MEM_OFFSET); + write_dc(par, DC_GLIU0_MEM_OFFSET, info->fix.smem_start & 0xFF000000); dev_info(&dev->dev, "%d KiB of video memory at 0x%lx\n", info->fix.smem_len / 1024, info->fix.smem_start); |