Skip to contentSkip to conversation

fbdev: bfin_adv7393fb: new Blackfin ADV7393 driver

PATCH In review Mike Frysinger 1 participant 1 message Nov 24, 2010 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 fbdev: bfin_adv7393fb: new Blackfin ADV7393 driver

From: Michael Hennerich <[email protected]>

Driver for ADV7393 add-on card for multiple Blackfin boards.

---
note: these have been posted in the past, but before we got a fbdev
maintainer, so i'm just reposting them to hopefully get merged

 drivers/video/Kconfig          |   52 +++
 drivers/video/Makefile         |    1 +
 drivers/video/bfin_adv7393fb.c |  832 ++++++++++++++++++++++++++++++++++++++++
 drivers/video/bfin_adv7393fb.h |  321 ++++++++++++++++
 4 files changed, 1206 insertions(+), 0 deletions(-)
 create mode 100644 drivers/video/bfin_adv7393fb.c
 create mode 100644 drivers/video/bfin_adv7393fb.h
drivers/video/Kconfig +52 -0
index 2203871..324d841 100644
@@ -649,6 +649,58 @@ config FB_BF537_LQ035
 	  To compile this driver as a module, choose M here: the
 	  module will be called bf537-lq035.
 
+config FB_BFIN_7393
+	tristate "Blackfin ADV7393 Video encoder"
+	depends on FB && BLACKFIN
+	select I2C
+	select FB_CFB_FILLRECT
+	select FB_CFB_COPYAREA
+	select FB_CFB_IMAGEBLIT
+	help
+	  This is the framebuffer device for a ADV7393 video encoder
+	  attached to a Blackfin on the PPI port.
+	  If your Blackfin board has a ADV7393 select Y.
+
+	  To compile this driver as a module, choose M here: the
+	  module will be called bfin_adv7393fb.
+
+choice
+	prompt  "Video mode support"
+	depends on FB_BFIN_7393
+	default NTSC
+
+config NTSC
+	bool 'NTSC 720x480'
+
+config PAL
+	bool 'PAL 720x576'
+
+config NTSC_640x480
+	bool 'NTSC 640x480 (Experimental)'
+
+config PAL_640x480
+	bool 'PAL 640x480 (Experimental)'
+
+config NTSC_YCBCR
+	bool 'NTSC 720x480 YCbCR input'
+
+config PAL_YCBCR
+	bool 'PAL 720x576 YCbCR input'
+
+endchoice
+
+choice
+	prompt  "Size of ADV7393 frame buffer memory Single/Double Size"
+	depends on (FB_BFIN_7393)
+	default ADV7393_1XMEM
+
+config ADV7393_1XMEM
+	bool 'Single'
+
+config ADV7393_2XMEM
+	bool 'Double'
+endchoice
+
 config FB_STI
 	tristate "HP STI frame buffer device support"
 	depends on FB && PARISC
drivers/video/Makefile +1 -0
index 105a9ec..e657f22 100644
@@ -145,6 +145,7 @@ obj-$(CONFIG_FB_BF537_LQ035)      += bf537-lq035.o
 obj-$(CONFIG_FB_BF54X_LQ043)	  += bf54x-lq043fb.o
 obj-$(CONFIG_FB_BFIN_LQ035Q1)     += bfin-lq035q1-fb.o
 obj-$(CONFIG_FB_BFIN_T350MCQB)	  += bfin-t350mcqb-fb.o
+obj-$(CONFIG_FB_BFIN_7393)        += bfin_adv7393fb.o
 obj-$(CONFIG_FB_MX3)		  += mx3fb.o
 obj-$(CONFIG_FB_DA8XX)		  += da8xx-fb.o
 
drivers/video/bfin_adv7393fb.c new file +822 -0

822 lines not on this page · raw message

drivers/video/bfin_adv7393fb.h new file +321 -0

321 lines not on this page · raw message

Signature · 1 line
1.7.3.2