Skip to contentSkip to conversation

mbxfb: Add framebuffer driver for the Intel 2700G

PATCH New Antonino A. Daplas 1 participant 1 message Jul 11, 2006 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mbxfb: Add framebuffer driver for the Intel 2700G

From: Mike Rapoport <[email protected]>

Add frame buffer driver for the 2700G LCD controller present on CompuLab CM-X270 computer module.

[adaplas]
- Add more informative help text to Kconfig
- Make DEBUG a Kconfig option as FB_MBX_DEBUG
- Remove #include mbxdebug.c, this is frowned upon
- Remove redundant casts
- Arrange #include's alphabetically
- Trivial whitespace

---

 drivers/video/Kconfig          |   20 +
 drivers/video/Makefile         |    1 
 drivers/video/mbx/Makefile     |    4 
 drivers/video/mbx/mbxdebugfs.c |  188 +++++++++++
 drivers/video/mbx/mbxfb.c      |  683 ++++++++++++++++++++++++++++++++++++++++
 drivers/video/mbx/reg_bits.h   |  418 ++++++++++++++++++++++++
 drivers/video/mbx/regs.h       |  195 +++++++++++
 include/video/mbxfb.h          |   28 ++
 8 files changed, 1537 insertions(+), 0 deletions(-)
drivers/video/Kconfig +20 -0
index 9d9d02a..ab62ce6 100644
@@ -1540,6 +1540,26 @@ config FB_PXA_PARAMETERS
 
 	  <file:Documentation/fb/pxafb.txt> describes the available parameters.
 
+config FB_MBX
+	tristate "2700G LCD framebuffer support"
+	depends on FB && ARCH_PXA
+	select FB_CFB_FILLRECT
+	select FB_CFB_COPYAREA
+	select FB_CFB_IMAGEBLIT
+	---help---
+	  Framebuffer driver for the Intel 2700G (Marathon) Graphics
+	  Accelerator
+
+config FB_MBX_DEBUG
+       bool "Enable debugging info via debugfs"
+       depends on FB_MBX && DEBUG_FS
+       default n
+       ---help---
+         Enable this if you want debugging information using the debug
+         filesystem (debugfs)
+
+         If unsure, say N.
+
 config FB_W100
 	tristate "W100 frame buffer support"
 	depends on FB && PXA_SHARPSL
drivers/video/Makefile +1 -0
index be7f1c9..481c6c9 100644
@@ -39,6 +39,7 @@ obj-$(CONFIG_FB_SIS)		  += sis/
 obj-$(CONFIG_FB_KYRO)             += kyro/
 obj-$(CONFIG_FB_SAVAGE)		  += savage/
 obj-$(CONFIG_FB_GEODE)		  += geode/
+obj-$(CONFIG_FB_MBX)		  += mbx/
 obj-$(CONFIG_FB_I810)             += vgastate.o
 obj-$(CONFIG_FB_NEOMAGIC)         += neofb.o vgastate.o
 obj-$(CONFIG_FB_VIRGE)            += virgefb.o
drivers/video/mbx/Makefile new file +4 -0
new file mode 100644
index 0000000..16c1165
@@ -0,0 +1,4 @@
+# Makefile for the 2700G controller driver.
+
+obj-$(CONFIG_FB_MBX)	   += mbxfb.o
+obj-$(CONFIG_FB_MBX_DEBUG) += mbxfbdebugfs.o
drivers/video/mbx/mbxdebugfs.c new file +188 -0

188 lines not on this page · raw message

drivers/video/mbx/mbxfb.c new file +683 -0

683 lines not on this page · raw message

drivers/video/mbx/reg_bits.h new file +418 -0

418 lines not on this page · raw message

drivers/video/mbx/regs.h new file +195 -0

195 lines not on this page · raw message

include/video/mbxfb.h new file +28 -0
new file mode 100644
index 0000000..3bde0f5
@@ -0,0 +1,28 @@
+#ifndef __MBX_FB_H
+#define __MBX_FB_H
+
+struct mbxfb_val {
+	unsigned int	defval;
+	unsigned int	min;
+	unsigned int	max;
+};
+
+struct fb_info;
+
+struct mbxfb_platform_data {
+		/* Screen info */
+		struct mbxfb_val xres;
+		struct mbxfb_val yres;
+		struct mbxfb_val bpp;
+
+		/* Memory info */
+		unsigned long memsize; /* if 0 use ODFB? */
+		unsigned long timings1;
+		unsigned long timings2;
+		unsigned long timings3;
+
+		int (*probe)(struct fb_info *fb);
+		int (*remove)(struct fb_info *fb);
+};
+
+#endif /* __MBX_FB_H */

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642