[PATCH 1/4] provide LCM timing characteristics in machine info

Chia-I Wu olv at openmoko.com
Wed Dec 5 15:16:11 CET 2007


This is a multi-part message in MIME format.
--------------1.5.3.1
Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit


jbt6k74 can run under VGA and QVGA mode.  The timing characteristics should be
provided to help driver initialization.

Signed-off-by: Chia-I Wu <olv at openmoko.com>
---
 arch/arm/mach-s3c2440/mach-gta02.c |   11 +++++++++--
 include/linux/glamofb.h            |    4 ++++
 2 files changed, 13 insertions(+), 2 deletions(-)
--------------1.5.3.1
Content-Type: text/x-patch; name="6b7bc934a01f74c61e856310c676a6d7af77ac45.diff"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="6b7bc934a01f74c61e856310c676a6d7af77ac45.diff"

diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c
index 4e333b6..7c0976c 100644
--- a/arch/arm/mach-s3c2440/mach-gta02.c
+++ b/arch/arm/mach-s3c2440/mach-gta02.c
@@ -557,8 +557,15 @@ static struct s3c2410_hcd_info gta02_usb_info = {
 /* Smedia Glamo 3362 */
 
 static struct glamofb_platform_data gta02_glamo_pdata = {
-	.width		= 480,
-	.height		= 640,
+	.width		= 43,
+	.height		= 58,
+	.pixclock	= 50 * 1000, /* 50 ns */
+	.left_margin	= 8,
+	.right_margin	= 104,
+	.upper_margin	= 2,
+	.lower_margin	= 16,
+	.hsync_len	= 8,
+	.vsync_len	= 2,
 	.xres		= {
 		.min	= 240,
 		.max	= 480,
diff --git a/include/linux/glamofb.h b/include/linux/glamofb.h
index 3da52ff..c54dd80 100644
--- a/include/linux/glamofb.h
+++ b/include/linux/glamofb.h
@@ -13,6 +13,10 @@ struct glamo_core;
 
 struct glamofb_platform_data {
 	int width, height;
+	int pixclock;
+	int left_margin, right_margin;
+	int upper_margin, lower_margin;
+	int hsync_len, vsync_len;
 
 	struct glamofb_val xres;
 	struct glamofb_val yres;

--------------1.5.3.1--






More information about the openmoko-kernel mailing list