Blackfin BF54x framebuffer device driver for a SHARP LQ043T1DG01 TFT LCD
PATCH 2/2 Blackfin BF54x framebuffer device driver for a SHARP LQ043T1DG01 TFT LCD
From: Michael Hennerich <[email protected]>
Date: Wed, 26 Sep 2007 11:33:01 +0800
Subject: [PATCH 2/2] [VIDEO FRAMEBUFFER] Blackfin BF54x framebuffer device driver for a SHARP LQ043T1DG01 TFT LCD
--- drivers/video/Kconfig | 9 + drivers/video/Makefile | 1 + drivers/video/bf54x-lq043.c | 786 +++++++++++++++++++++++++ include/asm-blackfin/mach-bf548/bf54x-lq043.h | 30 + 4 files changed, 826 insertions(+), 0 deletions(-) create mode 100644 drivers/video/bf54x-lq043.c create mode 100644 include/asm-blackfin/mach-bf548/bf54x-lq043.h
drivers/video/Kconfig +9 -0
@@ -535,6 +535,15 @@ config FB_VGA16 To compile this driver as a module, choose M here: the module will be called vga16fb. +config FB_BF54X_LQ043 + tristate "SHARP LQ043 TFT LCD (BF548 EZKIT)" + depends on FB && (BF54x) + select FB_CFB_FILLRECT + select FB_CFB_COPYAREA + select FB_CFB_IMAGEBLIT + help + This is the framebuffer device driver for a SHARP LQ043T1DG01 TFT LCD + config FB_STI tristate "HP STI frame buffer device support" depends on FB && PARISC
drivers/video/Makefile +1 -0
@@ -122,6 +122,7 @@ obj-$(CONFIG_FB_OF) += offb.o # the test framebuffer is last obj-$(CONFIG_FB_VIRTUAL) += vfb.o +obj-$(CONFIG_FB_BF54X_LQ043) += bf54x-lq043.o #video output switch sysfs driver obj-$(CONFIG_VIDEO_OUTPUT_CONTROL) += output.o
drivers/video/bf54x-lq043.c new file +786 -0
786 lines not on this page · raw message
include/asm-blackfin/mach-bf548/bf54x-lq043.h new file +30 -0
@@ -0,0 +1,30 @@ +#ifndef BF54X_LQ043_H +#define BF54X_LQ043_H + +struct bfin_bf54xfb_val { +unsigned int defval; +unsigned int min; +unsigned int max; +}; + +struct bfin_bf54xfb_mach_info { +unsigned char fixed_syncs;/* do not update sync/border */ + +/* LCD types */ +int type; + +/* Screen size */ +int width; +int height; + +/* Screen info */ +struct bfin_bf54xfb_val xres; +struct bfin_bf54xfb_val yres; +struct bfin_bf54xfb_val bpp; + +/* GPIOs */ +unsigned short disp; + +}; + +#endif /* BF54X_LQ043_H */
Signature · 1 line
1.5.2
Quoted 40 lines · Bryan Wu
From: Michael Hennerich <[email protected]>
Date: Wed, 26 Sep 2007 11:33:01 +0800
Subject: [PATCH 2/2] [VIDEO FRAMEBUFFER] Blackfin BF54x framebuffer device driver for a SHARP LQ043T1DG01 TFT LCDSigned-off-by Michael Hennerich <[email protected]>Signed-off-by Bryan Wu <[email protected]>--- drivers/video/Kconfig | 9 + drivers/video/Makefile | 1 + drivers/video/bf54x-lq043.c | 786 +++++++++++++++++++++++++ include/asm-blackfin/mach-bf548/bf54x-lq043.h | 30 + 4 files changed, 826 insertions(+), 0 deletions(-) create mode 100644 drivers/video/bf54x-lq043.c create mode 100644 include/asm-blackfin/mach-bf548/bf54x-lq043.hdrivers/video/Kconfig +9
-0@@ -535,6 +535,15 @@ config FB_VGA16 To compile this driver as a module, choose M here: the module will be called vga16fb. +config FB_BF54X_LQ043 + tristate "SHARP LQ043 TFT LCD (BF548 EZKIT)" + depends on FB && (BF54x) + select FB_CFB_FILLRECT + select FB_CFB_COPYAREA + select FB_CFB_IMAGEBLIT + help + This is the framebuffer device driver for a SHARP LQ043T1DG01 TFT LCD + config FB_STI tristate "HP STI frame buffer device support" depends on FB && PARISCdrivers/video/Makefile +0
-0
drivers/video/Makefile obj-$(CONFIG_FB_OF) += offb.o · line 125
Quoted 4 lines
drivers/video/Makefile +1
-0@@ -122,6 +122,7 @@ obj-$(CONFIG_FB_OF) += offb.o # the test framebuffer is last obj-$(CONFIG_FB_VIRTUAL) += vfb.o +obj-$(CONFIG_FB_BF54X_LQ043) += bf54x-lq043.o
It's standard that we suffix all framebuffer drivers with an 'fb'. I'm making it so in my tree.
Also, you shouldn't place your driver after vfb, that's why there's a comment that the test framebuffer is last. If someone accidentally enables vfb, he/she will get a blank screen. So I'm moving it under the platform driver section.
Tony
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/