Lines Matching +full:0 +full:x3b
22 #define MODE_QVGA 0
41 #define CMD0(x) ((0 << 30) | (x))
42 #define CMD1(x, x1) ((1 << 30) | ((x) << 9) | 0x100 | (x1))
43 #define CMD2(x, x1, x2) ((2 << 30) | ((x) << 18) | 0x20000 |\
44 ((x1) << 9) | 0x100 | (x2))
48 CMD0(0x1), /* reset */
49 CMD0(0x0), /* nop */
50 CMD0(0x0), /* nop */
51 CMD0(0x0), /* nop */
56 CMD0(0x29), /* Display ON */
57 CMD2(0xB8, 0xFF, 0xF9), /* Output Control */
58 CMD0(0x11), /* Sleep out */
59 CMD1(0xB0, 0x16), /* Wake */
64 CMD0(0x28), /* Display OFF */
65 CMD2(0xB8, 0x80, 0x02), /* Output Control */
66 CMD0(0x10), /* Sleep in */
67 CMD1(0xB0, 0x00), /* Deep stand by in */
72 CMD1(0xB0, 0x16),
73 CMD1(0xBC, 0x80),
74 CMD1(0xE1, 0x00),
75 CMD1(0x36, 0x50),
76 CMD1(0x3B, 0x00),
81 CMD1(0xB0, 0x16),
82 CMD1(0xBC, 0x81),
83 CMD1(0xE1, 0x00),
84 CMD1(0x36, 0x50),
85 CMD1(0x3B, 0x22),
90 CMD1(0xcf, 0x02), /* Blanking period control (1) */
91 CMD2(0xd0, 0x08, 0x04), /* Blanking period control (2) */
92 CMD1(0xd1, 0x01), /* CKV timing control on/off */
93 CMD2(0xd2, 0x14, 0x00), /* CKV 1,2 timing control */
94 CMD2(0xd3, 0x1a, 0x0f), /* OEV timing control */
95 CMD2(0xd4, 0x1f, 0xaf), /* ASW timing control (1) */
96 CMD1(0xd5, 0x14), /* ASW timing control (2) */
97 CMD0(0x21), /* Invert for normally black display */
98 CMD0(0x29), /* Display on */
103 CMD1(0xd6, 0x02), /* Blanking period control (1) */
104 CMD2(0xd7, 0x08, 0x04), /* Blanking period control (2) */
105 CMD1(0xd8, 0x01), /* CKV timing control on/off */
106 CMD2(0xd9, 0x00, 0x08), /* CKV 1,2 timing control */
107 CMD2(0xde, 0x05, 0x0a), /* OEV timing control */
108 CMD2(0xdf, 0x0a, 0x19), /* ASW timing control (1) */
109 CMD1(0xe0, 0x0a), /* ASW timing control (2) */
110 CMD0(0x21), /* Invert for normally black display */
111 CMD0(0x29), /* Display on */
116 CMD1(0xB0, 0x16),
117 CMD1(0xBC, 0x80),
118 CMD1(0xE1, 0x00),
119 CMD1(0x3B, 0x00),
124 CMD1(0xB0, 0x16),
125 CMD1(0xBC, 0x81),
126 CMD1(0xE1, 0x00),
127 CMD1(0x3B, 0x22),
132 CMD1(0xcf, 0x02), /* Blanking period control (1) */
133 CMD2(0xd0, 0x08, 0x04), /* Blanking period control (2) */
134 CMD1(0xd1, 0x01), /* CKV timing control on/off */
135 CMD2(0xd2, 0x00, 0x1e), /* CKV 1,2 timing control */
136 CMD2(0xd3, 0x14, 0x28), /* OEV timing control */
137 CMD2(0xd4, 0x28, 0x64), /* ASW timing control (1) */
138 CMD1(0xd5, 0x28), /* ASW timing control (2) */
139 CMD0(0x21), /* Invert for normally black display */
140 CMD0(0x29), /* Display on */
145 CMD2(0xb8, 0xff, 0xf9), /* Output control */
146 CMD0(0x11), /* sleep out */
147 CMD1(0xba, 0x01), /* Display mode (1) */
148 CMD1(0xbb, 0x00), /* Display mode (2) */
149 CMD1(0x3a, 0x60), /* Display mode 18-bit RGB */
150 CMD1(0xbf, 0x10), /* Drive system change control */
151 CMD1(0xb1, 0x56), /* Booster operation setup */
152 CMD1(0xb2, 0x33), /* Booster mode setup */
153 CMD1(0xb3, 0x11), /* Booster frequency setup */
154 CMD1(0xb4, 0x02), /* Op amp/system clock */
155 CMD1(0xb5, 0x35), /* VCS voltage */
156 CMD1(0xb6, 0x40), /* VCOM voltage */
157 CMD1(0xb7, 0x03), /* External display signal */
158 CMD1(0xbd, 0x00), /* ASW slew rate */
159 CMD1(0xbe, 0x00), /* Dummy data for QuadData operation */
160 CMD1(0xc0, 0x11), /* Sleep out FR count (A) */
161 CMD1(0xc1, 0x11), /* Sleep out FR count (B) */
162 CMD1(0xc2, 0x11), /* Sleep out FR count (C) */
163 CMD2(0xc3, 0x20, 0x40), /* Sleep out FR count (D) */
164 CMD2(0xc4, 0x60, 0xc0), /* Sleep out FR count (E) */
165 CMD2(0xc5, 0x10, 0x20), /* Sleep out FR count (F) */
166 CMD1(0xc6, 0xc0), /* Sleep out FR count (G) */
167 CMD2(0xc7, 0x33, 0x43), /* Gamma 1 fine tuning (1) */
168 CMD1(0xc8, 0x44), /* Gamma 1 fine tuning (2) */
169 CMD1(0xc9, 0x33), /* Gamma 1 inclination adjustment */
170 CMD1(0xca, 0x00), /* Gamma 1 blue offset adjustment */
171 CMD2(0xec, 0x01, 0xf0), /* Horizontal clock cycles */
180 int nparams, err = 0; in tdo24m_writes()
183 if (!lcd->color_invert && *p == CMD0(0x21)) in tdo24m_writes()
186 nparams = (*p >> 30) & 0x3; in tdo24m_writes()
190 case 0: in tdo24m_writes()
191 lcd->buf[0] = (data >> 8) & 0xff; in tdo24m_writes()
192 lcd->buf[1] = data & 0xff; in tdo24m_writes()
195 lcd->buf[0] = (data >> 16) & 0xff; in tdo24m_writes()
196 lcd->buf[1] = (data >> 8) & 0xff; in tdo24m_writes()
197 lcd->buf[2] = data & 0xff; in tdo24m_writes()
200 lcd->buf[0] = (data >> 24) & 0xff; in tdo24m_writes()
201 lcd->buf[1] = (data >> 16) & 0xff; in tdo24m_writes()
202 lcd->buf[2] = (data >> 8) & 0xff; in tdo24m_writes()
203 lcd->buf[3] = data & 0xff; in tdo24m_writes()
235 return 0; in tdo24m_adj_mode()
256 return 0; in tdo35s_adj_mode()
283 int ret = 0; in tdo24m_power()
320 return 0; in tdo24m_set_mode()
369 x->cs_change = 0; in tdo24m_probe()
370 x->tx_buf = &lcd->buf[0]; in tdo24m_probe()
380 lcd->color_invert = 0; in tdo24m_probe()
397 return 0; in tdo24m_probe()
405 return 0; in tdo24m_remove()