summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorEric Miao <ycmiao@ycmiao-ubuntu.internal.example.org>2008-08-15 02:50:44 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-08-16 16:39:16 +0100
commit9a1ac7e498b9fc367235aabeb5b86c1319db1de9 (patch)
treee8e1e80e3aa176e4c2ab0f07ed4f19fe2995ea26 /drivers
parentcb47729bdaf49fe5e9dd2c41554f44a77b5cd590 (diff)
downloadkernel-crypto-9a1ac7e498b9fc367235aabeb5b86c1319db1de9.tar.gz
kernel-crypto-9a1ac7e498b9fc367235aabeb5b86c1319db1de9.tar.xz
kernel-crypto-9a1ac7e498b9fc367235aabeb5b86c1319db1de9.zip
[ARM] pxafb: add flag to specify output format on LDD pins when base is RGBT16
Another fix of inconsistent shift of the LCD_BIAS_ACTIVE_* and LCD_PCLK_EDGE_* is also included. Signed-off-by: Eric Miao <eric.miao@marvell.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/pxafb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c
index bef35afa258..fa108dad09b 100644
--- a/drivers/video/pxafb.c
+++ b/drivers/video/pxafb.c
@@ -1402,6 +1402,8 @@ static void pxafb_decode_mach_info(struct pxafb_info *fbi,
if (lcd_conn == LCD_MONO_STN_8BPP)
fbi->lccr0 |= LCCR0_DPD;
+ fbi->lccr0 |= (lcd_conn & LCD_ALTERNATE_MAPPING) ? LCCR0_LDDALT : 0;
+
fbi->lccr3 = LCCR3_Acb((inf->lcd_conn >> 10) & 0xff);
fbi->lccr3 |= (lcd_conn & LCD_BIAS_ACTIVE_LOW) ? LCCR3_OEP : 0;
fbi->lccr3 |= (lcd_conn & LCD_PCLK_EDGE_FALL) ? LCCR3_PCP : 0;