blob: 2eceba5864e01127e1a9a4f5a8d2972769fecefd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
|
/*
* Copyright (C) 2010 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
/*
* Based on arch/arm/mach-mx28/include/mach/regs-lcdif.h.
* Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved.
*/
#ifndef __ELCDIF_REGS_INCLUDED_
#define __ELCDIF_REGS_INCLUDED_
#define HW_ELCDIF_CTRL (0x00000000)
#define HW_ELCDIF_CTRL_SET (0x00000004)
#define HW_ELCDIF_CTRL_CLR (0x00000008)
#define HW_ELCDIF_CTRL_TOG (0x0000000c)
#define BM_ELCDIF_CTRL_SFTRST 0x80000000
#define BM_ELCDIF_CTRL_CLKGATE 0x40000000
#define BM_ELCDIF_CTRL_YCBCR422_INPUT 0x20000000
#define BM_ELCDIF_CTRL_READ_WRITEB 0x10000000
#define BM_ELCDIF_CTRL_WAIT_FOR_VSYNC_EDGE 0x08000000
#define BM_ELCDIF_CTRL_DATA_SHIFT_DIR 0x04000000
#define BV_ELCDIF_CTRL_DATA_SHIFT_DIR__TXDATA_SHIFT_LEFT 0x0
#define BV_ELCDIF_CTRL_DATA_SHIFT_DIR__TXDATA_SHIFT_RIGHT 0x1
#define BP_ELCDIF_CTRL_SHIFT_NUM_BITS 21
#define BM_ELCDIF_CTRL_SHIFT_NUM_BITS 0x03E00000
#define BF_ELCDIF_CTRL_SHIFT_NUM_BITS(v) \
(((v) << 21) & BM_ELCDIF_CTRL_SHIFT_NUM_BITS)
#define BM_ELCDIF_CTRL_DVI_MODE 0x00100000
#define BM_ELCDIF_CTRL_BYPASS_COUNT 0x00080000
#define BM_ELCDIF_CTRL_VSYNC_MODE 0x00040000
#define BM_ELCDIF_CTRL_DOTCLK_MODE 0x00020000
#define BM_ELCDIF_CTRL_DATA_SELECT 0x00010000
#define BV_ELCDIF_CTRL_DATA_SELECT__CMD_MODE 0x0
#define BV_ELCDIF_CTRL_DATA_SELECT__DATA_MODE 0x1
#define BP_ELCDIF_CTRL_INPUT_DATA_SWIZZLE 14
#define BM_ELCDIF_CTRL_INPUT_DATA_SWIZZLE 0x0000C000
#define BF_ELCDIF_CTRL_INPUT_DATA_SWIZZLE(v) \
(((v) << 14) & BM_ELCDIF_CTRL_INPUT_DATA_SWIZZLE)
#define BV_ELCDIF_CTRL_INPUT_DATA_SWIZZLE__NO_SWAP 0x0
#define BV_ELCDIF_CTRL_INPUT_DATA_SWIZZLE__LITTLE_ENDIAN 0x0
#define BV_ELCDIF_CTRL_INPUT_DATA_SWIZZLE__BIG_ENDIAN_SWAP 0x1
#define BV_ELCDIF_CTRL_INPUT_DATA_SWIZZLE__SWAP_ALL_BYTES 0x1
#define BV_ELCDIF_CTRL_INPUT_DATA_SWIZZLE__HWD_SWAP 0x2
#define BV_ELCDIF_CTRL_INPUT_DATA_SWIZZLE__HWD_BYTE_SWAP 0x3
#define BP_ELCDIF_CTRL_CSC_DATA_SWIZZLE 12
#define BM_ELCDIF_CTRL_CSC_DATA_SWIZZLE 0x00003000
#define BF_ELCDIF_CTRL_CSC_DATA_SWIZZLE(v) \
(((v) << 12) & BM_ELCDIF_CTRL_CSC_DATA_SWIZZLE)
#define BV_ELCDIF_CTRL_CSC_DATA_SWIZZLE__NO_SWAP 0x0
#define BV_ELCDIF_CTRL_CSC_DATA_SWIZZLE__LITTLE_ENDIAN 0x0
#define BV_ELCDIF_CTRL_CSC_DATA_SWIZZLE__BIG_ENDIAN_SWAP 0x1
#define BV_ELCDIF_CTRL_CSC_DATA_SWIZZLE__SWAP_ALL_BYTES 0x1
#define BV_ELCDIF_CTRL_CSC_DATA_SWIZZLE__HWD_SWAP 0x2
#define BV_ELCDIF_CTRL_CSC_DATA_SWIZZLE__HWD_BYTE_SWAP 0x3
#define BP_ELCDIF_CTRL_LCD_DATABUS_WIDTH 10
#define BM_ELCDIF_CTRL_LCD_DATABUS_WIDTH 0x00000C00
#define BF_ELCDIF_CTRL_LCD_DATABUS_WIDTH(v) \
(((v) << 10) & BM_ELCDIF_CTRL_LCD_DATABUS_WIDTH)
#define BV_ELCDIF_CTRL_LCD_DATABUS_WIDTH__16_BIT 0x0
#define BV_ELCDIF_CTRL_LCD_DATABUS_WIDTH__8_BIT 0x1
#define BV_ELCDIF_CTRL_LCD_DATABUS_WIDTH__18_BIT 0x2
#define BV_ELCDIF_CTRL_LCD_DATABUS_WIDTH__24_BIT 0x3
#define BP_ELCDIF_CTRL_WORD_LENGTH 8
#define BM_ELCDIF_CTRL_WORD_LENGTH 0x00000300
#define BF_ELCDIF_CTRL_WORD_LENGTH(v) \
(((v) << 8) & BM_ELCDIF_CTRL_WORD_LENGTH)
#define BV_ELCDIF_CTRL_WORD_LENGTH__16_BIT 0x0
#define BV_ELCDIF_CTRL_WORD_LENGTH__8_BIT 0x1
#define BV_ELCDIF_CTRL_WORD_LENGTH__18_BIT 0x2
#define BV_ELCDIF_CTRL_WORD_LENGTH__24_BIT 0x3
#define BM_ELCDIF_CTRL_RGB_TO_YCBCR422_CSC 0x00000080
#define BM_ELCDIF_CTRL_ENABLE_PXP_HANDSHAKE 0x00000040
#define BM_ELCDIF_CTRL_ELCDIF_MASTER 0x00000020
#define BM_ELCDIF_CTRL_RSRVD0 0x00000010
#define BM_ELCDIF_CTRL_DATA_FORMAT_16_BIT 0x00000008
#define BM_ELCDIF_CTRL_DATA_FORMAT_18_BIT 0x00000004
#define BV_ELCDIF_CTRL_DATA_FORMAT_18_BIT__LOWER_18_BITS_VALID 0x0
#define BV_ELCDIF_CTRL_DATA_FORMAT_18_BIT__UPPER_18_BITS_VALID 0x1
#define BM_ELCDIF_CTRL_DATA_FORMAT_24_BIT 0x00000002
#define BV_ELCDIF_CTRL_DATA_FORMAT_24_BIT__ALL_24_BITS_VALID 0x0
#define BV_ELCDIF_CTRL_DATA_FORMAT_24_BIT__DROP_UPPER_2_BITS_PER_BYTE 0x1
#define BM_ELCDIF_CTRL_RUN 0x00000001
#define HW_ELCDIF_CTRL1 (0x00000010)
#define HW_ELCDIF_CTRL1_SET (0x00000014)
#define HW_ELCDIF_CTRL1_CLR (0x00000018)
#define HW_ELCDIF_CTRL1_TOG (0x0000001c)
#define BP_ELCDIF_CTRL1_RSRVD1 28
#define BM_ELCDIF_CTRL1_RSRVD1 0xF0000000
#define BF_ELCDIF_CTRL1_RSRVD1(v) \
(((v) << 28) & BM_ELCDIF_CTRL1_RSRVD1)
#define BM_ELCDIF_CTRL1_COMBINE_MPU_WR_STRB 0x08000000
#define BM_ELCDIF_CTRL1_BM_ERROR_IRQ_EN 0x04000000
#define BM_ELCDIF_CTRL1_BM_ERROR_IRQ 0x02000000
#define BV_ELCDIF_CTRL1_BM_ERROR_IRQ__NO_REQUEST 0x0
#define BV_ELCDIF_CTRL1_BM_ERROR_IRQ__REQUEST 0x1
#define BM_ELCDIF_CTRL1_RECOVER_ON_UNDERFLOW 0x01000000
#define BM_ELCDIF_CTRL1_INTERLACE_FIELDS 0x00800000
#define BM_ELCDIF_CTRL1_START_INTERLACE_FROM_SECOND_FIELD 0x00400000
#define BM_ELCDIF_CTRL1_FIFO_CLEAR 0x00200000
#define BM_ELCDIF_CTRL1_IRQ_ON_ALTERNATE_FIELDS 0x00100000
#define BP_ELCDIF_CTRL1_BYTE_PACKING_FORMAT 16
#define BM_ELCDIF_CTRL1_BYTE_PACKING_FORMAT 0x000F0000
#define BF_ELCDIF_CTRL1_BYTE_PACKING_FORMAT(v) \
(((v) << 16) & BM_ELCDIF_CTRL1_BYTE_PACKING_FORMAT)
#define BM_ELCDIF_CTRL1_OVERFLOW_IRQ_EN 0x00008000
#define BM_ELCDIF_CTRL1_UNDERFLOW_IRQ_EN 0x00004000
#define BM_ELCDIF_CTRL1_CUR_FRAME_DONE_IRQ_EN 0x00002000
#define BM_ELCDIF_CTRL1_VSYNC_EDGE_IRQ_EN 0x00001000
#define BM_ELCDIF_CTRL1_OVERFLOW_IRQ 0x00000800
#define BV_ELCDIF_CTRL1_OVERFLOW_IRQ__NO_REQUEST 0x0
#define BV_ELCDIF_CTRL1_OVERFLOW_IRQ__REQUEST 0x1
#define BM_ELCDIF_CTRL1_UNDERFLOW_IRQ 0x00000400
#define BV_ELCDIF_CTRL1_UNDERFLOW_IRQ__NO_REQUEST 0x0
#define BV_ELCDIF_CTRL1_UNDERFLOW_IRQ__REQUEST 0x1
#define BM_ELCDIF_CTRL1_CUR_FRAME_DONE_IRQ 0x00000200
#define BV_ELCDIF_CTRL1_CUR_FRAME_DONE_IRQ__NO_REQUEST 0x0
#define BV_ELCDIF_CTRL1_CUR_FRAME_DONE_IRQ__REQUEST 0x1
#define BM_ELCDIF_CTRL1_VSYNC_EDGE_IRQ 0x00000100
#define BV_ELCDIF_CTRL1_VSYNC_EDGE_IRQ__NO_REQUEST 0x0
#define BV_ELCDIF_CTRL1_VSYNC_EDGE_IRQ__REQUEST 0x1
#define BP_ELCDIF_CTRL1_RSRVD0 3
#define BM_ELCDIF_CTRL1_RSRVD0 0x000000F8
#define BF_ELCDIF_CTRL1_RSRVD0(v) \
(((v) << 3) & BM_ELCDIF_CTRL1_RSRVD0)
#define BM_ELCDIF_CTRL1_BUSY_ENABLE 0x00000004
#define BV_ELCDIF_CTRL1_BUSY_ENABLE__BUSY_DISABLED 0x0
#define BV_ELCDIF_CTRL1_BUSY_ENABLE__BUSY_ENABLED 0x1
#define BM_ELCDIF_CTRL1_MODE86 0x00000002
#define BV_ELCDIF_CTRL1_MODE86__8080_MODE 0x0
#define BV_ELCDIF_CTRL1_MODE86__6800_MODE 0x1
#define BM_ELCDIF_CTRL1_RESET 0x00000001
#define BV_ELCDIF_CTRL1_RESET__LCDRESET_LOW 0x0
#define BV_ELCDIF_CTRL1_RESET__LCDRESET_HIGH 0x1
#define HW_ELCDIF_CTRL2 (0x00000020)
#define HW_ELCDIF_CTRL2_SET (0x00000024)
#define HW_ELCDIF_CTRL2_CLR (0x00000028)
#define HW_ELCDIF_CTRL2_TOG (0x0000002c)
#define BP_ELCDIF_CTRL2_RSRVD5 24
#define BM_ELCDIF_CTRL2_RSRVD5 0xFF000000
#define BF_ELCDIF_CTRL2_RSRVD5(v) \
(((v) << 24) & BM_ELCDIF_CTRL2_RSRVD5)
#define BP_ELCDIF_CTRL2_OUTSTANDING_REQS 21
#define BM_ELCDIF_CTRL2_OUTSTANDING_REQS 0x00E00000
#define BF_ELCDIF_CTRL2_OUTSTANDING_REQS(v) \
(((v) << 21) & BM_ELCDIF_CTRL2_OUTSTANDING_REQS)
#define BV_ELCDIF_CTRL2_OUTSTANDING_REQS__REQ_1 0x0
#define BV_ELCDIF_CTRL2_OUTSTANDING_REQS__REQ_2 0x1
#define BV_ELCDIF_CTRL2_OUTSTANDING_REQS__REQ_4 0x2
#define BV_ELCDIF_CTRL2_OUTSTANDING_REQS__REQ_8 0x3
#define BV_ELCDIF_CTRL2_OUTSTANDING_REQS__REQ_16 0x4
#define BM_ELCDIF_CTRL2_BURST_LEN_8 0x00100000
#define BM_ELCDIF_CTRL2_RSRVD4 0x00080000
#define BP_ELCDIF_CTRL2_ODD_LINE_PATTERN 16
#define BM_ELCDIF_CTRL2_ODD_LINE_PATTERN 0x00070000
#define BF_ELCDIF_CTRL2_ODD_LINE_PATTERN(v) \
(((v) << 16) & BM_ELCDIF_CTRL2_ODD_LINE_PATTERN)
#define BV_ELCDIF_CTRL2_ODD_LINE_PATTERN__RGB 0x0
#define BV_ELCDIF_CTRL2_ODD_LINE_PATTERN__RBG 0x1
#define BV_ELCDIF_CTRL2_ODD_LINE_PATTERN__GBR 0x2
#define BV_ELCDIF_CTRL2_ODD_LINE_PATTERN__GRB 0x3
#define BV_ELCDIF_CTRL2_ODD_LINE_PATTERN__BRG 0x4
#define BV_ELCDIF_CTRL2_ODD_LINE_PATTERN__BGR 0x5
#define BM_ELCDIF_CTRL2_RSRVD3 0x00008000
#define BP_ELCDIF_CTRL2_EVEN_LINE_PATTERN 12
#define BM_ELCDIF_CTRL2_EVEN_LINE_PATTERN 0x00007000
#define BF_ELCDIF_CTRL2_EVEN_LINE_PATTERN(v) \
(((v) << 12) & BM_ELCDIF_CTRL2_EVEN_LINE_PATTERN)
#define BV_ELCDIF_CTRL2_EVEN_LINE_PATTERN__RGB 0x0
#define BV_ELCDIF_CTRL2_EVEN_LINE_PATTERN__RBG 0x1
#define BV_ELCDIF_CTRL2_EVEN_LINE_PATTERN__GBR 0x2
#define BV_ELCDIF_CTRL2_EVEN_LINE_PATTERN__GRB 0x3
#define BV_ELCDIF_CTRL2_EVEN_LINE_PATTERN__BRG 0x4
#define BV_ELCDIF_CTRL2_EVEN_LINE_PATTERN__BGR 0x5
#define BM_ELCDIF_CTRL2_RSRVD2 0x00000800
#define BM_ELCDIF_CTRL2_READ_PACK_DIR 0x00000400
#define BM_ELCDIF_CTRL2_READ_MODE_OUTPUT_IN_RGB_FORMAT 0x00000200
#define BM_ELCDIF_CTRL2_READ_MODE_6_BIT_INPUT 0x00000100
#define BM_ELCDIF_CTRL2_RSRVD1 0x00000080
#define BP_ELCDIF_CTRL2_READ_MODE_NUM_PACKED_SUBWORDS 4
#define BM_ELCDIF_CTRL2_READ_MODE_NUM_PACKED_SUBWORDS 0x00000070
#define BF_ELCDIF_CTRL2_READ_MODE_NUM_PACKED_SUBWORDS(v) \
(((v) << 4) & BM_ELCDIF_CTRL2_READ_MODE_NUM_PACKED_SUBWORDS)
#define BP_ELCDIF_CTRL2_INITIAL_DUMMY_READ 1
#define BM_ELCDIF_CTRL2_INITIAL_DUMMY_READ 0x0000000E
#define BF_ELCDIF_CTRL2_INITIAL_DUMMY_READ(v) \
(((v) << 1) & BM_ELCDIF_CTRL2_INITIAL_DUMMY_READ)
#define BM_ELCDIF_CTRL2_RSRVD0 0x00000001
#define HW_ELCDIF_TRANSFER_COUNT (0x00000030)
#define BP_ELCDIF_TRANSFER_COUNT_V_COUNT 16
#define BM_ELCDIF_TRANSFER_COUNT_V_COUNT 0xFFFF0000
#define BF_ELCDIF_TRANSFER_COUNT_V_COUNT(v) \
(((v) << 16) & BM_ELCDIF_TRANSFER_COUNT_V_COUNT)
#define BP_ELCDIF_TRANSFER_COUNT_H_COUNT 0
#define BM_ELCDIF_TRANSFER_COUNT_H_COUNT 0x0000FFFF
#define BF_ELCDIF_TRANSFER_COUNT_H_COUNT(v) \
(((v) << 0) & BM_ELCDIF_TRANSFER_COUNT_H_COUNT)
#define HW_ELCDIF_CUR_BUF (0x00000040)
#define BP_ELCDIF_CUR_BUF_ADDR 0
#define BM_ELCDIF_CUR_BUF_ADDR 0xFFFFFFFF
#define BF_ELCDIF_CUR_BUF_ADDR(v) (v)
#define HW_ELCDIF_NEXT_BUF (0x00000050)
#define BP_ELCDIF_NEXT_BUF_ADDR 0
#define BM_ELCDIF_NEXT_BUF_ADDR 0xFFFFFFFF
#define BF_ELCDIF_NEXT_BUF_ADDR(v) (v)
#define HW_ELCDIF_TIMING (0x00000060)
#define BP_ELCDIF_TIMING_CMD_HOLD 24
#define BM_ELCDIF_TIMING_CMD_HOLD 0xFF000000
#define BF_ELCDIF_TIMING_CMD_HOLD(v) \
(((v) << 24) & BM_ELCDIF_TIMING_CMD_HOLD)
#define BP_ELCDIF_TIMING_CMD_SETUP 16
#define BM_ELCDIF_TIMING_CMD_SETUP 0x00FF0000
#define BF_ELCDIF_TIMING_CMD_SETUP(v) \
(((v) << 16) & BM_ELCDIF_TIMING_CMD_SETUP)
#define BP_ELCDIF_TIMING_DATA_HOLD 8
#define BM_ELCDIF_TIMING_DATA_HOLD 0x0000FF00
#define BF_ELCDIF_TIMING_DATA_HOLD(v) \
(((v) << 8) & BM_ELCDIF_TIMING_DATA_HOLD)
#define BP_ELCDIF_TIMING_DATA_SETUP 0
#define BM_ELCDIF_TIMING_DATA_SETUP 0x000000FF
#define BF_ELCDIF_TIMING_DATA_SETUP(v) \
(((v) << 0) & BM_ELCDIF_TIMING_DATA_SETUP)
#define HW_ELCDIF_VDCTRL0 (0x00000070)
#define HW_ELCDIF_VDCTRL0_SET (0x00000074)
#define HW_ELCDIF_VDCTRL0_CLR (0x00000078)
#define HW_ELCDIF_VDCTRL0_TOG (0x0000007c)
#define BP_ELCDIF_VDCTRL0_RSRVD2 30
#define BM_ELCDIF_VDCTRL0_RSRVD2 0xC0000000
#define BF_ELCDIF_VDCTRL0_RSRVD2(v) \
(((v) << 30) & BM_ELCDIF_VDCTRL0_RSRVD2)
#define BM_ELCDIF_VDCTRL0_VSYNC_OEB 0x20000000
#define BV_ELCDIF_VDCTRL0_VSYNC_OEB__VSYNC_OUTPUT 0x0
#define BV_ELCDIF_VDCTRL0_VSYNC_OEB__VSYNC_INPUT 0x1
#define BM_ELCDIF_VDCTRL0_ENABLE_PRESENT 0x10000000
#define BM_ELCDIF_VDCTRL0_VSYNC_POL 0x08000000
#define BM_ELCDIF_VDCTRL0_HSYNC_POL 0x04000000
#define BM_ELCDIF_VDCTRL0_DOTCLK_POL 0x02000000
#define BM_ELCDIF_VDCTRL0_ENABLE_POL 0x01000000
#define BP_ELCDIF_VDCTRL0_RSRVD1 22
#define BM_ELCDIF_VDCTRL0_RSRVD1 0x00C00000
#define BF_ELCDIF_VDCTRL0_RSRVD1(v) \
(((v) << 22) & BM_ELCDIF_VDCTRL0_RSRVD1)
#define BM_ELCDIF_VDCTRL0_VSYNC_PERIOD_UNIT 0x00200000
#define BM_ELCDIF_VDCTRL0_VSYNC_PULSE_WIDTH_UNIT 0x00100000
#define BM_ELCDIF_VDCTRL0_HALF_LINE 0x00080000
#define BM_ELCDIF_VDCTRL0_HALF_LINE_MODE 0x00040000
#define BP_ELCDIF_VDCTRL0_VSYNC_PULSE_WIDTH 0
#define BM_ELCDIF_VDCTRL0_VSYNC_PULSE_WIDTH 0x0003FFFF
#define BF_ELCDIF_VDCTRL0_VSYNC_PULSE_WIDTH(v) \
(((v) << 0) & BM_ELCDIF_VDCTRL0_VSYNC_PULSE_WIDTH)
#define HW_ELCDIF_VDCTRL1 (0x00000080)
#define BP_ELCDIF_VDCTRL1_VSYNC_PERIOD 0
#define BM_ELCDIF_VDCTRL1_VSYNC_PERIOD 0xFFFFFFFF
#define BF_ELCDIF_VDCTRL1_VSYNC_PERIOD(v) (v)
#define HW_ELCDIF_VDCTRL2 (0x00000090)
#define BP_ELCDIF_VDCTRL2_HSYNC_PULSE_WIDTH 18
#define BM_ELCDIF_VDCTRL2_HSYNC_PULSE_WIDTH 0xFFFC0000
#define BF_ELCDIF_VDCTRL2_HSYNC_PULSE_WIDTH(v) \
(((v) << 18) & BM_ELCDIF_VDCTRL2_HSYNC_PULSE_WIDTH)
#define BP_ELCDIF_VDCTRL2_HSYNC_PERIOD 0
#define BM_ELCDIF_VDCTRL2_HSYNC_PERIOD 0x0003FFFF
#define BF_ELCDIF_VDCTRL2_HSYNC_PERIOD(v) \
(((v) << 0) & BM_ELCDIF_VDCTRL2_HSYNC_PERIOD)
#define HW_ELCDIF_VDCTRL3 (0x000000a0)
#define BP_ELCDIF_VDCTRL3_RSRVD0 30
#define BM_ELCDIF_VDCTRL3_RSRVD0 0xC0000000
#define BF_ELCDIF_VDCTRL3_RSRVD0(v) \
(((v) << 30) & BM_ELCDIF_VDCTRL3_RSRVD0)
#define BM_ELCDIF_VDCTRL3_MUX_SYNC_SIGNALS 0x20000000
#define BM_ELCDIF_VDCTRL3_VSYNC_ONLY 0x10000000
#define BP_ELCDIF_VDCTRL3_HORIZONTAL_WAIT_CNT 16
#define BM_ELCDIF_VDCTRL3_HORIZONTAL_WAIT_CNT 0x0FFF0000
#define BF_ELCDIF_VDCTRL3_HORIZONTAL_WAIT_CNT(v) \
(((v) << 16) & BM_ELCDIF_VDCTRL3_HORIZONTAL_WAIT_CNT)
#define BP_ELCDIF_VDCTRL3_VERTICAL_WAIT_CNT 0
#define BM_ELCDIF_VDCTRL3_VERTICAL_WAIT_CNT 0x0000FFFF
#define BF_ELCDIF_VDCTRL3_VERTICAL_WAIT_CNT(v) \
(((v) << 0) & BM_ELCDIF_VDCTRL3_VERTICAL_WAIT_CNT)
#define HW_ELCDIF_VDCTRL4 (0x000000b0)
#define BP_ELCDIF_VDCTRL4_DOTCLK_DLY_SEL 29
#define BM_ELCDIF_VDCTRL4_DOTCLK_DLY_SEL 0xE0000000
#define BF_ELCDIF_VDCTRL4_DOTCLK_DLY_SEL(v) \
(((v) << 29) & BM_ELCDIF_VDCTRL4_DOTCLK_DLY_SEL)
#define BP_ELCDIF_VDCTRL4_RSRVD0 19
#define BM_ELCDIF_VDCTRL4_RSRVD0 0x1FF80000
#define BF_ELCDIF_VDCTRL4_RSRVD0(v) \
(((v) << 19) & BM_ELCDIF_VDCTRL4_RSRVD0)
#define BM_ELCDIF_VDCTRL4_SYNC_SIGNALS_ON 0x00040000
#define BP_ELCDIF_VDCTRL4_DOTCLK_H_VALID_DATA_CNT 0
#define BM_ELCDIF_VDCTRL4_DOTCLK_H_VALID_DATA_CNT 0x0003FFFF
#define BF_ELCDIF_VDCTRL4_DOTCLK_H_VALID_DATA_CNT(v) \
(((v) << 0) & BM_ELCDIF_VDCTRL4_DOTCLK_H_VALID_DATA_CNT)
#define HW_ELCDIF_DVICTRL0 (0x000000c0)
#define BP_ELCDIF_DVICTRL0_RSRVD1 28
#define BM_ELCDIF_DVICTRL0_RSRVD1 0xF0000000
#define BF_ELCDIF_DVICTRL0_RSRVD1(v) \
(((v) << 28) & BM_ELCDIF_DVICTRL0_RSRVD1)
#define BP_ELCDIF_DVICTRL0_H_ACTIVE_CNT 16
#define BM_ELCDIF_DVICTRL0_H_ACTIVE_CNT 0x0FFF0000
#define BF_ELCDIF_DVICTRL0_H_ACTIVE_CNT(v) \
(((v) << 16) & BM_ELCDIF_DVICTRL0_H_ACTIVE_CNT)
#define BP_ELCDIF_DVICTRL0_RSRVD0 12
#define BM_ELCDIF_DVICTRL0_RSRVD0 0x0000F000
#define BF_ELCDIF_DVICTRL0_RSRVD0(v) \
(((v) << 12) & BM_ELCDIF_DVICTRL0_RSRVD0)
#define BP_ELCDIF_DVICTRL0_H_BLANKING_CNT 0
#define BM_ELCDIF_DVICTRL0_H_BLANKING_CNT 0x00000FFF
#define BF_ELCDIF_DVICTRL0_H_BLANKING_CNT(v) \
(((v) << 0) & BM_ELCDIF_DVICTRL0_H_BLANKING_CNT)
#define HW_ELCDIF_DVICTRL1 (0x000000d0)
#define BP_ELCDIF_DVICTRL1_RSRVD0 30
#define BM_ELCDIF_DVICTRL1_RSRVD0 0xC0000000
#define BF_ELCDIF_DVICTRL1_RSRVD0(v) \
(((v) << 30) & BM_ELCDIF_DVICTRL1_RSRVD0)
#define BP_ELCDIF_DVICTRL1_F1_START_LINE 20
#define BM_ELCDIF_DVICTRL1_F1_START_LINE 0x3FF00000
#define BF_ELCDIF_DVICTRL1_F1_START_LINE(v) \
(((v) << 20) & BM_ELCDIF_DVICTRL1_F1_START_LINE)
#define BP_ELCDIF_DVICTRL1_F1_END_LINE 10
#define BM_ELCDIF_DVICTRL1_F1_END_LINE 0x000FFC00
#define BF_ELCDIF_DVICTRL1_F1_END_LINE(v) \
(((v) << 10) & BM_ELCDIF_DVICTRL1_F1_END_LINE)
#define BP_ELCDIF_DVICTRL1_F2_START_LINE 0
#define BM_ELCDIF_DVICTRL1_F2_START_LINE 0x000003FF
#define BF_ELCDIF_DVICTRL1_F2_START_LINE(v) \
(((v) << 0) & BM_ELCDIF_DVICTRL1_F2_START_LINE)
#define HW_ELCDIF_DVICTRL2 (0x000000e0)
#define BP_ELCDIF_DVICTRL2_RSRVD0 30
#define BM_ELCDIF_DVICTRL2_RSRVD0 0xC0000000
#define BF_ELCDIF_DVICTRL2_RSRVD0(v) \
(((v) << 30) & BM_ELCDIF_DVICTRL2_RSRVD0)
#define BP_ELCDIF_DVICTRL2_F2_END_LINE 20
#define BM_ELCDIF_DVICTRL2_F2_END_LINE 0x3FF00000
#define BF_ELCDIF_DVICTRL2_F2_END_LINE(v) \
(((v) << 20) & BM_ELCDIF_DVICTRL2_F2_END_LINE)
#define BP_ELCDIF_DVICTRL2_V1_BLANK_START_LINE 10
#define BM_ELCDIF_DVICTRL2_V1_BLANK_START_LINE 0x000FFC00
#define BF_ELCDIF_DVICTRL2_V1_BLANK_START_LINE(v) \
(((v) << 10) & BM_ELCDIF_DVICTRL2_V1_BLANK_START_LINE)
#define BP_ELCDIF_DVICTRL2_V1_BLANK_END_LINE 0
#define BM_ELCDIF_DVICTRL2_V1_BLANK_END_LINE 0x000003FF
#define BF_ELCDIF_DVICTRL2_V1_BLANK_END_LINE(v) \
(((v) << 0) & BM_ELCDIF_DVICTRL2_V1_BLANK_END_LINE)
#define HW_ELCDIF_DVICTRL3 (0x000000f0)
#define BP_ELCDIF_DVICTRL3_RSRVD0 30
#define BM_ELCDIF_DVICTRL3_RSRVD0 0xC0000000
#define BF_ELCDIF_DVICTRL3_RSRVD0(v) \
(((v) << 30) & BM_ELCDIF_DVICTRL3_RSRVD0)
#define BP_ELCDIF_DVICTRL3_V2_BLANK_START_LINE 20
#define BM_ELCDIF_DVICTRL3_V2_BLANK_START_LINE 0x3FF00000
#define BF_ELCDIF_DVICTRL3_V2_BLANK_START_LINE(v) \
(((v) << 20) & BM_ELCDIF_DVICTRL3_V2_BLANK_START_LINE)
#define BP_ELCDIF_DVICTRL3_V2_BLANK_END_LINE 10
#define BM_ELCDIF_DVICTRL3_V2_BLANK_END_LINE 0x000FFC00
#define BF_ELCDIF_DVICTRL3_V2_BLANK_END_LINE(v) \
(((v) << 10) & BM_ELCDIF_DVICTRL3_V2_BLANK_END_LINE)
#define BP_ELCDIF_DVICTRL3_V_LINES_CNT 0
#define BM_ELCDIF_DVICTRL3_V_LINES_CNT 0x000003FF
#define BF_ELCDIF_DVICTRL3_V_LINES_CNT(v) \
(((v) << 0) & BM_ELCDIF_DVICTRL3_V_LINES_CNT)
#define HW_ELCDIF_DVICTRL4 (0x00000100)
#define BP_ELCDIF_DVICTRL4_Y_FILL_VALUE 24
#define BM_ELCDIF_DVICTRL4_Y_FILL_VALUE 0xFF000000
#define BF_ELCDIF_DVICTRL4_Y_FILL_VALUE(v) \
(((v) << 24) & BM_ELCDIF_DVICTRL4_Y_FILL_VALUE)
#define BP_ELCDIF_DVICTRL4_CB_FILL_VALUE 16
#define BM_ELCDIF_DVICTRL4_CB_FILL_VALUE 0x00FF0000
#define BF_ELCDIF_DVICTRL4_CB_FILL_VALUE(v) \
(((v) << 16) & BM_ELCDIF_DVICTRL4_CB_FILL_VALUE)
#define BP_ELCDIF_DVICTRL4_CR_FILL_VALUE 8
#define BM_ELCDIF_DVICTRL4_CR_FILL_VALUE 0x0000FF00
#define BF_ELCDIF_DVICTRL4_CR_FILL_VALUE(v) \
(((v) << 8) & BM_ELCDIF_DVICTRL4_CR_FILL_VALUE)
#define BP_ELCDIF_DVICTRL4_H_FILL_CNT 0
#define BM_ELCDIF_DVICTRL4_H_FILL_CNT 0x000000FF
#define BF_ELCDIF_DVICTRL4_H_FILL_CNT(v) \
(((v) << 0) & BM_ELCDIF_DVICTRL4_H_FILL_CNT)
#define HW_ELCDIF_CSC_COEFF0 (0x00000110)
#define BP_ELCDIF_CSC_COEFF0_RSRVD1 26
#define BM_ELCDIF_CSC_COEFF0_RSRVD1 0xFC000000
#define BF_ELCDIF_CSC_COEFF0_RSRVD1(v) \
(((v) << 26) & BM_ELCDIF_CSC_COEFF0_RSRVD1)
#define BP_ELCDIF_CSC_COEFF0_C0 16
#define BM_ELCDIF_CSC_COEFF0_C0 0x03FF0000
#define BF_ELCDIF_CSC_COEFF0_C0(v) \
(((v) << 16) & BM_ELCDIF_CSC_COEFF0_C0)
#define BP_ELCDIF_CSC_COEFF0_RSRVD0 2
#define BM_ELCDIF_CSC_COEFF0_RSRVD0 0x0000FFFC
#define BF_ELCDIF_CSC_COEFF0_RSRVD0(v) \
(((v) << 2) & BM_ELCDIF_CSC_COEFF0_RSRVD0)
#define BP_ELCDIF_CSC_COEFF0_CSC_SUBSAMPLE_FILTER 0
#define BM_ELCDIF_CSC_COEFF0_CSC_SUBSAMPLE_FILTER 0x00000003
#define BF_ELCDIF_CSC_COEFF0_CSC_SUBSAMPLE_FILTER(v) \
(((v) << 0) & BM_ELCDIF_CSC_COEFF0_CSC_SUBSAMPLE_FILTER)
#define BV_ELCDIF_CSC_COEFF0_CSC_SUBSAMPLE_FILTER__SAMPLE_AND_HOLD 0x0
#define BV_ELCDIF_CSC_COEFF0_CSC_SUBSAMPLE_FILTER__RSRVD 0x1
#define BV_ELCDIF_CSC_COEFF0_CSC_SUBSAMPLE_FILTER__INTERSTITIAL 0x2
#define BV_ELCDIF_CSC_COEFF0_CSC_SUBSAMPLE_FILTER__COSITED 0x3
#define HW_ELCDIF_CSC_COEFF1 (0x00000120)
#define BP_ELCDIF_CSC_COEFF1_RSRVD1 26
#define BM_ELCDIF_CSC_COEFF1_RSRVD1 0xFC000000
#define BF_ELCDIF_CSC_COEFF1_RSRVD1(v) \
(((v) << 26) & BM_ELCDIF_CSC_COEFF1_RSRVD1)
#define BP_ELCDIF_CSC_COEFF1_C2 16
#define BM_ELCDIF_CSC_COEFF1_C2 0x03FF0000
#define BF_ELCDIF_CSC_COEFF1_C2(v) \
(((v) << 16) & BM_ELCDIF_CSC_COEFF1_C2)
#define BP_ELCDIF_CSC_COEFF1_RSRVD0 10
#define BM_ELCDIF_CSC_COEFF1_RSRVD0 0x0000FC00
#define BF_ELCDIF_CSC_COEFF1_RSRVD0(v) \
(((v) << 10) & BM_ELCDIF_CSC_COEFF1_RSRVD0)
#define BP_ELCDIF_CSC_COEFF1_C1 0
#define BM_ELCDIF_CSC_COEFF1_C1 0x000003FF
#define BF_ELCDIF_CSC_COEFF1_C1(v) \
(((v) << 0) & BM_ELCDIF_CSC_COEFF1_C1)
#define HW_ELCDIF_CSC_COEFF2 (0x00000130)
#define BP_ELCDIF_CSC_COEFF2_RSRVD1 26
#define BM_ELCDIF_CSC_COEFF2_RSRVD1 0xFC000000
#define BF_ELCDIF_CSC_COEFF2_RSRVD1(v) \
(((v) << 26) & BM_ELCDIF_CSC_COEFF2_RSRVD1)
#define BP_ELCDIF_CSC_COEFF2_C4 16
#define BM_ELCDIF_CSC_COEFF2_C4 0x03FF0000
#define BF_ELCDIF_CSC_COEFF2_C4(v) \
(((v) << 16) & BM_ELCDIF_CSC_COEFF2_C4)
#define BP_ELCDIF_CSC_COEFF2_RSRVD0 10
#define BM_ELCDIF_CSC_COEFF2_RSRVD0 0x0000FC00
#define BF_ELCDIF_CSC_COEFF2_RSRVD0(v) \
(((v) << 10) & BM_ELCDIF_CSC_COEFF2_RSRVD0)
#define BP_ELCDIF_CSC_COEFF2_C3 0
#define BM_ELCDIF_CSC_COEFF2_C3 0x000003FF
#define BF_ELCDIF_CSC_COEFF2_C3(v) \
(((v) << 0) & BM_ELCDIF_CSC_COEFF2_C3)
#define HW_ELCDIF_CSC_COEFF3 (0x00000140)
#define BP_ELCDIF_CSC_COEFF3_RSRVD1 26
#define BM_ELCDIF_CSC_COEFF3_RSRVD1 0xFC000000
#define BF_ELCDIF_CSC_COEFF3_RSRVD1(v) \
(((v) << 26) & BM_ELCDIF_CSC_COEFF3_RSRVD1)
#define BP_ELCDIF_CSC_COEFF3_C6 16
#define BM_ELCDIF_CSC_COEFF3_C6 0x03FF0000
#define BF_ELCDIF_CSC_COEFF3_C6(v) \
(((v) << 16) & BM_ELCDIF_CSC_COEFF3_C6)
#define BP_ELCDIF_CSC_COEFF3_RSRVD0 10
#define BM_ELCDIF_CSC_COEFF3_RSRVD0 0x0000FC00
#define BF_ELCDIF_CSC_COEFF3_RSRVD0(v) \
(((v) << 10) & BM_ELCDIF_CSC_COEFF3_RSRVD0)
#define BP_ELCDIF_CSC_COEFF3_C5 0
#define BM_ELCDIF_CSC_COEFF3_C5 0x000003FF
#define BF_ELCDIF_CSC_COEFF3_C5(v) \
(((v) << 0) & BM_ELCDIF_CSC_COEFF3_C5)
#define HW_ELCDIF_CSC_COEFF4 (0x00000150)
#define BP_ELCDIF_CSC_COEFF4_RSRVD1 26
#define BM_ELCDIF_CSC_COEFF4_RSRVD1 0xFC000000
#define BF_ELCDIF_CSC_COEFF4_RSRVD1(v) \
(((v) << 26) & BM_ELCDIF_CSC_COEFF4_RSRVD1)
#define BP_ELCDIF_CSC_COEFF4_C8 16
#define BM_ELCDIF_CSC_COEFF4_C8 0x03FF0000
#define BF_ELCDIF_CSC_COEFF4_C8(v) \
(((v) << 16) & BM_ELCDIF_CSC_COEFF4_C8)
#define BP_ELCDIF_CSC_COEFF4_RSRVD0 10
#define BM_ELCDIF_CSC_COEFF4_RSRVD0 0x0000FC00
#define BF_ELCDIF_CSC_COEFF4_RSRVD0(v) \
(((v) << 10) & BM_ELCDIF_CSC_COEFF4_RSRVD0)
#define BP_ELCDIF_CSC_COEFF4_C7 0
#define BM_ELCDIF_CSC_COEFF4_C7 0x000003FF
#define BF_ELCDIF_CSC_COEFF4_C7(v) \
(((v) << 0) & BM_ELCDIF_CSC_COEFF4_C7)
#define HW_ELCDIF_CSC_OFFSET (0x00000160)
#define BP_ELCDIF_CSC_OFFSET_RSRVD1 25
#define BM_ELCDIF_CSC_OFFSET_RSRVD1 0xFE000000
#define BF_ELCDIF_CSC_OFFSET_RSRVD1(v) \
(((v) << 25) & BM_ELCDIF_CSC_OFFSET_RSRVD1)
#define BP_ELCDIF_CSC_OFFSET_CBCR_OFFSET 16
#define BM_ELCDIF_CSC_OFFSET_CBCR_OFFSET 0x01FF0000
#define BF_ELCDIF_CSC_OFFSET_CBCR_OFFSET(v) \
(((v) << 16) & BM_ELCDIF_CSC_OFFSET_CBCR_OFFSET)
#define BP_ELCDIF_CSC_OFFSET_RSRVD0 9
#define BM_ELCDIF_CSC_OFFSET_RSRVD0 0x0000FE00
#define BF_ELCDIF_CSC_OFFSET_RSRVD0(v) \
(((v) << 9) & BM_ELCDIF_CSC_OFFSET_RSRVD0)
#define BP_ELCDIF_CSC_OFFSET_Y_OFFSET 0
#define BM_ELCDIF_CSC_OFFSET_Y_OFFSET 0x000001FF
#define BF_ELCDIF_CSC_OFFSET_Y_OFFSET(v) \
(((v) << 0) & BM_ELCDIF_CSC_OFFSET_Y_OFFSET)
#define HW_ELCDIF_CSC_LIMIT (0x00000170)
#define BP_ELCDIF_CSC_LIMIT_CBCR_MIN 24
#define BM_ELCDIF_CSC_LIMIT_CBCR_MIN 0xFF000000
#define BF_ELCDIF_CSC_LIMIT_CBCR_MIN(v) \
(((v) << 24) & BM_ELCDIF_CSC_LIMIT_CBCR_MIN)
#define BP_ELCDIF_CSC_LIMIT_CBCR_MAX 16
#define BM_ELCDIF_CSC_LIMIT_CBCR_MAX 0x00FF0000
#define BF_ELCDIF_CSC_LIMIT_CBCR_MAX(v) \
(((v) << 16) & BM_ELCDIF_CSC_LIMIT_CBCR_MAX)
#define BP_ELCDIF_CSC_LIMIT_Y_MIN 8
#define BM_ELCDIF_CSC_LIMIT_Y_MIN 0x0000FF00
#define BF_ELCDIF_CSC_LIMIT_Y_MIN(v) \
(((v) << 8) & BM_ELCDIF_CSC_LIMIT_Y_MIN)
#define BP_ELCDIF_CSC_LIMIT_Y_MAX 0
#define BM_ELCDIF_CSC_LIMIT_Y_MAX 0x000000FF
#define BF_ELCDIF_CSC_LIMIT_Y_MAX(v) \
(((v) << 0) & BM_ELCDIF_CSC_LIMIT_Y_MAX)
#define HW_ELCDIF_DATA (0x00000180)
#define BP_ELCDIF_DATA_DATA_THREE 24
#define BM_ELCDIF_DATA_DATA_THREE 0xFF000000
#define BF_ELCDIF_DATA_DATA_THREE(v) \
(((v) << 24) & BM_ELCDIF_DATA_DATA_THREE)
#define BP_ELCDIF_DATA_DATA_TWO 16
#define BM_ELCDIF_DATA_DATA_TWO 0x00FF0000
#define BF_ELCDIF_DATA_DATA_TWO(v) \
(((v) << 16) & BM_ELCDIF_DATA_DATA_TWO)
#define BP_ELCDIF_DATA_DATA_ONE 8
#define BM_ELCDIF_DATA_DATA_ONE 0x0000FF00
#define BF_ELCDIF_DATA_DATA_ONE(v) \
(((v) << 8) & BM_ELCDIF_DATA_DATA_ONE)
#define BP_ELCDIF_DATA_DATA_ZERO 0
#define BM_ELCDIF_DATA_DATA_ZERO 0x000000FF
#define BF_ELCDIF_DATA_DATA_ZERO(v) \
(((v) << 0) & BM_ELCDIF_DATA_DATA_ZERO)
#define HW_ELCDIF_BM_ERROR_STAT (0x00000190)
#define BP_ELCDIF_BM_ERROR_STAT_ADDR 0
#define BM_ELCDIF_BM_ERROR_STAT_ADDR 0xFFFFFFFF
#define BF_ELCDIF_BM_ERROR_STAT_ADDR(v) (v)
#define HW_ELCDIF_CRC_STAT (0x000001a0)
#define BP_ELCDIF_CRC_STAT_CRC_VALUE 0
#define BM_ELCDIF_CRC_STAT_CRC_VALUE 0xFFFFFFFF
#define BF_ELCDIF_CRC_STAT_CRC_VALUE(v) (v)
#define HW_ELCDIF_STAT (0x000001b0)
#define BM_ELCDIF_STAT_PRESENT 0x80000000
#define BM_ELCDIF_STAT_DMA_REQ 0x40000000
#define BM_ELCDIF_STAT_LFIFO_FULL 0x20000000
#define BM_ELCDIF_STAT_LFIFO_EMPTY 0x10000000
#define BM_ELCDIF_STAT_TXFIFO_FULL 0x08000000
#define BM_ELCDIF_STAT_TXFIFO_EMPTY 0x04000000
#define BM_ELCDIF_STAT_BUSY 0x02000000
#define BM_ELCDIF_STAT_DVI_CURRENT_FIELD 0x01000000
#define BP_ELCDIF_STAT_RSRVD0 9
#define BM_ELCDIF_STAT_RSRVD0 0x00FFFE00
#define BF_ELCDIF_STAT_RSRVD0(v) \
(((v) << 9) & BM_ELCDIF_STAT_RSRVD0)
#define BP_ELCDIF_STAT_LFIFO_COUNT 0
#define BM_ELCDIF_STAT_LFIFO_COUNT 0x000001FF
#define BF_ELCDIF_STAT_LFIFO_COUNT(v) \
(((v) << 0) & BM_ELCDIF_STAT_LFIFO_COUNT)
#define HW_ELCDIF_VERSION (0x000001c0)
#define BP_ELCDIF_VERSION_MAJOR 24
#define BM_ELCDIF_VERSION_MAJOR 0xFF000000
#define BF_ELCDIF_VERSION_MAJOR(v) \
(((v) << 24) & BM_ELCDIF_VERSION_MAJOR)
#define BP_ELCDIF_VERSION_MINOR 16
#define BM_ELCDIF_VERSION_MINOR 0x00FF0000
#define BF_ELCDIF_VERSION_MINOR(v) \
(((v) << 16) & BM_ELCDIF_VERSION_MINOR)
#define BP_ELCDIF_VERSION_STEP 0
#define BM_ELCDIF_VERSION_STEP 0x0000FFFF
#define BF_ELCDIF_VERSION_STEP(v) \
(((v) << 0) & BM_ELCDIF_VERSION_STEP)
#define HW_ELCDIF_DEBUG0 (0x000001d0)
#define BM_ELCDIF_DEBUG0_STREAMING_END_DETECTED 0x80000000
#define BM_ELCDIF_DEBUG0_WAIT_FOR_VSYNC_EDGE_OUT 0x40000000
#define BM_ELCDIF_DEBUG0_SYNC_SIGNALS_ON_REG 0x20000000
#define BM_ELCDIF_DEBUG0_DMACMDKICK 0x10000000
#define BM_ELCDIF_DEBUG0_ENABLE 0x08000000
#define BM_ELCDIF_DEBUG0_HSYNC 0x04000000
#define BM_ELCDIF_DEBUG0_VSYNC 0x02000000
#define BM_ELCDIF_DEBUG0_CUR_FRAME_TX 0x01000000
#define BM_ELCDIF_DEBUG0_EMPTY_WORD 0x00800000
#define BP_ELCDIF_DEBUG0_CUR_STATE 16
#define BM_ELCDIF_DEBUG0_CUR_STATE 0x007F0000
#define BF_ELCDIF_DEBUG0_CUR_STATE(v) \
(((v) << 16) & BM_ELCDIF_DEBUG0_CUR_STATE)
#define BM_ELCDIF_DEBUG0_PXP_ELCDIF_B0_READY 0x00008000
#define BM_ELCDIF_DEBUG0_ELCDIF_PXP_B0_DONE 0x00004000
#define BM_ELCDIF_DEBUG0_PXP_ELCDIF_B1_READY 0x00002000
#define BM_ELCDIF_DEBUG0_ELCDIF_PXP_B1_DONE 0x00001000
#define BP_ELCDIF_DEBUG0_CUR_REQ_STATE 10
#define BM_ELCDIF_DEBUG0_CUR_REQ_STATE 0x00000C00
#define BF_ELCDIF_DEBUG0_CUR_REQ_STATE(v) \
(((v) << 10) & BM_ELCDIF_DEBUG0_CUR_REQ_STATE)
#define BM_ELCDIF_DEBUG0_MST_AVALID 0x00000200
#define BP_ELCDIF_DEBUG0_MST_OUTSTANDING_REQS 4
#define BM_ELCDIF_DEBUG0_MST_OUTSTANDING_REQS 0x000001F0
#define BF_ELCDIF_DEBUG0_MST_OUTSTANDING_REQS(v) \
(((v) << 4) & BM_ELCDIF_DEBUG0_MST_OUTSTANDING_REQS)
#define BP_ELCDIF_DEBUG0_MST_WORDS 0
#define BM_ELCDIF_DEBUG0_MST_WORDS 0x0000000F
#define BF_ELCDIF_DEBUG0_MST_WORDS(v) \
(((v) << 0) & BM_ELCDIF_DEBUG0_MST_WORDS)
#define HW_ELCDIF_DEBUG1 (0x000001e0)
#define BP_ELCDIF_DEBUG1_H_DATA_COUNT 16
#define BM_ELCDIF_DEBUG1_H_DATA_COUNT 0xFFFF0000
#define BF_ELCDIF_DEBUG1_H_DATA_COUNT(v) \
(((v) << 16) & BM_ELCDIF_DEBUG1_H_DATA_COUNT)
#define BP_ELCDIF_DEBUG1_V_DATA_COUNT 0
#define BM_ELCDIF_DEBUG1_V_DATA_COUNT 0x0000FFFF
#define BF_ELCDIF_DEBUG1_V_DATA_COUNT(v) \
(((v) << 0) & BM_ELCDIF_DEBUG1_V_DATA_COUNT)
#define HW_ELCDIF_DEBUG2 (0x000001f0)
#define BP_ELCDIF_DEBUG2_MST_ADDRESS 0
#define BM_ELCDIF_DEBUG2_MST_ADDRESS 0xFFFFFFFF
#define BF_ELCDIF_DEBUG2_MST_ADDRESS(v) (v)
#endif /* __ELCDIF_REGS_INCLUDED_ */
|