1 /*
2  * Allwinner SoCs display driver.
3  *
4  * Copyright (C) 2016 Allwinner.
5  *
6  * This file is licensed under the terms of the GNU General Public
7  * License version 2.  This program is licensed "as is" without any
8  * warranty of any kind, whether express or implied.
9  */
10 
11 #ifndef __DE_CSC_H__
12 #define __DE_CSC_H__
13 
14 #include "de_rtmx.h"
15 
16 int de_dcsc_apply(unsigned int sel, struct disp_csc_config *config);
17 int de_dcsc_init(struct disp_bsp_init_para *para);
18 int de_dcsc_exit(void);
19 int de_dcsc_update_regs(unsigned int sel);
20 int de_dcsc_get_config(unsigned int sel, struct disp_csc_config *config);
21 
22 int de_ccsc_apply(unsigned int sel, unsigned int ch_id,
23           struct disp_csc_config *config);
24 int de_ccsc_update_regs(unsigned int sel);
25 int de_ccsc_init(struct disp_bsp_init_para *para);
26 int de_ccsc_exit(void);
27 int de_csc_coeff_calc(unsigned int infmt, unsigned int incscmod,
28               unsigned int outfmt, unsigned int outcscmod,
29               unsigned int brightness, unsigned int contrast,
30               unsigned int saturation, unsigned int hue,
31               unsigned int out_color_range, int *csc_coeff);
32 
33 #endif
34