aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung/include/plat/regs-fb.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-samsung/include/plat/regs-fb.h')
-rw-r--r--arch/arm/plat-samsung/include/plat/regs-fb.h30
1 files changed, 25 insertions, 5 deletions
diff --git a/arch/arm/plat-samsung/include/plat/regs-fb.h b/arch/arm/plat-samsung/include/plat/regs-fb.h
index 0ef806e50344..8f39aa5b26ea 100644
--- a/arch/arm/plat-samsung/include/plat/regs-fb.h
+++ b/arch/arm/plat-samsung/include/plat/regs-fb.h
@@ -112,6 +112,13 @@
112#define VIDCON2_ORGYCbCr (1 << 8) 112#define VIDCON2_ORGYCbCr (1 << 8)
113#define VIDCON2_YUVORDCrCb (1 << 7) 113#define VIDCON2_YUVORDCrCb (1 << 7)
114 114
115/* PRTCON (S3C6410, S5PC100)
116 * Might not be present in the S3C6410 documentation,
117 * but tests prove it's there almost for sure; shouldn't hurt in any case.
118 */
119#define PRTCON (0x0c)
120#define PRTCON_PROTECT (1 << 11)
121
115/* VIDTCON0 */ 122/* VIDTCON0 */
116 123
117#define VIDTCON0_VBPDE_MASK (0xff << 24) 124#define VIDTCON0_VBPDE_MASK (0xff << 24)
@@ -173,6 +180,7 @@
173#define WINCONx_BITSWP (1 << 18) 180#define WINCONx_BITSWP (1 << 18)
174#define WINCONx_BYTSWP (1 << 17) 181#define WINCONx_BYTSWP (1 << 17)
175#define WINCONx_HAWSWP (1 << 16) 182#define WINCONx_HAWSWP (1 << 16)
183#define WINCONx_WSWP (1 << 15)
176#define WINCONx_BURSTLEN_MASK (0x3 << 9) 184#define WINCONx_BURSTLEN_MASK (0x3 << 9)
177#define WINCONx_BURSTLEN_SHIFT (9) 185#define WINCONx_BURSTLEN_SHIFT (9)
178#define WINCONx_BURSTLEN_16WORD (0x0 << 9) 186#define WINCONx_BURSTLEN_16WORD (0x0 << 9)
@@ -212,6 +220,13 @@
212#define WINCON1_BPPMODE_25BPP_A1888 (0xd << 2) 220#define WINCON1_BPPMODE_25BPP_A1888 (0xd << 2)
213#define WINCON1_BPPMODE_28BPP_A4888 (0xd << 2) 221#define WINCON1_BPPMODE_28BPP_A4888 (0xd << 2)
214 222
223/* S5PV210 */
224#define SHADOWCON (0x34)
225#define SHADOWCON_WINx_PROTECT(_win) (1 << (10 + (_win)))
226/* DMA channels (all windows) */
227#define SHADOWCON_CHx_ENABLE(_win) (1 << (_win))
228/* Local input channels (windows 0-2) */
229#define SHADOWCON_CHx_LOCAL_ENABLE(_win) (1 << (5 + (_win)))
215 230
216#define VIDOSDxA_TOPLEFT_X_MASK (0x7ff << 11) 231#define VIDOSDxA_TOPLEFT_X_MASK (0x7ff << 11)
217#define VIDOSDxA_TOPLEFT_X_SHIFT (11) 232#define VIDOSDxA_TOPLEFT_X_SHIFT (11)
@@ -291,11 +306,12 @@
291#define VIDINTCON0_FRAMESEL0_ACTIVE (0x2 << 15) 306#define VIDINTCON0_FRAMESEL0_ACTIVE (0x2 << 15)
292#define VIDINTCON0_FRAMESEL0_FRONTPORCH (0x3 << 15) 307#define VIDINTCON0_FRAMESEL0_FRONTPORCH (0x3 << 15)
293 308
294#define VIDINTCON0_FRAMESEL1 (1 << 14) 309#define VIDINTCON0_FRAMESEL1 (1 << 13)
295#define VIDINTCON0_FRAMESEL1_NONE (0x0 << 14) 310#define VIDINTCON0_FRAMESEL1_MASK (0x3 << 13)
296#define VIDINTCON0_FRAMESEL1_BACKPORCH (0x1 << 14) 311#define VIDINTCON0_FRAMESEL1_NONE (0x0 << 13)
297#define VIDINTCON0_FRAMESEL1_VSYNC (0x2 << 14) 312#define VIDINTCON0_FRAMESEL1_BACKPORCH (0x1 << 13)
298#define VIDINTCON0_FRAMESEL1_FRONTPORCH (0x3 << 14) 313#define VIDINTCON0_FRAMESEL1_VSYNC (0x2 << 13)
314#define VIDINTCON0_FRAMESEL1_FRONTPORCH (0x3 << 13)
299 315
300#define VIDINTCON0_INT_FRAME (1 << 12) 316#define VIDINTCON0_INT_FRAME (1 << 12)
301#define VIDINTCON0_FIFIOSEL_MASK (0x7f << 5) 317#define VIDINTCON0_FIFIOSEL_MASK (0x7f << 5)
@@ -321,6 +337,10 @@
321#define VIDINTCON1_INT_FIFO (1 << 0) 337#define VIDINTCON1_INT_FIFO (1 << 0)
322 338
323/* Window colour-key control registers */ 339/* Window colour-key control registers */
340#define WKEYCON (0x140) /* 6410,V210 */
341
342#define WKEYCON0 (0x00)
343#define WKEYCON1 (0x04)
324 344
325#define WxKEYCON0_KEYBL_EN (1 << 26) 345#define WxKEYCON0_KEYBL_EN (1 << 26)
326#define WxKEYCON0_KEYEN_F (1 << 25) 346#define WxKEYCON0_KEYEN_F (1 << 25)