Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / zte / zx_common_regs.h
blobb7b996db129d19096caaa6d49b6535b2b9131e73
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (C) 2017 Sanechips Technology Co., Ltd.
4 * Copyright 2017 Linaro Ltd.
5 */
7 #ifndef __ZX_COMMON_REGS_H__
8 #define __ZX_COMMON_REGS_H__
10 /* CSC registers */
11 #define CSC_CTRL0 0x30
12 #define CSC_COV_MODE_SHIFT 16
13 #define CSC_COV_MODE_MASK (0xffff << CSC_COV_MODE_SHIFT)
14 #define CSC_BT601_IMAGE_RGB2YCBCR 0
15 #define CSC_BT601_IMAGE_YCBCR2RGB 1
16 #define CSC_BT601_VIDEO_RGB2YCBCR 2
17 #define CSC_BT601_VIDEO_YCBCR2RGB 3
18 #define CSC_BT709_IMAGE_RGB2YCBCR 4
19 #define CSC_BT709_IMAGE_YCBCR2RGB 5
20 #define CSC_BT709_VIDEO_RGB2YCBCR 6
21 #define CSC_BT709_VIDEO_YCBCR2RGB 7
22 #define CSC_BT2020_IMAGE_RGB2YCBCR 8
23 #define CSC_BT2020_IMAGE_YCBCR2RGB 9
24 #define CSC_BT2020_VIDEO_RGB2YCBCR 10
25 #define CSC_BT2020_VIDEO_YCBCR2RGB 11
26 #define CSC_WORK_ENABLE BIT(0)
28 #endif /* __ZX_COMMON_REGS_H__ */