From: <mar...@us...> - 2007-07-12 22:19:54
|
Revision: 1129 http://svn.sourceforge.net/hackndev/?rev=1129&view=rev Author: marex_z71 Date: 2007-07-12 15:19:52 -0700 (Thu, 12 Jul 2007) Log Message: ----------- PalmLD: rework LCCR settings to constants Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c 2007-07-12 18:35:06 UTC (rev 1128) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c 2007-07-12 22:19:52 UTC (rev 1129) @@ -26,6 +26,7 @@ #include <asm/arch/mmc.h> #include <asm/arch/pxafb.h> #include <asm/arch/pxa-regs.h> +#include <asm/arch/bitfield.h> #include <asm/arch/irda.h> #include <asm/arch/palmld-gpio.h> #include <asm/arch/pxa27x_keyboard.h> @@ -394,17 +395,20 @@ .upper_margin = 7, //5, .lower_margin = 1, //3, -// .sync = FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, + .sync = FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, }, }; static struct pxafb_mach_info palmld_lcd_screen = { .modes = palmld_lcd_modes, .num_modes = ARRAY_SIZE(palmld_lcd_modes), - /* fixme: this is a hack, use constants instead. */ - .lccr0 = 0x7b008f8, - /* Palm sets 4700004, but with 4700002 we eliminate the annoying screen noise */ - .lccr3 = 0x4700002, + .lccr0 = LCCR0_Color | LCCR0_Sngl | LCCR0_LDM | LCCR0_SFM | + LCCR0_IUM | LCCR0_EFM | LCCR0_Act | LCCR0_QDM | + LCCR0_BM | LCCR0_OUM | LCCR0_RDSTM | LCCR0_CMDIM | + LCCR0_OUC | LCCR0_LDDALT, + /* Set divisor to 2 to get rid of screen whining */ + .lccr3 = LCCR3_PixClkDiv(2) | LCCR3_HorSnchL | LCCR3_VrtSnchL | + LCCR3_PixFlEdg | LCCR3_Bpp(4), .pxafb_backlight_power = palm_backlight_power, }; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |