Skip to content

Commit 4104453

Browse files
Anik1199niclimcy
authored andcommitted
camera_wt88047_v2: Import camera stack for wt88047
* wt88047 has some issues using the default camera stack. * Changes from ido and LA.BR.1.2.4-04410 Change-Id: I2cfb0e55bda6029c056de656fe74a3adb9de955e
1 parent 13ffa53 commit 4104453

File tree

135 files changed

+60739
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+60739
-0
lines changed

drivers/media/platform/msm/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,20 @@ config MSMB_CAMERA_DEBUG
3333
---help---
3434
Enable printk() debug for msm camera 2.0
3535

36+
menuconfig WT88047_CAMERA
37+
bool "Wingtech WT88047 variant of the camera stack"
38+
depends on ARCH_MSM && VIDEO_V4L2 && I2C && MSMB_CAMERA && MACH_WT88047
39+
default n
40+
---help---
41+
Enable the old Wingtech WT88047 camera code
42+
3643
if MSMB_CAMERA
44+
if WT88047_CAMERA
45+
source "drivers/media/platform/msm/camera_wt88047_v2/Kconfig"
46+
endif
47+
if !WT88047_CAMERA
3748
source "drivers/media/platform/msm/camera_v2/Kconfig"
49+
endif
3850
endif # MSMB_CAMERA
3951

4052
source "drivers/media/platform/msm/vidc/Kconfig"

