Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[sfrench/cifs-2.6.git] / drivers / gpu / drm / zte / zx_common_regs.h
1 /*
2  * Copyright (C) 2017 Sanechips Technology Co., Ltd.
3  * Copyright 2017 Linaro Ltd.
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation.
8  */
9
10 #ifndef __ZX_COMMON_REGS_H__
11 #define __ZX_COMMON_REGS_H__
12
13 /* CSC registers */
14 #define CSC_CTRL0                       0x30
15 #define CSC_COV_MODE_SHIFT              16
16 #define CSC_COV_MODE_MASK               (0xffff << CSC_COV_MODE_SHIFT)
17 #define CSC_BT601_IMAGE_RGB2YCBCR       0
18 #define CSC_BT601_IMAGE_YCBCR2RGB       1
19 #define CSC_BT601_VIDEO_RGB2YCBCR       2
20 #define CSC_BT601_VIDEO_YCBCR2RGB       3
21 #define CSC_BT709_IMAGE_RGB2YCBCR       4
22 #define CSC_BT709_IMAGE_YCBCR2RGB       5
23 #define CSC_BT709_VIDEO_RGB2YCBCR       6
24 #define CSC_BT709_VIDEO_YCBCR2RGB       7
25 #define CSC_BT2020_IMAGE_RGB2YCBCR      8
26 #define CSC_BT2020_IMAGE_YCBCR2RGB      9
27 #define CSC_BT2020_VIDEO_RGB2YCBCR      10
28 #define CSC_BT2020_VIDEO_YCBCR2RGB      11
29 #define CSC_WORK_ENABLE                 BIT(0)
30
31 #endif /* __ZX_COMMON_REGS_H__ */