blob: 4639845f73a0789b426d68d5c3887539476515b9 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001/*
2 * Copyright (C) 2018 MediaTek Inc.
3 * Author: Bibby Hsieh <bibby.hsieh@mediatek.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 * See http://www.gnu.org/licenses/gpl-2.0.html for more details.
13 *
14 */
15
16#ifndef _DT_BINDINGS_GCE_MT8183_H
17#define _DT_BINDINGS_GCE_MT8183_H
18
19#define CMDQ_NO_TIMEOUT 0xffffffff
20
21#define CMDQ_THR_MAX_COUNT 24
22
23/* GCE HW thread priority */
24#define CMDQ_THR_PRIO_LOWEST 0
25#define CMDQ_THR_PRIO_HIGHEST 1
26
27/* GCE SUBSYS */
28#define SUBSYS_1300XXXX 0
29#define SUBSYS_1400XXXX 1
30#define SUBSYS_1401XXXX 2
31#define SUBSYS_1402XXXX 3
32#define SUBSYS_1502XXXX 4
33#define SUBSYS_1880XXXX 5
34#define SUBSYS_1881XXXX 6
35#define SUBSYS_1882XXXX 7
36#define SUBSYS_1883XXXX 8
37#define SUBSYS_1884XXXX 9
38#define SUBSYS_1000XXXX 10
39#define SUBSYS_1001XXXX 11
40#define SUBSYS_1002XXXX 12
41#define SUBSYS_1003XXXX 13
42#define SUBSYS_1004XXXX 14
43#define SUBSYS_1005XXXX 15
44#define SUBSYS_1020XXXX 16
45#define SUBSYS_1028XXXX 17
46#define SUBSYS_1700XXXX 18
47#define SUBSYS_1701XXXX 19
48#define SUBSYS_1702XXXX 20
49#define SUBSYS_1703XXXX 21
50#define SUBSYS_1800XXXX 22
51#define SUBSYS_1801XXXX 23
52#define SUBSYS_1802XXXX 24
53#define SUBSYS_1804XXXX 25
54#define SUBSYS_1805XXXX 26
55#define SUBSYS_1808XXXX 27
56#define SUBSYS_180aXXXX 28
57#define SUBSYS_180bXXXX 29
58
59#define CMDQ_EVENT_DISP_RDMA0_SOF 0
60#define CMDQ_EVENT_DISP_RDMA1_SOF 1
61#define CMDQ_EVENT_MDP_RDMA0_SOF 2
62#define CMDQ_EVENT_MDP_RSZ0_SOF 4
63#define CMDQ_EVENT_MDP_RSZ1_SOF 5
64#define CMDQ_EVENT_MDP_TDSHP_SOF 6
65#define CMDQ_EVENT_MDP_WROT0_SOF 7
66#define CMDQ_EVENT_MDP_WDMA0_SOF 8
67#define CMDQ_EVENT_DISP_OVL0_SOF 9
68#define CMDQ_EVENT_DISP_OVL0_2L_SOF 10
69#define CMDQ_EVENT_DISP_OVL1_2L_SOF 11
70#define CMDQ_EVENT_DISP_WDMA0_SOF 12
71#define CMDQ_EVENT_DISP_COLOR0_SOF 13
72#define CMDQ_EVENT_DISP_CCORR0_SOF 14
73#define CMDQ_EVENT_DISP_AAL0_SOF 15
74#define CMDQ_EVENT_DISP_GAMMA0_SOF 16
75#define CMDQ_EVENT_DISP_DITHER0_SOF 17
76#define CMDQ_EVENT_DISP_PWM0_SOF 18
77#define CMDQ_EVENT_DISP_DSI0_SOF 19
78#define CMDQ_EVENT_DISP_DPI0_SOF 20
79#define CMDQ_EVENT_DISP_RSZ_SOF 22
80#define CMDQ_EVENT_MDP_AAL_SOF 23
81#define CMDQ_EVENT_MDP_CCORR_SOF 24
82#define CMDQ_EVENT_DISP_DBI_SOF 25
83#define CMDQ_EVENT_DISP_RDMA0_EOF 26
84#define CMDQ_EVENT_DISP_RDMA1_EOF 27
85#define CMDQ_EVENT_MDP_RDMA0_EOF 28
86#define CMDQ_EVENT_MDP_RSZ0_EOF 30
87#define CMDQ_EVENT_MDP_RSZ1_EOF 31
88#define CMDQ_EVENT_MDP_TDSHP_EOF 32
89#define CMDQ_EVENT_MDP_WROT0_EOF 33
90#define CMDQ_EVENT_MDP_WDMA0_EOF 34
91#define CMDQ_EVENT_DISP_OVL0_EOF 35
92#define CMDQ_EVENT_DISP_OVL0_2L_EOF 36
93#define CMDQ_EVENT_DISP_OVL1_2L_EOF 37
94#define CMDQ_EVENT_DISP_WDMA0_EOF 38
95#define CMDQ_EVENT_DISP_COLOR0_EOF 39
96#define CMDQ_EVENT_DISP_CCORR0_EOF 40
97#define CMDQ_EVENT_DISP_AAL0_EOF 41
98#define CMDQ_EVENT_DISP_GAMMA0_EOF 42
99#define CMDQ_EVENT_DISP_DITHER0_EOF 43
100#define CMDQ_EVENT_DSI0_EOF 44
101#define CMDQ_EVENT_DPI0_EOF 45
102#define CMDQ_EVENT_DISP_RSZ_EOF 47
103#define CMDQ_EVENT_MDP_AAL_EOF 48
104#define CMDQ_EVENT_MDP_CCORR_EOF 49
105#define CMDQ_EVENT_DBI_EOF 50
106#define CMDQ_EVENT_MUTEX_STREAM_DONE0 130
107#define CMDQ_EVENT_MUTEX_STREAM_DONE1 131
108#define CMDQ_EVENT_MUTEX_STREAM_DONE2 132
109#define CMDQ_EVENT_MUTEX_STREAM_DONE3 133
110#define CMDQ_EVENT_MUTEX_STREAM_DONE4 134
111#define CMDQ_EVENT_MUTEX_STREAM_DONE5 135
112#define CMDQ_EVENT_MUTEX_STREAM_DONE6 136
113#define CMDQ_EVENT_MUTEX_STREAM_DONE7 137
114#define CMDQ_EVENT_MUTEX_STREAM_DONE8 138
115#define CMDQ_EVENT_MUTEX_STREAM_DONE9 139
116#define CMDQ_EVENT_MUTEX_STREAM_DONE10 140
117#define CMDQ_EVENT_MUTEX_STREAM_DONE11 141
118#define CMDQ_EVENT_DISP_RDMA0_BUF_UNDERRUN_EVEN 142
119#define CMDQ_EVENT_DISP_RDMA1_BUF_UNDERRUN_EVEN 143
120#define CMDQ_EVENT_DSI0_TE_EVENT 144
121#define CMDQ_EVENT_DSI0_IRQ_EVENT 145
122#define CMDQ_EVENT_DSI0_DONE_EVENT 146
123#define CMDQ_EVENT_DISP_WDMA0_SW_RST_DONE 150
124#define CMDQ_EVENT_MDP_WDMA_SW_RST_DONE 151
125#define CMDQ_EVENT_MDP_WROT0_SW_RST_DONE 152
126#define CMDQ_EVENT_MDP_RDMA0_SW_RST_DONE 154
127#define CMDQ_EVENT_DISP_OVL0_FRAME_RST_DONE_PULE 155
128#define CMDQ_EVENT_DISP_OVL0_2L_FRAME_RST_DONE_ULSE 156
129#define CMDQ_EVENT_DISP_OVL1_2L_FRAME_RST_DONE_ULSE 157
130#define CMDQ_EVENT_ISP_FRAME_DONE_P2_0 257
131#define CMDQ_EVENT_ISP_FRAME_DONE_P2_1 258
132#define CMDQ_EVENT_ISP_FRAME_DONE_P2_2 259
133#define CMDQ_EVENT_ISP_FRAME_DONE_P2_3 260
134#define CMDQ_EVENT_ISP_FRAME_DONE_P2_4 261
135#define CMDQ_EVENT_ISP_FRAME_DONE_P2_5 262
136#define CMDQ_EVENT_ISP_FRAME_DONE_P2_6 263
137#define CMDQ_EVENT_ISP_FRAME_DONE_P2_7 264
138#define CMDQ_EVENT_ISP_FRAME_DONE_P2_8 265
139#define CMDQ_EVENT_ISP_FRAME_DONE_P2_9 266
140#define CMDQ_EVENT_ISP_FRAME_DONE_P2_10 267
141#define CMDQ_EVENT_ISP_FRAME_DONE_P2_11 268
142#define CMDQ_EVENT_ISP_FRAME_DONE_P2_12 269
143#define CMDQ_EVENT_ISP_FRAME_DONE_P2_13 270
144#define CMDQ_EVENT_ISP_FRAME_DONE_P2_14 271
145#define CMDQ_EVENT_ISP_FRAME_DONE_P2_15 272
146#define CMDQ_EVENT_ISP_FRAME_DONE_P2_16 273
147#define CMDQ_EVENT_ISP_FRAME_DONE_P2_17 274
148#define CMDQ_EVENT_ISP_FRAME_DONE_P2_18 275
149#define CMDQ_EVENT_AMD_FRAME_DONE 276
150#define CMDQ_EVENT_DVE_DONE 277
151#define CMDQ_EVENT_WMFE_DONE 278
152#define CMDQ_EVENT_RSC_DONE 279
153#define CMDQ_EVENT_MFB_DONE 280
154#define CMDQ_EVENT_WPE_A_DONE 281
155#define CMDQ_EVENT_SPE_B_DONE 282
156#define CMDQ_EVENT_OCC_DONE 283
157#define CMDQ_EVENT_VENC_CMDQ_FRAME_DONE 289
158#define CMDQ_EVENT_JPG_ENC_CMDQ_DONE 290
159#define CMDQ_EVENT_JPG_DEC_CMDQ_DONE 291
160#define CMDQ_EVENT_VENC_CMDQ_MB_DONE 292
161#define CMDQ_EVENT_VENC_CMDQ_128BYTE_DONE 293
162#define CMDQ_EVENT_ISP_FRAME_DONE_A 321
163#define CMDQ_EVENT_ISP_FRAME_DONE_B 322
164#define CMDQ_EVENT_CAMSV0_PASS1_DONE 323
165#define CMDQ_EVENT_CAMSV1_PASS1_DONE 324
166#define CMDQ_EVENT_CAMSV2_PASS1_DONE 325
167#define CMDQ_EVENT_TSF_DONE 326
168#define CMDQ_EVENT_SENINF_CAM0_FIFO_FULL 327
169#define CMDQ_EVENT_SENINF_CAM1_FIFO_FULL 328
170#define CMDQ_EVENT_SENINF_CAM2_FIFO_FULL 329
171#define CMDQ_EVENT_SENINF_CAM3_FIFO_FULL 330
172#define CMDQ_EVENT_SENINF_CAM4_FIFO_FULL 331
173#define CMDQ_EVENT_SENINF_CAM5_FIFO_FULL 332
174#define CMDQ_EVENT_SENINF_CAM6_FIFO_FULL 333
175#define CMDQ_EVENT_SENINF_CAM7_FIFO_FULL 334
176#define CMDQ_EVENT_IPU_CORE0_DONE0 353
177#define CMDQ_EVENT_IPU_CORE0_DONE1 354
178#define CMDQ_EVENT_IPU_CORE0_DONE2 355
179#define CMDQ_EVENT_IPU_CORE0_DONE3 356
180#define CMDQ_EVENT_IPU_CORE1_DONE0 385
181#define CMDQ_EVENT_IPU_CORE1_DONE1 386
182#define CMDQ_EVENT_IPU_CORE1_DONE2 387
183#define CMDQ_EVENT_IPU_CORE1_DONE3 388
184
185#endif