xref: /linux/drivers/media/platform/mediatek/mdp3/mdp_reg_ovl.h (revision 6e7fd890f1d6ac83805409e9c346240de2705584)
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