GNU Linux-libre 4.14.254-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / isp / kernels / eed1_8 / ia_css_eed1_8_default.host.c
1 /*
2  * Support for Intel Camera Imaging ISP subsystem.
3  * Copyright (c) 2015, Intel Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms and conditions of the GNU General Public License,
7  * version 2, as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12  * more details.
13  */
14
15 #include "ia_css_eed1_8_types.h"
16
17 /* The default values for the kernel parameters are based on
18  * ISP261 CSS API public parameter list_all.xlsx from 12-09-2014
19  * The parameter list is available on the ISP261 sharepoint
20  */
21
22 /* Default kernel parameters. */
23 const struct ia_css_eed1_8_config default_eed1_8_config = {
24         .rbzp_strength = 5489,
25         .fcstrength = 6554,
26         .fcthres_0 = 0,
27         .fcthres_1 = 0,
28         .fc_sat_coef = 8191,
29         .fc_coring_prm = 128,
30         .aerel_thres0 = 0,
31         .aerel_gain0 = 8191,
32         .aerel_thres1 = 16,
33         .aerel_gain1 = 20,
34         .derel_thres0 = 1229,
35         .derel_gain0 = 1,
36         .derel_thres1 = 819,
37         .derel_gain1 = 1,
38         .coring_pos0 = 0,
39         .coring_pos1 = 0,
40         .coring_neg0 = 0,
41         .coring_neg1 = 0,
42         .gain_exp = 2,
43         .gain_pos0 = 6144,
44         .gain_pos1 = 2048,
45         .gain_neg0 = 2048,
46         .gain_neg1 = 6144,
47         .pos_margin0 = 1475,
48         .pos_margin1 = 1475,
49         .neg_margin0 = 1475,
50         .neg_margin1 = 1475,
51         .dew_enhance_seg_x = {
52                 0,
53                 64,
54                 272,
55                 688,
56                 1376,
57                 2400,
58                 3840,
59                 5744,
60                 8191
61                 },
62         .dew_enhance_seg_y = {
63                 0,
64                 144,
65                 480,
66                 1040,
67                 1852,
68                 2945,
69                 4357,
70                 6094,
71                 8191
72                 },
73         .dew_enhance_seg_slope = {
74                 4608,
75                 3308,
76                 2757,
77                 2417,
78                 2186,
79                 8033,
80                 7473,
81                 7020
82                 },
83         .dew_enhance_seg_exp = {
84                 2,
85                 2,
86                 2,
87                 2,
88                 2,
89                 0,
90                 0,
91                 0
92                 },
93         .dedgew_max = 6144
94 };