xref: /OK3568_Linux_fs/u-boot/drivers/video/drm/rockchip_post_csc.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
2 /*
3  * Copyright (C) Rockchip Electronics Co.Ltd
4  * Author:
5  *      Zhang Yubing <yubing.zhang@rock-chips.com>
6  */
7 
8 #ifndef _ROCKCHIP_POST_CSC_H
9 #define _ROCKCHIP_POST_CSC_H
10 
11 #include <linux/kernel.h>
12 #include <edid.h>
13 
14 struct post_csc_coef {
15 	s32 csc_coef00;
16 	s32 csc_coef01;
17 	s32 csc_coef02;
18 	s32 csc_coef10;
19 	s32 csc_coef11;
20 	s32 csc_coef12;
21 	s32 csc_coef20;
22 	s32 csc_coef21;
23 	s32 csc_coef22;
24 
25 	s32 csc_dc0;
26 	s32 csc_dc1;
27 	s32 csc_dc2;
28 
29 	u32 range_type;
30 };
31 
32 int rockchip_calc_post_csc(struct csc_info *csc, struct post_csc_coef *csc_coef,
33 			   int csc_mode, bool is_input_yuv, bool is_output_yuv);
34 
35 #endif
36