Patch for 4.3 inch LCD

This patch work against the mini6410 kernel generated by OE. The stock driver does not work for the 4.3” LCD in OK6410.

lcd43.patch.txt
--- drivers/video/samsung/s3c_mini6410.c-orig   2010-10-18 21:17:07.000000000 +0800
+++ drivers/video/samsung/s3c_mini6410.c        2010-10-18 21:20:52.000000000 +0800
@@ -25,13 +25,14 @@
 #include <linux/autoconf.h>

 #if defined(CONFIG_FB_S3C_TFT480272)
+/* definition for WXCAT43 */

-#define S3CFB_VBP              (1)     /* back porch */
-#define S3CFB_VFP              (1)     /* front porch */
-#define S3CFB_VSW              (1)     /* vsync width */
-#define S3CFB_HBP              (0x02)  /* back porch */
-#define S3CFB_HFP              (0x03)  /* front porch */
-#define S3CFB_HSW              (0x28)  /* hsync width */
+#define S3CFB_VBP              (2)     /* back porch */
+#define S3CFB_VFP              (2)     /* front porch */
+#define S3CFB_VSW              (10)    /* vsync width */
+#define S3CFB_HBP              (2)     /* back porch */
+#define S3CFB_HFP              (2)     /* front porch */
+#define S3CFB_HSW              (41)    /* hsync width */

 #define S3CFB_HRES             480     /* horizon pixel  x resolition */
 #define S3CFB_VRES             272     /* line cnt       y resolution */
@@ -198,7 +199,7 @@

 void s3cfb_init_hw(void)
 {
-       printk(KERN_INFO "LCD TYPE :: LTE480WV will be initialized\n");
+       printk(KERN_INFO "LCD TYPE :: WXCAT43 will be initialized\n");

        s3cfb_set_fimd_info();
        s3cfb_set_gpio();

oe/4.3_inch_lcd_driver_patch_for_ok6410.txt · Last modified: 2010-10-19 18:22 by admin
Back to top
GNU Free Documentation License 1.3
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0