aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-pxa/regs-lcd.h
diff options
context:
space:
mode:
authorEric Miao <eric.miao@marvell.com>2008-04-30 03:52:26 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-30 11:29:32 -0400
commit3c42a449107bf76c59b8e0b6a30d070e9696e49c (patch)
treef8277f579a034ebdb8d750d83179e843bff7dc0d /include/asm-arm/arch-pxa/regs-lcd.h
parent90eabbf0ec0c626cf5d186214cf8fc79150a7a29 (diff)
pxafb: preliminary smart panel interface support
Signed-off-by: Daniel Mack <daniel@caiaq.de> Signed-off-by: Eric Miao <eric.miao@marvell.com> Cc: "Antonino A. Daplas" <adaplas@pol.net> Cc: Russell King <rmk@arm.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-arm/arch-pxa/regs-lcd.h')
-rw-r--r--include/asm-arm/arch-pxa/regs-lcd.h34
1 files changed, 33 insertions, 1 deletions
diff --git a/include/asm-arm/arch-pxa/regs-lcd.h b/include/asm-arm/arch-pxa/regs-lcd.h
index f84dd47be28a..f762493f5141 100644
--- a/include/asm-arm/arch-pxa/regs-lcd.h
+++ b/include/asm-arm/arch-pxa/regs-lcd.h
@@ -7,7 +7,8 @@
7#define LCCR1 (0x004) /* LCD Controller Control Register 1 */ 7#define LCCR1 (0x004) /* LCD Controller Control Register 1 */
8#define LCCR2 (0x008) /* LCD Controller Control Register 2 */ 8#define LCCR2 (0x008) /* LCD Controller Control Register 2 */
9#define LCCR3 (0x00C) /* LCD Controller Control Register 3 */ 9#define LCCR3 (0x00C) /* LCD Controller Control Register 3 */
10#define LCCR4 (0x010) /* LCD Controller Control Register 3 */ 10#define LCCR4 (0x010) /* LCD Controller Control Register 4 */
11#define LCCR5 (0x014) /* LCD Controller Control Register 5 */
11#define DFBR0 (0x020) /* DMA Channel 0 Frame Branch Register */ 12#define DFBR0 (0x020) /* DMA Channel 0 Frame Branch Register */
12#define DFBR1 (0x024) /* DMA Channel 1 Frame Branch Register */ 13#define DFBR1 (0x024) /* DMA Channel 1 Frame Branch Register */
13#define LCSR (0x038) /* LCD Controller Status Register */ 14#define LCSR (0x038) /* LCD Controller Status Register */
@@ -15,6 +16,9 @@
15#define TMEDRGBR (0x040) /* TMED RGB Seed Register */ 16#define TMEDRGBR (0x040) /* TMED RGB Seed Register */
16#define TMEDCR (0x044) /* TMED Control Register */ 17#define TMEDCR (0x044) /* TMED Control Register */
17 18
19#define CMDCR (0x100) /* Command Control Register */
20#define PRSR (0x104) /* Panel Read Status Register */
21
18#define LCCR3_1BPP (0 << 24) 22#define LCCR3_1BPP (0 << 24)
19#define LCCR3_2BPP (1 << 24) 23#define LCCR3_2BPP (1 << 24)
20#define LCCR3_4BPP (2 << 24) 24#define LCCR3_4BPP (2 << 24)
@@ -39,6 +43,9 @@
39#define FSADR1 (0x214) /* DMA Channel 1 Frame Source Address Register */ 43#define FSADR1 (0x214) /* DMA Channel 1 Frame Source Address Register */
40#define FIDR1 (0x218) /* DMA Channel 1 Frame ID Register */ 44#define FIDR1 (0x218) /* DMA Channel 1 Frame ID Register */
41#define LDCMD1 (0x21C) /* DMA Channel 1 Command Register */ 45#define LDCMD1 (0x21C) /* DMA Channel 1 Command Register */
46#define FDADR6 (0x260) /* DMA Channel 6 Frame Descriptor Address Register */
47#define FSADR6 (0x264) /* DMA Channel 6 Frame Source Address Register */
48#define FIDR6 (0x268) /* DMA Channel 6 Frame ID Register */
42 49
43#define LCCR0_ENB (1 << 0) /* LCD Controller enable */ 50#define LCCR0_ENB (1 << 0) /* LCD Controller enable */
44#define LCCR0_CMS (1 << 1) /* Color/Monochrome Display Select */ 51#define LCCR0_CMS (1 << 1) /* Color/Monochrome Display Select */
@@ -122,6 +129,11 @@
122#define LCCR3_VrtSnchH (LCCR3_VSP*0) /* VSP Active High */ 129#define LCCR3_VrtSnchH (LCCR3_VSP*0) /* VSP Active High */
123#define LCCR3_VrtSnchL (LCCR3_VSP*1) /* VSP Active Low */ 130#define LCCR3_VrtSnchL (LCCR3_VSP*1) /* VSP Active Low */
124 131
132#define LCCR5_IUM(x) (1 << ((x) + 23)) /* input underrun mask */
133#define LCCR5_BSM(x) (1 << ((x) + 15)) /* branch mask */
134#define LCCR5_EOFM(x) (1 << ((x) + 7)) /* end of frame mask */
135#define LCCR5_SOFM(x) (1 << ((x) + 0)) /* start of frame mask */
136
125#define LCSR_LDD (1 << 0) /* LCD Disable Done */ 137#define LCSR_LDD (1 << 0) /* LCD Disable Done */
126#define LCSR_SOF (1 << 1) /* Start of frame */ 138#define LCSR_SOF (1 << 1) /* Start of frame */
127#define LCSR_BER (1 << 2) /* Bus error */ 139#define LCSR_BER (1 << 2) /* Bus error */
@@ -133,7 +145,27 @@
133#define LCSR_EOF (1 << 8) /* end of frame */ 145#define LCSR_EOF (1 << 8) /* end of frame */
134#define LCSR_BS (1 << 9) /* branch status */ 146#define LCSR_BS (1 << 9) /* branch status */
135#define LCSR_SINT (1 << 10) /* subsequent interrupt */ 147#define LCSR_SINT (1 << 10) /* subsequent interrupt */
148#define LCSR_RD_ST (1 << 11) /* read status */
149#define LCSR_CMD_INT (1 << 12) /* command interrupt */
136 150
137#define LDCMD_PAL (1 << 26) /* instructs DMA to load palette buffer */ 151#define LDCMD_PAL (1 << 26) /* instructs DMA to load palette buffer */
138 152
153/* smartpanel related */
154#define PRSR_DATA(x) ((x) & 0xff) /* Panel Data */
155#define PRSR_A0 (1 << 8) /* Read Data Source */
156#define PRSR_ST_OK (1 << 9) /* Status OK */
157#define PRSR_CON_NT (1 << 10) /* Continue to Next Command */
158
159#define SMART_CMD_A0 (0x1 << 8)
160#define SMART_CMD_READ_STATUS_REG (0x0 << 9)
161#define SMART_CMD_READ_FRAME_BUFFER ((0x0 << 9) | SMART_CMD_A0)
162#define SMART_CMD_WRITE_COMMAND (0x1 << 9)
163#define SMART_CMD_WRITE_DATA ((0x1 << 9) | SMART_CMD_A0)
164#define SMART_CMD_WRITE_FRAME ((0x2 << 9) | SMART_CMD_A0)
165#define SMART_CMD_WAIT_FOR_VSYNC (0x3 << 9)
166#define SMART_CMD_NOOP (0x4 << 9)
167#define SMART_CMD_INTERRUPT (0x5 << 9)
168
169#define SMART_CMD(x) (SMART_CMD_WRITE_COMMAND | ((x) & 0xff))
170#define SMART_DAT(x) (SMART_CMD_WRITE_DATA | ((x) & 0xff))
139#endif /* __ASM_ARCH_REGS_LCD_H */ 171#endif /* __ASM_ARCH_REGS_LCD_H */