1*060f7875SFabien Parent /* SPDX-License-Identifier: GPL-2.0-only */ 2*060f7875SFabien Parent 3*060f7875SFabien Parent #ifndef __SOC_MEDIATEK_MT8167_MMSYS_H 4*060f7875SFabien Parent #define __SOC_MEDIATEK_MT8167_MMSYS_H 5*060f7875SFabien Parent 6*060f7875SFabien Parent #define MT8167_DISP_REG_CONFIG_DISP_OVL0_MOUT_EN 0x030 7*060f7875SFabien Parent #define MT8167_DISP_REG_CONFIG_DISP_DITHER_MOUT_EN 0x038 8*060f7875SFabien Parent #define MT8167_DISP_REG_CONFIG_DISP_COLOR0_SEL_IN 0x058 9*060f7875SFabien Parent #define MT8167_DISP_REG_CONFIG_DISP_DSI0_SEL_IN 0x064 10*060f7875SFabien Parent #define MT8167_DISP_REG_CONFIG_DISP_RDMA0_SOUT_SEL_IN 0x06c 11*060f7875SFabien Parent 12*060f7875SFabien Parent #define MT8167_DITHER_MOUT_EN_RDMA0 0x1 13*060f7875SFabien Parent #define MT8167_RDMA0_SOUT_DSI0 0x2 14*060f7875SFabien Parent #define MT8167_DSI0_SEL_IN_RDMA0 0x1 15*060f7875SFabien Parent 16*060f7875SFabien Parent static const struct mtk_mmsys_routes mt8167_mmsys_routing_table[] = { 17*060f7875SFabien Parent { 18*060f7875SFabien Parent DDP_COMPONENT_OVL0, DDP_COMPONENT_COLOR0, 19*060f7875SFabien Parent MT8167_DISP_REG_CONFIG_DISP_OVL0_MOUT_EN, OVL0_MOUT_EN_COLOR0, 20*060f7875SFabien Parent }, { 21*060f7875SFabien Parent DDP_COMPONENT_DITHER, DDP_COMPONENT_RDMA0, 22*060f7875SFabien Parent MT8167_DISP_REG_CONFIG_DISP_DITHER_MOUT_EN, MT8167_DITHER_MOUT_EN_RDMA0 23*060f7875SFabien Parent }, { 24*060f7875SFabien Parent DDP_COMPONENT_OVL0, DDP_COMPONENT_COLOR0, 25*060f7875SFabien Parent MT8167_DISP_REG_CONFIG_DISP_COLOR0_SEL_IN, COLOR0_SEL_IN_OVL0 26*060f7875SFabien Parent }, { 27*060f7875SFabien Parent DDP_COMPONENT_RDMA0, DDP_COMPONENT_DSI0, 28*060f7875SFabien Parent MT8167_DISP_REG_CONFIG_DISP_DSI0_SEL_IN, MT8167_DSI0_SEL_IN_RDMA0 29*060f7875SFabien Parent }, { 30*060f7875SFabien Parent DDP_COMPONENT_RDMA0, DDP_COMPONENT_DSI0, 31*060f7875SFabien Parent MT8167_DISP_REG_CONFIG_DISP_RDMA0_SOUT_SEL_IN, MT8167_RDMA0_SOUT_DSI0 32*060f7875SFabien Parent }, 33*060f7875SFabien Parent }; 34*060f7875SFabien Parent 35*060f7875SFabien Parent #endif /* __SOC_MEDIATEK_MT8167_MMSYS_H */ 36