|
@@ -1765,3 +1765,67 @@
|
|
#define LCCR2_DisHght(Line) /* Display Height [1..1024 lines] */ \
|
|
#define LCCR2_DisHght(Line) /* Display Height [1..1024 lines] */ \
|
|
(((Line) - 1) << FShft (LCCR2_LPP))
|
|
(((Line) - 1) << FShft (LCCR2_LPP))
|
|
#define LCCR2_VSW Fld (6, 10) /* Vertical Synchronization pulse */
|
|
#define LCCR2_VSW Fld (6, 10) /* Vertical Synchronization pulse */
|
|
|
|
+ /* Width - 1 [Tln] (L_FCLK) */
|
|
|
|
+#define LCCR2_VrtSnchWdth(Tln) /* Vertical Synchronization pulse */ \
|
|
|
|
+ /* Width [1..64 Tln] */ \
|
|
|
|
+ (((Tln) - 1) << FShft (LCCR2_VSW))
|
|
|
|
+#define LCCR2_EFW Fld (8, 16) /* End-of-Frame line clock Wait */
|
|
|
|
+ /* count [Tln] */
|
|
|
|
+#define LCCR2_EndFrmDel(Tln) /* End-of-Frame Delay */ \
|
|
|
|
+ /* [0..255 Tln] */ \
|
|
|
|
+ ((Tln) << FShft (LCCR2_EFW))
|
|
|
|
+#define LCCR2_BFW Fld (8, 24) /* Beginning-of-Frame line clock */
|
|
|
|
+ /* Wait count [Tln] */
|
|
|
|
+#define LCCR2_BegFrmDel(Tln) /* Beginning-of-Frame Delay */ \
|
|
|
|
+ /* [0..255 Tln] */ \
|
|
|
|
+ ((Tln) << FShft (LCCR2_BFW))
|
|
|
|
+
|
|
|
|
+#define LCCR3_PCD Fld (8, 0) /* Pixel Clock Divisor/2 - 2 */
|
|
|
|
+ /* [1..255] (L_PCLK) */
|
|
|
|
+ /* fpix = fcpu/(2*(PCD + 2)) */
|
|
|
|
+ /* Tpix = 2*(PCD + 2)*Tcpu */
|
|
|
|
+#define LCCR3_PixClkDiv(Div) /* Pixel Clock Divisor [6..514] */ \
|
|
|
|
+ (((Div) - 4)/2 << FShft (LCCR3_PCD))
|
|
|
|
+ /* fpix = fcpu/(2*Floor (Div/2)) */
|
|
|
|
+ /* Tpix = 2*Floor (Div/2)*Tcpu */
|
|
|
|
+#define LCCR3_CeilPixClkDiv(Div) /* Ceil. of PixClkDiv [6..514] */ \
|
|
|
|
+ (((Div) - 3)/2 << FShft (LCCR3_PCD))
|
|
|
|
+ /* fpix = fcpu/(2*Ceil (Div/2)) */
|
|
|
|
+ /* Tpix = 2*Ceil (Div/2)*Tcpu */
|
|
|
|
+#define LCCR3_ACB Fld (8, 8) /* AC Bias clock half period - 1 */
|
|
|
|
+ /* [Tln] (L_BIAS) */
|
|
|
|
+#define LCCR3_ACBsDiv(Div) /* AC Bias clock Divisor [2..512] */ \
|
|
|
|
+ (((Div) - 2)/2 << FShft (LCCR3_ACB))
|
|
|
|
+ /* fac = fln/(2*Floor (Div/2)) */
|
|
|
|
+ /* Tac = 2*Floor (Div/2)*Tln */
|
|
|
|
+#define LCCR3_CeilACBsDiv(Div) /* Ceil. of ACBsDiv [2..512] */ \
|
|
|
|
+ (((Div) - 1)/2 << FShft (LCCR3_ACB))
|
|
|
|
+ /* fac = fln/(2*Ceil (Div/2)) */
|
|
|
|
+ /* Tac = 2*Ceil (Div/2)*Tln */
|
|
|
|
+#define LCCR3_API Fld (4, 16) /* AC bias Pin transitions per */
|
|
|
|
+ /* Interrupt */
|
|
|
|
+#define LCCR3_ACBsCntOff /* AC Bias clock transition Count */ \
|
|
|
|
+ /* Off */ \
|
|
|
|
+ (0 << FShft (LCCR3_API))
|
|
|
|
+#define LCCR3_ACBsCnt(Trans) /* AC Bias clock transition Count */ \
|
|
|
|
+ /* [1..15] */ \
|
|
|
|
+ ((Trans) << FShft (LCCR3_API))
|
|
|
|
+#define LCCR3_VSP 0x00100000 /* Vertical Synchronization pulse */
|
|
|
|
+ /* Polarity (L_FCLK) */
|
|
|
|
+#define LCCR3_VrtSnchH (LCCR3_VSP*0) /* Vertical Synchronization pulse */
|
|
|
|
+ /* active High */
|
|
|
|
+#define LCCR3_VrtSnchL (LCCR3_VSP*1) /* Vertical Synchronization pulse */
|
|
|
|
+ /* active Low */
|
|
|
|
+#define LCCR3_HSP 0x00200000 /* Horizontal Synchronization */
|
|
|
|
+ /* pulse Polarity (L_LCLK) */
|
|
|
|
+#define LCCR3_HorSnchH (LCCR3_HSP*0) /* Horizontal Synchronization */
|
|
|
|
+ /* pulse active High */
|
|
|
|
+#define LCCR3_HorSnchL (LCCR3_HSP*1) /* Horizontal Synchronization */
|
|
|
|
+ /* pulse active Low */
|
|
|
|
+#define LCCR3_PCP 0x00400000 /* Pixel Clock Polarity (L_PCLK) */
|
|
|
|
+#define LCCR3_PixRsEdg (LCCR3_PCP*0) /* Pixel clock Rising-Edge */
|
|
|
|
+#define LCCR3_PixFlEdg (LCCR3_PCP*1) /* Pixel clock Falling-Edge */
|
|
|
|
+#define LCCR3_OEP 0x00800000 /* Output Enable Polarity (L_BIAS, */
|
|
|
|
+ /* active display mode) */
|
|
|
|
+#define LCCR3_OutEnH (LCCR3_OEP*0) /* Output Enable active High */
|
|
|
|
+#define LCCR3_OutEnL (LCCR3_OEP*1) /* Output Enable active Low */
|