SM722 (Lynx3DM+) framebuffer driver
Subsystems (2)
Hi,
does anyone know about a Silicon Motion SM722 framebuffer driver for recent 2.6 kernels? I found some old and dusty code for the Silicon Motion parts but either only for the SM712 or for 2.4 kernels.
Is anyone using that part in a PowerPC system?
Matthias
Hi !
I know your mail is quite old, but this might still prove useful....
and did you find a solution ?
Do you finally have a driver ? I'm interested in whatever information you have, even the links to 2.4 kernel code, or code for SM712 chips. Anything at all in fact, so I may try to improve my driver.
I have this device (Silicon Motion SM722 Lynx3DM+) on a powerPC board from ACTIS Computers.
You'll find attached a patch with the SMI driver I made.
It's not as good as it should be, be I have a usable display, being able to use xorg, and it's as much as I managed without a vgabios (which they provide for x86 arch only). Note also that uboot on the board does some chip init, so this driver alone may not be useful if you don't already have something.
Note also that for my brain's sake I removed parts handling LynxEM chips from the original code (which was mainly for mips VR5701-SG2 with LynxEM+).
Have fun, and thank you if you can send in some useful stuff.
++++
Signature · 9 lines
Nathaël PAJANI ED3L - Etude et Développement - Linux et Logiciels Libres Adresse : 25 av. Alexandre Godard 69150 Décines-Charpieu FRANCE Mail : [email protected] Tel : 06 19 35 33 91 Internet : http://www.ed3l.fr
Makefile +1 -0
@@ -2,6 +2,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 26 EXTRAVERSION = +# Comment added to have git-diff include these lines in the diff. NAME = Rotary Wombat # *DOCUMENTATION*
drivers/video/Kconfig +14 -0
@@ -1418,6 +1418,20 @@ config FB_ATY_BACKLIGHT help Say Y here if you want to control the backlight of your display. +config FB_SMI + tristate "SMI - Silicon Motion SM722 support (Lynx 3DM+) (EXPERIMENTAL)" + depends on FB && PCI + select FB_CFB_FILLRECT + select FB_CFB_COPYAREA + select FB_CFB_IMAGEBLIT + select FB_TILEBLITTING + select FB_SVGALIB + select VGASTATE + select FONT_8x16 if FRAMEBUFFER_CONSOLE + select FB_MACMODES if PPC + help + Say Y here if you want to support the SMI Lynx 3DM+ chip : SM722 + config FB_S3 tristate "S3 Trio/Virge support" depends on FB && PCI
drivers/video/Makefile +1 -0
@@ -47,6 +47,7 @@ obj-$(CONFIG_FB_KYRO) += kyro/ obj-$(CONFIG_FB_SAVAGE) += savage/ obj-$(CONFIG_FB_GEODE) += geode/ obj-$(CONFIG_FB_MBX) += mbx/ +obj-$(CONFIG_FB_SMI) += smi/ obj-$(CONFIG_FB_NEOMAGIC) += neofb.o obj-$(CONFIG_FB_3DFX) += tdfxfb.o obj-$(CONFIG_FB_CONTROL) += controlfb.o
drivers/video/smi/Makefile new file +9 -0
@@ -0,0 +1,9 @@ +# +# Makefile for LynxEM+/EM4+(Silicon Motion Inc.) fb driver for VR5701-SG2 +# under Linux. +# + +obj-$(CONFIG_FB_SM) += smifb.o + +smifb-objs := smi_base.o smi_hw.o +
drivers/video/smi/smi_base.c new file +384 -0
384 lines not on this page · raw message
drivers/video/smi/smi_hw.c new file +629 -0
629 lines not on this page · raw message
drivers/video/smi/smi_hw.h new file +672 -0
672 lines not on this page · raw message
drivers/video/smi/smifb.h new file +64 -0
64 lines not on this page · raw message
Hi Nathael,
your driver seems to be the most complete framebufferdriver for this chip I heard about :-)
Our driver is currently based on some register dumps by SMI. The chip is completely setup by U-Boot. Because of it's missing generic'ness I did not dare to post it as a patch to the U-Boot list :-) Finally we are using a stupid framebuffer driver that does absolutely no 722 setup. It just represents the framebuffer driver interface.
I will give your driver a try.
Quoted 10 lines · Nathael Pajani
Hi !
I know your mail is quite old, but this might still prove useful.... and did you find a solution ?
Do you finally have a driver ? I'm interested in whatever information you have, even the links to 2.4 kernel code, or code for SM712 chips. Anything at all in fact, so I may try to improve my driver.I have this device (Silicon Motion SM722 Lynx3DM+) on a powerPC board from ACTIS Computers.
Quoted 6 lines
You'll find attached a patch with the SMI driver I made.
It's not as good as it should be, be I have a usable display, being able to use xorg, and it's as much as I managed without a vgabios (which they provide for x86 arch only).
Note also that uboot on the board does some chip init, so this driver alone may not be useful if you don't already have something.
I assume that you enable access to the memory mapped register in U-Boot, right?
Quoted 7 lines
Note also that for my brain's sake I removed parts handling LynxEM chips from the original code (which was mainly for mips VR5701-SG2 with LynxEM+).
Have fun, and thank you if you can send in some useful stuff.
++++
Matthias