|
From: <sle...@us...> - 2007-07-17 01:07:24
|
Revision: 1165
http://svn.sourceforge.net/hackndev/?rev=1165&view=rev
Author: sleep_walker
Date: 2007-07-16 18:07:17 -0700 (Mon, 16 Jul 2007)
Log Message:
-----------
palmtt3: added support for disabling white border
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/Kconfig
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3.c
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/Kconfig
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/Kconfig 2007-07-16 22:24:42 UTC (rev 1164)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/Kconfig 2007-07-17 01:07:17 UTC (rev 1165)
@@ -4,6 +4,12 @@
help
This enables support for Palm Tungsten|T3 handheld.
+config PALMTT3_DISABLE_BORDER
+ bool "Disable display border"
+ depends on MACH_T3XSCALE
+ help
+ Some displays can disable white border. This could allow it. This makes screen bigger for 4 pixels in both directions.
+
config PALMTT3_BUTTONS
tristate "Buttons support"
depends on MACH_T3XSCALE
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3.c 2007-07-16 22:24:42 UTC (rev 1164)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3.c 2007-07-17 01:07:17 UTC (rev 1165)
@@ -80,15 +80,26 @@
static struct pxafb_mode_info palmtt3_lcd_modes[] = {
{
.pixclock = 0,
+ .bpp = 16,
+#ifdef CONFIG_PALMTT3_DISABLE_BORDER
+ .hsync_len = 6,
+ .vsync_len = 3,
+ .xres = 324,
+ .yres = 484,
+ .left_margin = 28,
+ .right_margin = 8,
+ .upper_margin = 3,
+ .lower_margin = 6,
+#else
+ .hsync_len = 4,
+ .vsync_len = 1,
.xres = 320,
.yres = 480,
- .bpp = 16,
- .hsync_len = 4,
.left_margin = 31,
.right_margin = 3,
- .vsync_len = 1,
.upper_margin = 8,
.lower_margin = 7,
+#endif
.sync = FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT,
}
};
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|