21 #ifndef __OMAP2_DISPC_REG_H
22 #define __OMAP2_DISPC_REG_H
25 #define DISPC_REVISION 0x0000
26 #define DISPC_SYSCONFIG 0x0010
27 #define DISPC_SYSSTATUS 0x0014
28 #define DISPC_IRQSTATUS 0x0018
29 #define DISPC_IRQENABLE 0x001C
30 #define DISPC_CONTROL 0x0040
31 #define DISPC_CONFIG 0x0044
32 #define DISPC_CAPABLE 0x0048
33 #define DISPC_LINE_STATUS 0x005C
34 #define DISPC_LINE_NUMBER 0x0060
35 #define DISPC_GLOBAL_ALPHA 0x0074
36 #define DISPC_CONTROL2 0x0238
37 #define DISPC_CONFIG2 0x0620
38 #define DISPC_DIVISOR 0x0804
39 #define DISPC_GLOBAL_BUFFER 0x0800
40 #define DISPC_CONTROL3 0x0848
41 #define DISPC_CONFIG3 0x084C
44 #define DISPC_OVL_BA0(n) (DISPC_OVL_BASE(n) + \
46 #define DISPC_OVL_BA1(n) (DISPC_OVL_BASE(n) + \
48 #define DISPC_OVL_BA0_UV(n) (DISPC_OVL_BASE(n) + \
49 DISPC_BA0_UV_OFFSET(n))
50 #define DISPC_OVL_BA1_UV(n) (DISPC_OVL_BASE(n) + \
51 DISPC_BA1_UV_OFFSET(n))
52 #define DISPC_OVL_POSITION(n) (DISPC_OVL_BASE(n) + \
54 #define DISPC_OVL_SIZE(n) (DISPC_OVL_BASE(n) + \
56 #define DISPC_OVL_ATTRIBUTES(n) (DISPC_OVL_BASE(n) + \
58 #define DISPC_OVL_ATTRIBUTES2(n) (DISPC_OVL_BASE(n) + \
59 DISPC_ATTR2_OFFSET(n))
60 #define DISPC_OVL_FIFO_THRESHOLD(n) (DISPC_OVL_BASE(n) + \
61 DISPC_FIFO_THRESH_OFFSET(n))
62 #define DISPC_OVL_FIFO_SIZE_STATUS(n) (DISPC_OVL_BASE(n) + \
63 DISPC_FIFO_SIZE_STATUS_OFFSET(n))
64 #define DISPC_OVL_ROW_INC(n) (DISPC_OVL_BASE(n) + \
65 DISPC_ROW_INC_OFFSET(n))
66 #define DISPC_OVL_PIXEL_INC(n) (DISPC_OVL_BASE(n) + \
67 DISPC_PIX_INC_OFFSET(n))
68 #define DISPC_OVL_WINDOW_SKIP(n) (DISPC_OVL_BASE(n) + \
69 DISPC_WINDOW_SKIP_OFFSET(n))
70 #define DISPC_OVL_TABLE_BA(n) (DISPC_OVL_BASE(n) + \
71 DISPC_TABLE_BA_OFFSET(n))
72 #define DISPC_OVL_FIR(n) (DISPC_OVL_BASE(n) + \
74 #define DISPC_OVL_FIR2(n) (DISPC_OVL_BASE(n) + \
76 #define DISPC_OVL_PICTURE_SIZE(n) (DISPC_OVL_BASE(n) + \
77 DISPC_PIC_SIZE_OFFSET(n))
78 #define DISPC_OVL_ACCU0(n) (DISPC_OVL_BASE(n) + \
79 DISPC_ACCU0_OFFSET(n))
80 #define DISPC_OVL_ACCU1(n) (DISPC_OVL_BASE(n) + \
81 DISPC_ACCU1_OFFSET(n))
82 #define DISPC_OVL_ACCU2_0(n) (DISPC_OVL_BASE(n) + \
83 DISPC_ACCU2_0_OFFSET(n))
84 #define DISPC_OVL_ACCU2_1(n) (DISPC_OVL_BASE(n) + \
85 DISPC_ACCU2_1_OFFSET(n))
86 #define DISPC_OVL_FIR_COEF_H(n, i) (DISPC_OVL_BASE(n) + \
87 DISPC_FIR_COEF_H_OFFSET(n, i))
88 #define DISPC_OVL_FIR_COEF_HV(n, i) (DISPC_OVL_BASE(n) + \
89 DISPC_FIR_COEF_HV_OFFSET(n, i))
90 #define DISPC_OVL_FIR_COEF_H2(n, i) (DISPC_OVL_BASE(n) + \
91 DISPC_FIR_COEF_H2_OFFSET(n, i))
92 #define DISPC_OVL_FIR_COEF_HV2(n, i) (DISPC_OVL_BASE(n) + \
93 DISPC_FIR_COEF_HV2_OFFSET(n, i))
94 #define DISPC_OVL_CONV_COEF(n, i) (DISPC_OVL_BASE(n) + \
95 DISPC_CONV_COEF_OFFSET(n, i))
96 #define DISPC_OVL_FIR_COEF_V(n, i) (DISPC_OVL_BASE(n) + \
97 DISPC_FIR_COEF_V_OFFSET(n, i))
98 #define DISPC_OVL_FIR_COEF_V2(n, i) (DISPC_OVL_BASE(n) + \
99 DISPC_FIR_COEF_V2_OFFSET(n, i))
100 #define DISPC_OVL_PRELOAD(n) (DISPC_OVL_BASE(n) + \
101 DISPC_PRELOAD_OFFSET(n))
508 static inline u16 DISPC_FIFO_THRESH_OFFSET(
enum omap_plane plane)
525 static inline u16 DISPC_FIFO_SIZE_STATUS_OFFSET(
enum omap_plane plane)
542 static inline u16 DISPC_ROW_INC_OFFSET(
enum omap_plane plane)
559 static inline u16 DISPC_PIX_INC_OFFSET(
enum omap_plane plane)
576 static inline u16 DISPC_WINDOW_SKIP_OFFSET(
enum omap_plane plane)
592 static inline u16 DISPC_TABLE_BA_OFFSET(
enum omap_plane plane)
646 static inline u16 DISPC_PIC_SIZE_OFFSET(
enum omap_plane plane)
683 static inline u16 DISPC_ACCU2_0_OFFSET(
enum omap_plane plane)
721 static inline u16 DISPC_ACCU2_1_OFFSET(
enum omap_plane plane)
750 return 0x0034 + i * 0x8;
753 return 0x0010 + i * 0x8;
768 return 0x058C + i * 0x8;
770 return 0x0568 + i * 0x8;
772 return 0x0430 + i * 0x8;
774 return 0x02A0 + i * 0x8;
790 return 0x0038 + i * 0x8;
793 return 0x0014 + i * 0x8;
808 return 0x0590 + i * 8;
810 return 0x056C + i * 0x8;
812 return 0x0434 + i * 0x8;
814 return 0x02A4 + i * 0x8;
832 return 0x0074 + i * 0x4;
847 return 0x0124 + i * 0x4;
849 return 0x00B4 + i * 0x4;
852 return 0x0050 + i * 0x4;
867 return 0x05CC + i * 0x4;
869 return 0x05A8 + i * 0x4;
871 return 0x0470 + i * 0x4;
873 return 0x02E0 + i * 0x4;
880 static inline u16 DISPC_PRELOAD_OFFSET(
enum omap_plane plane)