xref: /linux/drivers/media/platform/mediatek/mdp3/mdp_reg_color.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_COLOR_H__
8 #define __MDP_REG_COLOR_H__
9 
10 #define MDP_COLOR_WIN_X_MAIN			(0x40C)
11 #define MDP_COLOR_WIN_Y_MAIN			(0x410)
12 #define MDP_COLOR_START				(0xC00)
13 #define MDP_COLOR_INTEN				(0xC04)
14 #define MDP_COLOR_OUT_SEL			(0xC0C)
15 #define MDP_COLOR_INTERNAL_IP_WIDTH		(0xC50)
16 #define MDP_COLOR_INTERNAL_IP_HEIGHT		(0xC54)
17 #define MDP_COLOR_CM1_EN			(0xC60)
18 #define MDP_COLOR_CM2_EN			(0xCA0)
19 
20 /* MASK */
21 #define MDP_COLOR_WIN_X_MAIN_MASK		(0xFFFFFFFF)
22 #define MDP_COLOR_WIN_Y_MAIN_MASK		(0xFFFFFFFF)
23 #define MDP_COLOR_START_MASK			(0x0FF013F)
24 #define MDP_COLOR_INTEN_MASK			(0x07)
25 #define MDP_COLOR_OUT_SEL_MASK			(0x0777)
26 #define MDP_COLOR_INTERNAL_IP_WIDTH_MASK	(0x03FFF)
27 #define MDP_COLOR_INTERNAL_IP_HEIGHT_MASK	(0x03FFF)
28 #define MDP_COLOR_CM1_EN_MASK			(0x03)
29 #define MDP_COLOR_CM2_EN_MASK			(0x017)
30 
31 #endif  // __MDP_REG_COLOR_H__
32