2 * drivers/media/i2c/smiapp/smiapp-limits.h
4 * Generic driver for SMIA/SMIA++ compliant camera modules
6 * Copyright (C) 2011--2012 Nokia Corporation
7 * Contact: Sakari Ailus <sakari.ailus@iki.fi>
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * version 2 as published by the Free Software Foundation.
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 #define SMIAPP_LIMIT_ANALOGUE_GAIN_CAPABILITY 0
26 #define SMIAPP_LIMIT_ANALOGUE_GAIN_CODE_MIN 1
27 #define SMIAPP_LIMIT_ANALOGUE_GAIN_CODE_MAX 2
28 #define SMIAPP_LIMIT_THS_ZERO_MIN 3
29 #define SMIAPP_LIMIT_TCLK_TRAIL_MIN 4
30 #define SMIAPP_LIMIT_INTEGRATION_TIME_CAPABILITY 5
31 #define SMIAPP_LIMIT_COARSE_INTEGRATION_TIME_MIN 6
32 #define SMIAPP_LIMIT_COARSE_INTEGRATION_TIME_MAX_MARGIN 7
33 #define SMIAPP_LIMIT_FINE_INTEGRATION_TIME_MIN 8
34 #define SMIAPP_LIMIT_FINE_INTEGRATION_TIME_MAX_MARGIN 9
35 #define SMIAPP_LIMIT_DIGITAL_GAIN_CAPABILITY 10
36 #define SMIAPP_LIMIT_DIGITAL_GAIN_MIN 11
37 #define SMIAPP_LIMIT_DIGITAL_GAIN_MAX 12
38 #define SMIAPP_LIMIT_MIN_EXT_CLK_FREQ_HZ 13
39 #define SMIAPP_LIMIT_MAX_EXT_CLK_FREQ_HZ 14
40 #define SMIAPP_LIMIT_MIN_PRE_PLL_CLK_DIV 15
41 #define SMIAPP_LIMIT_MAX_PRE_PLL_CLK_DIV 16
42 #define SMIAPP_LIMIT_MIN_PLL_IP_FREQ_HZ 17
43 #define SMIAPP_LIMIT_MAX_PLL_IP_FREQ_HZ 18
44 #define SMIAPP_LIMIT_MIN_PLL_MULTIPLIER 19
45 #define SMIAPP_LIMIT_MAX_PLL_MULTIPLIER 20
46 #define SMIAPP_LIMIT_MIN_PLL_OP_FREQ_HZ 21
47 #define SMIAPP_LIMIT_MAX_PLL_OP_FREQ_HZ 22
48 #define SMIAPP_LIMIT_MIN_VT_SYS_CLK_DIV 23
49 #define SMIAPP_LIMIT_MAX_VT_SYS_CLK_DIV 24
50 #define SMIAPP_LIMIT_MIN_VT_SYS_CLK_FREQ_HZ 25
51 #define SMIAPP_LIMIT_MAX_VT_SYS_CLK_FREQ_HZ 26
52 #define SMIAPP_LIMIT_MIN_VT_PIX_CLK_FREQ_HZ 27
53 #define SMIAPP_LIMIT_MAX_VT_PIX_CLK_FREQ_HZ 28
54 #define SMIAPP_LIMIT_MIN_VT_PIX_CLK_DIV 29
55 #define SMIAPP_LIMIT_MAX_VT_PIX_CLK_DIV 30
56 #define SMIAPP_LIMIT_MIN_FRAME_LENGTH_LINES 31
57 #define SMIAPP_LIMIT_MAX_FRAME_LENGTH_LINES 32
58 #define SMIAPP_LIMIT_MIN_LINE_LENGTH_PCK 33
59 #define SMIAPP_LIMIT_MAX_LINE_LENGTH_PCK 34
60 #define SMIAPP_LIMIT_MIN_LINE_BLANKING_PCK 35
61 #define SMIAPP_LIMIT_MIN_FRAME_BLANKING_LINES 36
62 #define SMIAPP_LIMIT_MIN_LINE_LENGTH_PCK_STEP_SIZE 37
63 #define SMIAPP_LIMIT_MIN_OP_SYS_CLK_DIV 38
64 #define SMIAPP_LIMIT_MAX_OP_SYS_CLK_DIV 39
65 #define SMIAPP_LIMIT_MIN_OP_SYS_CLK_FREQ_HZ 40
66 #define SMIAPP_LIMIT_MAX_OP_SYS_CLK_FREQ_HZ 41
67 #define SMIAPP_LIMIT_MIN_OP_PIX_CLK_DIV 42
68 #define SMIAPP_LIMIT_MAX_OP_PIX_CLK_DIV 43
69 #define SMIAPP_LIMIT_MIN_OP_PIX_CLK_FREQ_HZ 44
70 #define SMIAPP_LIMIT_MAX_OP_PIX_CLK_FREQ_HZ 45
71 #define SMIAPP_LIMIT_X_ADDR_MIN 46
72 #define SMIAPP_LIMIT_Y_ADDR_MIN 47
73 #define SMIAPP_LIMIT_X_ADDR_MAX 48
74 #define SMIAPP_LIMIT_Y_ADDR_MAX 49
75 #define SMIAPP_LIMIT_MIN_X_OUTPUT_SIZE 50
76 #define SMIAPP_LIMIT_MIN_Y_OUTPUT_SIZE 51
77 #define SMIAPP_LIMIT_MAX_X_OUTPUT_SIZE 52
78 #define SMIAPP_LIMIT_MAX_Y_OUTPUT_SIZE 53
79 #define SMIAPP_LIMIT_MIN_EVEN_INC 54
80 #define SMIAPP_LIMIT_MAX_EVEN_INC 55
81 #define SMIAPP_LIMIT_MIN_ODD_INC 56
82 #define SMIAPP_LIMIT_MAX_ODD_INC 57
83 #define SMIAPP_LIMIT_SCALING_CAPABILITY 58
84 #define SMIAPP_LIMIT_SCALER_M_MIN 59
85 #define SMIAPP_LIMIT_SCALER_M_MAX 60
86 #define SMIAPP_LIMIT_SCALER_N_MIN 61
87 #define SMIAPP_LIMIT_SCALER_N_MAX 62
88 #define SMIAPP_LIMIT_SPATIAL_SAMPLING_CAPABILITY 63
89 #define SMIAPP_LIMIT_DIGITAL_CROP_CAPABILITY 64
90 #define SMIAPP_LIMIT_COMPRESSION_CAPABILITY 65
91 #define SMIAPP_LIMIT_FIFO_SUPPORT_CAPABILITY 66
92 #define SMIAPP_LIMIT_DPHY_CTRL_CAPABILITY 67
93 #define SMIAPP_LIMIT_CSI_LANE_MODE_CAPABILITY 68
94 #define SMIAPP_LIMIT_CSI_SIGNALLING_MODE_CAPABILITY 69
95 #define SMIAPP_LIMIT_FAST_STANDBY_CAPABILITY 70
96 #define SMIAPP_LIMIT_CCI_ADDRESS_CONTROL_CAPABILITY 71
97 #define SMIAPP_LIMIT_MAX_PER_LANE_BITRATE_1_LANE_MODE_MBPS 72
98 #define SMIAPP_LIMIT_MAX_PER_LANE_BITRATE_2_LANE_MODE_MBPS 73
99 #define SMIAPP_LIMIT_MAX_PER_LANE_BITRATE_3_LANE_MODE_MBPS 74
100 #define SMIAPP_LIMIT_MAX_PER_LANE_BITRATE_4_LANE_MODE_MBPS 75
101 #define SMIAPP_LIMIT_TEMP_SENSOR_CAPABILITY 76
102 #define SMIAPP_LIMIT_MIN_FRAME_LENGTH_LINES_BIN 77
103 #define SMIAPP_LIMIT_MAX_FRAME_LENGTH_LINES_BIN 78
104 #define SMIAPP_LIMIT_MIN_LINE_LENGTH_PCK_BIN 79
105 #define SMIAPP_LIMIT_MAX_LINE_LENGTH_PCK_BIN 80
106 #define SMIAPP_LIMIT_MIN_LINE_BLANKING_PCK_BIN 81
107 #define SMIAPP_LIMIT_FINE_INTEGRATION_TIME_MIN_BIN 82
108 #define SMIAPP_LIMIT_FINE_INTEGRATION_TIME_MAX_MARGIN_BIN 83
109 #define SMIAPP_LIMIT_BINNING_CAPABILITY 84
110 #define SMIAPP_LIMIT_BINNING_WEIGHTING_CAPABILITY 85
111 #define SMIAPP_LIMIT_DATA_TRANSFER_IF_CAPABILITY 86
112 #define SMIAPP_LIMIT_SHADING_CORRECTION_CAPABILITY 87
113 #define SMIAPP_LIMIT_GREEN_IMBALANCE_CAPABILITY 88
114 #define SMIAPP_LIMIT_BLACK_LEVEL_CAPABILITY 89
115 #define SMIAPP_LIMIT_MODULE_SPECIFIC_CORRECTION_CAPABILITY 90
116 #define SMIAPP_LIMIT_DEFECT_CORRECTION_CAPABILITY 91
117 #define SMIAPP_LIMIT_DEFECT_CORRECTION_CAPABILITY_2 92
118 #define SMIAPP_LIMIT_EDOF_CAPABILITY 93
119 #define SMIAPP_LIMIT_COLOUR_FEEDBACK_CAPABILITY 94
120 #define SMIAPP_LIMIT_ESTIMATION_MODE_CAPABILITY 95
121 #define SMIAPP_LIMIT_ESTIMATION_ZONE_CAPABILITY 96
122 #define SMIAPP_LIMIT_CAPABILITY_TRDY_MIN 97
123 #define SMIAPP_LIMIT_FLASH_MODE_CAPABILITY 98
124 #define SMIAPP_LIMIT_ACTUATOR_CAPABILITY 99
125 #define SMIAPP_LIMIT_BRACKETING_LUT_CAPABILITY_1 100
126 #define SMIAPP_LIMIT_BRACKETING_LUT_CAPABILITY_2 101
127 #define SMIAPP_LIMIT_ANALOGUE_GAIN_CODE_STEP 102
128 #define SMIAPP_LIMIT_LAST 103