Linux Audio

Check our new training course

Linux debugging, profiling, tracing and performance analysis training

Mar 24-27, 2025, special US time zones
Register
Loading...
v5.4
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * Copyright (C) 2017 Sanechips Technology Co., Ltd.
 4 * Copyright 2017 Linaro Ltd.
 
 
 
 
 5 */
 6
 7#ifndef __ZX_COMMON_REGS_H__
 8#define __ZX_COMMON_REGS_H__
 9
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)
27
28#endif /* __ZX_COMMON_REGS_H__ */
v4.17
 
 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__ */