xref: /linux/drivers/media/platform/mediatek/mdp3/mdp_reg_ovl.h (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (c) 2022 MediaTek Inc.
4  * Author: Ping-Hsun Wu <ping-hsun.wu@mediatek.com>
5  */
6 
7 #ifndef __MDP_REG_OVL_H__
8 #define __MDP_REG_OVL_H__
9 
10 #define MDP_OVL_EN			(0x00c)
11 #define MDP_OVL_ROI_SIZE		(0x020)
12 #define MDP_OVL_DP_CON			(0x024)
13 #define MDP_OVL_SRC_CON			(0x02c)
14 #define MDP_OVL_L0_CON			(0x030)
15 #define MDP_OVL_L0_SRC_SIZE		(0x038)
16 
17 /* MASK */
18 #define MDP_OVL_DP_CON_MASK		(0x0FFFFFFF)
19 #define MDP_OVL_EN_MASK			(0xB07D07B1)
20 #define MDP_OVL_L0_CON_MASK		(0xFFFFFFFF)
21 #define MDP_OVL_L0_SRC_SIZE_MASK	(0x1FFF1FFF)
22 #define MDP_OVL_ROI_SIZE_MASK		(0x1FFF1FFF)
23 #define MDP_OVL_SRC_CON_MASK		(0x0000031F)
24 
25 #endif  //__MDP_REG_OVL_H__
26