Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7edf479 authored by Wu Zhangjin's avatar Wu Zhangjin Committed by Greg Kroah-Hartman
Browse files

Staging: sm7xx: add a new framebuffer driver

Yeeloong netbook has a sm712 video card, need this driver, but it is not
ready to upstream yet, so, go to drivers/staing at first.

This source code is originally from Silicon Motion Technology Corp, and
maintained at http://dev.lemote.com/code/linux_loongson for YeeLoong
netbook. I have done a lot of cleanups for it and merged it into my git
repository at http://dev.lemote.com/code/rt4ls

.

Thanks to Simon for testing it on a little-endian x86 platform.

Thanks to Olivier Croset <olivier.croset@actis-computer.com> for
reporting the problem about __BIG_ENDIAN compiling problem and send a
relative patch.

The suspend/resume and blank support are contributed by Jason from
Silicon Motion Technology.

Tested-by: default avatarSimon Braunschmidt <sbraun@emlix.com>
Signed-off-by: default avatarWu Zhangjin <wuzhangjin@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 193cb93e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -145,5 +145,7 @@ source "drivers/staging/wavelan/Kconfig"

source "drivers/staging/netwave/Kconfig"

source "drivers/staging/sm7xx/Kconfig"

endif # !STAGING_EXCLUDE_BUILD
endif # STAGING
+1 −0
Original line number Diff line number Diff line
@@ -53,3 +53,4 @@ obj-$(CONFIG_ARLAN) += arlan/
obj-$(CONFIG_WAVELAN)		+= wavelan/
obj-$(CONFIG_PCMCIA_WAVELAN)	+= wavelan/
obj-$(CONFIG_PCMCIA_NETWAVE)	+= netwave/
obj-$(CONFIG_FB_SM7XX)		+= sm7xx/
+15 −0
Original line number Diff line number Diff line
config FB_SM7XX
	tristate "Silicon Motion SM7XX Frame Buffer Support"
	depends on FB
	select FB_CFB_FILLRECT
	select FB_CFB_COPYAREA
	select FB_CFB_IMAGEBLIT
	help
	  Frame Buffer driver for the Silicon Motion SM7XX serial graphic card.

config FB_SM7XX_ACCEL
	bool "Siliconmotion Acceleration functions (EXPERIMENTAL)"
	depends on FB_SM7XX && EXPERIMENTAL
	help
	  This will compile the Trident frame buffer device with
	  acceleration functions.
+3 −0
Original line number Diff line number Diff line
obj-$(CONFIG_FB_SM7XX) += sm7xx.o

sm7xx-y := smtcfb.o
+10 −0
Original line number Diff line number Diff line
TODO:
- Dual head support
- use kernel coding style
- checkpatch.pl clean
- refine the code and remove unused code
- use kernel framebuffer mode setting instead of hard code
- move it to drivers/video/sm7xx/ or make it be drivers/video/sm7xxfb.c

Please send any patches to Greg Kroah-Hartman <greg@kroah.com> and
Teddy Wang <teddy.wang@siliconmotion.com.cn>.
Loading