drivers/media/platform/msm/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,9 @@ obj-$(CONFIG_MSM_VIDC_V4L2) += vidc/
77
obj-$(CONFIG_MSM_WFD) += wfd/
88
obj-y += broadcast/
99
obj-$(CONFIG_DVB_MPQ) += dvb/
10+
ifeq ($(CONFIG_WT88047_CAMERA),y)
11+
obj-$(CONFIG_MSMB_CAMERA) += camera_wt88047_v2/
12+
else
1013
obj-$(CONFIG_MSMB_CAMERA) += camera_v2/
14+
endif
1115
obj-$(CONFIG_MSM_VPU) += vpu/
Lines changed: 275 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,275 @@
1+
config MSM_CAMERA_SENSOR
2+
bool "Qualcomm MSM camera sensor support"
3+
depends on MSMB_CAMERA
4+
---help---
5+
This flag enables support for Camera Sensor.
6+
The sensor driver is capable of providing real time
7+
data for camera support. The driver support V4L2
8+
subdev APIs.
9+
10+
config MSM_CPP
11+
bool "Qualcomm MSM Camera Post Processing Engine support"
12+
depends on MSMB_CAMERA
13+
---help---
14+
Enable support for Camera Post-processing Engine
15+
The Post processing engine is capable of scaling
16+
and cropping image. The driver support V4L2 subdev
17+
APIs.
18+
19+
config MSM_CCI
20+
bool "Qualcomm MSM Camera Control Interface support"
21+
depends on MSMB_CAMERA
22+
---help---
23+
Enable support for Camera Control Interface driver only
24+
for those platforms that have hardware support. This driver
25+
is responsible for handling I2C read and write on the I2C
26+
bus. It is also responsible for synchronization with
27+
GPIO and data frames.
28+
29+
config MSM_CSI20_HEADER
30+
bool "Qualcomm MSM CSI 2.0 Header"
31+
depends on MSMB_CAMERA
32+
---help---
33+
Enable support for CSI drivers to include 2.0
34+
header. This header has register macros and its
35+
values and bit mask for register configuration bits
36+
This config macro is required targets based on 8960,
37+
8930 and 8064 platforms.
38+
39+
config MSM_CSI22_HEADER
40+
bool "Qualcomm MSM CSI 2.2 Header"
41+
depends on MSMB_CAMERA
42+
---help---
43+
Enable support for CSI drivers to include 2.2
44+
header. This header has register macros and its
45+
values and bit mask for register configuration bits
46+
This config macro is required targets based on 8610
47+
platform.
48+
49+
config MSM_CSI30_HEADER
50+
bool "Qualcomm MSM CSI 3.0 Header"
51+
depends on MSMB_CAMERA
52+
---help---
53+
Enable support for CSI drivers to include 3.0
54+
header. This header has register macros and its
55+
values and bit mask for register configuration bits
56+
This config macro is required for targets based on
57+
8064 platforms.
58+
59+
config MSM_CSI31_HEADER
60+
bool "Qualcomm MSM CSI 3.1 Header"
61+
depends on MSMB_CAMERA
62+
---help---
63+
Enable support for CSI drivers to include 3.0
64+
header. This header has register macros and its
65+
values and bit mask for register configuration bits
66+
This config macro is required for targets based on
67+
APQ8084 platform.
68+
69+
config MSM_CSIPHY
70+
bool "Qualcomm MSM Camera Serial Interface Physical receiver support"
71+
depends on MSMB_CAMERA
72+
---help---
73+
Enable support for Camera Serial Interface
74+
Physical receiver. It deserializes packets and
75+
supports detection of packet start and stop
76+
signalling.
77+
78+
config MSM_CSID
79+
bool "Qualcomm MSM Camera Serial Interface decoder support"
80+
depends on MSMB_CAMERA
81+
---help---
82+
Enable support for Camera Serial Interface decoder.
83+
It supports lane merging and decoding of packets
84+
based on cid which is mapped to a virtual channel
85+
and datatype.
86+
87+
config MSM_EEPROM
88+
bool "Qualcomm MSM Camera ROM Interface for Calibration support"
89+
depends on MSMB_CAMERA
90+
---help---
91+
Enable support for ROM Interface for Calibration
92+
Provides interface for reading the Claibration data.
93+
and also provides support for writing data in case of FLASH ROM.
94+
Currently supports I2C, CCI and SPI protocol
95+
96+
config MSM_ISPIF
97+
bool "Qualcomm MSM Image Signal Processing interface support"
98+
depends on MSMB_CAMERA
99+
---help---
100+
Enable support for Image Signal Processing interface module.
101+
This module acts as a crossbar between CSID and VFE. Output
102+
of any CID of CSID can be routed to of of pixel or raw
103+
data interface in VFE.
104+
105+
config MSM_ISPIF_V1
106+
bool "Qualcomm MSM Image Signal Processing interface support"
107+
depends on MSMB_CAMERA
108+
---help---
109+
Enable support for Image Signal Processing interface module.
110+
This module acts as a crossbar between CSID and VFE. Output
111+
of any CID of MSM_CSI22_HEADER can be routed to of pixel
112+
or raw data interface in VFE.
113+
114+
config IMX134
115+
bool "Sensor IMX134 (BAYER 8M)"
116+
depends on MSMB_CAMERA
117+
---help---
118+
Sony 8 MP Bayer Sensor with auto focus, uses
119+
4 mipi lanes full resolution @30fps and
120+
HFR @60fps and @120fps,
121+
Video HDR support.
122+
123+
config IMX132
124+
bool "Sensor IMX132 (BAYER 2M)"
125+
depends on MSMB_CAMERA
126+
---help---
127+
Sony 2 MP Bayer Sensor with auto focus, uses
128+
2 mipi lanes, preview config = 1920 x 1080 at 30 fps,
129+
snapshot config = 1920 x 1080 at 30 fps,
130+
Video HDR support.
131+
132+
config OV9724
133+
bool "Sensor OV9724 (BAYER 2M)"
134+
depends on MSMB_CAMERA
135+
---help---
136+
OmniVision 2 MP Bayer Sensor, supports 2 mipi lanes,
137+
preview and snapshot config at 1280*720 at 30 fps,
138+
hfr video at 60, 90 and 120 fps. This sensor driver does
139+
not support auto focus.
140+
141+
config HI256
142+
bool "Hynix hi256 (YUV 2MP)"
143+
depends on MSMB_CAMERA
144+
---help---
145+
OmniVision 8 MP Bayer Sensor with auto focus.uses
146+
2 mipi lanes, preview config = 1632*1224 30 fps,
147+
snapshot config = 3264 * 2448 at 18 fps.
148+
2 lanes max fps is 18, 4 lanes max fps is 24.
149+
150+
config OV5648
151+
bool "Sensor OV5648 (BAYER 5M)"
152+
depends on MSMB_CAMERA
153+
---help---
154+
OmniVision 5 MP Bayer Sensor, only use 1 mipi lane,
155+
preview set to 1296*972 at 30 fps,
156+
snapshot set to 2592*1944 at 12 fps,
157+
This sensor driver does not support auto focus.
158+
159+
config MT9M114
160+
bool "Sensor MT9M114 (YUV 1.26MP)"
161+
depends on MSMB_CAMERA
162+
---help---
163+
MT9M114 is Aptina YUV sensor. It supports 1.26 MP preview
164+
and snapshot. The preview and snapshot resolution shall be
165+
1280 * 270. It does not support auto focus. It supports
166+
few special effects like saturation.
167+
config OV5645
168+
bool "Sensor OV5645 (YUV 5.0MP)"
169+
depends on MSMB_CAMERA
170+
---help---
171+
OV5645 is Omnivision YUV sensor. It supports 5.0 MP preview
172+
and snapshot. The preview and snapshot resolution shall be
173+
1280 * 270. It does not support auto focus. It supports
174+
few special effects like saturation.
175+
176+
config OV7695
177+
bool "Sensor OV7695 (YUV 0.3MP)"
178+
depends on MSMB_CAMERA
179+
---help---
180+
OV7695 is Omnivision YUV sensor. It supports 0.3 MP preview
181+
and snapshot. The preview and snapshot resolution shall be
182+
VGA. It does not support auto focus. It supports
183+
few special effects like saturation.
184+
185+
config SP1628
186+
bool "Sensor SP1628 (YUV 720P)"
187+
depends on MSMB_CAMERA
188+
---help---
189+
SP1628 is SuperPix YUV sensor. It supports 720P preview
190+
and snapshot. The preview and snapshot resolution shall be
191+
1280 * 270. It does not support auto focus. It supports
192+
few special effects like mono.
193+
194+
config GC0339
195+
bool "Sensor GC0339 (BAYER .3M)"
196+
depends on MSMB_CAMERA
197+
---help---
198+
gc0339 is a Galaxycore .3 MP Bayer Sensor.
199+
It supports 1 or 2 mipi lanes.
200+
Preview and snapshot resolution shall be 640*480 at 30 fps,
201+
It does not support auto focus.
202+
203+
config GC0310
204+
bool "Sensor GC0310 (YUV .3M)"
205+
depends on MSMB_CAMERA
206+
---help---
207+
0310 is a Galaxycore .3 MP YUV Sensor.
208+
It supports 1 mipi lane.
209+
Preview and snapshot resolution shall be 640*480 at 30 fps,
210+
It does not support auto focus.
211+
212+
config OV8825
213+
bool "OmniVision OV8825 (BAYER 8MP)"
214+
depends on MSMB_CAMERA
215+
---help---
216+
OmniVision 8 MP Bayer Sensor with auto focus.uses
217+
2 mipi lanes, preview config = 1632*1224 30 fps,
218+
snapshot config = 3264 * 2448 at 18 fps.
219+
2 lanes max fps is 18, 4 lanes max fps is 24.
220+
221+
config OV8865
222+
bool "OmniVision OV8865 (BAYER 8MP)"
223+
depends on MSMB_CAMERA
224+
---help---
225+
OmniVision 8 MP Bayer Sensor with auto focus.uses
226+
4 mipi lanes, preview config = 1632*1224 30 fps,
227+
snapshot config = 3264 * 2448 at 30 fps.
228+
Max fps is 30fps at 3264 * 2448, 60fps at 1632 * 1224
229+
230+
config s5k4e1
231+
bool "Sensor s5k4e1 (BAYER 5MP)"
232+
depends on MSMB_CAMERA
233+
---help---
234+
Samsung 5 MP Bayer Sensor. It uses 2 mipi lanes,
235+
supports 720P preview at 30 fps
236+
and QSXGA snapshot at 15 fps.
237+
This sensor driver does not support auto focus.
238+
239+
config OV12830
240+
bool "OmniVision OV12830 (BAYER 12MP)"
241+
depends on MSMB_CAMERA
242+
---help---
243+
OmniVision 12.8 MP Bayer Sensor with auto focus.uses
244+
4 mipi lanes, preview config = 2112 * 1500 at 30 fps,
245+
snapshot config = 4224 * 3000 at 15 fps.
246+
2 lanes max fps is 18, 4 lanes max fps is 24.
247+
248+
config MSM_V4L2_VIDEO_OVERLAY_DEVICE
249+
tristate "Qualcomm MSM V4l2 video overlay device"
250+
---help---
251+
Enables support for the MSM V4L2 video
252+
overlay driver. This allows video rendering
253+
apps to render overlaid video using Video4Linux2
254+
APIs, by using /dev/videoX device
255+
256+
config MSMB_JPEG
257+
tristate "Qualcomm MSM Jpeg Encoder Engine support"
258+
depends on MSMB_CAMERA && (ARCH_MSM8974 || ARCH_MSM8226 || ARCH_APQ8084 || ARCH_MSM8916 || ARCH_MSM)
259+
---help---
260+
Enable support for Jpeg Encoder/Decoder
261+
Engine for 8974.
262+
This module serves as the common driver
263+
for the JPEG 1.0 encoder and decoder.
264+
265+
config MSM_GEMINI
266+
tristate "Qualcomm MSM Gemini JPEG engine support"
267+
depends on MSMB_CAMERA && (ARCH_MSM7X30 || ARCH_MSM8X60 || ARCH_MSM8960)
268+
---help---
269+
Enables support for the Gemini JPEG encoder engine for 8x60.
270+
271+
config MSM_FD
272+
tristate "Qualcomm MSM FD face detection engine support"
273+
depends on MSMB_CAMERA
274+
---help---
275+
Enables support for the MSM FD face detection engine.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
ccflags-y += -Idrivers/media/platform/msm/camera_wt88047_v2
2+
ccflags-y += -Idrivers/media/platform/msm/camera_wt88047_v2/sensor
3+
ccflags-y += -Idrivers/media/platform/msm/camera_wt88047_v2/codecs
4+
ccflags-y += -Idrivers/media/platform/msm/camera_wt88047_v2/isps
5+
ccflags-y += -Idrivers/media/platform/msm/camera_wt88047_v2/pproc
6+
ccflags-y += -Idrivers/media/platform/msm/camera_wt88047_v2/msm_vb2
7+
ccflags-y += -Idrivers/media/platform/msm/camera_wt88047_v2/camera
8+
ccflags-y += -Idrivers/media/platform/msm/camera_wt88047_v2/jpeg_10
9+
ccflags-y += -Idrivers/media/platform/msm/camera_wt88047_v2/fd
10+
11+
obj-$(CONFIG_MSMB_CAMERA) += msm.o
12+
obj-$(CONFIG_MSMB_CAMERA) += camera/
13+
obj-$(CONFIG_MSMB_CAMERA) += msm_vb2/
14+
obj-$(CONFIG_MSMB_CAMERA) += sensor/
15+
obj-$(CONFIG_MSMB_CAMERA) += pproc/
16+
obj-$(CONFIG_MSMB_CAMERA) += isp/
17+
obj-$(CONFIG_MSMB_CAMERA) += ispif/
18+
obj-$(CONFIG_MSMB_JPEG) += jpeg_10/
19+
obj-$(CONFIG_MSMB_CAMERA) += msm_buf_mgr/
20+
obj-$(CONFIG_MSM_FD) += fd/
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ccflags-y += -Idrivers/media/platform/msm/camera_wt88047_v2
2+
ccflags-y += -Idrivers/media/platform/msm/camera_wt88047_v2/msm_vb2
3+
obj-$(CONFIG_MSMB_CAMERA) += camera.o

0 commit comments

Comments
 (0)