Commit | Line | Data |
---|---|---|
d8cd4c5c WM |
1 | /* |
2 | * Samsung Exynos5 SoC series FIMC-IS driver | |
3 | * | |
4 | * | |
5 | * Copyright (c) 2016 Samsung Electronics Co., Ltd | |
6 | * | |
7 | * This program is free software; you can redistribute it and/or modify | |
8 | * it under the terms of the GNU General Public License version 2 as | |
9 | * published by the Free Software Foundation. | |
10 | */ | |
11 | ||
12 | #ifndef _DT_BINDINGS_CAMERA_FIMC_IS_H | |
13 | #define _DT_BINDINGS_CAMERA_FIMC_IS_H | |
14 | ||
15 | #define F1_0 100 | |
16 | #define F1_4 140 | |
17 | #define F1_5 150 | |
18 | #define F1_7 170 | |
19 | #define F1_9 190 | |
20 | #define F2_0 200 | |
21 | #define F2_2 220 | |
22 | #define F2_4 240 | |
23 | #define F2_45 245 | |
24 | #define F2_6 260 | |
25 | #define F2_7 270 | |
26 | #define F2_8 280 | |
27 | #define F4_0 400 | |
28 | #define F5_6 560 | |
29 | #define F8_0 800 | |
30 | #define F11_0 1100 | |
31 | #define F16_0 1600 | |
32 | #define F22_0 2200 | |
33 | #define F32_0 3200 | |
34 | ||
35 | #define FLITE_ID_NOTHING 100 | |
36 | ||
37 | #define GPIO_SCENARIO_ON 0 | |
38 | #define GPIO_SCENARIO_OFF 1 | |
39 | #define GPIO_SCENARIO_STANDBY_ON 2 | |
40 | #define GPIO_SCENARIO_STANDBY_OFF 3 | |
41 | #define GPIO_SCENARIO_STANDBY_OFF_SENSOR 4 | |
42 | #define GPIO_SCENARIO_STANDBY_OFF_PREPROCESSOR 5 | |
43 | #define GPIO_SCENARIO_SENSOR_RETENTION_ON 6 | |
44 | #define GPIO_SCENARIO_MAX 7 | |
45 | #define GPIO_CTRL_MAX 32 | |
46 | ||
47 | #define SENSOR_SCENARIO_NORMAL 0 | |
48 | #define SENSOR_SCENARIO_VISION 1 | |
49 | #define SENSOR_SCENARIO_EXTERNAL 2 | |
50 | #define SENSOR_SCENARIO_OIS_FACTORY 3 | |
51 | #define SENSOR_SCENARIO_READ_ROM 4 | |
52 | #define SENSOR_SCENARIO_STANDBY 5 | |
53 | #define SENSOR_SCENARIO_SECURE 6 | |
f3af0f51 | 54 | #define SENSOR_SCENARIO_FACTORY 7 |
d8cd4c5c WM |
55 | #define SENSOR_SCENARIO_VIRTUAL 9 |
56 | #define SENSOR_SCENARIO_MAX 10 | |
57 | ||
58 | #define PIN_NONE 0 | |
59 | #define PIN_OUTPUT 1 | |
60 | #define PIN_INPUT 2 | |
61 | #define PIN_RESET 3 | |
62 | #define PIN_FUNCTION 4 | |
63 | #define PIN_REGULATOR 5 | |
64 | #define PIN_I2C 6 | |
8c5d5fcb | 65 | #define PIN_RETRY 8 |
d8cd4c5c WM |
66 | |
67 | #define DT_SET_PIN(p, n, a, v, t) \ | |
68 | seq@__LINE__ { \ | |
69 | pin = #p; \ | |
70 | pname = #n; \ | |
71 | act = <a>; \ | |
72 | value = <v>; \ | |
73 | delay = <t>; \ | |
74 | voltage = <0>; \ | |
75 | } | |
76 | ||
77 | #define DT_SET_PIN_VOLTAGE(p, n, a, v, t, e) \ | |
78 | seq@__LINE__ { \ | |
79 | pin = #p; \ | |
80 | pname = #n; \ | |
81 | act = <a>; \ | |
82 | value = <v>; \ | |
83 | delay = <t>; \ | |
84 | voltage = <e>; \ | |
85 | } | |
86 | ||
87 | ||
88 | #define VC_NOTHING 0 | |
89 | #define VC_TAILPDAF 1 | |
90 | #define VC_MIPISTAT 2 | |
91 | #define VC_EMBEDDED 3 | |
f3af0f51 | 92 | #define VC_PRIVATE 4 |
d8cd4c5c | 93 | |
8c76b153 JP |
94 | #define SP_REAR 0 |
95 | #define SP_FRONT 1 | |
96 | #define SP_REAR2 2 | |
f3af0f51 WK |
97 | #define SP_FRONT2 3 |
98 | #define SP_REAR3 4 | |
99 | #define SP_FRONT3 5 | |
100 | #define SP_REAR4 6 | |
101 | #define SP_FRONT4 7 | |
102 | #define SP_REAR_TOF 8 | |
103 | #define SP_FRONT_TOF 9 | |
104 | #define SP_SECURE 100 | |
105 | #define SP_VIRTUAL 101 | |
106 | ||
107 | #define DUAL_SYNC_NONE 0 | |
108 | #define DUAL_SYNC_MASTER 1 | |
109 | #define DUAL_SYNC_SLAVE 2 | |
8c76b153 | 110 | |
5e9c02fd WK |
111 | #define DUAL_SYNC_NONE 0 |
112 | #define DUAL_SYNC_MASTER 1 | |
113 | #define DUAL_SYNC_SLAVE 2 | |
114 | ||
d8cd4c5c | 115 | #endif |