SM501 framebuffer driver
Subsystems (2)
This is a resend of the SM501 patch, with all
the previous comments addressed, and some more
support for items such as blanking and display
panning. A number of code paths are now handled
by common blocks where possible to make the code
easier to change.
Hardware acceleration is not included in this patch, and will be sorted out as soon as possible.
drivers/video/Kconfig +18 -0
@@ -1596,6 +1596,24 @@ config FB_S3C2410_DEBUG Turn on debugging messages. Note that you can set/unset at run time through sysfs +config FB_SM501 + tristate "Silicon Motion SM501 framebuffer support" + depends on FB && MFD_SM501 + select FB_CFB_FILLRECT + select FB_CFB_COPYAREA + select FB_CFB_IMAGEBLIT + ---help--- + Frame buffer driver for the CRT and LCD controllers in the Silicon + Motion SM501. + + This driver is also available as a module ( = code which can be + inserted and removed from the running kernel whenever you want). The + module will be called sm501fb. If you want to compile it as a module, + say M here and read <file:Documentation/modules.txt>. + + If unsure, say N. + + config FB_PNX4008_DUM tristate "Display Update Module support on Philips PNX4008 board" depends on FB && ARCH_PNX4008
drivers/video/Makefile +1 -0
@@ -99,6 +99,7 @@ obj-$(CONFIG_FB_IMX) += imx obj-$(CONFIG_FB_S3C2410) += s3c2410fb.o obj-$(CONFIG_FB_PNX4008_DUM) += pnx4008/ obj-$(CONFIG_FB_PNX4008_DUM_RGB) += pnx4008/ +obj-$(CONFIG_FB_SM501) += sm501fb.o # Platform or fallback drivers go here obj-$(CONFIG_FB_VESA) += vesafb.o
drivers/video/sm501fb.c +1783 -0
1,783 lines not on this page · raw message
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Hi Ben,
Quoted 6 lines · Ben Dooks <ben-fbdev <at> fluff.org> writes:
This is a resend of the SM501 patch, with all the previous comments addressed, and some more support for items such as blanking and display panning. A number of code paths are now handled by common blocks where possible to make the code easier to change.
Is there an updates patchset for the MFD part? (I'm using the one you posted on Dec 13, 2006 to LKML) I get a few compile errors in this driver, all referencing missing constants:
sm501fb.c: In function `sm501fb_set_par_common':
sm501fb.c:411: error: `SM501_ADDR_FLIP' undeclared (first use in this function) sm501fb.c:411: error: (Each undeclared identifier is reported only once sm501fb.c:411: error: for each function it appears in.)sm501fb.c: In function `sm501fb_set_par_geometry':
sm501fb.c:462: error: `SM501_OFF_DC_H_TOT' undeclared (first use in this function)
sm501fb.c:469: error: `SM501_OFF_DC_H_SYNC' undeclared (first use in this function)
sm501fb.c:476: error: `SM501_OFF_DC_V_TOT' undeclared (first use in this function)
sm501fb.c:482: error: `SM501_OFF_DC_V_SYNC' undeclared (first use in this function)sm501fb.c: In function `sm501fb_pan_crt':
sm501fb.c:523: error: `SM501_DC_CRT_CONTROL_PIXEL_MASK' undeclared (first use in
this function)
sm501fb.c:529: error: `SM501_ADDR_FLIP' undeclared (first use in this function)
(and so on...)
Thanks!
Signature · 9 lines
Manuel Lauss ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Quoted 34 lines · Manuel Lauss
Hi Ben,
Quoted 6 lines · Ben Dooks <ben-fbdev <at> fluff.org> writes:
This is a resend of the SM501 patch, with all the previous comments addressed, and some more support for items such as blanking and display panning. A number of code paths are now handled by common blocks where possible to make the code easier to change.
Is there an updates patchset for the MFD part? (I'm using the one you posted on Dec 13, 2006 to LKML) I get a few compile errors in this driver, all referencing missing constants:
sm501fb.c: In function `sm501fb_set_par_common':
sm501fb.c:411: error: `SM501_ADDR_FLIP' undeclared (first use in this function) sm501fb.c:411: error: (Each undeclared identifier is reported only once sm501fb.c:411: error: for each function it appears in.)sm501fb.c: In function `sm501fb_set_par_geometry':
sm501fb.c:462: error: `SM501_OFF_DC_H_TOT' undeclared (first use in this function)
sm501fb.c:469: error: `SM501_OFF_DC_H_SYNC' undeclared (first use in this function)
sm501fb.c:476: error: `SM501_OFF_DC_V_TOT' undeclared (first use in this function)
sm501fb.c:482: error: `SM501_OFF_DC_V_SYNC' undeclared (first use in this function)sm501fb.c: In function `sm501fb_pan_crt':
sm501fb.c:523: error: `SM501_DC_CRT_CONTROL_PIXEL_MASK' undeclared (first use in
this function)
sm501fb.c:529: error: `SM501_ADDR_FLIP' undeclared (first use in this function)
Quoted 1 line
(and so on...)
This is the new MFD patch, which should be re-posted soon to the linux-kernel list for looking at 2.6.20.
drivers/mfd/Kconfig +14 -0
@@ -2,6 +2,20 @@ # Multifunction miscellaneous devices # +menu "Multifunction device drivers" + +config MFD_SM501 + tristate "Support for Silicon Motion SM501" + ---help--- + This is the core driver for the Silicon motion SM501 multimedia + companion chip. This device is a multifunction device which may + provide numerous interfaces including USB host controller USB gadget, + Asyncronous Serial ports, Audio functions and a dual display video + interface. The device may be connected by PCI or local bus with + varying functions enabled. + +endmenu + menu "Multimedia Capabilities Port drivers" depends on ARCH_SA1100
drivers/mfd/Makefile +2 -0
@@ -2,6 +2,8 @@ # Makefile for multifunction miscellaneous devices # +obj-$(CONFIG_MFD_SM501) += sm501.o + obj-$(CONFIG_MCP) += mcp-core.o obj-$(CONFIG_MCP_SA11X0) += mcp-sa11x0.o obj-$(CONFIG_MCP_UCB1200) += ucb1x00-core.o
drivers/mfd/sm501.c +1101 -0
1,101 lines not on this page · raw message
include/linux/sm501-regs.h +357 -0
357 lines not on this page · raw message
include/linux/sm501.h +164 -0
164 lines not on this page · raw message
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Quoted 2 lines
This is the new MFD patch, which should be re-posted soon to the linux-kernel list for looking at 2.6.20.
Thank you, works very well on my SH-4 hardware!
Signature · 7 lines
ml. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV