Skip to content

Commit ff6331e

Browse files
chandrabhanu-mahapatratomba
authored andcommitted
OMAPDSS: Add support for LCD3 channel
OMAP5 Display Subsystem (DSS) architecture comes with a additional LCD3 channel with its own dedicated overlay manager. The current patch adds LCD3 channel and basic register support for LCD3 channel. It adds register addresses for various Display Controller (DISPC) registers like DISPC_DEFAULT_COLOR, DISPC_TIMING_H, DISPC_DIVISORo, etc. Signed-off-by: Chandrabhanu Mahapatra <cmahapatra@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
1 parent efa70b3 commit ff6331e

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

‎drivers/video/omap2/dss/dispc.h‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ static inline u16 DISPC_DEFAULT_COLOR(enum omap_channel channel)
118118
return 0x0050;
119119
case OMAP_DSS_CHANNEL_LCD2:
120120
return 0x03AC;
121+
case OMAP_DSS_CHANNEL_LCD3:
122+
return 0x0814;
121123
default:
122124
BUG();
123125
return 0;
@@ -133,6 +135,8 @@ static inline u16 DISPC_TRANS_COLOR(enum omap_channel channel)
133135
return 0x0058;
134136
case OMAP_DSS_CHANNEL_LCD2:
135137
return 0x03B0;
138+
case OMAP_DSS_CHANNEL_LCD3:
139+
return 0x0818;
136140
default:
137141
BUG();
138142
return 0;
@@ -149,6 +153,8 @@ static inline u16 DISPC_TIMING_H(enum omap_channel channel)
149153
return 0;
150154
case OMAP_DSS_CHANNEL_LCD2:
151155
return 0x0400;
156+
case OMAP_DSS_CHANNEL_LCD3:
157+
return 0x0840;
152158
default:
153159
BUG();
154160
return 0;
@@ -165,6 +171,8 @@ static inline u16 DISPC_TIMING_V(enum omap_channel channel)
165171
return 0;
166172
case OMAP_DSS_CHANNEL_LCD2:
167173
return 0x0404;
174+
case OMAP_DSS_CHANNEL_LCD3:
175+
return 0x0844;
168176
default:
169177
BUG();
170178
return 0;
@@ -181,6 +189,8 @@ static inline u16 DISPC_POL_FREQ(enum omap_channel channel)
181189
return 0;
182190
case OMAP_DSS_CHANNEL_LCD2:
183191
return 0x0408;
192+
case OMAP_DSS_CHANNEL_LCD3:
193+
return 0x083C;
184194
default:
185195
BUG();
186196
return 0;
@@ -197,6 +207,8 @@ static inline u16 DISPC_DIVISORo(enum omap_channel channel)
197207
return 0;
198208
case OMAP_DSS_CHANNEL_LCD2:
199209
return 0x040C;
210+
case OMAP_DSS_CHANNEL_LCD3:
211+
return 0x0838;
200212
default:
201213
BUG();
202214
return 0;
@@ -213,6 +225,8 @@ static inline u16 DISPC_SIZE_MGR(enum omap_channel channel)
213225
return 0x0078;
214226
case OMAP_DSS_CHANNEL_LCD2:
215227
return 0x03CC;
228+
case OMAP_DSS_CHANNEL_LCD3:
229+
return 0x0834;
216230
default:
217231
BUG();
218232
return 0;
@@ -229,6 +243,8 @@ static inline u16 DISPC_DATA_CYCLE1(enum omap_channel channel)
229243
return 0;
230244
case OMAP_DSS_CHANNEL_LCD2:
231245
return 0x03C0;
246+
case OMAP_DSS_CHANNEL_LCD3:
247+
return 0x0828;
232248
default:
233249
BUG();
234250
return 0;
@@ -245,6 +261,8 @@ static inline u16 DISPC_DATA_CYCLE2(enum omap_channel channel)
245261
return 0;
246262
case OMAP_DSS_CHANNEL_LCD2:
247263
return 0x03C4;
264+
case OMAP_DSS_CHANNEL_LCD3:
265+
return 0x082C;
248266
default:
249267
BUG();
250268
return 0;
@@ -261,6 +279,8 @@ static inline u16 DISPC_DATA_CYCLE3(enum omap_channel channel)
261279
return 0;
262280
case OMAP_DSS_CHANNEL_LCD2:
263281
return 0x03C8;
282+
case OMAP_DSS_CHANNEL_LCD3:
283+
return 0x0830;
264284
default:
265285
BUG();
266286
return 0;
@@ -277,6 +297,8 @@ static inline u16 DISPC_CPR_COEF_R(enum omap_channel channel)
277297
return 0;
278298
case OMAP_DSS_CHANNEL_LCD2:
279299
return 0x03BC;
300+
case OMAP_DSS_CHANNEL_LCD3:
301+
return 0x0824;
280302
default:
281303
BUG();
282304
return 0;
@@ -293,6 +315,8 @@ static inline u16 DISPC_CPR_COEF_G(enum omap_channel channel)
293315
return 0;
294316
case OMAP_DSS_CHANNEL_LCD2:
295317
return 0x03B8;
318+
case OMAP_DSS_CHANNEL_LCD3:
319+
return 0x0820;
296320
default:
297321
BUG();
298322
return 0;
@@ -309,6 +333,8 @@ static inline u16 DISPC_CPR_COEF_B(enum omap_channel channel)
309333
return 0;
310334
case OMAP_DSS_CHANNEL_LCD2:
311335
return 0x03B4;
336+
case OMAP_DSS_CHANNEL_LCD3:
337+
return 0x081C;
312338
default:
313339
BUG();
314340
return 0;

‎include/video/omapdss.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ enum omap_channel {
7575
OMAP_DSS_CHANNEL_LCD = 0,
7676
OMAP_DSS_CHANNEL_DIGIT = 1,
7777
OMAP_DSS_CHANNEL_LCD2 = 2,
78+
OMAP_DSS_CHANNEL_LCD3 = 3,
7879
};
7980

8081
enum omap_color_mode {

0 commit comments

Comments
 (0)