diff options
-rw-r--r-- | arch/arm/mach-pxa/include/mach/pxafb.h | 4 | ||||
-rw-r--r-- | drivers/video/pxafb.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/include/mach/pxafb.h b/arch/arm/mach-pxa/include/mach/pxafb.h index cb44410cd456..4201a889ff4e 100644 --- a/arch/arm/mach-pxa/include/mach/pxafb.h +++ b/arch/arm/mach-pxa/include/mach/pxafb.h | |||
@@ -95,6 +95,10 @@ struct pxafb_mode_info { | |||
95 | * in pxa27x and pxa3xx, initialize them to the same value or | 95 | * in pxa27x and pxa3xx, initialize them to the same value or |
96 | * the larger one will be used | 96 | * the larger one will be used |
97 | * 3. same to {rd,wr}_pulse_width | 97 | * 3. same to {rd,wr}_pulse_width |
98 | * | ||
99 | * 4. LCD_PCLK_EDGE_{RISE,FALL} controls the L_PCLK_WR polarity | ||
100 | * 5. sync & FB_SYNC_HOR_HIGH_ACT controls the L_LCLK_A0 | ||
101 | * 6. sync & FB_SYNC_VERT_HIGH_ACT controls the L_LCLK_RD | ||
98 | */ | 102 | */ |
99 | unsigned a0csrd_set_hld; /* A0 and CS Setup/Hold Time before/after L_FCLK_RD */ | 103 | unsigned a0csrd_set_hld; /* A0 and CS Setup/Hold Time before/after L_FCLK_RD */ |
100 | unsigned a0cswr_set_hld; /* A0 and CS Setup/Hold Time before/after L_PCLK_WR */ | 104 | unsigned a0cswr_set_hld; /* A0 and CS Setup/Hold Time before/after L_PCLK_WR */ |
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c index 62d2dd0c1fa1..d6de84b42036 100644 --- a/drivers/video/pxafb.c +++ b/drivers/video/pxafb.c | |||
@@ -760,7 +760,9 @@ static void setup_smart_timing(struct pxafb_info *fbi, | |||
760 | LCCR1_HorSnchWdth(__smart_timing(t3, lclk)); | 760 | LCCR1_HorSnchWdth(__smart_timing(t3, lclk)); |
761 | 761 | ||
762 | fbi->reg_lccr2 = LCCR2_DisHght(var->yres); | 762 | fbi->reg_lccr2 = LCCR2_DisHght(var->yres); |
763 | fbi->reg_lccr3 = LCCR3_PixClkDiv(__smart_timing(t4, lclk)); | 763 | fbi->reg_lccr3 = fbi->lccr3 | LCCR3_PixClkDiv(__smart_timing(t4, lclk)); |
764 | fbi->reg_lccr3 |= (var->sync & FB_SYNC_HOR_HIGH_ACT) ? LCCR3_HSP : 0; | ||
765 | fbi->reg_lccr3 |= (var->sync & FB_SYNC_VERT_HIGH_ACT) ? LCCR3_VSP : 0; | ||
764 | 766 | ||
765 | /* FIXME: make this configurable */ | 767 | /* FIXME: make this configurable */ |
766 | fbi->reg_cmdcr = 1; | 768 | fbi->reg_cmdcr = 1; |