aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2008-12-17 03:29:49 -0500
committerPaul Mundt <lethal@linux-sh.org>2008-12-22 04:44:48 -0500
commit2540c111ead82cad605ec2b14a1905ad914cc124 (patch)
tree43dc4e963bb3bbfe788c1aa600817a0a21dcb2bc /drivers/video
parentda9fdc8b44c421f14a68988ae4d1fb414d5edbf0 (diff)
sh_mobile_lcdc: use FB_SYS helpers instead of FB_CFB
Since the sh_mobile_lcdc hardware has the framebuffer(s) in system RAM, use FB_SYS instead of FB_CFB. Also hook in read and write helpers. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/Kconfig8
-rw-r--r--drivers/video/sh_mobile_lcdcfb.c8
2 files changed, 9 insertions, 7 deletions
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index 593bbc731016..dd483bfe3951 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -1889,10 +1889,10 @@ config FB_W100
1889config FB_SH_MOBILE_LCDC 1889config FB_SH_MOBILE_LCDC
1890 tristate "SuperH Mobile LCDC framebuffer support" 1890 tristate "SuperH Mobile LCDC framebuffer support"
1891 depends on FB && SUPERH 1891 depends on FB && SUPERH
1892 select FB_CFB_FILLRECT 1892 select FB_SYS_FILLRECT
1893 select FB_CFB_COPYAREA 1893 select FB_SYS_COPYAREA
1894 select FB_CFB_IMAGEBLIT 1894 select FB_SYS_IMAGEBLIT
1895 default m 1895 select FB_SYS_FOPS
1896 ---help--- 1896 ---help---
1897 Frame buffer driver for the on-chip SH-Mobile LCD controller. 1897 Frame buffer driver for the on-chip SH-Mobile LCD controller.
1898 1898
diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c
index c81ee00c54d7..e339d829183c 100644
--- a/drivers/video/sh_mobile_lcdcfb.c
+++ b/drivers/video/sh_mobile_lcdcfb.c
@@ -499,9 +499,11 @@ static struct fb_fix_screeninfo sh_mobile_lcdc_fix = {
499 499
500static struct fb_ops sh_mobile_lcdc_ops = { 500static struct fb_ops sh_mobile_lcdc_ops = {
501 .fb_setcolreg = sh_mobile_lcdc_setcolreg, 501 .fb_setcolreg = sh_mobile_lcdc_setcolreg,
502 .fb_fillrect = cfb_fillrect, 502 .fb_read = fb_sys_read,
503 .fb_copyarea = cfb_copyarea, 503 .fb_write = fb_sys_write,
504 .fb_imageblit = cfb_imageblit, 504 .fb_fillrect = sys_fillrect,
505 .fb_copyarea = sys_copyarea,
506 .fb_imageblit = sys_imageblit,
505}; 507};
506 508
507static int sh_mobile_lcdc_set_bpp(struct fb_var_screeninfo *var, int bpp) 509static int sh_mobile_lcdc_set_bpp(struct fb_var_screeninfo *var, int bpp)