1060f7875SFabien Parent /* SPDX-License-Identifier: GPL-2.0-only */
2060f7875SFabien Parent 
3060f7875SFabien Parent #ifndef __SOC_MEDIATEK_MT8167_MMSYS_H
4060f7875SFabien Parent #define __SOC_MEDIATEK_MT8167_MMSYS_H
5060f7875SFabien Parent 
6060f7875SFabien Parent #define MT8167_DISP_REG_CONFIG_DISP_OVL0_MOUT_EN	0x030
7060f7875SFabien Parent #define MT8167_DISP_REG_CONFIG_DISP_DITHER_MOUT_EN	0x038
8060f7875SFabien Parent #define MT8167_DISP_REG_CONFIG_DISP_COLOR0_SEL_IN	0x058
9060f7875SFabien Parent #define MT8167_DISP_REG_CONFIG_DISP_DSI0_SEL_IN		0x064
10060f7875SFabien Parent #define MT8167_DISP_REG_CONFIG_DISP_RDMA0_SOUT_SEL_IN	0x06c
11060f7875SFabien Parent 
12060f7875SFabien Parent #define MT8167_DITHER_MOUT_EN_RDMA0			0x1
13060f7875SFabien Parent #define MT8167_RDMA0_SOUT_DSI0				0x2
14060f7875SFabien Parent #define MT8167_DSI0_SEL_IN_RDMA0			0x1
15060f7875SFabien Parent 
16060f7875SFabien Parent static const struct mtk_mmsys_routes mt8167_mmsys_routing_table[] = {
17060f7875SFabien Parent 	{
18060f7875SFabien Parent 		DDP_COMPONENT_OVL0, DDP_COMPONENT_COLOR0,
19060f7875SFabien Parent 		MT8167_DISP_REG_CONFIG_DISP_OVL0_MOUT_EN, OVL0_MOUT_EN_COLOR0,
20060f7875SFabien Parent 	}, {
21*4e8988c6Sjason-jh.lin 		DDP_COMPONENT_DITHER0, DDP_COMPONENT_RDMA0,
22060f7875SFabien Parent 		MT8167_DISP_REG_CONFIG_DISP_DITHER_MOUT_EN, MT8167_DITHER_MOUT_EN_RDMA0
23060f7875SFabien Parent 	}, {
24060f7875SFabien Parent 		DDP_COMPONENT_OVL0, DDP_COMPONENT_COLOR0,
25060f7875SFabien Parent 		MT8167_DISP_REG_CONFIG_DISP_COLOR0_SEL_IN, COLOR0_SEL_IN_OVL0
26060f7875SFabien Parent 	}, {
27060f7875SFabien Parent 		DDP_COMPONENT_RDMA0, DDP_COMPONENT_DSI0,
28060f7875SFabien Parent 		MT8167_DISP_REG_CONFIG_DISP_DSI0_SEL_IN, MT8167_DSI0_SEL_IN_RDMA0
29060f7875SFabien Parent 	}, {
30060f7875SFabien Parent 		DDP_COMPONENT_RDMA0, DDP_COMPONENT_DSI0,
31060f7875SFabien Parent 		MT8167_DISP_REG_CONFIG_DISP_RDMA0_SOUT_SEL_IN, MT8167_RDMA0_SOUT_DSI0
32060f7875SFabien Parent 	},
33060f7875SFabien Parent };
34060f7875SFabien Parent 
35060f7875SFabien Parent #endif /* __SOC_MEDIATEK_MT8167_MMSYS_H */
36