xref: /OK3568_Linux_fs/kernel/include/dt-bindings/soc/rockchip-system-status.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  *
3  * Copyright (C) 2017 ROCKCHIP, Inc.
4  *
5  * This software is licensed under the terms of the GNU General Public
6  * License version 2, as published by the Free Software Foundation, and
7  * may be copied, distributed, and modified under those terms.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  */
15 
16 #ifndef _DT_BINDINGS_SOC_ROCKCHIP_SYSTEM_STATUS_H
17 #define _DT_BINDINGS_SOC_ROCKCHIP_SYSTEM_STATUS_H
18 
19 #define SYS_STATUS_NORMAL	(1 << 0)
20 #define SYS_STATUS_SUSPEND	(1 << 1)
21 #define SYS_STATUS_IDLE		(1 << 2)
22 #define SYS_STATUS_REBOOT	(1 << 3)
23 #define SYS_STATUS_VIDEO_4K	(1 << 4)
24 #define SYS_STATUS_VIDEO_1080P	(1 << 5)
25 #define SYS_STATUS_GPU		(1 << 6)
26 #define SYS_STATUS_RGA		(1 << 7)
27 #define SYS_STATUS_CIF0		(1 << 8)
28 #define SYS_STATUS_CIF1		(1 << 9)
29 #define SYS_STATUS_LCDC0	(1 << 10)
30 #define SYS_STATUS_LCDC1	(1 << 11)
31 #define SYS_STATUS_BOOST	(1 << 12)
32 #define SYS_STATUS_PERFORMANCE	(1 << 13)
33 #define SYS_STATUS_ISP		(1 << 14)
34 #define SYS_STATUS_HDMI		(1 << 15)
35 #define SYS_STATUS_VIDEO_4K_10B	(1 << 16)
36 #define SYS_STATUS_LOW_POWER	(1 << 17)
37 #define SYS_STATUS_HDMIRX	(1 << 18)
38 #define SYS_STATUS_VIDEO_SVEP	(1 << 19)
39 #define SYS_STATUS_VIDEO_4K_60P	(1 << 20)
40 
41 #define SYS_STATUS_VIDEO	(SYS_STATUS_VIDEO_4K | \
42 				 SYS_STATUS_VIDEO_1080P | \
43 				 SYS_STATUS_VIDEO_4K_10B | \
44 				 SYS_STATUS_VIDEO_4K_60P)
45 #define SYS_STATUS_DUALVIEW	(SYS_STATUS_LCDC0 | SYS_STATUS_LCDC1)
46 
47 #define DMC_FREQ_LEVEL_LOW	(0x1 << 0)
48 #define DMC_FREQ_LEVEL_MID_LOW	(0x1 << 1)
49 #define DMC_FREQ_LEVEL_MID_HIGH	(0x1 << 2)
50 #define DMC_FREQ_LEVEL_HIGH	(0x1 << 3)
51 
52 #define DMC_WAIT_MODE_NORMAL	(0x1 << 0)
53 #define DMC_WAIT_MODE_VOP_VBANK	(0x1 << 1)
54 #define DMC_WAIT_MODE_VOP_LINE	(0x1 << 2)
55 #define DMC_WAIT_MODE_VOP_AUTO	(0x1 << 3)
56 #define DMC_WAIT_MODE_ISP_VBANK	(0x1 << 4)
57 
58 #endif
59