Go to the documentation of this file. 1 #ifndef __ASM_SH_MOBILE_LCDC_H__
2 #define __ASM_SH_MOBILE_LCDC_H__
9 #define LDDCKR_ICKSEL_BUS (0 << 16)
10 #define LDDCKR_ICKSEL_MIPI (1 << 16)
11 #define LDDCKR_ICKSEL_HDMI (2 << 16)
12 #define LDDCKR_ICKSEL_EXT (3 << 16)
13 #define LDDCKR_ICKSEL_MASK (7 << 16)
14 #define LDDCKR_MOSEL (1 << 6)
15 #define _LDDCKSTPR 0x414
17 #define LDINTR_FE (1 << 10)
18 #define LDINTR_VSE (1 << 9)
19 #define LDINTR_VEE (1 << 8)
20 #define LDINTR_FS (1 << 2)
21 #define LDINTR_VSS (1 << 1)
22 #define LDINTR_VES (1 << 0)
23 #define LDINTR_STATUS_MASK (0xff << 0)
25 #define LDSR_MSS (1 << 10)
26 #define LDSR_MRS (1 << 8)
27 #define LDSR_AS (1 << 1)
28 #define _LDCNT1R 0x470
29 #define LDCNT1R_DE (1 << 0)
30 #define _LDCNT2R 0x474
31 #define LDCNT2R_BR (1 << 8)
32 #define LDCNT2R_MD (1 << 3)
33 #define LDCNT2R_SE (1 << 2)
34 #define LDCNT2R_ME (1 << 1)
35 #define LDCNT2R_DO (1 << 0)
36 #define _LDRCNTR 0x478
37 #define LDRCNTR_SRS (1 << 17)
38 #define LDRCNTR_SRC (1 << 16)
39 #define LDRCNTR_MRS (1 << 1)
40 #define LDRCNTR_MRC (1 << 0)
42 #define LDDDSR_LS (1 << 2)
43 #define LDDDSR_WS (1 << 1)
44 #define LDDDSR_BS (1 << 0)
46 #define LDMT1R_VPOL (1 << 28)
47 #define LDMT1R_HPOL (1 << 27)
48 #define LDMT1R_DWPOL (1 << 26)
49 #define LDMT1R_DIPOL (1 << 25)
50 #define LDMT1R_DAPOL (1 << 24)
51 #define LDMT1R_HSCNT (1 << 17)
52 #define LDMT1R_DWCNT (1 << 16)
53 #define LDMT1R_IFM (1 << 12)
54 #define LDMT1R_MIFTYP_RGB8 (0x0 << 0)
55 #define LDMT1R_MIFTYP_RGB9 (0x4 << 0)
56 #define LDMT1R_MIFTYP_RGB12A (0x5 << 0)
57 #define LDMT1R_MIFTYP_RGB12B (0x6 << 0)
58 #define LDMT1R_MIFTYP_RGB16 (0x7 << 0)
59 #define LDMT1R_MIFTYP_RGB18 (0xa << 0)
60 #define LDMT1R_MIFTYP_RGB24 (0xb << 0)
61 #define LDMT1R_MIFTYP_YCBCR (0xf << 0)
62 #define LDMT1R_MIFTYP_SYS8A (0x0 << 0)
63 #define LDMT1R_MIFTYP_SYS8B (0x1 << 0)
64 #define LDMT1R_MIFTYP_SYS8C (0x2 << 0)
65 #define LDMT1R_MIFTYP_SYS8D (0x3 << 0)
66 #define LDMT1R_MIFTYP_SYS9 (0x4 << 0)
67 #define LDMT1R_MIFTYP_SYS12 (0x5 << 0)
68 #define LDMT1R_MIFTYP_SYS16A (0x7 << 0)
69 #define LDMT1R_MIFTYP_SYS16B (0x8 << 0)
70 #define LDMT1R_MIFTYP_SYS16C (0x9 << 0)
71 #define LDMT1R_MIFTYP_SYS18 (0xa << 0)
72 #define LDMT1R_MIFTYP_SYS24 (0xb << 0)
73 #define LDMT1R_MIFTYP_MASK (0xf << 0)
75 #define LDDFR_CF1 (1 << 18)
76 #define LDDFR_CF0 (1 << 17)
77 #define LDDFR_CC (1 << 16)
78 #define LDDFR_YF_420 (0 << 8)
79 #define LDDFR_YF_422 (1 << 8)
80 #define LDDFR_YF_444 (2 << 8)
81 #define LDDFR_YF_MASK (3 << 8)
82 #define LDDFR_PKF_ARGB32 (0x00 << 0)
83 #define LDDFR_PKF_RGB16 (0x03 << 0)
84 #define LDDFR_PKF_RGB24 (0x0b << 0)
85 #define LDDFR_PKF_MASK (0x1f << 0)
87 #define LDSM1R_OS (1 << 0)
89 #define LDSM2R_OSTRG (1 << 0)
91 #define LDPMR_LPS (3 << 0)
93 #define _LDDWD0R 0x800
94 #define LDDWDxR_WDACT (1 << 28)
95 #define LDDWDxR_RSW (1 << 24)
97 #define LDDRDR_RSR (1 << 24)
98 #define LDDRDR_DRD_MASK (0x3ffff << 0)
100 #define LDDWAR_WA (1 << 0)
101 #define _LDDRAR 0x904
102 #define LDDRAR_RA (1 << 0)
132 #define LCDC_FLAGS_DWPOL (1 << 0)
133 #define LCDC_FLAGS_DIPOL (1 << 1)
134 #define LCDC_FLAGS_DAPOL (1 << 2)
135 #define LCDC_FLAGS_HSCNT (1 << 3)
136 #define LCDC_FLAGS_DWCNT (1 << 4)