18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2017 Sanechips Technology Co., Ltd.
48c2ecf20Sopenharmony_ci * Copyright 2017 Linaro Ltd.
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#ifndef __ZX_COMMON_REGS_H__
88c2ecf20Sopenharmony_ci#define __ZX_COMMON_REGS_H__
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci/* CSC registers */
118c2ecf20Sopenharmony_ci#define CSC_CTRL0			0x30
128c2ecf20Sopenharmony_ci#define CSC_COV_MODE_SHIFT		16
138c2ecf20Sopenharmony_ci#define CSC_COV_MODE_MASK		(0xffff << CSC_COV_MODE_SHIFT)
148c2ecf20Sopenharmony_ci#define CSC_BT601_IMAGE_RGB2YCBCR	0
158c2ecf20Sopenharmony_ci#define CSC_BT601_IMAGE_YCBCR2RGB	1
168c2ecf20Sopenharmony_ci#define CSC_BT601_VIDEO_RGB2YCBCR	2
178c2ecf20Sopenharmony_ci#define CSC_BT601_VIDEO_YCBCR2RGB	3
188c2ecf20Sopenharmony_ci#define CSC_BT709_IMAGE_RGB2YCBCR	4
198c2ecf20Sopenharmony_ci#define CSC_BT709_IMAGE_YCBCR2RGB	5
208c2ecf20Sopenharmony_ci#define CSC_BT709_VIDEO_RGB2YCBCR	6
218c2ecf20Sopenharmony_ci#define CSC_BT709_VIDEO_YCBCR2RGB	7
228c2ecf20Sopenharmony_ci#define CSC_BT2020_IMAGE_RGB2YCBCR	8
238c2ecf20Sopenharmony_ci#define CSC_BT2020_IMAGE_YCBCR2RGB	9
248c2ecf20Sopenharmony_ci#define CSC_BT2020_VIDEO_RGB2YCBCR	10
258c2ecf20Sopenharmony_ci#define CSC_BT2020_VIDEO_YCBCR2RGB	11
268c2ecf20Sopenharmony_ci#define CSC_WORK_ENABLE			BIT(0)
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci#endif /* __ZX_COMMON_REGS_H__ */
29