1*52edd094SAngeloGioacchino Del Regno /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2*52edd094SAngeloGioacchino Del Regno /* 3*52edd094SAngeloGioacchino Del Regno * Copyright (c) 2020 MediaTek Inc. 4*52edd094SAngeloGioacchino Del Regno * Copyright (c) 2025 Collabora Ltd 5*52edd094SAngeloGioacchino Del Regno * AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> 6*52edd094SAngeloGioacchino Del Regno */ 7*52edd094SAngeloGioacchino Del Regno #ifndef _DT_BINDINGS_MEMORY_MT6893_LARB_PORT_H_ 8*52edd094SAngeloGioacchino Del Regno #define _DT_BINDINGS_MEMORY_MT6893_LARB_PORT_H_ 9*52edd094SAngeloGioacchino Del Regno 10*52edd094SAngeloGioacchino Del Regno #include <dt-bindings/memory/mtk-memory-port.h> 11*52edd094SAngeloGioacchino Del Regno 12*52edd094SAngeloGioacchino Del Regno /* 13*52edd094SAngeloGioacchino Del Regno * MM IOMMU supports 16GB dma address. 14*52edd094SAngeloGioacchino Del Regno * 15*52edd094SAngeloGioacchino Del Regno * The address will preassign like this: 16*52edd094SAngeloGioacchino Del Regno * 17*52edd094SAngeloGioacchino Del Regno * modules dma-address-region larbs-ports 18*52edd094SAngeloGioacchino Del Regno * disp 0 ~ 4G larb0/2 19*52edd094SAngeloGioacchino Del Regno * vcodec 4G ~ 8G larb4/5/7 20*52edd094SAngeloGioacchino Del Regno * cam/mdp 8G ~ 12G larb9/11/13/14/16/17/18/19/20 21*52edd094SAngeloGioacchino Del Regno * CCU0 0x4000_0000 ~ 0x43ff_ffff larb13: port 9/10 22*52edd094SAngeloGioacchino Del Regno * CCU1 0x4400_0000 ~ 0x47ff_ffff larb14: port 4/5 23*52edd094SAngeloGioacchino Del Regno * 24*52edd094SAngeloGioacchino Del Regno * larb3/6/8/10/12/15 are null. 25*52edd094SAngeloGioacchino Del Regno */ 26*52edd094SAngeloGioacchino Del Regno 27*52edd094SAngeloGioacchino Del Regno /* larb0 */ 28*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L0_DISP_POSTMASK0 MTK_M4U_DOM_ID(0, 0) 29*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L0_MDP_RDMA4 MTK_M4U_DOM_ID(0, 1) 30*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L0_OVL_RDMA0_HDR MTK_M4U_DOM_ID(0, 2) 31*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L0_OVL_2L_RDMA1_HDR MTK_M4U_DOM_ID(0, 3) 32*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L0_OVL_2L_RDMA3_HDR MTK_M4U_DOM_ID(0, 4) 33*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L0_OVL_RDMA0 MTK_M4U_DOM_ID(0, 5) 34*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L0_OVL_2L_RDMA1 MTK_M4U_DOM_ID(0, 6) 35*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L0_OVL_2L_RDMA3 MTK_M4U_DOM_ID(0, 7) 36*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L0_OVL_RDMA1_SYSRAM MTK_M4U_DOM_ID(0, 8) 37*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L0_OVL_2L_RDMA0_SYSRAM MTK_M4U_DOM_ID(0, 9) 38*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L0_OVL_2L_RDMA2_SYSRAM MTK_M4U_DOM_ID(0, 10) 39*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L0_DISP_WDMA0 MTK_M4U_DOM_ID(0, 11) 40*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L0_DISP_RDMA0 MTK_M4U_DOM_ID(0, 12) 41*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L0_DISP_UFBC_WDMA0 MTK_M4U_DOM_ID(0, 13) 42*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L0_DISP_FAKE0 MTK_M4U_DOM_ID(0, 14) 43*52edd094SAngeloGioacchino Del Regno 44*52edd094SAngeloGioacchino Del Regno /* larb1 */ 45*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L1_DISP_POSTMASK1 MTK_M4U_DOM_ID(1, 0) 46*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L1_MDP_RDMA5 MTK_M4U_DOM_ID(1, 1) 47*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L1_OVL_RDMA1_HDR MTK_M4U_DOM_ID(1, 2) 48*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L1_OVL_2L_RDMA0_HDR MTK_M4U_DOM_ID(1, 3) 49*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L1_OVL_2L_RDMA2_HDR MTK_M4U_DOM_ID(1, 4) 50*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L1_OVL_RDMA1 MTK_M4U_DOM_ID(1, 5) 51*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L1_OVL_2L_RDMA0 MTK_M4U_DOM_ID(1, 6) 52*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L1_OVL_2L_RDMA2 MTK_M4U_DOM_ID(1, 7) 53*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L1_OVL_RDMA0_SYSRAM MTK_M4U_DOM_ID(1, 8) 54*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L1_OVL_2L_RDMA1_SYSRAM MTK_M4U_DOM_ID(1, 9) 55*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L1_OVL_2L_RDMA3_SYSRAM MTK_M4U_DOM_ID(1, 10) 56*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L1_DISP_WDMA1 MTK_M4U_DOM_ID(1, 11) 57*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L1_DISP_RDMA1 MTK_M4U_DOM_ID(1, 12) 58*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L1_DISP_UFBC_WDMA1 MTK_M4U_DOM_ID(1, 13) 59*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L1_DISP_FAKE1 MTK_M4U_DOM_ID(1, 14) 60*52edd094SAngeloGioacchino Del Regno 61*52edd094SAngeloGioacchino Del Regno /* larb2 */ 62*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L2_MDP_RDMA0 MTK_M4U_DOM_ID(2, 0) 63*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L2_MDP_RDMA2 MTK_M4U_DOM_ID(2, 1) 64*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L2_MDP_WROT0 MTK_M4U_DOM_ID(2, 2) 65*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L2_MDP_WROT2 MTK_M4U_DOM_ID(2, 3) 66*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L2_MDP_FILMGRAIN0 MTK_M4U_DOM_ID(2, 4) 67*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L2_MDP_FAKE0 MTK_M4U_DOM_ID(2, 5) 68*52edd094SAngeloGioacchino Del Regno 69*52edd094SAngeloGioacchino Del Regno /* larb3: null */ 70*52edd094SAngeloGioacchino Del Regno 71*52edd094SAngeloGioacchino Del Regno /* larb4 */ 72*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L4_VDEC_MC_EXT_MDP MTK_M4U_DOM_ID(4, 0) 73*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L4_VDEC_UFO_EXT_MDP MTK_M4U_DOM_ID(4, 1) 74*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L4_VDEC_PP_EXT_MDP MTK_M4U_DOM_ID(4, 2) 75*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L4_VDEC_PRED_RD_EXT_MDP MTK_M4U_DOM_ID(4, 3) 76*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L4_VDEC_PRED_WR_EXT_MDP MTK_M4U_DOM_ID(4, 4) 77*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L4_VDEC_PPWRAP_EXT_MDP MTK_M4U_DOM_ID(4, 5) 78*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L4_VDEC_TILE_EXT_MDP MTK_M4U_DOM_ID(4, 6) 79*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L4_VDEC_VLD_EXT_MDP MTK_M4U_DOM_ID(4, 7) 80*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L4_VDEC_VLD2_EXT_MDP MTK_M4U_DOM_ID(4, 8) 81*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L4_VDEC_AVC_MV_EXT_MDP MTK_M4U_DOM_ID(4, 9) 82*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L4_VDEC_RG_CTRL_DMA_EXT_MDP MTK_M4U_DOM_ID(4, 10) 83*52edd094SAngeloGioacchino Del Regno 84*52edd094SAngeloGioacchino Del Regno /* larb5 */ 85*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L5_VDEC_LAT0_VLD_EXT_DISP MTK_M4U_DOM_ID(5, 0) 86*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L5_VDEC_LAT0_VLD2_EXT_DISP MTK_M4U_DOM_ID(5, 1) 87*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L5_VDEC_LAT0_AVC_MV_EXT_DISP MTK_M4U_DOM_ID(5, 2) 88*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L5_VDEC_LAT0_PRED_RD_EXT_DISP MTK_M4U_DOM_ID(5, 3) 89*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L5_VDEC_LAT0_TILE_EXT_DISP MTK_M4U_DOM_ID(5, 4) 90*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L5_VDEC_LAT0_WDMA_EXT_DISP MTK_M4U_DOM_ID(5, 5) 91*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L5_VDEC_LAT0_RG_CTRL_DMA_EXT_DISP MTK_M4U_DOM_ID(5, 6) 92*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L5_VDEC_UFO_ENC_EXT_DISP MTK_M4U_DOM_ID(5, 7) 93*52edd094SAngeloGioacchino Del Regno 94*52edd094SAngeloGioacchino Del Regno /* larb6: null */ 95*52edd094SAngeloGioacchino Del Regno 96*52edd094SAngeloGioacchino Del Regno /* larb7 */ 97*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_VENC_RCPU_DISP MTK_M4U_DOM_ID(7, 0) 98*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_VENC_REC_DISP MTK_M4U_DOM_ID(7, 1) 99*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_VENC_BSDMA_DISP MTK_M4U_DOM_ID(7, 2) 100*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_VENC_SV_COMV_DISP MTK_M4U_DOM_ID(7, 3) 101*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_VENC_RD_COMV_DISP MTK_M4U_DOM_ID(7, 4) 102*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_VENC_NBM_RDMA_DISP MTK_M4U_DOM_ID(7, 5) 103*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_VENC_NBM_RDMA_LITE_DISP MTK_M4U_DOM_ID(7, 6) 104*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_JPGENC_Y_RDMA_DISP MTK_M4U_DOM_ID(7, 7) 105*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_JPGENC_C_RDMA_DISP MTK_M4U_DOM_ID(7, 8) 106*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_JPGENC_Q_TABLE_DISP MTK_M4U_DOM_ID(7, 9) 107*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_JPGENC_BSDMA_DISP MTK_M4U_DOM_ID(7, 10) 108*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_JPGENC_WDMA0_DISP MTK_M4U_DOM_ID(7, 11) 109*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_JPGENC_BSDMA0_DISP MTK_M4U_DOM_ID(7, 12) 110*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_VENC_NBM_WDMA_DISP MTK_M4U_DOM_ID(7, 13) 111*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_VENC_NBM_WDMA_LITE_DISP MTK_M4U_DOM_ID(7, 14) 112*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_VENC_CUR_LUMA_DISP MTK_M4U_DOM_ID(7, 15) 113*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_VENC_CUR_CHROMA_DISP MTK_M4U_DOM_ID(7, 16) 114*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_VENC_REF_LUMA_DISP MTK_M4U_DOM_ID(7, 17) 115*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_VENC_REF_CHROMA_DISP MTK_M4U_DOM_ID(7, 18) 116*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_VENC_SUB_R_LUMA_DISP MTK_M4U_DOM_ID(7, 19) 117*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_VENC_SUB_W_LUMA_DISP MTK_M4U_DOM_ID(7, 20) 118*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_VENC_FCS_NBM_RDMA_DISP MTK_M4U_DOM_ID(7, 21) 119*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_VENC_FCS_NBM_WDMA_DISP MTK_M4U_DOM_ID(7, 22) 120*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_JPGENC_WDMA1_DISP MTK_M4U_DOM_ID(7, 23) 121*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_JPGENC_BSDMA1_DISP MTK_M4U_DOM_ID(7, 24) 122*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_JPGENC_HUFF_OFFSET1_DISP MTK_M4U_DOM_ID(7, 25) 123*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L7_JPGENC_HUFF_OFFSET0_DISP MTK_M4U_DOM_ID(7, 26) 124*52edd094SAngeloGioacchino Del Regno 125*52edd094SAngeloGioacchino Del Regno /* larb8: null */ 126*52edd094SAngeloGioacchino Del Regno 127*52edd094SAngeloGioacchino Del Regno /* larb9 */ 128*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_IMGI_D1_MDP MTK_M4U_DOM_ID(9, 0) 129*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_IMGBI_D1_MDP MTK_M4U_DOM_ID(9, 1) 130*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_DMGI_D1_MDP MTK_M4U_DOM_ID(9, 2) 131*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_DEPI_D1_MDP MTK_M4U_DOM_ID(9, 3) 132*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_ICE_D1_MDP MTK_M4U_DOM_ID(9, 4) 133*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_SMTI_D1_MDP MTK_M4U_DOM_ID(9, 5) 134*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_SMTO_D2_MDP MTK_M4U_DOM_ID(9, 6) 135*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_SMTO_D1_MDP MTK_M4U_DOM_ID(9, 7) 136*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_CRZO_D1_MDP MTK_M4U_DOM_ID(9, 8) 137*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_IMG3O_D1_MDP MTK_M4U_DOM_ID(9, 9) 138*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_VIPI_D1_MDP MTK_M4U_DOM_ID(9, 10) 139*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_SMTI_D5_MDP MTK_M4U_DOM_ID(9, 11) 140*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_TIMGO_D1_MDP MTK_M4U_DOM_ID(9, 12) 141*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_UFBC_W0_MDP MTK_M4U_DOM_ID(9, 13) 142*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_UFBC_R0_MDP MTK_M4U_DOM_ID(9, 14) 143*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_WPE_RDMA1_MDP MTK_M4U_DOM_ID(9, 15) 144*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_WPE_RDMA0_MDP MTK_M4U_DOM_ID(9, 16) 145*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_WPE_WDMA_MDP MTK_M4U_DOM_ID(9, 17) 146*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_MFB_RDMA0_MDP MTK_M4U_DOM_ID(9, 18) 147*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_MFB_RDMA1_MDP MTK_M4U_DOM_ID(9, 19) 148*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_MFB_RDMA2_MDP MTK_M4U_DOM_ID(9, 20) 149*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_MFB_RDMA3_MDP MTK_M4U_DOM_ID(9, 21) 150*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_MFB_RDMA4_MDP MTK_M4U_DOM_ID(9, 22) 151*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_MFB_RDMA5_MDP MTK_M4U_DOM_ID(9, 23) 152*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_MFB_WDMA0_MDP MTK_M4U_DOM_ID(9, 24) 153*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_MFB_WDMA1_MDP MTK_M4U_DOM_ID(9, 25) 154*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_RESERVE6_MDP MTK_M4U_DOM_ID(9, 26) 155*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_RESERVE7_MDP MTK_M4U_DOM_ID(9, 27) 156*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L9_IMG_RESERVE8_MDP MTK_M4U_DOM_ID(9, 28) 157*52edd094SAngeloGioacchino Del Regno 158*52edd094SAngeloGioacchino Del Regno /* larb10: null */ 159*52edd094SAngeloGioacchino Del Regno 160*52edd094SAngeloGioacchino Del Regno /* larb11 */ 161*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_IMGI_D1_DISP MTK_M4U_DOM_ID(11, 0) 162*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_IMGBI_D1_DISP MTK_M4U_DOM_ID(11, 1) 163*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_DMGI_D1_DISP MTK_M4U_DOM_ID(11, 2) 164*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_DEPI_D1_DISP MTK_M4U_DOM_ID(11, 3) 165*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_ICE_D1_DISP MTK_M4U_DOM_ID(11, 4) 166*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_SMTI_D1_DISP MTK_M4U_DOM_ID(11, 5) 167*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_SMTO_D2_DISP MTK_M4U_DOM_ID(11, 6) 168*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_SMTO_D1_DISP MTK_M4U_DOM_ID(11, 7) 169*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_CRZO_D1_DISP MTK_M4U_DOM_ID(11, 8) 170*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_IMG3O_D1_DISP MTK_M4U_DOM_ID(11, 9) 171*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_VIPI_D1_DISP MTK_M4U_DOM_ID(11, 10) 172*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_SMTI_D5_DISP MTK_M4U_DOM_ID(11, 11) 173*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_TIMGO_D1_DISP MTK_M4U_DOM_ID(11, 12) 174*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_UFBC_W0_DISP MTK_M4U_DOM_ID(11, 13) 175*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_UFBC_R0_DISP MTK_M4U_DOM_ID(11, 14) 176*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_WPE_RDMA1_DISP MTK_M4U_DOM_ID(11, 15) 177*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_WPE_RDMA0_DISP MTK_M4U_DOM_ID(11, 16) 178*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_WPE_WDMA_DISP MTK_M4U_DOM_ID(11, 17) 179*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_MFB_RDMA0_DISP MTK_M4U_DOM_ID(11, 18) 180*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_MFB_RDMA1_DISP MTK_M4U_DOM_ID(11, 19) 181*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_MFB_RDMA2_DISP MTK_M4U_DOM_ID(11, 20) 182*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_MFB_RDMA3_DISP MTK_M4U_DOM_ID(11, 21) 183*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_MFB_RDMA4_DISP MTK_M4U_DOM_ID(11, 22) 184*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_MFB_RDMA5_DISP MTK_M4U_DOM_ID(11, 23) 185*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_MFB_WDMA0_DISP MTK_M4U_DOM_ID(11, 24) 186*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_MFB_WDMA1_DISP MTK_M4U_DOM_ID(11, 25) 187*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_RESERVE6_DISP MTK_M4U_DOM_ID(11, 26) 188*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_RESERVE7_DISP MTK_M4U_DOM_ID(11, 27) 189*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L11_IMG_RESERVE8_DISP MTK_M4U_DOM_ID(11, 28) 190*52edd094SAngeloGioacchino Del Regno 191*52edd094SAngeloGioacchino Del Regno /* larb12: null */ 192*52edd094SAngeloGioacchino Del Regno 193*52edd094SAngeloGioacchino Del Regno /* larb13 */ 194*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L13_CAM_MRAWI_MDP MTK_M4U_DOM_ID(13, 0) 195*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L13_CAM_MRAWO0_MDP MTK_M4U_DOM_ID(13, 1) 196*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L13_CAM_MRAWO1_MDP MTK_M4U_DOM_ID(13, 2) 197*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L13_CAM_CAMSV1_MDP MTK_M4U_DOM_ID(13, 3) 198*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L13_CAM_CAMSV2_MDP MTK_M4U_DOM_ID(13, 4) 199*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L13_CAM_CAMSV3_MDP MTK_M4U_DOM_ID(13, 5) 200*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L13_CAM_CAMSV4_MDP MTK_M4U_DOM_ID(13, 6) 201*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L13_CAM_CAMSV5_MDP MTK_M4U_DOM_ID(13, 7) 202*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L13_CAM_CAMSV6_MDP MTK_M4U_DOM_ID(13, 8) 203*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L13_CAM_CCUI_MDP MTK_M4U_DOM_ID(13, 9) 204*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L13_CAM_CCUO_MDP MTK_M4U_DOM_ID(13, 10) 205*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L13_CAM_FAKE_MDP MTK_M4U_DOM_ID(13, 11) 206*52edd094SAngeloGioacchino Del Regno 207*52edd094SAngeloGioacchino Del Regno /* larb14 */ 208*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L14_CAM_MRAWI_DISP MTK_M4U_DOM_ID(14, 0) 209*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L14_CAM_MRAWO0_DISP MTK_M4U_DOM_ID(14, 1) 210*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L14_CAM_MRAWO1_DISP MTK_M4U_DOM_ID(14, 2) 211*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L14_CAM_CAMSV0_DISP MTK_M4U_DOM_ID(14, 3) 212*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L14_CAM_CCUI_DISP MTK_M4U_DOM_ID(14, 4) 213*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L14_CAM_CCUO_DISP MTK_M4U_DOM_ID(14, 5) 214*52edd094SAngeloGioacchino Del Regno 215*52edd094SAngeloGioacchino Del Regno /* larb15: null */ 216*52edd094SAngeloGioacchino Del Regno 217*52edd094SAngeloGioacchino Del Regno /* larb16 */ 218*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L16_CAM_IMGO_R1_A_MDP MTK_M4U_DOM_ID(16, 0) 219*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L16_CAM_RRZO_R1_A_MDP MTK_M4U_DOM_ID(16, 1) 220*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L16_CAM_CQI_R1_A_MDP MTK_M4U_DOM_ID(16, 2) 221*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L16_CAM_BPCI_R1_A_MDP MTK_M4U_DOM_ID(16, 3) 222*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L16_CAM_YUVO_R1_A_MDP MTK_M4U_DOM_ID(16, 4) 223*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L16_CAM_UFDI_R2_A_MDP MTK_M4U_DOM_ID(16, 5) 224*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L16_CAM_RAWI_R2_A_MDP MTK_M4U_DOM_ID(16, 6) 225*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L16_CAM_RAWI_R3_A_MDP MTK_M4U_DOM_ID(16, 7) 226*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L16_CAM_AAO_R1_A_MDP MTK_M4U_DOM_ID(16, 8) 227*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L16_CAM_AFO_R1_A_MDP MTK_M4U_DOM_ID(16, 9) 228*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L16_CAM_FLKO_R1_A_MDP MTK_M4U_DOM_ID(16, 10) 229*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L16_CAM_LCESO_R1_A_MDP MTK_M4U_DOM_ID(16, 11) 230*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L16_CAM_CRZO_R1_A_MDP MTK_M4U_DOM_ID(16, 12) 231*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L16_CAM_LTMSO_R1_A_MDP MTK_M4U_DOM_ID(16, 13) 232*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L16_CAM_RSSO_R1_A_MDP MTK_M4U_DOM_ID(16, 14) 233*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L16_CAM_AAHO_R1_A_MDP MTK_M4U_DOM_ID(16, 15) 234*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L16_CAM_LSCI_R1_A_MDP MTK_M4U_DOM_ID(16, 16) 235*52edd094SAngeloGioacchino Del Regno 236*52edd094SAngeloGioacchino Del Regno /* larb17 */ 237*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L17_CAM_IMGO_R1_B_DISP MTK_M4U_DOM_ID(17, 0) 238*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L17_CAM_RRZO_R1_B_DISP MTK_M4U_DOM_ID(17, 1) 239*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L17_CAM_CQI_R1_B_DISP MTK_M4U_DOM_ID(17, 2) 240*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L17_CAM_BPCI_R1_B_DISP MTK_M4U_DOM_ID(17, 3) 241*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L17_CAM_YUVO_R1_B_DISP MTK_M4U_DOM_ID(17, 4) 242*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L17_CAM_UFDI_R2_B_DISP MTK_M4U_DOM_ID(17, 5) 243*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L17_CAM_RAWI_R2_B_DISP MTK_M4U_DOM_ID(17, 6) 244*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L17_CAM_RAWI_R3_B_DISP MTK_M4U_DOM_ID(17, 7) 245*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L17_CAM_AAO_R1_B_DISP MTK_M4U_DOM_ID(17, 8) 246*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L17_CAM_AFO_R1_B_DISP MTK_M4U_DOM_ID(17, 9) 247*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L17_CAM_FLKO_R1_B_DISP MTK_M4U_DOM_ID(17, 10) 248*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L17_CAM_LCESO_R1_B_DISP MTK_M4U_DOM_ID(17, 11) 249*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L17_CAM_CRZO_R1_B_DISP MTK_M4U_DOM_ID(17, 12) 250*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L17_CAM_LTMSO_R1_B_DISP MTK_M4U_DOM_ID(17, 13) 251*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L17_CAM_RSSO_R1_B_DISP MTK_M4U_DOM_ID(17, 14) 252*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L17_CAM_AAHO_R1_B_DISP MTK_M4U_DOM_ID(17, 15) 253*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L17_CAM_LSCI_R1_B_DISP MTK_M4U_DOM_ID(17, 16) 254*52edd094SAngeloGioacchino Del Regno 255*52edd094SAngeloGioacchino Del Regno /* larb18 */ 256*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L18_CAM_IMGO_R1_C_MDP MTK_M4U_DOM_ID(18, 0) 257*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L18_CAM_RRZO_R1_C_MDP MTK_M4U_DOM_ID(18, 1) 258*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L18_CAM_CQI_R1_C_MDP MTK_M4U_DOM_ID(18, 2) 259*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L18_CAM_BPCI_R1_C_MDP MTK_M4U_DOM_ID(18, 3) 260*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L18_CAM_YUVO_R1_C_MDP MTK_M4U_DOM_ID(18, 4) 261*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L18_CAM_UFDI_R2_C_MDP MTK_M4U_DOM_ID(18, 5) 262*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L18_CAM_RAWI_R2_C_MDP MTK_M4U_DOM_ID(18, 6) 263*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L18_CAM_RAWI_R3_C_MDP MTK_M4U_DOM_ID(18, 7) 264*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L18_CAM_AAO_R1_C_MDP MTK_M4U_DOM_ID(18, 8) 265*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L18_CAM_AFO_R1_C_MDP MTK_M4U_DOM_ID(18, 9) 266*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L18_CAM_FLKO_R1_C_MDP MTK_M4U_DOM_ID(18, 10) 267*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L18_CAM_LCESO_R1_C_MDP MTK_M4U_DOM_ID(18, 11) 268*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L18_CAM_CRZO_R1_C_MDP MTK_M4U_DOM_ID(18, 12) 269*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L18_CAM_LTMSO_R1_C_MDP MTK_M4U_DOM_ID(18, 13) 270*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L18_CAM_RSSO_R1_C_MDP MTK_M4U_DOM_ID(18, 14) 271*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L18_CAM_AAHO_R1_C_MDP MTK_M4U_DOM_ID(18, 15) 272*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L18_CAM_LSCI_R1_C_MDP MTK_M4U_DOM_ID(18, 16) 273*52edd094SAngeloGioacchino Del Regno 274*52edd094SAngeloGioacchino Del Regno /* larb19 */ 275*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L19_IPE_DVS_RDMA_DISP MTK_M4U_DOM_ID(19, 0) 276*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L19_IPE_DVS_WDMA_DISP MTK_M4U_DOM_ID(19, 1) 277*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L19_IPE_DVP_RDMA_DISP MTK_M4U_DOM_ID(19, 2) 278*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L19_IPE_DVP_WDMA_DISP MTK_M4U_DOM_ID(19, 3) 279*52edd094SAngeloGioacchino Del Regno 280*52edd094SAngeloGioacchino Del Regno /* larb20 */ 281*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L20_IPE_FDVT_RDA_DISP MTK_M4U_DOM_ID(20, 0) 282*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L20_IPE_FDVT_RDB_DISP MTK_M4U_DOM_ID(20, 1) 283*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L20_IPE_FDVT_WRA_DISP MTK_M4U_DOM_ID(20, 2) 284*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L20_IPE_FDVT_WRB_DISP MTK_M4U_DOM_ID(20, 3) 285*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L20_IPE_RSC_RDMA0_DISP MTK_M4U_DOM_ID(20, 4) 286*52edd094SAngeloGioacchino Del Regno #define M4U_PORT_L20_IPE_RSC_WDMA_DISP MTK_M4U_DOM_ID(20, 5) 287*52edd094SAngeloGioacchino Del Regno 288*52edd094SAngeloGioacchino Del Regno #endif 289