From 47515794455be3b59bffd9327b2932a47c176ea3 Mon Sep 17 00:00:00 2001
From: z3deverp <z3@vmsv-debian.(none)>
Date: Wed, 18 Jun 2008 11:42:32 +0900
Subject: [PATCH] pxa:pxa27x LCCR4 register define

---
 include/asm-arm/arch-pxa/pxa-regs.h |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/include/asm-arm/arch-pxa/pxa-regs.h b/include/asm-arm/arch-pxa/pxa-regs.h
index c12c294..255397c 100644
--- a/include/asm-arm/arch-pxa/pxa-regs.h
+++ b/include/asm-arm/arch-pxa/pxa-regs.h
@@ -2015,6 +2015,33 @@
 
 #define LDCMD_PAL	(1 << 26)	/* instructs DMA to load palette buffer */
 
+#ifdef CONFIG_PXA27x
+#define LCCR4       __REG(0x44000010)  /* LCD Controller Control Register 4 */
+
+#define LCCR4_PCDDIV        (1 << 31)       /* PCD Divisor Selection */
+#define LCCR4_13M_PCD_EN    (1 << 25)       /* 13M mode Pixel Clock Divisor Enable */
+
+#define LCCR4_13M_PCD_VAL   Fld (8, 17)     /* 13M mode Pixel Clock Divisor Value */
+#define LCCR4_13M_Pcd_Val(Pcd_Val)          /* 13M mode Pixel Clock Divisor Value */ \
+                            (((Pcd_Val) << FShft (LCCR4_13M_PCD_VAL)))
+
+#define LCCR4_PAL_FOR       Fld (2, 15)     /* Palette Data Format */
+#define LCCR4_Pal_For(Pal_For)              /* Palette Data Format */ \
+                            (((Pal_For) << FShft (LCCR4_PAL_FOR)))
+
+#define LCCR4_K3            Fld (3, 6)      /* Multiplication Constant for Green for Half Transparency */
+#define LCCR4_k3(k3)                        /* Multiplication Constant for Green for Half Transparency */ \
+                            (((k3) << FShft (LCCR4_K3)))
+
+#define LCCR4_K2            Fld (3, 3)      /* Multiplication Constant for Blue for Half Transparency */
+#define LCCR4_k2(k2)                        /* Multiplication Constant for Blue for Half Transparency */ \
+                            (((k2) << FShft (LCCR4_K2)))
+
+#define LCCR4_K1            Fld (3, 0)      /* Multiplication Constant for Red for Half Transparency */
+#define LCCR4_k1(k1)                        /* Multiplication Constant for Red for Half Transparency */ \
+                            (((k1) << FShft (LCCR4_K1)))
+#endif
+
 /*
  * Memory controller
  */
-- 
1.4.4.4

