aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/arkfb.c
diff options
context:
space:
mode:
authorDavid Miller <davem@davemloft.net>2011-01-11 18:51:08 -0500
committerPaul Mundt <lethal@linux-sh.org>2011-03-22 02:47:03 -0400
commitd907ec04cc498e11e039e0fff8eb58cf01e885da (patch)
treee6c2f96da0807b3a4bdf60dc4c1d4c323b0fa519 /drivers/video/arkfb.c
parenta4ade83948e0ffc317b8227d92107271a0acdda5 (diff)
svga: Make svga_wseq_mask() take an iomem regbase pointer.
Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video/arkfb.c')
-rw-r--r--drivers/video/arkfb.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/drivers/video/arkfb.c b/drivers/video/arkfb.c
index 4cc412126ad3..c351b184b1bd 100644
--- a/drivers/video/arkfb.c
+++ b/drivers/video/arkfb.c
@@ -649,7 +649,7 @@ static int arkfb_set_par(struct fb_info *info)
649 svga_wcrt_mask(0x11, 0x00, 0x80); 649 svga_wcrt_mask(0x11, 0x00, 0x80);
650 650
651 /* Blank screen and turn off sync */ 651 /* Blank screen and turn off sync */
652 svga_wseq_mask(0x01, 0x20, 0x20); 652 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20);
653 svga_wcrt_mask(0x17, 0x00, 0x80); 653 svga_wcrt_mask(0x17, 0x00, 0x80);
654 654
655 /* Set default values */ 655 /* Set default values */
@@ -661,8 +661,8 @@ static int arkfb_set_par(struct fb_info *info)
661 svga_wcrt_multi(par->state.vgabase, ark_start_address_regs, 0); 661 svga_wcrt_multi(par->state.vgabase, ark_start_address_regs, 0);
662 662
663 /* ARK specific initialization */ 663 /* ARK specific initialization */
664 svga_wseq_mask(0x10, 0x1F, 0x1F); /* enable linear framebuffer and full memory access */ 664 svga_wseq_mask(par->state.vgabase, 0x10, 0x1F, 0x1F); /* enable linear framebuffer and full memory access */
665 svga_wseq_mask(0x12, 0x03, 0x03); /* 4 MB linear framebuffer size */ 665 svga_wseq_mask(par->state.vgabase, 0x12, 0x03, 0x03); /* 4 MB linear framebuffer size */
666 666
667 vga_wseq(NULL, 0x13, info->fix.smem_start >> 16); 667 vga_wseq(NULL, 0x13, info->fix.smem_start >> 16);
668 vga_wseq(NULL, 0x14, info->fix.smem_start >> 24); 668 vga_wseq(NULL, 0x14, info->fix.smem_start >> 24);
@@ -787,7 +787,7 @@ static int arkfb_set_par(struct fb_info *info)
787 memset_io(info->screen_base, 0x00, screen_size); 787 memset_io(info->screen_base, 0x00, screen_size);
788 /* Device and screen back on */ 788 /* Device and screen back on */
789 svga_wcrt_mask(0x17, 0x80, 0x80); 789 svga_wcrt_mask(0x17, 0x80, 0x80);
790 svga_wseq_mask(0x01, 0x00, 0x20); 790 svga_wseq_mask(par->state.vgabase, 0x01, 0x00, 0x20);
791 791
792 return 0; 792 return 0;
793} 793}
@@ -857,22 +857,24 @@ static int arkfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
857 857
858static int arkfb_blank(int blank_mode, struct fb_info *info) 858static int arkfb_blank(int blank_mode, struct fb_info *info)
859{ 859{
860 struct arkfb_info *par = info->par;
861
860 switch (blank_mode) { 862 switch (blank_mode) {
861 case FB_BLANK_UNBLANK: 863 case FB_BLANK_UNBLANK:
862 pr_debug("fb%d: unblank\n", info->node); 864 pr_debug("fb%d: unblank\n", info->node);
863 svga_wseq_mask(0x01, 0x00, 0x20); 865 svga_wseq_mask(par->state.vgabase, 0x01, 0x00, 0x20);
864 svga_wcrt_mask(0x17, 0x80, 0x80); 866 svga_wcrt_mask(0x17, 0x80, 0x80);
865 break; 867 break;
866 case FB_BLANK_NORMAL: 868 case FB_BLANK_NORMAL:
867 pr_debug("fb%d: blank\n", info->node); 869 pr_debug("fb%d: blank\n", info->node);
868 svga_wseq_mask(0x01, 0x20, 0x20); 870 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20);
869 svga_wcrt_mask(0x17, 0x80, 0x80); 871 svga_wcrt_mask(0x17, 0x80, 0x80);
870 break; 872 break;
871 case FB_BLANK_POWERDOWN: 873 case FB_BLANK_POWERDOWN:
872 case FB_BLANK_HSYNC_SUSPEND: 874 case FB_BLANK_HSYNC_SUSPEND:
873 case FB_BLANK_VSYNC_SUSPEND: 875 case FB_BLANK_VSYNC_SUSPEND:
874 pr_debug("fb%d: sync down\n", info->node); 876 pr_debug("fb%d: sync down\n", info->node);
875 svga_wseq_mask(0x01, 0x20, 0x20); 877 svga_wseq_mask(par->state.vgabase, 0x01, 0x20, 0x20);
876 svga_wcrt_mask(0x17, 0x00, 0x80); 878 svga_wcrt_mask(0x17, 0x00, 0x80);
877 break; 879 break;
878 } 880 }