162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (c) 2019 MediaTek Inc. 462306a36Sopenharmony_ci * Author: Bibby Hsieh <bibby.hsieh@mediatek.com> 562306a36Sopenharmony_ci * 662306a36Sopenharmony_ci */ 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci#ifndef _DT_BINDINGS_GCE_MT8183_H 962306a36Sopenharmony_ci#define _DT_BINDINGS_GCE_MT8183_H 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#define CMDQ_NO_TIMEOUT 0xffffffff 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci/* GCE HW thread priority */ 1462306a36Sopenharmony_ci#define CMDQ_THR_PRIO_LOWEST 0 1562306a36Sopenharmony_ci#define CMDQ_THR_PRIO_HIGHEST 1 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci/* GCE SUBSYS */ 1862306a36Sopenharmony_ci#define SUBSYS_1300XXXX 0 1962306a36Sopenharmony_ci#define SUBSYS_1400XXXX 1 2062306a36Sopenharmony_ci#define SUBSYS_1401XXXX 2 2162306a36Sopenharmony_ci#define SUBSYS_1402XXXX 3 2262306a36Sopenharmony_ci#define SUBSYS_1502XXXX 4 2362306a36Sopenharmony_ci#define SUBSYS_1880XXXX 5 2462306a36Sopenharmony_ci#define SUBSYS_1881XXXX 6 2562306a36Sopenharmony_ci#define SUBSYS_1882XXXX 7 2662306a36Sopenharmony_ci#define SUBSYS_1883XXXX 8 2762306a36Sopenharmony_ci#define SUBSYS_1884XXXX 9 2862306a36Sopenharmony_ci#define SUBSYS_1000XXXX 10 2962306a36Sopenharmony_ci#define SUBSYS_1001XXXX 11 3062306a36Sopenharmony_ci#define SUBSYS_1002XXXX 12 3162306a36Sopenharmony_ci#define SUBSYS_1003XXXX 13 3262306a36Sopenharmony_ci#define SUBSYS_1004XXXX 14 3362306a36Sopenharmony_ci#define SUBSYS_1005XXXX 15 3462306a36Sopenharmony_ci#define SUBSYS_1020XXXX 16 3562306a36Sopenharmony_ci#define SUBSYS_1028XXXX 17 3662306a36Sopenharmony_ci#define SUBSYS_1700XXXX 18 3762306a36Sopenharmony_ci#define SUBSYS_1701XXXX 19 3862306a36Sopenharmony_ci#define SUBSYS_1702XXXX 20 3962306a36Sopenharmony_ci#define SUBSYS_1703XXXX 21 4062306a36Sopenharmony_ci#define SUBSYS_1800XXXX 22 4162306a36Sopenharmony_ci#define SUBSYS_1801XXXX 23 4262306a36Sopenharmony_ci#define SUBSYS_1802XXXX 24 4362306a36Sopenharmony_ci#define SUBSYS_1804XXXX 25 4462306a36Sopenharmony_ci#define SUBSYS_1805XXXX 26 4562306a36Sopenharmony_ci#define SUBSYS_1808XXXX 27 4662306a36Sopenharmony_ci#define SUBSYS_180aXXXX 28 4762306a36Sopenharmony_ci#define SUBSYS_180bXXXX 29 4862306a36Sopenharmony_ci 4962306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_RDMA0_SOF 0 5062306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_RDMA1_SOF 1 5162306a36Sopenharmony_ci#define CMDQ_EVENT_MDP_RDMA0_SOF 2 5262306a36Sopenharmony_ci#define CMDQ_EVENT_MDP_RSZ0_SOF 4 5362306a36Sopenharmony_ci#define CMDQ_EVENT_MDP_RSZ1_SOF 5 5462306a36Sopenharmony_ci#define CMDQ_EVENT_MDP_TDSHP_SOF 6 5562306a36Sopenharmony_ci#define CMDQ_EVENT_MDP_WROT0_SOF 7 5662306a36Sopenharmony_ci#define CMDQ_EVENT_MDP_WDMA0_SOF 8 5762306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_OVL0_SOF 9 5862306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_OVL0_2L_SOF 10 5962306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_OVL1_2L_SOF 11 6062306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_WDMA0_SOF 12 6162306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_COLOR0_SOF 13 6262306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_CCORR0_SOF 14 6362306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_AAL0_SOF 15 6462306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_GAMMA0_SOF 16 6562306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_DITHER0_SOF 17 6662306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_PWM0_SOF 18 6762306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_DSI0_SOF 19 6862306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_DPI0_SOF 20 6962306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_RSZ_SOF 22 7062306a36Sopenharmony_ci#define CMDQ_EVENT_MDP_AAL_SOF 23 7162306a36Sopenharmony_ci#define CMDQ_EVENT_MDP_CCORR_SOF 24 7262306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_DBI_SOF 25 7362306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_RDMA0_EOF 26 7462306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_RDMA1_EOF 27 7562306a36Sopenharmony_ci#define CMDQ_EVENT_MDP_RDMA0_EOF 28 7662306a36Sopenharmony_ci#define CMDQ_EVENT_MDP_RSZ0_EOF 30 7762306a36Sopenharmony_ci#define CMDQ_EVENT_MDP_RSZ1_EOF 31 7862306a36Sopenharmony_ci#define CMDQ_EVENT_MDP_TDSHP_EOF 32 7962306a36Sopenharmony_ci#define CMDQ_EVENT_MDP_WROT0_EOF 33 8062306a36Sopenharmony_ci#define CMDQ_EVENT_MDP_WDMA0_EOF 34 8162306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_OVL0_EOF 35 8262306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_OVL0_2L_EOF 36 8362306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_OVL1_2L_EOF 37 8462306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_WDMA0_EOF 38 8562306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_COLOR0_EOF 39 8662306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_CCORR0_EOF 40 8762306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_AAL0_EOF 41 8862306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_GAMMA0_EOF 42 8962306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_DITHER0_EOF 43 9062306a36Sopenharmony_ci#define CMDQ_EVENT_DSI0_EOF 44 9162306a36Sopenharmony_ci#define CMDQ_EVENT_DPI0_EOF 45 9262306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_RSZ_EOF 47 9362306a36Sopenharmony_ci#define CMDQ_EVENT_MDP_AAL_EOF 48 9462306a36Sopenharmony_ci#define CMDQ_EVENT_MDP_CCORR_EOF 49 9562306a36Sopenharmony_ci#define CMDQ_EVENT_DBI_EOF 50 9662306a36Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE0 130 9762306a36Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE1 131 9862306a36Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE2 132 9962306a36Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE3 133 10062306a36Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE4 134 10162306a36Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE5 135 10262306a36Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE6 136 10362306a36Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE7 137 10462306a36Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE8 138 10562306a36Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE9 139 10662306a36Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE10 140 10762306a36Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE11 141 10862306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_RDMA0_BUF_UNDERRUN_EVEN 142 10962306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_RDMA1_BUF_UNDERRUN_EVEN 143 11062306a36Sopenharmony_ci#define CMDQ_EVENT_DSI0_TE_EVENT 144 11162306a36Sopenharmony_ci#define CMDQ_EVENT_DSI0_IRQ_EVENT 145 11262306a36Sopenharmony_ci#define CMDQ_EVENT_DSI0_DONE_EVENT 146 11362306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_WDMA0_SW_RST_DONE 150 11462306a36Sopenharmony_ci#define CMDQ_EVENT_MDP_WDMA_SW_RST_DONE 151 11562306a36Sopenharmony_ci#define CMDQ_EVENT_MDP_WROT0_SW_RST_DONE 152 11662306a36Sopenharmony_ci#define CMDQ_EVENT_MDP_RDMA0_SW_RST_DONE 154 11762306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_OVL0_FRAME_RST_DONE_PULE 155 11862306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_OVL0_2L_FRAME_RST_DONE_ULSE 156 11962306a36Sopenharmony_ci#define CMDQ_EVENT_DISP_OVL1_2L_FRAME_RST_DONE_ULSE 157 12062306a36Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_0 257 12162306a36Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_1 258 12262306a36Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_2 259 12362306a36Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_3 260 12462306a36Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_4 261 12562306a36Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_5 262 12662306a36Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_6 263 12762306a36Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_7 264 12862306a36Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_8 265 12962306a36Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_9 266 13062306a36Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_10 267 13162306a36Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_11 268 13262306a36Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_12 269 13362306a36Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_13 270 13462306a36Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_14 271 13562306a36Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_15 272 13662306a36Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_16 273 13762306a36Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_17 274 13862306a36Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_18 275 13962306a36Sopenharmony_ci#define CMDQ_EVENT_AMD_FRAME_DONE 276 14062306a36Sopenharmony_ci#define CMDQ_EVENT_DVE_DONE 277 14162306a36Sopenharmony_ci#define CMDQ_EVENT_WMFE_DONE 278 14262306a36Sopenharmony_ci#define CMDQ_EVENT_RSC_DONE 279 14362306a36Sopenharmony_ci#define CMDQ_EVENT_MFB_DONE 280 14462306a36Sopenharmony_ci#define CMDQ_EVENT_WPE_A_DONE 281 14562306a36Sopenharmony_ci#define CMDQ_EVENT_SPE_B_DONE 282 14662306a36Sopenharmony_ci#define CMDQ_EVENT_OCC_DONE 283 14762306a36Sopenharmony_ci#define CMDQ_EVENT_VENC_CMDQ_FRAME_DONE 289 14862306a36Sopenharmony_ci#define CMDQ_EVENT_JPG_ENC_CMDQ_DONE 290 14962306a36Sopenharmony_ci#define CMDQ_EVENT_JPG_DEC_CMDQ_DONE 291 15062306a36Sopenharmony_ci#define CMDQ_EVENT_VENC_CMDQ_MB_DONE 292 15162306a36Sopenharmony_ci#define CMDQ_EVENT_VENC_CMDQ_128BYTE_DONE 293 15262306a36Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_A 321 15362306a36Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_B 322 15462306a36Sopenharmony_ci#define CMDQ_EVENT_CAMSV0_PASS1_DONE 323 15562306a36Sopenharmony_ci#define CMDQ_EVENT_CAMSV1_PASS1_DONE 324 15662306a36Sopenharmony_ci#define CMDQ_EVENT_CAMSV2_PASS1_DONE 325 15762306a36Sopenharmony_ci#define CMDQ_EVENT_TSF_DONE 326 15862306a36Sopenharmony_ci#define CMDQ_EVENT_SENINF_CAM0_FIFO_FULL 327 15962306a36Sopenharmony_ci#define CMDQ_EVENT_SENINF_CAM1_FIFO_FULL 328 16062306a36Sopenharmony_ci#define CMDQ_EVENT_SENINF_CAM2_FIFO_FULL 329 16162306a36Sopenharmony_ci#define CMDQ_EVENT_SENINF_CAM3_FIFO_FULL 330 16262306a36Sopenharmony_ci#define CMDQ_EVENT_SENINF_CAM4_FIFO_FULL 331 16362306a36Sopenharmony_ci#define CMDQ_EVENT_SENINF_CAM5_FIFO_FULL 332 16462306a36Sopenharmony_ci#define CMDQ_EVENT_SENINF_CAM6_FIFO_FULL 333 16562306a36Sopenharmony_ci#define CMDQ_EVENT_SENINF_CAM7_FIFO_FULL 334 16662306a36Sopenharmony_ci#define CMDQ_EVENT_IPU_CORE0_DONE0 353 16762306a36Sopenharmony_ci#define CMDQ_EVENT_IPU_CORE0_DONE1 354 16862306a36Sopenharmony_ci#define CMDQ_EVENT_IPU_CORE0_DONE2 355 16962306a36Sopenharmony_ci#define CMDQ_EVENT_IPU_CORE0_DONE3 356 17062306a36Sopenharmony_ci#define CMDQ_EVENT_IPU_CORE1_DONE0 385 17162306a36Sopenharmony_ci#define CMDQ_EVENT_IPU_CORE1_DONE1 386 17262306a36Sopenharmony_ci#define CMDQ_EVENT_IPU_CORE1_DONE2 387 17362306a36Sopenharmony_ci#define CMDQ_EVENT_IPU_CORE1_DONE3 388 17462306a36Sopenharmony_ci 17562306a36Sopenharmony_ci#endif 176